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]

RE: Attribute test problem solved


> <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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]