Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 119
CDML tag name: Current Max
Tag is replaced with the maximum number of records that was specified
CDML syntax: [FMP-CurrentMax]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$current-max}
1 otherwise: <xsl:value-of select="$current-max" />
1 if used in document, $current-max variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet.
CDML tag name: Current Modification ID
Tag is replaced with the modification ID of the current record being edited
CDML syntax: [FMP-CurrentModID]
XSLT-CWP conversion:
1 when inside SGML element attribute value:
1 when current context is a record: {@mod-id}
1 otherwise: {/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]/@mod-id}
1 otherwise:
1 when current context is a record: <xsl:value-of select="@mod-id" />
1 otherwise: <xsl:value-of select="/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]/@mod-id" />
Conversion example
Original CDML: Click the button to see the next [FMP-CurrentMax] records.
Converted XSLT-CWP: Click the button to see the next <xsl:value-of select="$current-max" /> records.
Converted Result: Click the button to see the next 10 records.
Conversion example
Original CDML: <FORM ACTION="FMPro" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="-DB" VALUE="contacts.fp5">
<INPUT TYPE="HIDDEN" NAME="-Format" VALUE="results.htm">
<INPUT TYPE="HIDDEN" NAME="-RecID" VALUE="[FMP-CurrentRecID]">
<INPUT TYPE="HIDDEN" NAME="-ModID" VALUE="[FMP-CurrentModID]">
<INPUT TYPE="TEXT" NAME="Country">
<INPUT TYPE="SUBMIT" NAME="-Edit" VALUE="Edit This Record">
</FORM>