Subject: Re: [xsl] Which patterns will select the root node? From: Oleg Tkachenko <oleg@xxxxxxxxxxxxx> Date: Sun, 16 Oct 2005 14:42:18 +0200 |
node() matches the root node, for example in the following XPath expression:
ancestor::node()
"node() matches any node other than an attribute node and the root node" http://www.w3.org/TR/xslt#patterns
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Which patterns will selec, Dimitre Novatchev | Thread | Re: [xsl] Which patterns will selec, Soren Kuula |
Re: [xsl] Which patterns will selec, andrew welch | Date | Re: [xsl] Which patterns will selec, Soren Kuula |
Month |