p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

xslt thread: If * = all nodes why must I use select="* | @*"? isn't an attribute a node?

Message #1 by flyguy@n... on Mon, 23 Sep 2002 23:16:25
> >* is short for child::*, which means all children of the 
> context node. 
> >Attributes are nodes, but they are never children of anything.
> If an attribute is a node why doesn't select="node()" work?

For the same reason: select="node" is short for select="child::node()",
and attributes are not children.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 

  Return to Index