xsl-list
[Top] [All Lists]

Re: Which patterns will select the root node?

2005-10-16 02:30:56
On 10/16/05, Oleg Tkachenko <oleg(_at_)tkachenko(_dot_)com> wrote:
Soren Kuula wrote:

Will any other pattern than "/" ever match the root?  I guess no,
because the only alternative will start with "//", after which you will
just have to add a step, and that will be a downward step.

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.

Cheers,
Dimitre Novatchev

--~------------------------------------------------------------------
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>
--~--