- From: Kay, Michael <Michael.Kay@softwareag.com>
- Date: Tue, 22 Oct 2002 12:55:27 +0200
- To: Svgdeveloper@aol.com, public-qt-comments@w3.org
> In 2.5 of XSLT 2.0 it is indicated that . is the XPath > expression which > returns the context item. > > Later in 2.5 it is indicated that self::node() returns the > context node. > > Since the context item and context node need not be > synonymous isn't this > usage a departure from the XPath 1.0 usage where . and > self::node() are > synonymous? See 2.5 of XPath 1.0. > If the context item is a node, then "." and self::node() will return the same thing. If the context item is not a node, then "." returns the context item, and self::node() - indeed any path expression - raises an error. (Currently a dynamic error, we are discussing whether we should allow a static error). Yes, this has moved on since XPath 1.0. Michael Kay
Received on Tuesday, 22 October 2002 06:55:34 UTC