Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 115
CDML tag name: Current Database
Tag is replaced with the name of the database being processed
CDML syntax: [FMP-CurrentDatabase: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default).
XSLT-CWP conversion:
1 when inside SGML element attribute value: {fmrs:fmresultset/fmrs:datasource/@database}
1 otherwise: <xsl:value-of select="fmrs:fmresultset/fmrs:datasource/@database"/>
CDML tag name: Current Date
Tag is replaced with the current date
CDML syntax: [FMP-CurrentDate: Format], where Format is 'Short' (default) or 'Long'.
XSLT-CWP conversion:
1 when inside SGML element attribute value, 'Short': {fmxslt:get_date('short')}
1 or, 'Long': {fmxslt:get_date('long')}
1 otherwise, 'Short': <xsl:value-of select="fmxslt:get_date('short')" />
1 or, 'Long': <xsl:value-of select="fmxslt:get_date('long')" />
1 if Format is 'Abbrev': <!-- CDML CONVERTER WARNING: Abbreviated date format is no longer
supported. Use fmxslt:get_datetime() for additional formatting-->
Conversion example
Original CDML: You are viewing the [FMP-CurrentDatabase] database.
Converted XSLT-CWP: You are viewing the <xsl:value-of select="fmrs:fmresultset/fmrs:datasource/@database" />
database.
Converted Result: You are viewing the Contact database.
Conversion example
Original CDML: Current date is: [FMP-CurrentDate]
Converted XSLT-CWP: Current date is: <xsl:value-of select="fmxslt:get_date()" />
Converted Result: Current date is: 2/2/04