xsl-list
[Top] [All Lists]

Re: Which patterns will select the root node?

2005-10-16 05:38:59
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).

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