This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Antwort: comments. (Re: key() Re: Saxon VS XT)
- To: xsl-list at mulberrytech dot com
- Subject: Re: Antwort: comments. (Re: key() Re: Saxon VS XT)
- From: Gary L Peskin <garyp at firstech dot com>
- Date: Sun, 13 Aug 2000 12:15:45 -0700
- Organization: The Firstech Corporation
- References: <3.0.1.32.20000813104333.0090d9a0@localhost>
- Reply-To: xsl-list at mulberrytech dot com
Jeni --
node() is an abbreviation for child::node(). This will never match /
since it is not the child of anything. This is explained in XSLT §5.2
in the node() example. Also note that this can never match an attribute
or namespace node since they are also not considered children of their
parents!! See XPath §§ 5.3 and 5.4.
Gary
Jeni Tennison wrote:
> ...
> <xsl:template match="node()|/" mode="XXX">
> ...
> </xsl:template>
>
> [Aside: I would have thought that match="node()" would work, but testing
> with SAXON 5.4.1 shows that the this does not match the root node. Is this
> a bug?]
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list