When is the context item not redundant in a path expression?
Some examples:
./a/b/c
a/b/c/.
a/b/./c
a/b/././c
It's redundant in all those cases. It's not redundant in:
./(a,b) (:because it causes sorting into document order:)
(_dot_)[(_at_)a]/@b
a/.[1]/b (:useless; but not the same as a[1]/b :)
It's hard to come up with an XPath 1.0 example, though. Other than "." on
its own, which is technically a path expression (but then so is "3").
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--