You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "D'Cotta, Daniel" <da...@rosettanet.org> on 2005/03/16 08:29:31 UTC
[XMLBean] selectPath() with XMLBeans 2.0.0-beta1 integration with Saxon-B 8.3
Hi all,
First off, I would like to say hello to everyone on this list (my first
post here).
I just upgraded to XMLBeans 2.0.0-beta1 integration with Saxon-B 8.3
(was previously using XMLBeans 1.x with Jaxen); but I have a feeling
that my application is not using Saxon for the XPath/XQuery in
selectPath().
Is there some setting I need for this integra?
> Is selectPath(...) on XmlObject and XmlCursor working?
> XmlBeans has a built in engine for very simple XPath expressions.
> To use more advanced XPath or XQuery expressions in 2.0.0-beta1,
> you will need Saxon (version 8.2) on the classpath.
I am using Eclipse 3.1 and have added all the Saxon .jars (saxon8.jar,
saxon8-dom.jar, saxon8-jdom.jar, saxon8-sql.jar, saxon8-xom.jar and
saxon8-xpath.jar) to my project's libraries. I assume that I do not need
to use CLASS_PATH environment setting since I am running within Eclipse,
correct? Or do I need the Saxon 8.2 (which I could not find the link to
download)?
Here is the error that I got after upgrading to XMLBeans 2.x (however it
worked in XMLBeans 1.x), so makes me think that my application is not
using Saxon.
Exception in thread "main" java.lang.RuntimeException: Path too complex
for xmlbeans: transformation-rule[source-action='3A4R']
at
org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:156)
at
org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:89)
at
org.apache.xmlbeans.impl.newstore2.Cursor._selectPath(Cursor.java:860)
at
org.apache.xmlbeans.impl.newstore2.Cursor.selectPath(Cursor.java:2588)
at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.j
ava:427)
at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.j
ava:411)
at
org.rosettanet.transformation.TransformationUtil.singleSelectPath(Transf
ormationUtil.java:103)
at
org.rosettanet.transformation.impl.TransformerImpl.getTransformationRule
(TransformerImpl.java:74)
at
org.rosettanet.transformation.impl.TransformerImpl.main(TransformerImpl.
java:131)
Any information on integrating with Saxon is welcomed.
Thanks in advance.
Regards,
Daniel D'Cotta
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org