Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 129
CDML tag name: Find Operator Item
Tag is replaced with the search operator that was part of the find request that created this page. This is always
found within a [FMP-CurrentFind] loop.
CDML syntax: [FMP-FindOpItem: Format], where Format is 'Short', 'Long' (default), or 'Display'
XSLT-CWP conversion:
1 when inside SGML element attribute value: {@short-operator} or {@long-operator}
1 otherwise: <xsl:value-of select="@short-operator" /> or <xsl:value-of select="@long-operator" />
1 if Format is 'Display' then 'Long' is used, and <!-- CDML2XSLT WARNING: [FMP-SortOrderItem]
'Display' Format not supported by XSLT-CWP -->
1 if used in document, $current-find variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
1 when outside of a [FMP-CurrentFind] loop: <!-- CDML Converter ERROR: [FMP-FindOpItem] outside of
[FMP-CurrentFind] -->
Conversion example
Original CDML: Current find request is:
[FMP-CurrentFind]
Field: [FMP-FindFieldItem], Op: [FMP-FindOpItem], Value: [FMP-FindValueItem]<br>
[/FMP-CurrentFind]
Converted XSLT-CWP: Current find request is:<br />
<xsl:for-each select="xalan:nodeset($current-find)/find-field">
Field: <xsl:value-of select="@name" />, Op: <xsl:value-of select="@long-operator" />, Value:
<xsl:value-of select="text()" /><br />
</xsl:for-each>
Converted Result: Current find request is:
Field: First Name, Op: begins with, Value: John<br>
Field: Last Name, Op: equals, Value: Doe<br>