This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: testing element name
- From: "Charles Knell" <cknell at onebox dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 09 Aug 2002 09:59:22 -0700
- Subject: Re: [xsl] testing element name
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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