Custom Web Publishing Guide

Table Of Contents
114 Custom Web Publishing Guide
CDML tag name: Cookie
Tag is replaced with the current value of the specified cookie
CDML syntax: [FMP-Cookie: CookieName, Encoding], where Encoding is 'Raw' (default), or 'URL'
XSLT-CWP conversion:
1 when inside SGML element attribute value: {fmxslt:get_cookie('CookieName')}
1 otherwise: <xsl:value-of select="fmxslt:get_cookie('CookieName')" />
CDML tag name: Current Action
Tag is replaced with the name of the current action, such as: find, findall, new, edit, delete, view, or dup. The
returned name does not include the dash (–) character.
CDML syntax: [FMP-CurrentAction: Encoding], where Encoding is 'HTML' (default), or 'Display'
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$current-action}
1 otherwise: <xsl:value-of select="$current-action" />
1 if Format is 'Display': <!-- CDML2XSLT WARNING: [FMP-CurrentAction] 'Display' Encoding not
supported by XSLT-CWP
-->
1 if used in document, $current-action variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
Conversion example
Original CDML: Thanks for coming back! The latest products in [FMP-Cookie: ColorChoice] are listed below
Converted XSLT-CWP: Thanks for coming back! The latest products in <xsl:value-of
select="fmxslt:get_cookie('ColorChoice')" /> are listed below.
Converted Result: Thanks for coming back! The latest products in green are listed below.
Conversion example
Original CDML: Last action was: [FMP-CurrentAction]
Converted XSLT-CWP: Last action was: <xsl:value-of select="$current-action" />
Converted Result: Last action was: view