|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath performance comparisons
> What exactly should one do in order to run Saxon 8.2 with XOM? There's
> no command line option for this and I'm afraid the documentation that
> touches this question is not very clear.
There's no command line option because it only makes sense to use a model
other than Saxon's native model when you've got a Java application using
that model already.
To run XSLT against a XOM source, do:
nu.xom.Builder builder = new nu.xom.Builder();
nu.xom.Document doc = builder.build(new FileInputStream(xml));
source = new net.sf.saxon.xom.DocumentWrapper(doc, xml,
((TransformerFactoryImpl)factory).getConfiguration());
and "source" can then be supplied to the JAXP transform() method.
To run XQuery against a XOM source, you can use the same technique, or look
at the nux interface developed by Wolgang Hoschek.
Michael Kay
http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








