This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Attribute test problem solved
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Attribute test problem solved
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 13 Apr 2000 16:15:24 +0100
- Reply-To: xsl-list at mulberrytech dot com
> <xsl:choose>
> <xsl:when test="//@secur.classif='P'">
> <xsl:text>PRIORITY</xsl:text>
> </xsl:when>
> <xsl:otherwise>
> <xsl:choose>
> <xsl:when test="//@secur.classif='F'">
> <xsl:text>FAST</xsl:text>
> </xsl:when>
As David C pointed out, it's simpler to write multiple <xsl:when> elements.
It's also likely to be a lot more efficient to assign the common
subexpression "//@secur.classif" to a variable.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list