Dimitre Novatchev wrote:
node() matches the root node, for example in the following XPath expression:
ancestor::node()
But again, not in a pattern. XSLT spec explicitly says
"node() matches any node other than an attribute node and the root node"
http://www.w3.org/TR/xslt#patterns
Btw, here is another pattern that matches root node :o)
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:key name="mykey" match="/" use="'root'"/>
<xsl:template match="key('mykey', 'root')">
...
</xsl:template>
</xsl:stylesheet>
--
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>
--~--