Bob Stayton wrote:
I've rearranged the templates in the chunking stylesheet files,




So I rearranged the templates so that chunk-common.xsl now contains all the named chunking templates, and chunk-code.xsl now contains all the match templates. The chunk.xsl stylesheet does xsl:import on chunk-common.xsl (named templates are imported), and it does xsl:include on chunk-code.xsl (match templates are included). The manifest.xsl templates were moved into one or the other as well, leaving an empty module at this point.

Now a chunking customization will look a lot like the old way of doing it (minus manifest.xsl):

<xsl:import href="mydocbook.xsl"/> <!-- contains any element format customizations -->
<xsl:import href="/path/to/chunk-common.xsl"/>
<xsl:include href="/path/to/chunk-code.xsl"/>
<!-- Add any customized chunking templates here -->


User feedback.

I usually want to either:
use the bare stylesheets - I import /path/to/html/docbook.xsl
or to chunk
use the chunk stylesheet - import /path/to/html/.... heck which one!
  -rw-rw-r--  1 dpawson dpawson  22203 Feb 28 18:33 chunk-code.xsl
  -rw-rw-r--  1 dpawson dpawson  71462 Feb 28 18:33 chunk-common.xsl
  -rw-rw-r--  1 dpawson dpawson  21116 Feb 28 18:33 chunker.xsl
  -rw-rw-r--  1 dpawson dpawson   2837 Feb 28 18:33 chunkfast.xsl
  -rw-rw-r--  1 dpawson dpawson  16182 Feb 28 18:33 chunktoc.xsl
  -rw-rw-r--  1 dpawson dpawson   2404 Feb 28 18:33 chunk.xsl

6 to choose from?

Ooo err. I'll have fast please, I'm in a hurry? No
chunk.xsl that sounds about right...


Feature request please.
If they are Bobs magic, could you rename them to ...
something for the cogniscenti such that I see
docbook.xsl and chunk.xsl
to make it easy for simpletons like me?




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to