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

a simple question about node tests

Subject: a simple question about node tests
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Thu, 22 May 2003 13:20:58 -0400 (EDT)
robert braumuller
  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


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.