[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Antwort: comments. (Re: key() Re: Saxon VS XT)
From: Gary L Peskin <garyp@xxxxxxxxxxxx>
Date: Sun, 13 Aug 2000 12:15:45 -0700
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.