[prev in list] [next in list] [prev in thread] [next in thread] 

List:       poi-dev
Subject:    Re: XmlBeans support for DOM level 3
From:       Bernard Bou <1313ou () gmail ! com>
Date:       2020-04-20 15:18:14
Message-ID: CAMmL=YPFzHPaPTUXerXec-7QKSFJaHckJENJ_1OV_xSDZVGYUw () mail ! gmail ! com
[Download RAW message or body]

Thanks a lot. It does work with the following pom fragment:

    <dependencies>
        <dependency>
            <groupId>org.apache.xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
            <version>3.1.0</version>
        </dependency>

        <dependency>
            <groupId>net.sf.saxon</groupId>
            <artifactId>saxon9</artifactId>
            <version>9.1.0.8</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.saxon</groupId>
            <artifactId>saxon9-xpath</artifactId>
            <version>9.1.0.8</version>
            <scope>runtime</scope>
        </dependency>
         <dependency>
            <groupId>net.sf.saxon</groupId>
            <artifactId>saxon9-dom</artifactId>
            <version>9.1.0.8</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>edinburgh-ph</id>
            <name>Edinburgh PH</name>
            <url>https://www2.ph.ed.ac.uk/maven2/</url>
        </repository>
    </repositories>

On Mon, 20 Apr 2020 at 16:07, PJ Fanning <fanningpj@yahoo.com.invalid> wrote:
> 
> 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 <1313ou@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 <fanningpj@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 <1313ou@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-unsubscribe@poi.apache.org
> > For additional commands, e-mail: dev-help@poi.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> > For additional commands, e-mail: dev-help@poi.apache.org
> 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
> 

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic