Custom Web Publishing Guide

Table Of Contents
146 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Include
Tag is replaced with the contents of another file, usually an HTML format file
CDML syntax: [FMP-Include: FileName]
XSLT-CWP conversion:
1 <!-- CDML Converter WARNING: The file “FileName” has now been incorporated inline into this document and
the reference to the original file has been dropped; the original file may no longer be needed. --> converted
contents of the file
1 if inside an SGML tag/attribute, <!-- CDML Converter ERROR: [FMP-Include] not in a valid location -->
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
Conversion example
Original CDML: [FMP-Include: requirefield.htm]
Converted XSLT-CWP: <!-- CDML Converter WARNING: The file "requirefield.htm" has now been incorporated
inline into this document and the reference to the original file has been dropped; the
original file may no longer be needed. -->converted contents of the file
Converted Result: converted contents of the file
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 -->