Custom Web Publishing Guide

Table Of Contents
Appendix C
|
Converting CDML solutions to FileMaker XSLT 127
CDML tag name: Client Password
Tag is replaced with the current HTTP-authenticated client password
CDML syntax: [FMP-ClientPassword]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$client-password}
1 otherwise: <xsl:value-of select="$client-password"/>
CDML tag name: Client Type
Tag is replaced with the current browser client type
CDML syntax: [FMP-ClientType]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {fmxslt:get_header('User-Agent')}
1 otherwise: <xsl:value-of select="fmxslt:get_header('User-Agent')" />
CDML tag name: Client User Name
Tag is replaced with the client’s user name from HTTP authentication
CDML syntax: [FMP-ClientUserName]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$client-user-name}
1 otherwise: <xsl:value-of select="$client-user-name"/>
Conversion example
Original CDML: Your password is: [FMP-ClientPassword]
Converted XSLT-CWP: Your password is: <xsl:value-of select="$client-password"/>
Converted Result: Your password is: my-password
Conversion example
Original CDML: Your browser type is: [FMP-ClientType]
Converted XSLT-CWP: Your browser type is: <xsl:value-of select="fmxslt:get_header('User-Agent')" />
Converted Result: Your browser type is: Mozilla/3.01 (Macintosh; I; PPC)
Conversion example
Original CDML: Your name is: [FMP-ClientUserName]
Converted XSLT-CWP: Your name is: <xsl:value-of select="$client-user-name"/>
Converted Result: Your name is: my-user-name