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
[EMAIL PROTECTED]
----- Original Message -----
From: "Simon Kennedy" <[EMAIL PROTECTED]>
To: "DocBook Apps Mailing List" <docbook-apps@lists.oasis-open.org>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]