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
----- Original Message -----
From: "Webmaster" <>
To: "apps docbook" <>
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:
>
> For additional commands, e-mail:
>
>
>
>