[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Saxon via Ant - Getting started

Subject: Re: RE: Saxon via Ant - Getting started
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Tue, 05 Feb 2013 15:01:44 +0100
Re:  RE: Saxon via Ant - Getting started
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4.2.2013 12:01, Michael Kay wrote:

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

Indeed

> 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:

https://lists.oasis-open.org/archives/docbook-apps/201103/msg00123.html

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

- -- 
- ------------------------------------------------------------------
  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
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlEREMgACgkQzwmSw7n0dR4DvwCgrum3HJIKDuiMa/7SW6GrV30Y
pv4AoKiAg/vES1g0SYoSTpoaJXsOMQUe
=Qwme
-----END PGP SIGNATURE-----

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.