Subject: RE: Attribute test problem solved
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 13 Apr 2000 16:15:24 +0100
|
> <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
|