xsl-list
[Top] [All Lists]

RE: XPath performance comparisons

2005-01-19 03:40:33
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>