You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the attached XML, the XPath expression with the following predicate works:
//link:presentationLink[@xlink:role="funny"]
However, if the predicate contains a string with forward slashes, a syntax
error occurs:
//link:presentationLink[@xlink:role="www.google.com/testing]
Is there any chance that this might get fixed?
<?xml version="1.0" encoding="UTF-8"?>
<link:linkbase xmlns:link="linking_namespace" xmlns:xlink="xlinking_namespace">
<link:presentationLink xlink:role="fancy">
<link:loc xlink:label="part1"/>
<link:loc xlink:label="part2"/>
<link:loc xlink:label="part3"/>
</link:presentationLink>
<link:presentationLink xlink:role="www.google.com/testing">
<link:loc xlink:label="part1"/>
<link:loc xlink:label="part2"/>
<link:loc xlink:label="part3"/>
</link:presentationLink>
<link:presentationLink xlink:role="funny">
<link:loc xlink:label="part1"/>
<link:loc xlink:label="part2"/>
<link:loc xlink:label="part3"/>
</link:presentationLink>
</link:linkbase>
Original issue reported on code.google.com by [email protected] on 25 Jul 2013 at 10:09
The text was updated successfully, but these errors were encountered:
Fails even with the ending quote.
Simpler Test Case XML:
<root><a>hello</a><a r="/e">bye</a></root>
XPath expression
//a[@r="/e"]
Should select the second a element, but instead fails with EXMLXPath: Invalid
syntax at position 14
Original issue reported on code.google.com by
[email protected]
on 25 Jul 2013 at 10:09The text was updated successfully, but these errors were encountered: