xsl-list
[Top] [All Lists]

Re: Which patterns will select the root node?

2005-10-16 02:56:32
Dimitre Novatchev wrote:

node() will match it too.


But not as a match pattern!

A match pattern matches when it is evaluated from the context of the
parent of the matched node. "/" has no parent.

Oh, you are right. Besides node() is explicitly defined as not matching attributes and root node.

--
Oleg Tkachenko
http://www.xmllab.net
http://blog.tkachenko.com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--