Strange XPath Behaviour
Posted: Fri Nov 03, 2023 1:34 pm
Hello,
In Oxygen 25 and 26 we encountered a strange behavior when evaluating an xpath expression with the XPath/XQuery builder.
We want to select all attributes in the entire document except the first attribute of each element with this expression:
The result is confusing. It selects the first attributes except for the image element in line 13 (blue arrow).
I have tested the expression at https://www.videlibri.de/cgi-bin/xidelcgi with the same input file.
It gives the expected result there: Could this be a bug? Or can you explain the result the XPath builder in Oxygen returns here?
Thanks in advance and regards
Jörn
In Oxygen 25 and 26 we encountered a strange behavior when evaluating an xpath expression with the XPath/XQuery builder.
We want to select all attributes in the entire document except the first attribute of each element with this expression:
Code: Select all
//@*[position()>1]
I have tested the expression at https://www.videlibri.de/cgi-bin/xidelcgi with the same input file.
It gives the expected result there: Could this be a bug? Or can you explain the result the XPath builder in Oxygen returns here?
Thanks in advance and regards
Jörn