Bugs item #1186719, was opened at 2005-04-20 16:42
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1186719&group_id=16035

Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Thomas Fromm (tfromm)
>Assigned to: Maarten Coene (maartenc)
Summary: XPath creates Error with 1.6 and works with 1.5.2

Initial Comment:
The following XPath works with 1.5.2.: 
 
/Lookup/MappingTables/[EMAIL PROTECTED]'sdfsdfsd' AND 
@type='XML'] 
 
and with 1.6 i get exception: 
Exception occurred during event dispatching: 
org.dom4j.InvalidXPathException: Invalid XPath  
expression: /Lookup/MappingTables/[EMAIL PROTECTED]'sdfsdfsd' 
AND @type='XML']  
Expected: ] 
        at 
org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:360) 
        at 
org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59) 
        at 
org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230) 
        at 
org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207) 
        at 
org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183) 
 
Writing "AND" lowercase works with 1.6. 
 
Maybe writing "AND" lowercase (as works in 1.5.2) is wrong 
XPath, but keeping the logic backward compatible would be 
better i think. 

----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2005-04-20 20:58

Message:
Logged In: YES 
user_id=178745

dom4j uses jaxen for evaluating xpaths. If you want your 
older xpaths to keep working, you'll have to use an older 
version of jaxen.

regards,
Maarten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1186719&group_id=16035


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