Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 135
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
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>