Hi Bernard,

I haven't tried this jar but theoretically, it should be a compatible version 
of Saxon9 - https://mvnrepository.com/artifact/net.sf.saxon/saxon9-xpath/9.1.0.8

You might also need net.sf.saxon/saxon9/9.1.0.8 and possibly, 
net.sf.saxon/saxon9-dom/9.1.0.8.

Unfortunately, there is noone actively looking at supporting newer versions of 
Saxon-HE but code contributions are very much welcome.




On Monday 20 April 2020, 10:26:55 GMT+2, Bernard Bou <[email protected]> wrote: 





I am using XmlBeans 3.1.0.

I NEED to have the Saxon dependencies on a Maven public repository
(building myself an artifact to be there). None of the supported
libraries in the saxonb9-0-0-4j.zip are to be found there.

So I tried to adapt to Saxon-HE-10, by overriding the default
PATH_DELEGATE_INTERFACE default value to a class of my own that tries to
grapple with Saxon HE 10 using a DocumentWrapper whose DOM level I set to 2.

Unfortunately Saxon support for Dom level 2 is faulty is that the
DomNodeWrapper ends up calling isSameNode() that raises an exception in
xmlbeans.imp.store.DomImpl._node_isSameNode method.

Saxon does not support or test Dom level 2 now, which severely affects
XmlBeans XPath support.

1 - Are there any plan to support DOM level 3 ?

2 - Is there a workaround that would allow me to jump from the idref to
the element referred to ? I tried the xmlbeans built-in basic Xpath
support but things like "Element[@id='xx']" won't work and are rejected
by the XPath tokenizer (I didn't investigate the variants of the []
syntax though).

Bernard Bou

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to