Subject: RE: [xsl] Or with xsl:when to check for multiple values From: "Michael Kay" <mhk@xxxxxxxxx> Date: Fri, 31 Oct 2003 23:02:58 -0000 |
> Can i do something like > > <xsl:when test="$var = 'val1'" or "$var = 'val2'" or "$var = 'val3'"> > some action > </xsl:when> XSLT has to be well-formed XML. You want <xsl:when test="$var = 'val1' or $var = 'val2' or $var = 'val3'"> Michael Kay > > Or to achieve this i have to write like > <xsl:when test="$var = 'val1'" > > Some action > <xsl:when> > <xsl:when test="$var = 'val2'"> > Some action > </xsl:when> > > Since the action code is same I thought if something can be > done writing OR > expression. Is there some other way to achieve it more effectively. > > I hope i am clear in explaining my problem. > Thanks in the anticipation that I will get some good hints to > solve this. > > Regards, > Dipesh > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Or with xsl:when to check, M. David Peterson | Thread | [xsl] Re: Converting specific child, Joseph Kesselman |
RE: [xsl] Excluding one particular , Michael Kay | Date | RE: [xsl] XSL vs. WORDML, Michael Kay |
Month |