Custom Web Publishing Guide

Table Of Contents
124 FileMaker Server Advanced Custom Web Publishing Guide
1 The CDML Converter cannot convert CDML tags that are embedded in an SGML tag, such as in this
example:
<input type="text" NAME="StateProvince" SIZE="16" [FMP-If:currentdatabase.eq.Customers.fp5]
VALUE="[FMP-Field:StateProvince]" [/FMP-If]>
<SELECT NAME="–max">
<OPTION [FMP-If:currentmax.eq.5] SELECTED[/FMP-If]>5
<OPTION [FMP-If:currentmax.eq.10] SELECTED[/FMP-If]>10
</SELECT>
To avoid conversion problems resulting from the preceding example, change the CDML source code as
follows:
[FMP-If: currentdatabase.eq.Customers.fp5]
<input type="text" NAME="StateProvince" SIZE="16" VALUE="[FMP-Field:StateProvince]">
[FMP-Else]
<input type="text" NAME="StateProvince" SIZE="16" VALUE="">
[/FMP-If]
<SELECT NAME="–max">
[FMP-If:currentmax.eq.5]
<OPTION SELECTED>5 </OPTION>
[FMP-Else]
<OPTION>5 </OPTION>
[FMP-If:currentmax.eq.10]
<OPTION SELECTED>10 </OPTION>
[FMP-Else]
<OPTION>10 </OPTION>
[/FMP-If]
</SELECT>
1 The CDML Converter removes instances of the –format tag in a form and converts its value into an
attribute of the form tag. The result in the converted stylesheet is that there is one less input parameter in
the form. This may cause problems if your CDML solution uses JavaScript to refer to the form fields.
For example, the following form:
<FORM METHOD="POST" ACTION="FMPro" NAME="checkoutform">
<INPUT TYPE="hidden" NAME="–db" VALUE="Orders.FP5">
<INPUT TYPE="hidden" NAME="–format" VALUE="thanks.htm">
<INPUT TYPE="hidden" NAME="–lay" VALUE="CGI">
<INPUT TYPE="text" SIZE="50" NAME="Account Number">
</FORM>
is converted to these XSLT statements:
<form method="POST" name="checkoutform"><xsl:attribute name="action">thanks.xsl</xsl:attribute>
<input type="hidden" name="–db" value="Orders"/>
<input type="hidden" name="–lay" value="CGI"/>
<input type="text" size="50" name="Account Number"/>