Subject: RE: [xsl] Defining a Variable that depends on an unknown number of conditions From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 1 Jan 2009 10:30:00 -0000 |
> xsl file: How do I define variable "hasZero" based on these > conditions... > a) if at least one option has value="0", set "hasZero" to "yes" > b) otherwise "hasZero" is "no". > <xsl:variable name="hasZero"> <xsl:choose> <xsl:when test="option[@value='0']">yes</xsl:when> <xsl:otherwise>no</xsl:otherwise> </xsl:choose> </xsl:variable> Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Thread | Re: [xsl] Defining a Variable that , Dimitre Novatchev | |
Date | [xsl] XSL-List Guidelines, Mulberry Technologie | |
Month |