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]

choose/when question


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


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