xsl-list
[Top] [All Lists]

RE: thoroughly confused about node() matching

2003-03-04 08:50:05
[ Lars Huttar]

I totally agree... that's why I'm saying, since (I thought) 
the spec writers were talking about "node()" as a whole 
pattern, with no specified axis (and therefore using the 
"child" axis), why did they say

 o  node() matches any node other than an attribute node and 
the root node

instead of

 o  node() matches any node other than an attribute node, the 
root node,
    and namespace nodes

?
Did they really mean that namespace nodes are matched (in 
which case they're saying Kay is wrong), or did they make a mistake?

The words in the xslt 1.0 Rec about node() are only an example of its
use in a pattern.  node() really comes from the xpath Rec, and you
should read up on it there (not that there is too much more, but you
will see that node() is more general than the illustration in the xslt
Rec).

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>