Custom Web Publishing Guide

Table Of Contents
136 Custom Web Publishing Guide
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 -->
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>