question about XPath builder view
Posted: Tue Aug 19, 2014 12:14 pm
I am currently evaluating oXygen 16.0 and I have a question about the XPath builder view, it seems to me that code entered there is not treated as pure XPath, for instance when I select "XPath 3.0" as the language and evaluate the code
I would expect the result to be false as in pure XPath the first string has 7 characters and the second only 3. However when I run the code I get the result true. The same happens when selecting XPath 2.0.
Even with XPath 1.0 and the code
I get the result true.
So it seems that the code is not being evaluated as pure XPath code but rather instead perhaps as XQuery code where entity references in string literals have a special meaning. Is that true? Is there a way to have pure XPath evaluation?
Code: Select all
string-length('<&>') eq string-length('<&>')
Even with XPath 1.0 and the code
Code: Select all
string-length('<&>') = string-length('<&>')
So it seems that the code is not being evaluated as pure XPath code but rather instead perhaps as XQuery code where entity references in string literals have a special meaning. Is that true? Is there a way to have pure XPath evaluation?