This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: choose/when question
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] choose/when question
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- Date: Wed, 22 Aug 2001 12:40:37 +0200
- Organization: ZKB
- Reply-To: xsl-list at lists dot mulberrytech dot com
Jo Bourne <venus@va.com.au> wrote:
> I currently have a choose statement in my style sheet to the effect of:
[snip]
> I am wondering if it would have any noticible effect on performance to
> combine the two when statements into one?
This is processor dependent. I don't think there is any measurable
difference, however, actually trying it is better than wild guesses.
> and if it would how would i
> do this? is like this:
...
> <xsl:when test="@number=('one' or 'two')">
The processor will happily accept this, but it's not want you wanted
to do. Try:
<xsl:when test="@number='one' or @number='two'">
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list