Yeah, it just gets a little cumbersome if you have, say, five cases.

Scott Moore wrote:
> 
> The <xsl:choose> statement is exactly like a switch or case statement.  You
> CAN have one or more <xsl:when> statements underneath the same <xsl:choose>
> parent followed by one <xsl:otherwise>, which is equivalent to "default:" in
> Java or C++.
> 
> I use this construct all the time, especially when I need something similiar
> to "if then else" or a switch statement.
> 
> Scott
> 
> ----- Original Message -----
> From: "Matt Savino" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 07, 2001 10:46 PM
> Subject: Re: xsl:choice
> 
> > Sorry, I didn't read the bottom.
> >
> > You can only include one <xsl:when> as a child of <xsl:choose>. (There
> > is no concept of a case switch or elsif in XSLT.)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to