Custom Web Publishing Guide

Table Of Contents
106 Custom Web Publishing Guide
Conversion of CDML boolean parameters to XPath boolean parameters
CDML boolean expressions, which are used within [FMP-If] and [FMP-ElseIf] intratag parameters, are
composed of parameters and operators that the CDML Converter converts to XPath expressions.
Note If the intratag parameters CurrentDate, CurrentDay, or CurrentTime are used in a boolean expression, the
CDML Converter replaces them with the appropriate XSLT-CWP date comparison extension function, such
as
fmxslt:compare_date (). See “Using the date, time, and day extension functions” on page 66.
-token -token no change to syntax
-token.NUMBER -token.NUMBER no change to syntax
<fieldname> <fieldname> no change to syntax
This CDML boolean
parameter
Is converted to this XPath
boolean parameter Comments
CanDelete false() For security reasons, this parameter is converted to
false(), but it is not supported. This comment is added
after tag: <!-- CDML Converter ERROR: 'CanDelete'
not supported by XSLT-CWP -->
CanEdit false() For security reasons, this parameter is converted to
false(), but it is not supported. This comment is added
after tag: <!-- CDML Converter ERROR: 'CanEdit' not
supported by XSLT-CWP -->
CanNew false() For security reasons, this parameter is converted to
false(), but it is not supported. This comment is added
after tag: <!-- CDML Converter ERROR: 'CanNew' not
supported by XSLT-CWP -->
IsSorted boolean($request-query/fmq:query/
fmq:parameter[starts-with(@name,
'-sortfield')]) = true())
True true()
False false()
Checked false()
String 'String'
Number Number
<missing parameter> '' [FMP-If xyz .eq. ]...[/FMP-If]
is changed to:
<xsl:choose><xsl:when test="'xyz' = ''"> ... </xsl:when>
</xsl:choose>
This CDML variable
tag
Is converted to this
XSLT-CWP query parameter Description