This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: "*|@*|text()" vs. "node()"
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] "*|@*|text()" vs. "node()"
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 5 Oct 2001 11:08:55 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> node() matches any node other than an attribute node
> and the root node
>
> which is slightly confusing since the XPath spec defines it as:
>
> A node test node() is true for any node of any type whatsoever.
>
Confusing but not incorrect. XPath is talking about expressions, not
patterns. The node test "node()" will select all nodes on the axis you are
looking at. If you don't specify an axis, you are looking at the child axis.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list