February 25, 200520 yr Could someone please take a look at this code and tell me what might be wrong. I used the CDML converter to get this and the syntax looks just like the syntax that is in the Custom Web Publishing Guide but it will not work. If I replace the test with say 'one'='one' it works. Thanks in advance! <h3><center><xsl:choose><xsl:when test="fmrs:field[@name = 'Status']/fmrs:data[1]='Expired'"> <center><font size="+1" color="#FF0000"><b>Registration is closed for this class.</b></font></center></xsl:when><xsl:otherwise> <center><xsl:choose><xsl:when test="fmrs:field[@name = 'Status']/fmrs:data[1]='Full'"> <center><font size="+1" color="#FF0000"><b>Class is Full</b></font> <p><font size="+1" color="#FF0000"><b>Please Contact Ann Palm at 446-1064 to get on a waiting list.<br/> Thanks!!</b></font></p></center></xsl:when><xsl:otherwise> <center><a><xsl:attribute name="href"><xsl:call-template name="get-link-rec-id"><xsl:with-param name="rec-id" select="$default-record/@record-id"/><xsl:with-param name="stylesheet" select="'../class/registration.xsl'"/><xsl:with-param name="layout" select="'ClassID'"/></xsl:call-template></xsl:attribute>REGISTER FOR THIS CLASS</a></center> </xsl:otherwise></xsl:choose></center> </xsl:otherwise></xsl:choose></center></h3> </td> <td width="4%"> </td> </tr> </table> </center>
Create an account or sign in to comment