In my email from before, I did say:

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

Your missing net.sf.saxon.sxpath.XPathStaticContext is in 
net.sf.saxon/saxon9/9.1.0.8






On Monday 20 April 2020, 15:43:43 GMT+2, Bernard Bou <131...@gmail.com> wrote: 





Thanks for your answer.
It turns out the reference you mention originates from Edinburgh OH repository
and is a specialized version for JAXP. It contains only these classes:
JAXPVariable
JAXPXPathStaticContext$1
JAXPXPathStaticContext
JAXPXPathStaticContext$MinimalNamespaceContext
XPathEvaluator
XPathExpressionImpl
XPathFactoryImpl
XPathFunctionCall
XPathFunctionLibrary

Now when org/apache/xmlbeans/impl/store/PathDelegate
tries to execute Class.forName(implClassName);  at line 48 with
implClassName="org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath"
the class is found but not its imports : it raises a
ClassNotFoundException: net.sf.saxon.sxpath.XPathStaticContext

On Mon, 20 Apr 2020 at 12:40, PJ Fanning <fannin...@yahoo.com.invalid> wrote:
>
> 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 <131...@gmail.com> 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: dev-unsubscr...@poi.apache.org
> For additional commands, e-mail: dev-h...@poi.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
> For additional commands, e-mail: dev-h...@poi.apache.org

>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to