Re: How to get the name of an element ?
> <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
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