This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
choose/when question
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] choose/when question
- From: Jo Bourne <venus at va dot com dot au>
- Date: Wed, 22 Aug 2001 14:10:40 +1000
- Reply-To: xsl-list at lists dot mulberrytech dot com
hi,
I currently have a choose statement in my style sheet to the effect of:
<xsl:choose>
<xsl:when test="@number='one'">
...
</xsl:when>
<xsl:when test="@number='two'">
...
</xsl:when>
<xsl:otherwise>
...
</xsl:otherwise>
</xsl:choose>
the result of the two when statements are identical, it is only the otherwise that has different behaviour. I am wondering if it would have any noticible effect on performance to combine the two when statements into one? and if it would how would i do this? is like this:
<xsl:choose>
<xsl:when test="@number=('one' or 'two')">
...
</xsl:when>
<xsl:otherwise>
...
</xsl:otherwise>
</xsl:choose>
thanks in advance
Jo
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list