Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 149
CDML tag name: Link First
The HTML between [FMP-LinkFirst] and [/FMP-LinkFirst] is replaced with a link to the first range of records
based on the -Max value used to create the current page.
CDML syntax: [FMP-LinkFirst]...[/FMP-LinkFirst]
XSLT-CWP conversion:
1 <a href="{$link-first}">...</a>
1 insert at top-level of document: <xsl:variable name="link-first"><xsl:call-template name="get-link-first"/></
xsl:variable>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-LinkFirst] not in a valid location -->
CDML tag name: Link Last
The HTML between [FMP-LinkLast] and [/FMP-LinkLast] is replaced with a link to the last range of records
based on the -Max value used to create the current page.
CDML syntax: [FMP-LinkLast]...[/FMP-LinkLast]
XSLT-CWP conversion:
1 <a href="{$link-last}">...</a>
1 insert at top-level of document: <xsl:variable name="link-last"><xsl:call-template name="get-link-last"/>
</xsl:variable>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-LinkLast] not in a valid location -->
CDML tag name: Link Next
The HTML between [FMP-LinkNext] and [/FMP-LinkNext] is replaced with a link to the next range of records
based on the -Max and -Skip values used to create the current page.
CDML syntax: [FMP-LinkNext]...[/FMP-LinkNext]
XSLT-CWP conversion:
1 <a href="{$link-next}">...</a>
1 insert at top-level of document: <xsl:variable name="link-next"><xsl:call-template name="get-link-next"/>
</xsl:variable>
1 if inside an SGML tag/attribute: <!-- CDML Converter ERROR: [FMP-LinkNext] not in a valid location -->
Conversion example
Original CDML: [FMP-LinkFirst]First set of records[/FMP-LinkFirst]
Converted XSLT-CWP: <a href="{$link-first}">First set of records</a>
Converted Result: <a href="/fmi/xsl/stylesheet.xsl?-max=10&-find=">First set of records</a>
Conversion example
Original CDML: [FMP-LinkLast]Last set of records[/FMP-LinkLast]
Converted XSLT-CWP: <a href="{$link-last}">Last set of records</a>
Converted Result: <a href="/fmi/xsl/stylesheet.xsl?-skip=10&-max=10&-find=">Last set of records</a>