Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 133
CDML tag name: Include Field
Tag is replaced with the contents of a field, usually a text field that contains an HTML format file
CDML syntax: [FMP-IncludeField: FieldName]
XSLT-CWP conversion:
1 <!-- CDML Converter ERROR: [FMP-IncludeField] not supported by XSLT-CWP -->
CDML tag name: Inline Action
Tag allows the processing of multiple CDML requests during the processing of a single format file. The [FMP-
InlineAction] tag takes as its parameters the URL-like format of the name value pairs for a CDML request. All
further processing of the format file then continues as if the inline request started the processing.
CDML syntax: [FMP-InlineAction: intratags]...[/FMP-InlineAction]
XSLT-CWP conversion:
1 <xsl:variable name="inline-action" select="document(concat($authenticated-xml-base-uri, '/fmi/xml/
fmresultset.xml?', '-db=', /fmrs:fmresultset/fmrs:datasource/@database, '&amp;-
lay=web3&amp;title=s&amp;-find'))"/><xsl:for-each select="$inline-action/fmrs:fmresultset/
fmrs:resultset/fmrs:record"><xsl:variable name="inline-action-record" select="current()"/>...</xsl:for-
each>
1 if there is non-white space content between the start and end tags, loop over the response document’s
records
1 the request URL parameter values are URL-encoded
1 the request URL is created from the intratags ignoring any '-format' parameter
1 if inside an SGML tag/attribute, <!-- CDML Converter ERROR: [FMP-InlineAction] not in a valid
location -->
Conversion example
Original CDML: [FMP-IncludeField: errorPage]
Converted XSLT-CWP: <!-- CDML Converter ERROR: [FMP-IncludeField] not supported by XSLT-CWP -->
Converted Result: <!-- CDML Converter ERROR: [FMP-IncludeField] not supported by XSLT-CWP -->
Conversion example
Original
CDML:
[FMP-InlineAction: -db={currentdatabase}, title="s", -lay=web3, find=]
Title:[FMP-Field: Title], Artist: [FMP-Field: Artist]<br>
[/FMP-InlineAction]
Converted
XSLT-CWP:
<xsl:variable name="inline-action" select="document(concat($authenticated-xml-base-uri, '/fmi/xml/
fmresultset.xml?',
'-db=', /fmrs:fmresultset/fmrs:datasource/@database, '&amp;-lay=web3&amp;title=s&amp;-find'))"/>
<xsl:for-each select="$inline-action/fmrs:fmresultset/fmrs:resultset/fmrs:record">
<xsl:variable name="inline-action-record" select="current()"/>
Title:<xsl:value-of select="$inline-action-record/fmrs:field[@name = 'Title']/fmrs:data[1]"/>, Artist:
<xsl:value-of select="$inline-action-record/fmrs:field[@name = 'Artist']/fmrs:data[1]"/><br/>
</xsl:for-each>