List Info

Thread: chunking only the last section in each chapter




chunking only the last section in each chapter
user name
2006-06-27 22:39:34
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
bobssagehill.net


----- Original Message ----- 
From: "Webmaster" <Webmastercomtrol.com>
To: "apps docbook" <docbook-appslists.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:bobssagehill.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
> bobssagehill.net
>
>
> ----- Original Message ----- 
> From: "Webmaster" <Webmastercomtrol.com>
> To: "apps docbook" <docbook-appslists.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-unsubscribelists.oasis-open.org
>> For additional commands, e-mail:
>> docbook-apps-helplists.oasis-open.org
>>
>>
>>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: 
> docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )