|
List Info
Thread: customizing autoidx.xsl
|
|
| customizing autoidx.xsl |

|
2007-01-24 10:29:24 |
|
Hi,
I've needed to generate an index with docbook markup, and have so
modified autoidx.xsl to generate docbook elements, rather than the HTML
output. I'm also chunking this out as a separate file.
For some reason, it is still getting wrapped with some type of titlepage
div:
B
...
Is there a parameter to turn this off, or what template do I need to
override to eliminate these div outer wrappers?
Thanks,
--Scott
|
Approximate file size 336 bytes |
| Re: customizing autoidx.xsl |

|
2007-01-24 11:31:30 |
|
Hi Scott,
If you are using 1.71.1 or later, it depends on which $index.method you are
using:
$index.method = 'basic', customize 'generate-basic-index' in autoidx.xsl.
$index.method = 'kosek', customize 'generate-kosek-index' in
autoidx-kosek.xsl
$index.method = 'kimber', customize 'generate-kimber-index' in
autoidx-kimber.xsl
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Scott Hudson" flatironssolutions.com>
To: "Docbook-Apps" lists.oasis-open.org>
Sent: Wednesday, January 24, 2007 8:29 AM
Subject: [docbook-apps] customizing autoidx.xsl
> Hi,
>
> I've needed to generate an index with docbook markup, and have so
> modified autoidx.xsl to generate docbook elements, rather than the HTML
> output. I'm also chunking this out as a separate file.
>
> For some reason, it is still getting wrapped with some type of titlepage
> div:
>
> |
| Re: customizing autoidx.xsl |

|
2007-01-24 12:51:42 |
|
Hi Scott,
Sorry, I misread the templates. You need to also customize the
match="index" template in index.xsl. That's where the extra divs are
coming from.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Scott Hudson" gmail.com>
To: "Bob Stayton" sagehill.net>
Cc: "Scott Hudson" flatironssolutions.com>; "Docbook-Apps"
lists.oasis-open.org>
Sent: Wednesday, January 24, 2007 9:39 AM
Subject: Re: [docbook-apps] customizing autoidx.xsl
> Yes, I'm using 1.71.1 and using the basic (default) method. I've
> customized the template for generate-basic-index, but still getting the
> wrapper divs. Here's my customization:
>
>
>
>
>
>
> role"/>
>
>
>
>
>
> type"/>
>
>
>
> select="//indexterm
> [count(.|key('letter',
> translate(substring(&primary;, 1, 1),
> &lowercase;,
> &uppercase;))
> [&scope;][1]) = 1
> and not( class = 'endofrange')]"/>
>
> select="$terms[contains(concat(&lowercase;, &uppercase;),
> substring(&primary;, 1, 1))]"/>
>
> select="$terms[not(contains(concat(&lowercase;,
> &uppercase;),
> substring(&primary;, 1,
> 1)))]"/>
>
>
>
>
>
>
>
>
> mode="index-symbol-div">
>
>
>
>
>
>
>
>
>
>
>
> mode="index-div-basic">
>
>
>
>
>
>
>
>
>
> On output, I still get:
>
>
>
> ...
>
> Best regards,
>
> --Scott
>
> Bob Stayton wrote:
>> Hi Scott,
>> If you are using 1.71.1 or later, it depends on which $index.method you
>> are using:
>>
>> $index.method = 'basic', customize 'generate-basic-index' in
>> autoidx.xsl.
>>
>> $index.method = 'kosek', customize 'generate-kosek-index' in
>> autoidx-kosek.xsl
>>
>> $index.method = 'kimber', customize 'generate-kimber-index' in
>> autoidx-kimber.xsl
>>
>>
>> Bob Stayton
>> Sagehill Enterprises
>> DocBook Consulting
>> bobs sagehill.net
>>
>>
>> ----- Original Message ----- From: "Scott Hudson"
>> flatironssolutions.com>
>> To: "Docbook-Apps" lists.oasis-open.org>
>> Sent: Wednesday, January 24, 2007 8:29 AM
>> Subject: [docbook-apps] customizing autoidx.xsl
>>
>>
>>> Hi,
>>>
>>> I've needed to generate an index with docbook markup, and have so
>>> modified autoidx.xsl to generate docbook elements, rather than the HTML
>>> output. I'm also chunking this out as a separate file.
>>>
>>> For some reason, it is still getting wrapped with some type of
>>> titlepage
>>> div:
>>>
>>> |
| Re: customizing autoidx.xsl |

|
2007-01-24 13:12:56 |
|
I tried that as well, but when I override it, I lose the chunking.
--Scott
Bob Stayton wrote:
> Hi Scott,
> Sorry, I misread the templates. You need to also customize the
> match="index" template in index.xsl. That's where the extra divs are
> coming from.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs sagehill.net
>
>
> ----- Original Message ----- From: "Scott Hudson" gmail.com>
> To: "Bob Stayton" sagehill.net>
> Cc: "Scott Hudson" flatironssolutions.com>; "Docbook-Apps"
> lists.oasis-open.org>
> Sent: Wednesday, January 24, 2007 9:39 AM
> Subject: Re: [docbook-apps] customizing autoidx.xsl
>
>
>> Yes, I'm using 1.71.1 and using the basic (default) method. I've
>> customized the template for generate-basic-index, but still getting the
>> wrapper divs. Here's my customization:
>>
>>
>>
>>
>>
>>
>> role"/>
>>
>>
>>
>>
>>
>> type"/>
>>
>>
>>
>> > select="//indexterm
>> [count(.|key('letter',
>> translate(substring(&primary;, 1, 1),
>> &lowercase;,
>> &uppercase;))
>> [&scope;][1]) = 1
>> and not( class = 'endofrange')]"/>
>>
>> > select="$terms[contains(concat(&lowercase;, &uppercase;),
>> substring(&primary;, 1, 1))]"/>
>>
>> > select="$terms[not(contains(concat(&lowercase;,
>> &uppercase;),
>> substring(&primary;, 1,
>> 1)))]"/>
>>
>>
>>
>>
>>
>>
>>
>>
>> > mode="index-symbol-div">
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > mode="index-div-basic">
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On output, I still get:
>>
>>
>>
>> ...
>>
>> Best regards,
>>
>> --Scott
>>
>> Bob Stayton wrote:
>>> Hi Scott,
>>> If you are using 1.71.1 or later, it depends on which $index.method you
>>> are using:
>>>
>>> $index.method = 'basic', customize 'generate-basic-index' in
>>> autoidx.xsl.
>>>
>>> $index.method = 'kosek', customize 'generate-kosek-index' in
>>> autoidx-kosek.xsl
>>>
>>> $index.method = 'kimber', customize 'generate-kimber-index' in
>>> autoidx-kimber.xsl
>>>
>>>
>>> Bob Stayton
>>> Sagehill Enterprises
>>> DocBook Consulting
>>> bobs sagehill.net
>>>
>>>
>>> ----- Original Message ----- From: "Scott Hudson"
>>> flatironssolutions.com>
>>> To: "Docbook-Apps" lists.oasis-open.org>
>>> Sent: Wednesday, January 24, 2007 8:29 AM
>>> Subject: [docbook-apps] customizing autoidx.xsl
>>>
>>>
>>>> Hi,
>>>>
>>>> I've needed to generate an index with docbook markup, and have so
>>>> modified autoidx.xsl to generate docbook elements, rather than the HTML
>>>> output. I'm also chunking this out as a separate file.
>>>>
>>>> For some reason, it is still getting wrapped with some type of
>>>> titlepage
>>>> div:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> B
>>>>
>>>>
>>>> ...
>>>>
>>>> Is there a parameter to turn this off, or what template do I need to
>>>> override to eliminate these div outer wrappers?
>>>>
>>>> Thanks,
>>>>
>>>> --Scott
>>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
>>>> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>>>
>>>
>>>
>>
>>
>
>
>
|
Approximate file size 336 bytes |
| Re: customizing autoidx.xsl |

|
2007-01-24 13:41:26 |
|
Hi Scott,
Ah, with chunking you need to have two customization layers, one for
chunking behavior and one for handling element format as for the
single-page output. The customization of the match="index" element needs
to be in the element part, otherwise your customization overrides the
chunking template for index. See:
http://www.sagehill.net/docbookxsl/ChunkingCustomization.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Scott Hudson" flatironssolutions.com>
To: "Bob Stayton" sagehill.net>
Cc: "Scott Hudson" flatironssolutions.com>; "Docbook-Apps"
lists.oasis-open.org>
Sent: Wednesday, January 24, 2007 11:12 AM
Subject: Re: [docbook-apps] customizing autoidx.xsl
>I tried that as well, but when I override it, I lose the chunking.
>
> --Scott
>
> Bob Stayton wrote:
>> Hi Scott,
>> Sorry, I misread the templates. You need to also customize the
>> match="index" template in index.xsl. That's where the extra divs are
>> coming from.
>>
>> Bob Stayton
>> Sagehill Enterprises
>> DocBook Consulting
>> bobs sagehill.net
>>
>>
>> ----- Original Message ----- From: "Scott Hudson"
>> gmail.com>
>> To: "Bob Stayton" sagehill.net>
>> Cc: "Scott Hudson" flatironssolutions.com>; "Docbook-Apps"
>> lists.oasis-open.org>
>> Sent: Wednesday, January 24, 2007 9:39 AM
>> Subject: Re: [docbook-apps] customizing autoidx.xsl
>>
>>
>>> Yes, I'm using 1.71.1 and using the basic (default) method. I've
>>> customized the template for generate-basic-index, but still getting the
>>> wrapper divs. Here's my customization:
>>>
>>>
>>>
>>>
>>>
>>>
>>> role"/>
>>>
>>>
>>>
>>>
>>>
>>> type"/>
>>>
>>>
>>>
>>> >> select="//indexterm
>>> [count(.|key('letter',
>>> translate(substring(&primary;, 1, 1),
>>> &lowercase;,
>>> &uppercase;))
>>> [&scope;][1]) = 1
>>> and not( class = 'endofrange')]"/>
>>>
>>> >> select="$terms[contains(concat(&lowercase;,
>>> &uppercase;),
>>> substring(&primary;, 1, 1))]"/>
>>>
>>> >> select="$terms[not(contains(concat(&lowercase;,
>>> &uppercase;),
>>> substring(&primary;, 1,
>>> 1)))]"/>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >> mode="index-symbol-div">
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >> mode="index-div-basic">
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On output, I still get:
>>>
>>>
>>>
>>> ...
>>>
>>> Best regards,
>>>
>>> --Scott
>>>
>>> Bob Stayton wrote:
>>>> Hi Scott,
>>>> If you are using 1.71.1 or later, it depends on which $index.method
>>>> you
>>>> are using:
>>>>
>>>> $index.method = 'basic', customize 'generate-basic-index' in
>>>> autoidx.xsl.
>>>>
>>>> $index.method = 'kosek', customize 'generate-kosek-index' in
>>>> autoidx-kosek.xsl
>>>>
>>>> $index.method = 'kimber', customize 'generate-kimber-index' in
>>>> autoidx-kimber.xsl
>>>>
>>>>
>>>> Bob Stayton
>>>> Sagehill Enterprises
>>>> DocBook Consulting
>>>> bobs sagehill.net
>>>>
>>>>
>>>> ----- Original Message ----- From: "Scott Hudson"
>>>> flatironssolutions.com>
>>>> To: "Docbook-Apps" lists.oasis-open.org>
>>>> Sent: Wednesday, January 24, 2007 8:29 AM
>>>> Subject: [docbook-apps] customizing autoidx.xsl
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I've needed to generate an index with docbook markup, and have so
>>>>> modified autoidx.xsl to generate docbook elements, rather than the
>>>>> HTML
>>>>> output. I'm also chunking this out as a separate file.
>>>>>
>>>>> For some reason, it is still getting wrapped with some type of
>>>>> titlepage
>>>>> div:
>>>>>
>>>>> |
[1-5]
|
|