[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPath performance comparisons

Subject: RE: XPath performance comparisons
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 19 Jan 2005 10:40:33 -0000
xom performance
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.