Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 141
CDML tag name: Field Name
Tag is replaced with the name of the current field. This is always found within a [FMP-LayoutFields] loop.
CDML syntax: [FMP-FieldName: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {@name}
1 otherwise: <xsl:value-of select="@name" />
1 when outside of a [FMP-LayoutFields] loop: <!-- CDML Converter ERROR: [FMP-FieldName] outside of [FMP-
LayoutFields]
-->
Conversion example
Original CDML: <select name="-SortField">
<option value="">-None-
[FMP-LayoutFields]
<option>[FMP-FieldName: Raw]
[/FMP-LayoutFields]
</select>
Converted XSLT-CWP: <select name="-SortField">
<option value="" />-None-
<xsl:for-each select="fmrs:fmresultset/fmrs:metadata/fmrs:field-definition" />
<option><xsl:value-of select="@name"/> </option>
</xsl:for-each>
</select>
Converted Result: <select name="-SortField">
<option value="">-None-</option>
<option First Name</option>
<option Last Name</option>
<option Employee Number</option>
</select>