Custom Web Publishing Guide

Table Of Contents
162 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Value Names
Repeats the HTML between [FMP-ValueNames] and [/FMP-ValueNames] for all the value lists that are in the
database.
CDML syntax: [FMP-ValueNames]...[/FMP-ValueNames]
Note To be converted properly, the "[FMP-ValueNames]" CDML tag requires field(s) on the layout that
reference the specified value list(s).
XSLT-CWP conversion:
1 <xsl:for-each select="$layout/fml:fmpxmllayout/fml:VALUELISTS/fml:VALUELIST">...</xsl:for-each>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-ValueNames] not in a valid location -->
1 if used in document: $layout variable is created at top-level of document
Conversion example
Original
CDML:
<select name="–sortorder">
<option>Ascending
<option>Descending
[FMP-ValueNames]
<option value="Custom=[FMP-ValueNameItem]">[FMP-ValueNameItem]
[/FMP-ValueNames]
</select>
Converted XSLT-CWP: <select name="–sortorder.1">
<option />Ascending
<option />Descending
<xsl:for-each select="$layout/fml:fmpxmllayout/fml:VALUELISTS/fml:VALUELIST">
<option value="Custom={@NAME}" /><xsl:value-of select="@NAME" />
</xsl:for-each>
</select>
Converted Result: <select name="–sortorder.1">
<option />Ascending
<option />Descending
<option value="Custom=Colors">Colors
<option value="Custom=Sizes">Sizes
</select>