Custom Web Publishing Guide

Table Of Contents
134 Custom Web Publishing Guide
CDML tag name: Layout Fields
Repeats the HTML between [FMP-LayoutFields] and [/FMP-LayoutFields] for all the fields on the layout
specified that was part of the request that created this page.
CDML syntax: [FMP-LayoutFields]...[/FMP-LayoutFields]
XSLT-CWP conversion:
1 <xsl:for-each select="fmrs:fmresultset/fmrs:metadata/fmrs:field-definition" />...</xsl:for-each>
1 if inside an SGML tag/attribute, <!-- CDML Converter ERROR: [FMP-LayoutFields] not in a valid
location -->
Converted
Result:
Title: Mona Lisa, Artist: Leonardo da Vinci <br>
Title: Sunflowers, Artist: Vincent Van Gogh<br>
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.1">
<option value="" />-None-</option>
<xsl:for-each select="fmrs:fmresultset/fmrs:metadata/fmrs:field-definition" />
<option /><xsl:value-of select="@name" />
</xsl:for-each>
</select>
Converted
Result:
<select name="-SortField.1">
<option value="">-None-
<option>First Name</option>
<option>Last Name</option>
<option>Employee Number</option>
</select>
Conversion example