xsl-list
[Top] [All Lists]

RE: Is this node, the document root... best test?

2003-10-20 09:53:33
Hi


-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Stephen Cunliffe
Sent: Monday, October 20, 2003 4:50 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Is this node, the document root... best test?


Would this make....

<xsl:when test=". = /">This the best test then?</xsl:when>

No, this will test if the string of the current node is the same of the
string of the root node
You probably want <xsl:when test="generate-id()=generate-id(/)">


(...)
Regards,
Americo Albuquerque


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list