Subject: Re: [xsl] Variable value change based on condition From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 05 Oct 2010 14:09:11 +0100 |
Can this be achieved in xslt 1.0?
<xsl:variable name="variable3" select="($var3,$var2,$var1)[not(.='')][1]"/>
<xsl:variable name="variable3" > <xsl:choose> <xsl:when test=not($var3='')"><xsl:value-of select="$var3"/></xsl:when> <xsl:when test=not($var2='')"><xsl:value-of select="$var2"/></xsl:when> <xsl:otherwise><xsl:value-of select="$var1"/></xsl:otherwise> </xsl:choose> </xsl:variable>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Variable value change bas, sudheshna iyer | Thread | Re: [xsl] Variable value change bas, sudheshna iyer |
Re: [xsl] Variable value change bas, sudheshna iyer | Date | Re: [xsl] Variable value change bas, sudheshna iyer |
Month |