Custom Web Publishing Guide

Table Of Contents
118 Custom Web Publishing Guide
CDML tag name: Current Found Count
Tag is replaced with the total number of records in the current found set
CDML syntax: [FMP-CurrentFoundCount]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {fmrs:fmresultset/fmrs:resultset/@count}
1 otherwise: <xsl:value-of select="fmrs:fmresultset/fmrs:resultset/@count" />
CDML tag name: Current Layout
Tag is replaced with the name of the layout used to process the page
CDML syntax: [FMP-CurrentLayout: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {fmrs:fmresultset/fmrs:datasource/@layout}
1 otherwise: <xsl:value-of select="fmrs:fmresultset/fmrs:datasource/@layout" />
CDML tag name: Current Logical Operator
Tag is replaced with the logical operator used for the current search
CDML syntax: [FMP-CurrentLOP]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$current-lop}
1 otherwise: <xsl:value-of select="$current-lop" />
1 if used in document, $current-lop variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
Conversion example
Original CDML: Record(s) in found set: [FMP-CurrentFoundCount]
Converted XSLT-CWP: Record(s) in found set: <xsl:value-of select="fmrs:fmresultset/fmrs:resultset/@count" />
Converted Result: Record(s) in found set: 12
Conversion example
Original CDML: This page was formatted using: [FMP-CurrentLayout] layout.
Converted XSLT-CWP: This page was formatted using: <xsl:value-of select="fmrs:fmresultset/fmrs:datasource/
@layout" /> layout.
Converted Result: This page was formatted using: Detail layout.
Conversion example
Original CDML: You just did an "[FMP-CurrentLOP]" search.
Converted XSLT-CWP: You just did an &quot;<xsl:value-of select="$current-lop" />&quot; search.
Converted Result: You just did an &quot;or&quot; search.