Hi Anthony,
I think that will work
<xsl:variable name="variable_name_one">
<xsl:choose>
<xsl:when test=" test1='true'">value_one</xsl:when>
<xsl:when test=" test2='true'">value_two</xsl:when>
</xsl:choose>
<xsl:variable
Sorry but I don't know how to set up multiple variable
Laurent
----- Original Message -----
From: "Anthony Green" <agreen(_at_)hemscott(_dot_)co(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, September 13, 2005 1:13 PM
Subject: [xsl] Setting multiple params or variables with xsl:choose
I would like to be able to set multiple variables with xsl:choose but all
information I can find says its not possible.
Any suggestions or work arounds ?
<xsl:choose>
<xsl:when test1="true">
<xsl:variable name="variable_name_one" select="value_one" />
<xsl:variable name="variable_name_two" select="value_one" />
<xsl:variable name="variable_name_thre" select="value_one" />
....
</xsl:when>
<xsl:when test2="true">
<xsl:variable name="variable_name_one" select="value_two" />
<xsl:variable name="variable_name_two" select="value_two" />
<xsl:variable name="variable_name_thre" select="value_two" />
...
</xsl:when>
</xsl:choose>
Anthony Green
Hemscott plc
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--