text()" vs. "node()"

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

Re: Re: "*|@*|text()" vs. "node()"

Subject: Re: Re: "*|@*|text()" vs. "node()"
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 4 Oct 2001 07:06:47 -0700 (PDT)
any node xsl
> Then look under patterns and you find the XSLT definition of the node()
> test:
> 
> 	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.

The confusion is because they omitted a necessary clarification:

"A node test node() is true for any node of any type whatsoever for the ***given
axis***"

so:

ancestor::node() will return the root node as one of the nodes in the resulting
node-set.

attribute::node() will return all attribute nodes of the current (element) node.

namespace::node() will return all the namespace nodes of the current (element) node.

node() will return all element, PI, comment, text children of the current node.

Therefore, we have tests for all types of nodes.

Cheers,
Dimitre Novatchev.

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

 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-2013 All Rights Reserved.