|
Subject: [xsl] choose/when question From: Jo Bourne <venus@xxxxxxxxx> Date: Wed, 22 Aug 2001 14:10:40 +1000 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] InvalidDatatypeFacetExcep, Joerg Pietschmann | Thread | Re: [xsl] choose/when question, Jeni Tennison |
| Re: [xsl] Migrating from xalan to o, Steve Muench | Date | [xsl] Convert mutiple escaped items, Yang |
| Month |