Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 151
CDML tag name: Log
Tag is replaced with the text specified as the parameter and written as user log messages in the application
log file. See
“Using the Web Publishing Engine application log” on page 83.
CDML syntax: [FMP-Log: someText]
XSLT-CWP conversion:
1 <xsl:message>someText</xsl:message>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-Log] not in a valid location -->
CDML tag name: Option
Tag replaced with all the values in the value list of the field in that layout
CDML syntax: [FMP-Option: FieldName, List=ValueListName]
Note To be converted properly, the "[FMP-Option]" CDML tag requires field(s) on the layout that reference
the specified value list(s).
Conversion example
Original CDML: <a href="[FMP-LinkRecID: format=FormatFile.htm, layout=detail]">More detail</a>
Converted XSLT-CWP: <a>
<xsl:attribute name="href">
<xsl:call-template name="get-link-rec-id">
<xsl:with-param name="rec-id" select="$record/@record-id"/>
<xsl:with-param name="stylesheet" select="'FormatFile.xsl'"/>
<xsl:with-param name="layout" select="'detail'"/>
</xsl:call-template>
</xsl:attribute>More Detail</a>
Converted Result: <a href="/fmi/xsl/FormatFile.xsl?-db=products&-grammar=fmresultset&-lay=detail&-
recid=3&-find=">More detail</a>
Conversion example
Original CDML: Log code is here: [FMP-Log: the search page was accessed]
Converted XSLT-CWP: Log code is here: <xsl:message>the search page was accessed</xsl:message>
Converted Result: Log code is here:
(The text the search page was accessed is written to the application log if user logging
is enabled.)