Altova Mailing List Archives


XSLT 2.0 dynamically parameterized output? Was: Re: [xsl] Tryingto use Docbook transforms with Saxon7

From: Bob Foster <bob@---------->
To:
Date: 10/6/2003 9:28:00 AM
Jirka Kosek wrote:
Recommended version of Saxon for DocBook XSL stylesheets is Saxon 6.5.x. 
DocBook stylesheets are written in XSLT 1.0 with lots of EXSLT and 
vendor dependant extensions. These extensions are not always available 
in Saxon7 as similar functionality is provided by XSLT 2.0.

Yes, I know and I had no trouble running the stylesheet in Saxon 6.5.2. 
But this doesn't help me get it running in Saxon 7.



The Doctype chunker.xsl stylesheet is using saxon:output, exsl:document, 
etc. for their ability to dynamically specify the output parameters with 
attribute value templates.



There seem to be two main differences between these extension 
instructions and xsl:output/xsl:result-document provided by XSLT 2.0:



1. xsl:output may only appear at the top level.

2. (Serious problem) none of xsl:output's attributes are specified in 
the syntax summary as allowing attribute value templates.



So what does one use in 2.0 when it is desired to dynamically calculate 
values of, e.g., doctype-system, media-type, etc.?



Bob Foster
http://www.xmlbuddy.com/


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.