Elliotte Harold wrote:
2)
this expression is no longer valid, and fails:
[EMAIL PROTECTED]'B']/row/[some_node='val1']|[some_node='val2']
java.lang.NoSuchMethodError: org.jaxen.XPathSyntaxException: method
initCause(Throwable) Throwable: not found
(BaseXpath: 143 and 158)
Could we get a full stack trace and sample code on this one? Also what
version of Java are you using? From the error message it *looks* like a
disconnect between Java 1.3 and 1.4, but Jaxen shouldn't have any such
dependence and I can't find one in these classes at the moment.
org.jaxen.BaseXPath.<init>(BaseXPath.java:143)
org.jaxen.BaseXPath.<init>(BaseXPath.java:158)
org.jaxen.dom4j.Dom4jXPath.<init><Dom4jXPath.java:102)
java version 1.3.1 on windows
IBM build cn131-20031021
3)
[EMAIL PROTECTED]'B']/row/[some_node='val1'|some_node='val2']
exception thrown: union is only allowed over node-sets
<which is correct>
changing it to [EMAIL PROTECTED]'B']/row/[some_node='val1' or
some_node='val2']
makes it work.
The error message is correct. XPath 1.0 does not allow unions of
booleans. This has been tightened up in Jaxen in the recent past. Jaxen
used to allow this, but that was a mistake. Jaxen no longer allows this.
Which is correct - now I can improve my grammar! :-)
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev