Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Wanted: Pointer to docs on Xinclude for Saxon XSLT command line tool

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/8/2008 1:14:00 PM

Siegfried Heintze wrote:
> I've been google searching for "saxon XInclude" for XSLT. I get the 
> impression saxon supports xinclude, but it is confusing.
> 
> In the case of MSXML, I had to cut and paste about 20 lines of source code 
> from msdn to implement my own XSLT command line tool that would perform XSLT 
> with XInclude.
> 
> Is this the case with saxon? If so, where is the source and an example?
> 
> There is brief reference to it in 
> http://www.saxonica.com/documentation/using-xsl/commandline.html but they 
> don't have an link to an example. Further more, they say I must be using 
> java 1.5 and Xerces! I thought the whole point of using saxon was that it 
> implemented XSLT 2 and xerces/xalan did not! Why are they talking about 
> xerces? 

Well Saxon is an XSLT and XQuery processor, not an XML parser, it uses 
Xerces or other JAXP or SAX parser implementations for XML parsing.

As for an example to use XInclude with Saxon 9.1 Java from the command 
line, it is as easy as supplying the command line option -xi to enable 
XInclude processing so

java -jar C:\SomeDir\saxon.jar -s:file.xml -xsl:sheet.xsl

will process file.xml with sheet.xsl without doing XInclude and


java -jar C:\SomeDir\saxon.jar -s:file.xml -xsl:sheet.xsl -xi

does XInclude first (provided Xerces is the XML parser used).

If you have further specific Saxon questions then I think you should 
subscribe to the Saxon help mailing list and ask there: 
https://lists.sourceforge.net/lists/listinfo/saxon-help

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
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.

.
.

transparent

transparent