Custom Web Publishing Guide

Table Of Contents
Converting CDML solutions to FileMaker XSLT 107
Conversion of CDML boolean operators to XPath
Conversion of CDML intratag parameters to XSLT-CWP
CDML intratag parameters are CDML replacement tags that are used within a parameter of another
replacement tag. If an intratag parameter is used as a parameter value, it is surrounded by curly braces. For
example:
-db={CurrentDatabase}
instead of:
[FMP-CurrentDatabase]
The CDML Converter converts intratag parameters in the same way it converts replacement tags. See
“Conversion of CDML replacement tags to XSLT-CWP” on page 111. Here is an example of how the CDML
Converter handles the conversion of intratag parameters used as parameter values.
This CDML boolean operator Is converted to this XPath boolean operator
x .and. y x and y
x .or. y x or y
x .xor. y (x or y) and not (x and y)
x .eq. y x = y
x .neq. y x != y
x .gt. y x > y
x .gte. y x >= y
x .lt. y x < y
x .lte. y x <= y
x .cn. y contains(x, y)
x .ncn. y not (contains(x, y))
Example of intratag parameter conversion inside parameter values (shown in curly braces):
Original
CDML:
<!-- Log page hits in another database -->
[FMP-InlineAction: -db=log.fp5, -lay=web, time="{CurrentTime}", date="{CurrentDate}",
page="This page!", browser="{ClientType}", ip="{ClientIP}", -new] [/FMP-InlineRequest]
Converted
XSLT-CWP:
<!-- Log page hits in another database -->
<xsl:variable select="document(concat('/fmi/xml/fmresultset.xml?-db=', fmxslt:url_encode('log'), '&-lay=',
fmxslt:url_encode('web'), '&time=', fmxslt:url_encode(fmxslt:get_time()), '&date=',
fmxslt:url_encode(fmxslt:get_date()), '&page=', fmxslt:url_encode('This Page!'), '&browser=',
fmxslt:url_encode(fmxslt:get_header('User-Agent')), '&ip=', fmxslt:url_encode($client-ip), '&-new='))" />