When researching details for an answer to an XPath question here on Stack Overflow, I run into a difference between XPath 1.0 and 2.0 I can find no rationale for.
I tried to understand what .
really means.
- In XPath 1.0,
.
is an abbreviation forself::node()
. Bothself
andnode
are crystal-clear to me. - In XPath 2.0,
.
is primary expression "context item expression". Abbreviated Syntax section explicitly states that as a note.
What was the rationale for the change? Is there a difference between .
and self::node()
in XPath 2.0?
From the spec itself, the intent of the change is not clear to me. I tried googling keywords like dot or period, primary expression, and rationale.