This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Antwort: comments. (Re: key() Re: Saxon VS XT)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]