[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] xsl:variable within xsl:choose. Why doesn't that work? And what does?
Subject: Re: [xsl] xsl:variable within xsl:choose. Why doesn't that work? And what does? From: Michael Strasser <M.Strasser@xxxxxxxxxxxxx> Date: Thu, 17 May 2001 22:36:46 +1000 |
Ingo Schildmann wrote: > <xsl:variable name="aVar"> > <xsl:choose> > <xsl:when test="do a test"> > <xsl:value-of select="'when var'"/> > </xsl:when> > <xsl:otherwise> > <xsl:value-of select="'otherwise var'"/> > </xsl:otherwise> > > </xsl:choose> > </xsl:variable> > <xsl:value-of select="$aVar"/> Just to be picky, why use: <xsl:value-of select="'when var'"/> when <xsl:text>when var</xsl:text> is simpler and probably more efficient? -- Michael Strasser Brisbane, Australia XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:variable within xsl:c, Ingo Schildmann | Thread | Re: [xsl] xsl:variable within xsl:c, David Carlisle |
[xsl] Two input xml files.., Kavithak | Date | [xsl] Defining an 'appropriate' DTD, Sabine Lehmann |
Month |