[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] RE: Saxon via Ant - Getting started

Subject: Re: [xsl] RE: Saxon via Ant - Getting started
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Tue, 05 Feb 2013 15:01:44 +0100

Hash: SHA1

On 4.2.2013 12:01, Michael Kay wrote:

> Seems a shame that this should still be the case in 2013 -


> I don't know if the XSLT 2.0 version of docbook has advanced.

Unofrtunatelly it's still far from XSLT 1.0 branch in terms of support
of various output formats.

> Meanwhile it would be very easy to write an overlay for the
> templates in chunker.xsl that work with xsl:result-document if
> available. You can probably just take the module as written and
> replace "saxon:output" by "xsl:result-document".

Unfortunatelly it's not that easy. IIRC blind replace will trigger the
following restriction from XSLT 2.0 spec:

"There are restrictions on the use of the xsl:result-document
instruction, designed to ensure that the results are fully
interoperable even when processors optimize the sequence in which
instructions are evaluated. Informally, the restriction is that the
xsl:result-document instruction can only be used while writing a final
result tree, not while writing to a temporary tree or a sequence. This
restriction is defined formally as follows."

There is already modified version of chunker.xsl:


But it doesn't completely smoothly work with some widely used XSLT 1.0
based processors, so code is not yet in the trunk. Maybe it's time to
give it another try, or to see whether xsltproc/Xalan users will cry
too much.


- -- 
- ------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@xxxxxxxx      http://xmlguru.cz
- ------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
- ------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
- ------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
- ------------------------------------------------------------------
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/


Current Thread