poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eliot Kimber <ekim...@contrext.com>
Subject How to Set Up XPath/XQuery With Latest POI and XMLBeans Using Maven?
Date Tue, 17 Jul 2018 11:48:59 GMT
I'm starting a new POI-based maven project. 

I'm converting XML into DOCX and I'm using XMLBeans to navigate my incoming XML.

Everything is working great but...

Now I want to use some XPath and XQuery with my XmlCursor and I'm unable to work out the right
Maven dependency incantations in order to get a working system.

I'm using the following dependencies:


I'm pretty sure I need the separate xmlbeans-xpath library but the only thing I can find in
the Maven repo is 2.6.0 which dates from 2012 and if I include that dependency the fetch fails
because it can't find the ancient Saxon library it's expecting.

If I run my code:


With the above dependencies then I get this failure, not surprisingly:

java.lang.RuntimeException:  Trying XBeans path engine... Trying XQRL... Trying XDK... Trying
delegated path engine... FAILED on *:cols/*:col

So my question is:

With POI 3.0.0 and using Maven, what do I need to do to get XPath/XQuery support working?

Perhaps a better question might be: what would be involved in binding XmlBeans to Saxon 9.8.*?
If it's not too much work that's probably something I can do and contribute back to the project.
It would be nice, for example, to be able to use XPath/XQuery 3 in this context.


Eliot Kimber

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

View raw message