[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

choose/when question

Subject: choose/when question
From: Jo Bourne <venus@xxxxxxxxx>
Date: Wed, 22 Aug 2001 14:10:40 +1000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.