Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 137
CDML tag name: Current Skip Setting
Tag is replaced with the number of records skipped from the beginning of the found set
CDML syntax: [FMP-CurrentSkip]
XSLT-CWP conversion: <xsl:call-template name="$get-current-skip" />
1 when inside SGML element attribute value: {$current-skip}
1 otherwise: <xsl:value-of select="$current-skip"/>
1 if used in document, $current-skip variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet.
CDML tag name: Current Sort Order
Repeats the HTML between [FMP-CurrentSort] and [/FMP-CurrentSort] for each sort argument that was part
of the request that created this page
CDML syntax: [FMP-CurrentSort]...[/FMP-CurrentSort]
XSLT-CWP conversion:
1 <xsl:for-each select="$current-sort/sort-field">...</xsl:for-each>
1 if inside an SGML tag/attribute, <!-- CDML Converter ERROR: [FMP-CurrentSort] not in a valid location -->
1 if used in document, $current-sort variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
Conversion example
Original CDML: [FMP-Repeating: extensions]
[FMP-CurrentRepeatNumber]: [FMP-RepeatingItem]<br>
[/FMP-Repeating]
Converted XSLT-CWP: <xsl:for-each select="fmrs:field[@name = 'extensions']/fmrs:data">
<xsl:value-of select="position()" />: <xsl:value-of select="." /><br />
</xsl:for-each>
Converted Result: 3: Green<br>
Conversion example
Original CDML: Current Skip Value is: [FMP-CurrentSkip]
Converted XSLT-CWP: Current Skip Value is: <xsl:value-of select="$current-skip" />
Converted Result: Current Skip Value is: 10