Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 145
1 if used in document: $current-sort variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
1 when outside of a [FMP-CurrentSort] loop: <!-- CDML Converter ERROR: [FMP-SortOrderItem] outside
of [FMP-CurrentSort] -->
CDML tag name: Value List
Repeats the HTML between [FMP-ValueList] and [/FMP-Valuelist] for all the values in the specified value list
CDML syntax: [FMP-ValueList: FieldName, List=ValueListName]...[/FMP-ValueList]
Note To be converted properly, the "[FMP-ValueList]" tag requires field(s) on the layout that reference the
specified value list(s).
XSLT-CWP conversion:
1 <xsl:variable name="valuelist-name" select="$layout/fml:FMPXMLLAYOUT/fml:LAYOUT/
fml:FIELD[@NAME = 'FieldName']/fml:STYLE/@VALUELIST"/><xsl:for-each select="$layout/
fml:FMPXMLLAYOUT/fml:VALUELISTS/fml:VALUELIST[@NAME = $valuelist-name]/
fml:VALUE">...</xsl:for-each>
1 parameter 'List' is ignored: <!-- CDML2XSLT WARNING: [FMP-ValueList] 'List' parameter not
supported by XSLT-CWP
-->
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-ValueList] not in a valid
location -->
1 if used in document: $layout variable is created at top-level of document
Conversion example
Original CDML: Current sort order is:<br>
[FMP-CurrentSort]
Field: [FMP-SortFieldItem], Order: [FMP-SortOrderItem]<br>
[/FMP-CurrentSort]
Converted XSLT-CWP: Current sort order is:<br />
<xsl:for-each select="xalan:nodeset($current-find)/find-field">
Field: <xsl:value-of select="@name" />, Order: <xsl:value-of select="@order" /><br />
</xsl:for-each>
Converted Result: Current sort order is:<br>
Field: First Name, Order: descend<br>
Field: Last Name, Order: descend<br>
Conversion example
Original
CDML:
[FMP-ValueList: Groups, List=GroupList]
<input type="radio" name="Groups" value="[FMP-ValueListItem]" [FMP-ValueListChecked]>[FMP-
ValueListItem]
[/FMP-ValueList]