xsl-list
[Top] [All Lists]

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

2006-07-24 03:06:13
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>



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] [ Answered :) ] Assigning value to variable based on xsl:choose test, David Murphy <=