Next in thread → Next in month →

Re: [docbook-apps] A stylesheet oddity

From
Bob Stayton <>
Date
2007-05-15T18:26:38+00:00
ID
0a7501c7971e$84e10160$6400a8c0@totoro
Thread
Re: [docbook-apps] A stylesheet oddity
Hi,
This is a problem with how you customize the chunking version of the HTML 
and XHTML stylesheets.  There are in fact two templates that match on 
d:part.  The one in division.xsl handles the formatting of the element, and 
the one in chunk-code.xsl handles the chunking aspects of d:part.  You must 
use care when customizing the templates for chunking output.  See this 
reference for how to set up the two layers you need for chunking 
customizations:

http://www.sagehill.net/docbookxsl/ChunkingCustomization.html

You want to put your customization in the single-page layer, and leave 
alone the chunking template for part.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Simon Kennedy" <>
To: "DocBook Apps Mailing List" <>
Sent: Wednesday, May 09, 2007 10:22 AM
Subject: [docbook-apps] A stylesheet oddity


> I've have come across a puzzling puzzle with the current docbook 5 HTML 
> stylesheets. Both the 1.72.0 version and the snapshot from April 29th.
>
> Whilst attempting to change the handling of the d:part template in 
> division.xsl I copied the d:part template into my version and the html 
> output changed without changing anything in the template.
>
> I have produced a small test case which you can find here 
> http://www.sffjunkie.co.uk/docbook/part-bug.zip (it's only 3k in size). 
> It uses xsltproc and a small batch file on Windows.
>
> If you run it twice, with and without commenting out the d:part template 
> in stylesheet.xsl you can see the difference.
>
> Can anybody shed some light on what is happening 'cause I'm confused.
>
> Many Thanks
> Simon Kennedy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →