Re: How to get the name of an element ?

Subject: Re: How to get the name of an element ?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Apr 2000 19:52:10 +0100 (BST)
> <xsl:if test="$col='A'">do something</xsl:if> where col is the variable you
> use to get all the name() of nodes.Since you have else condition, go for
> xsl:when

It's safer to use  <xsl:if test="A"/> or <xsl:if test="self::A"/> 
(depending on whether the current node is A or its parent) as that works
even if namespace prefixes are used/changed.

David


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


Current Thread