This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]