You can use it. -----Original Message----- From: Savino, Matt C [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 1:10 PM To: '[EMAIL PROTECTED]' Subject: RE: xsl:choice
We'll I'll be darned. I didn't know you could use multiple when's like that. thx a lot -Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 09, 2001 3:28 PM > To: [EMAIL PROTECTED] > Subject: RE: xsl:choice > > > I think what Scott is trying to say that it is perfectly > allowable XSLT to write: > <xsl:choose> > <xsl:when test="test = '1'"> > <!-- Stuff for condition 1 --> > </xsl:when> > <xsl:when test="test = '2'"> > <!-- Stuff for condition 2 --> > </xsl:when> > <xsl:when test="test = 3'"> > <!-- Stuff for condition 3 --> > </xsl:when> > <xsl:when test="test = 4'"> > <!-- Stuff for condition 4 --> > </xsl:when> > <xsl:otherwise> > <!-- Stuff fo the 'else' equivalent --> > </xsl:otherwise> > </xsl:choose> > > Joshua > > > -----Original Message----- > > From: Matt Savino [mailto:[EMAIL PROTECTED]] > > Sent: Monday,10 December 2001 6:57 > > To: [EMAIL PROTECTED] > > Subject: Re: xsl:choice > > > > > > 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] > > > > > > -------------------------------------------------------------- > ---------------- > This message and any attachment is confidential and may be > privileged or otherwise protected from disclosure. If you > have received it by mistake please let us know by reply and > then delete it from your system; you should not copy the > message or disclose its contents to anyone. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]