Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 157
CDML tag name: Sort Field Item
Tag is replaced with the field name that was part of the request that created this page. This is always found
within a
[FMP-CurrentSort] loop.
CDML syntax: [FMP-SortFieldItem: Encoding], where Encoding is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {@name}
1 otherwise: <xsl:value-of select="@name" />
1 if used in document: $current-sort variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
1 when outside of a [FMP-CurrentSort] loop: <!-- CDML Converter ERROR: [FMP-SortFieldItem] outside of [FMP-
CurrentSort]
-->
CDML tag name: Sort Order Item
Tag is replaced with the sort order that was part of the request that created the page. This is always found
within a
[FMP-CurrentSort] loop.
CDML syntax: [FMP-SortOrderItem: Encoding], where Encoding is one of the following:
1 'Raw'
1 'URL'
1 'HTML' (this is the default)
1 'Display'
Conversion example
Original CDML: Current sort order is:<br>
[FMP-CurrentSort]
Field: [FMP-SortFieldItem], Order: [FMP-SortOrderItem]<br>
[/FMP-CurrentSort]
Converted XSLT-CWP: Current sort order is:<br />
<xsl:for-each select="xalan:nodeset($current-find)/find-field">
Field: <xsl:value-of select="@name" />, Order: <xsl:value-of select="@order" /><br />
</xsl:for-each>
Converted Result: Current sort order is:<br>
Field: First Name, Order: descend<br>
Field: Last Name, Order: descend<br>