Discussion:
[XOM-interest] XOM & Saxon
Christophe Marchand
2012-02-20 10:18:54 UTC
Permalink
Hi,

I want to use Saxon XPath processor with XOM. Is there a way to tell XOM
to use Saxon, or should I use Saxon API with XOM wrapper ?

Thanks in advance,
Christophe
Christophe Marchand
2012-02-20 10:51:24 UTC
Permalink
Hum... my question was not well-formed. I want to use Node.query(...),
with Saxon XPath processor behind the scene, to allow XPath 2.0 queries.
Is it possible ?

Christophe
Post by Christophe Marchand
Hi,
I want to use Saxon XPath processor with XOM. Is there a way to tell XOM
to use Saxon, or should I use Saxon API with XOM wrapper ?
Thanks in advance,
Christophe
_______________________________________________
XOM-interest mailing list
XOM-interest at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
Elliotte Rusty Harold
2012-02-20 15:07:04 UTC
Permalink
On Mon, Feb 20, 2012 at 5:51 AM, Christophe Marchand
Post by Christophe Marchand
Hum... my question was not well-formed. I want to use Node.query(...),
with Saxon XPath processor behind the scene, to allow XPath 2.0 queries.
Is it possible ?
Not without forking the code. Node.query is a thin and opaque wrapper
around Jaxen, and assumes XPath 1.0 in its design.

As Michael says, using the Saxon API is the way to go here.
--
Elliotte Rusty Harold
elharo at ibiblio.org
Michael Kay
2012-02-20 11:41:47 UTC
Permalink
Post by Christophe Marchand
Hi,
I want to use Saxon XPath processor with XOM. Is there a way to tell XOM
to use Saxon, or should I use Saxon API with XOM wrapper ?
Thanks in advance,
Christophe
I think the simplest approach is to use the Saxon API with a XOM wrapper.

But you could also look at nux, though I haven't heard much of it lately:

http://acs.lbl.gov/software/nux/

Michael Kay
Saxonica
Christophe Marchand
2012-02-20 12:17:38 UTC
Permalink
Having dive into xom code, it seems that using Saxon API is the fastest,
in fact !

Thanks Michael,
Christophe
Post by Michael Kay
Post by Christophe Marchand
Hi,
I want to use Saxon XPath processor with XOM. Is there a way to tell XOM
to use Saxon, or should I use Saxon API with XOM wrapper ?
Thanks in advance,
Christophe
I think the simplest approach is to use the Saxon API with a XOM wrapper.
http://acs.lbl.gov/software/nux/
Michael Kay
Saxonica
_______________________________________________
XOM-interest mailing list
XOM-interest at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
Loading...