W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2004

[XSLT 2.0] IBM-XSLT-128: behaviour of self::node() if there is no context node

From: Henry Zongaro <zongaro@ca.ibm.com>
Date: Thu, 22 Apr 2004 09:52:24 -0400
To: public-qt-comments@w3.org
Message-ID: <OF57CBF4D8.CA62E2B4-ON85256E74.004B5F87-85256E7E.004C3412@ca.ibm.com>

Section 7 of XSLT 2.0

The first bullet in this section states that "If it is not a node, there 
will be no context node: that is, the value of self::node() will be an 
empty sequence."  However, the third paragraph of section 3.2.1 of XPath 
2.0 states that, for an axis step, "If the context item is not a node, a 
type error is raised.[err:XP0020]"

The text in XSLT should be amended to indicate that self::node() will 
raise a type error in the situation described.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com
Received on Thursday, 22 April 2004 09:53:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:19 UTC