Custom Web Publishing Guide

Table Of Contents
148 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Link
Tag is replaced with a URL that refers to the page it is on. The parameters can be used to remove portions
of the generated URL.
CDML syntax: <sgml_tag sgml_attr="[FMP-Link: CharacterCodes]&-format=FileName.htm
&name1=value1&name2=value2...">
XSLT-CWP conversion:
1 insert: <xsl:call-template name="get-link"><xsl:with-param name="filter-codes" select="'CharacterCodes'"/>
<xsl:with-param name="stylesheet" select="'FileName.xsl'"/><xsl:with-param name="other-params"
select="'&amp;name1=
value1&amp;name2=value2...'"/></xsl:call-template>
1 if inside an SGML attribute and followed a '-format' parameter: the 'stylesheet' parameter is passed to the
'
get-link' template
1 if inside an SGML attribute and followed by extra query parameters: the 'other-params' parameter is
passed to the '
get-link' template
Converted Result: <select name="-SortField.1">
<option value="">-None-
<option>First Name</option>
<option>Last Name</option>
<option>Employee Number</option>
</select>
Conversion example
Original CDML: <a href="[FMP-Link: adr]&-Format=AltHitList.htm&-db=art.fp5&-FindAll=">Alternate hit
list</a>
Converted XSLT-CWP: <a>
<xsl:attribute name="href">
<xsl:call-template name="get-link">
<xsl:with-param name="filter-codes" select="'adr'"/>
<xsl:with-param name="stylesheet" select="'AltHitList.xsl'"/>
<xsl:with-param name="other-params" select="'&amp;-db=art'"/>
</xsl:call-template>
</xsl:attribute>Alternate hit list
</a>
Converted Result: <a href="/fmi/xsl/AltHitList.xsl?-db=art&-grammar=fmresultset&-findall=">Alternate hit
list</a>
Conversion example