Custom Web Publishing Guide

Table Of Contents
124 Custom Web Publishing Guide
CDML tag name: Current Time
Tag is replaced with the current time
CDML syntax: [FMP-CurrentTime: Format], where Format is 'Short' (default), or 'Long'
XSLT-CWP conversion:
1 when inside SGML element attribute value, 'Short': {fmxslt:get_time('short')}
1 or, 'Long': {fmxslt:get_time('long')}
1 otherwise, 'Short': <xsl:value-of select="fmxslt:get_time('short)" />
1 or, 'Long': <xsl:value-of select="fmxslt:get_time('long)" />
CDML tag name: Current Token
Tag is replaced with the value of -Token variable tag used to create the current page
CDML syntax: [FMP-CurrentToken: Number, Encoding], where Number is '0'...'9' (optional), and Encoding
is 'Raw', 'URL', or 'HTML' (default)
XSLT-CWP conversion:
1 when inside SGML element attribute value: {$request-query/fmq:query/fmq:parameter[@NAME='-
token']}
1 otherwise: <xsl:value-of select="$request-query/fmq:query/fmq:parameter[@NAME='-token']" />
1 if the token has a Number, the query parameter is '-token.Number'; for example, '-token.5
Converted Result: Current sort order is:<br>
Field: First Name, Order: descend<br>
Field: Last Name, Order: descend<br>
Conversion example
Original CDML: Current time is: [FMP-CurrentTime: Short]
Converted XSLT-CWP: Current time is: <xsl:value-of select="fmxslt:get_time('short')" />
Converted Result: Current time is: 10:12 AM
Conversion example
Original CDML: The value of token.5 is [FMP-CurrentToken: 5, HTML]
Converted XSLT-CWP: The value of token.5 is <xsl:value-of select="$request-query/fmq:query/
fmq:parameter[@NAME='-token.5']" />
Converted Result: The value of token.5 is MyValue
Conversion example