Custom Web Publishing Guide

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