Jump to content

if statement from fmp5 not working in fmp7


durow

This topic is 6998 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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>

Link to comment
Share on other sites

This topic is 6998 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.