Custom Web Publishing Guide

Table Of Contents
130 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Current Day
Tag is replaced with the name of the current day of the week
CDML syntax: [FMP-CurrentDay: Format], where Format is 'Short' (default), or 'Long'
XSLT-CWP conversion:
1 when inside SGML element attribute value, 'Short': {fmxslt:get_day('short')}
1 or, 'Long': {fmxslt:get_day('long')}
1 otherwise, 'Short': <xsl:value-of select="fmxslt:get_day('short')" />
1 or, 'Long': <xsl:value-of select="fmxslt:get_day('long')" />
CDML tag name: Current Error
Tag is replaced with the FileMaker error number from the current action
CDML syntax: [FMP-CurrentError]
XSLT-CWP conversion:
when inside SGML element attribute value: {fmrs:fmresultset:/fmrs:error/@code}
otherwise: <xsl:value-of select="fmrs:fmresultset:/fmrs:error/@code" />
Conversion example
Original CDML: Current day is: [FMP-CurrentDay: Long]
Converted XSLT-CWP: Current day is: <xsl:value-of select="fmxslt:get_day('long')" />
Converted Result: Current day is: Monday
Conversion example
Original CDML: The last operation failed with error number [FMP-CurrentError].
Converted XSLT-CWP: The last operation failed with error number <xsl:value-of select="fmrs:fmresultset:/
fmrs:error/@code" />.
Converted Result: The last operation failed with error number 500.