OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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
bobs@sagehill.net


----- Original Message ----- 
From: "Simon Kennedy" <stonewolfsoft@yahoo.co.uk>
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: 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]