|
Subject: RE: [xsl] XPath performance comparisons From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 19 Jan 2005 10:40:33 -0000 |
> 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/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XPath performance compari, Dimitre Novatchev | Thread | [xsl] apply-templates not working, omprakash . v |
| [xsl] apply-templates not working, omprakash . v | Date | [xsl] Re: apply-templates not worki, omprakash . v |
| Month |