Subject: Re: [xsl] If.. then OR xsl:choose question From: Bill Curtis <digitalmetrics@xxxxxxxxx> Date: Mon, 17 Jun 2002 12:39:39 -0700 (PDT) |
try this <DIV> <xsl:choose> <xsl:when test="@pos='First'"> <xsl:attribute name="Style">border:'1px solid green';padding-left:20</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="Style">border:'1px solid green'</xsl:attribute> </xsl:otherwise> </xsl:choose> </DIV> --- Meir <umen@xxxxxxxxxxxxxxxx> wrote: > Hello list > Tell me please if i like in xsl file > to make simple if ..then state > but to tell the xsl some thing like this : > > <xsl:when test="@pos='First'"> > <div style="border:'1px solid > green';padding-left:20"> > </xsl:when> > <xsl:otherwise> > <div style="border:'1px solid green'"> > </xsl:otherwise> > </xsl:choose> > > as you see im trying to make the if based on > ="@pos='First' But its giving > me error > that i have to include the closing <div> tag .. but > i can't cos it will > break the xsl proceeding order, so is there any way > to make > xsl to pick the right div? > > tnx > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] If.. then OR xsl:choose , Greg Faron | Thread | Re: [xsl] If.. then OR xsl:choose , Meir |
[xsl] loading scripting languages i, Guilherme Capilé | Date | Re: [xsl] generic apply-template ca, Alex Reuter |
Month |