Re: [docbook-apps] Re: Saxon 9
Norman Walsh wrote: Hi Norman, Perhaps you forgot to say 'version=2.0' on your xsl:stylesheet element? If I am right, even with version=1.0, Saxon 9 should recognize xsl:result-document. But is it really Saxon 9? I would test it for real with something like: xsl:template match=/ info version info={ system-property('xsl:version') }/ vendor info={ system-property('xsl:vendor') }/ vendor-url info={ system-property('xsl:vendor-url') }/ /info /xsl:template (maybe added in the original stylesheet, using xsl:comment to put this info in a comment in the original output, using exactly the same system to run the transform). JAXP is not always giving you the processor implementation you think it would ;-) Regards, --drkm _ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [docbook-apps] Re: Saxon 9
Dave Pawson wrote: Hi Dave, That would be a nice piece of debug information to add either way? Especially as docbook moves towards v5 and xslt 2.0 Yes, good idea. It would be nice to have something like the following in each docbook.xsl (for XSL-FO, HTML, XHTML, ...), somewhere near the top of the template rule matching /: xsl:comment xsl:text_#10;Version:/xsl:text xsl:value-of select=system-property('xsl:version')/ xsl:text_#10;Vendor: /xsl:text xsl:value-of select=system-property('xsl:vendor')/ xsl:text_#10;Vendor URL: /xsl:text xsl:value-of select=system-property('xsl:vendor-url')/ xsl:text_#10;/xsl:text /xsl:comment in order to have a comment like this one at the top of each generated file: !-- Version:2.0 Vendor: SAXON 9.0.0.6 from Saxonica Vendor URL: http://www.saxonica.com/ -- Regards, --drkm _ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [docbook-apps] Re: Saxon 9
Florent Georges wrote: If I am right, even with version=1.0, Saxon 9 should recognize xsl:result-document. But is it really Saxon 9? I would test it for real with something like: xsl:template match=/ info version info={ system-property('xsl:version') }/ vendor info={ system-property('xsl:vendor') }/ vendor-url info={ system-property('xsl:vendor-url') }/ /info /xsl:template (maybe added in the original stylesheet, using xsl:comment to put this info in a comment in the original output, using exactly the same system to run the transform). JAXP is not always giving you the processor implementation you think it would ;-) That would be a nice piece of debug information to add either way? Especially as docbook moves towards v5 and xslt 2.0 Very useful for this list at least! 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]
Re: [docbook-apps] Re: Saxon 9
Florent Georges wrote: Dave Pawson wrote: Hi Dave, That would be a nice piece of debug information to add either way? Especially as docbook moves towards v5 and xslt 2.0 Yes, good idea. It would be nice to have something like the following in each docbook.xsl (for XSL-FO, HTML, XHTML, ...), somewhere near the top of the template rule matching /: xsl:comment xsl:text_#10;Version:/xsl:text xsl:value-of select=system-property('xsl:version')/ xsl:text_#10;Vendor: /xsl:text xsl:value-of select=system-property('xsl:vendor')/ xsl:text_#10;Vendor URL: /xsl:text xsl:value-of select=system-property('xsl:vendor-url')/ xsl:text_#10;/xsl:text /xsl:comment in order to have a comment like this one at the top of each generated file: !-- Version:2.0 Vendor: SAXON 9.0.0.6 from Saxonica Vendor URL: http://www.saxonica.com/ -- For the fo output, (guessing that newbies don't look at the fo) perhaps an xsl:message? So many people rely on the installed Java for the transform, it might be instructive for them to see which engine they were using? regards 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]
[docbook-apps] Re: Saxon 9
/ Mauritz Jeanson [EMAIL PROTECTED] was heard to say: | -Original Message- | From: Lillian Sullam | | I'm trying to use a XSLT 2.0 to translate C# XML to DocBook | XML. I use a Saxon processor and it doesn't seem to | recognize the XSLT xsl:result-document Does any one know | why this is happening? | | The subject line says Saxon 9. Are you sure you are using that version? | xsl:result-document is an XSLT 2.0 instruction, and it is undoubtedly | recognized by Saxon 9. Perhaps you forgot to say 'version=2.0' on your xsl:stylesheet element? Be seeing you, norm -- Norman Walsh [EMAIL PROTECTED] | The belief in a supernatural http://www.oasis-open.org/docbook/ | source of evil is not necessary; Chair, DocBook Technical Committee | men alone are quite capable of | every wickedness.--Joseph Conrad pgpnnba8M0irE.pgp Description: PGP signature