Lists Home |
Date Index |
These two XPath expressions are equivalent:
Scroll down to see answer.
Answer: (b) False
Here's what the XPath 2.0 spec says:
"Note that the path expression //para does not mean the same as the
path expression /descendant::para. The latter selects the first
descendant para element; the former selects all descendant para elements
that are the first para children of their parents."
Am I the only one who answered this: (a) True?
This doesn't seem intuitive to me. Comments? /Roger