[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
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 > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]