Maarten Coene 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.


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.




--
Elliotte Rusty Harold  [EMAIL PROTECTED]
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


------------------------------------------------------- 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

Reply via email to