Subject: Re: Which patterns will select the root node?
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Sun, 16 Oct 2005 13:38:59 +0100
|
> > Will any other pattern than "/" ever match the root?
>
> Yes -- always matches the root node of the current document. In XSLT2
> terms it matches the document node.
Just to add to that, in XSLT2 there is document-node(), eg:
<xsl:template match="/">
and
<xsl:template match="document-node()">
are equivalent (afaik).
| Current Thread |
Dimitre Novatchev - 16 Oct 2005 09:28:43 -0000
- andrew welch - 16 Oct 2005 12:39:09 -0000 <=
|
|