Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 129
1 if Format is 'Display': <!-- CDML2XSLT WARNING: [FMP-CurrentAction] 'Display' Encoding not supported by
XSLT-CWP
-->
1 if used in document, $current-action variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
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: Last action was: [FMP-CurrentAction]
Converted XSLT-CWP: Last action was: <xsl:value-of select="$current-action" />
Converted Result: Last action was: view
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