[xsl] [ Answered :) ] Assigning value to variable based on xsl:choose test

Subject: [xsl] [ Answered :) ] Assigning value to variable based on xsl:choose test
From: "David Murphy" <david@xxxxxxxxxxxxxx>
Date: Mon, 24 Jul 2006 11:18:19 +0100
Thanks to Abel, Michael and David.


<xsl:variable name="numTickets">
  <xsl:choose>
	<xsl:when test="price_type = 56">8</xsl:when>
	<xsl:when test="price_type = 57">4</xsl:when>
        <xsl:otherwise>9</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

Current Thread