Custom Web Publishing Guide

Table Of Contents
128 Custom Web Publishing Guide
CDML tag name: Find Field Item
Tag is replaced with the field name that was part of the find request that created this page. This is always found
within a [FMP-CurrentFind] loop.
CDML syntax: [FMP-FindFieldItem: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {@name}
1 otherwise: <xsl:value-of select="@name" />
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-FindFieldItem] 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>