Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Wanted: Pointer to docs on Xinclude for Saxon XSLT command line tool [Thread Next] Re: Wanted: Pointer to docs on Xinclude for Saxon XSLT command line toolTo: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
