Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 143
CDML tag name: Find Value Item
Tag is replaced with the value that was part of the find request that created this page. This is always found
within a
[FMP-CurrentFind] loop.
CDML syntax: [FMP-FindValueItem: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {text()}
1 otherwise: <xsl:value-of select="text()" />
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-FindValueItem] 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>
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>