Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 131
CDML tag name: Current Find
Repeats the HTML between [FMP-CurrentFind] and [/FMP-CurrentFind] for each find criteria that was part of
the request that created this page
CDML syntax: [FMP-CurrentFind]...[/FMP-CurrentFind]
XSLT-CWP conversion:
1 <xsl:for-each select="$current-find">...</xsl:for-each>
1 if inside an SGML tag/attribute, <!-- CDML Converter ERROR: [FMP-CurrentFind] not in a valid location -->
1 if used in document, $current-find variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
CDML tag name: Current Format File
Tag is replaced with the name of the current format file being processed
CDML syntax: [FMP-CurrentFormat: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$request-query/@action}
1 otherwise: <xsl:value-of select="$request-query/@action"/>
Conversion example
Original
CDML:
Current find request is:<br>
[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="$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:<br>
Field: First Name, Op: begins with, Value: John<br>
Field: Last Name, Op: equals, Value: Doe<br>
Conversion example
Original CDML: This page was formatted with file: [FMP-CurrentFormat].
Converted XSLT-CWP: This page was formatted with file: <xsl:value-of select="$request-query/@action"/>.
Converted Result: This page was formatted with file: Detail.xsl.