Custom Web Publishing Guide

Table Of Contents
126 FileMaker Server Advanced Custom Web Publishing Guide
Conversion of CDML replacement tags to XSLT-CWP
This section describes the conversion of all CDML replacement tags to XSLT-CWP statements. In all cases:
1 The converted XSLT-CWP statements use the fmresultset grammar.
1 When an XSLT-CWP statement returns a value inside an SGML element attribute value, the {name} form
is used; otherwise, the
<xsl:value-of select="name" /> form is used.
1 When a CDML tag has an Encoding parameter, the converted XSLT-CWP value is passed through one
of the following extension functions for encoding:
fmxslt:break_encode(), fmxslt:html_encode (), or
fmxslt:url_encode (). See “Using the string manipulation extension functions” on page 69. The Encoding
value “Raw” specifies no encoding. When the encoding is set to “Raw”, the CDML Converter sets the
disable-output-escaping” attribute of the <xsl:value-of> and <xsl:text> elements to “yes”.
1 When inside an HTML-type document, the fmxslt:html_encode () extension function is not used.
CDML tag name: Client Address
Tag is replaced with the current web client’s IP address
CDML syntax: [FMP-ClientAddress]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$client-ip}
1 otherwise: <xsl:value-of select="$client-ip"/>
CDML tag name: Client IP Address
Tag is replaced with current client’s IP address
CDML syntax: [FMP-ClientIP]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$client-ip}
1 otherwise: <xsl:value-of select="$client-ip"/>
Conversion example
Original CDML: Your address is: [FMP-ClientAddress]
Converted XSLT-CWP: Your address is: <xsl:value-of select="$client-ip"/>
Converted Result: Your address is: 192.168.123.101
Conversion example
Original CDML: Your IP address is: [FMP-ClientIP]
Converted XSLT-CWP: Your IP address is: <xsl:value-of select="$client-ip"/>
Converted Result: Your IP address is: 192.168.123.101