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

Re: a simple question about node tests

Subject: Re: a simple question about node tests
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 22 May 2003 12:01:25 -0600 (MDT)
Re:  a simple question about node tests
The answer to all your questions is yes.

http://www.w3.org/TR/xpath#node-tests


Robert P. J. Day wrote:
> 
>   a while back, i read somewhere (can't remember where, darn it)
> an explanation of node tests that cleared up a minor confusion
> i've had for a while.  to recap first...
> 
>   the "node()" test selects all nodes on the relevant axis,
> the default being the child axis.  therefore, the kinds of 
> nodes that will be selected based on the axis will be:
> 
> child::node() -- element, text, comment, processing-instruction
> attribute::node() -- attribute nodes only
> namespace::node() -- namespace nodes only
> 
> so far, so good.
> 
>   but, WRT abbreviations, it's always explained that "*"
> (again short for child::*, right?) will select elements.
> unless it's used in conjunction with the attribute axis,
> at which point either attribute::* or @* will select just
> attribute nodes.  same for the namespace axis.
> 
>   so what exactly does "*" mean?  a while back, i read
> that "*" doesn't mean "element" so much as it does "the
> primary node type along that axis", which for the child
> axis is an element node, for the attribute axis is the
> attribute node, etc.
> 
>   once i read this, it made perfect sense.  did i read
> that correctly?  is that how one should interpret the
> "*" node test?
> 
> rday
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 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.