|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Is this node, the document root... best test?
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








