xsl-list
[Top] [All Lists]

RE: test equals fails

2002-11-04 07:26:06

[JWallis]
<td>
      <xsl:variable name="month">OCT</xsl:variable>
                <xsl:choose>
                        <xsl:when test="$month=JAN">01</xsl:when>
<!-- etc. -->

You're missing quotes around the strings, e.g.:

        <xsl:when test="$month='JAN'">01</xsl:when>

Cheers,

        -- Paul

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>