Hi,
The stylesheets rely on ids being unique within a document.
I
would expect to get strange results when processing a
document
with duplicate ids.
In any case, I didn't mean to just use manual chunking. I
meant
you could customize the stylesheet that generates the manual
toc
to generate a toc that has your last section identified as a
chunk, using an XPath selector. But I doubt it would work
if IDs
are not unique.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Webmaster" <Webmaster comtrol.com>
To: "apps docbook" <docbook-apps lists.oasis-open.org>
Sent: Tuesday, June 27, 2006 2:15 PM
Subject: RE: [docbook-apps] chunking only the last section
in
each chapter
> Hi. Bob! I read a little on manually control
chunking,
> unfortunately that
> isn't an option for me, because I don't know what the
id is of
> the last
> section is in each chapter. And in my case the IDs
isn't unique
> in the
> entire scope of the document, but rather only unique
within the
> chapter.
> I'm not worried about the Next and Prev at this point.
Thanks!
>
> LN
>
> -----Original Message-----
> From: Bob Stayton [mailto:bobs sagehill.net]
> Sent: Tuesday, June 27, 2006 12:20 PM
> To: Webmaster; apps docbook
> Subject: Re: [docbook-apps] chunking only the last
section in
> each chapter
>
>
> As you have probably noticed by now, customizing the
chunking
> stylesheets is challenging. Getting certain pieces
chunked
> isn't
> too hard, but getting the Next and Prev and TOC
navigation
> right
> is harder.
>
> I would try a different approach. Norm provided in the
> stylesheet a means for specifying what gets chunked by
using an
> external table of contents file. See the section in my
book
> called "Manually control chunking" in:
>
> http
://www.sagehill.net/docbookxsl/Chunking.html
>
> You could do a two-pass process, where you write a
small
> stylesheet that generates the external table of
contents file
> using your criteria for selecting elements, and then
the second
> pass uses that to generate the HTML output chunked the
way you
> want. I didn't try it, but I think that would be
easier than
> customizing the chunking templates.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs sagehill.net
>
>
> ----- Original Message -----
> From: "Webmaster" <Webmaster comtrol.com>
> To: "apps docbook" <docbook-apps lists.oasis-open.org>
> Sent: Monday, June 26, 2006 5:51 PM
> Subject: [docbook-apps] chunking only the last section
in each
> chapter
>
>
>>I know this may seem like a silly request, but how
would I go
>>about only
>> getting the chunking out the last section in each
chapter?
>> (ignore the rest
>> of the sections)
>>
>> So If I had:
>>
>> chapter 1
>> section id=A
>> section id=B
>> section id=C
>> chapter 2
>> section id=A
>> section id=B
>> section id=C
>> chapter 3
>> section id=A
>> section id=B
>> section id=C
>>
>> The resulting html chunks would be of only the
following.
>>
>> chapter 1
>> section id=C
>> chapter 2
>> section id=C
>> chapter 3
>> section id=C
>>
>> Thanks!
>>
>> LN
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail:
>> docbook-apps-unsubscribe lists.oasis-open.org
>> For additional commands, e-mail:
>> docbook-apps-help lists.oasis-open.org
>>
>>
>>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help lists.oasis-open.org
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|