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]
Other format: [Raw text]

Re: testing element name


> 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@onebox.com - email
 

 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]