Re: [xsl] testing element name

Subject: Re: [xsl] testing element name
From: "Charles Knell" <cknell@xxxxxxxxxx>
Date: Fri, 09 Aug 2002 09:59:22 -0700
> Basically, my question is what expressions should I put in the xsl:if
> 
> test"?" above?

You'll want to test the name() of the current node, as in:
<xsl:choose>
  <xsl:when test="name()='view:textfield'">
    ...
  </xsl:when>
  <xsl:when test="name()='view:dropdown'">
    ...
  </xsl:when>
  <xsl:otherwise>
    ...
  </xsl:otherwise>
</xsl:choose>

-- 
Charles Knell
cknell@xxxxxxxxxx - email
 

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


Current Thread