[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] Is this node, the document root... best test?
From: Americo Albuquerque <melinor@xxxxxxxx>
Date: Mon, 20 Oct 2003 17:53:33 +0100

Hi


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Stephen Cunliffe
> Sent: Monday, October 20, 2003 4:50 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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



Current Thread