Custom Web Publishing Guide

Table Of Contents
100 Custom Web Publishing Guide
1 inserts the following declarations for the namespaces, XSLT parameters, and variables that are used in a
stylesheet. The declarations are inserted before and after the converted XSLT-CWP statements:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fmrs="http://www.filemaker.com/xml/fmresultset"
xmlns:fml="http://www.filemaker.com/fmpxmllayout"
xmlns:fmq="http://www.filemaker.com/xml/query"
xmlns:fmxslt="xalan://com.fmi.xslt.ExtensionFunctions"
xmlns:xalan="http://xml.apache.org/xalan"
exclude-result-prefixes="xsl fmrs fml fmq fmxslt xalan">
<xsl:param name="authenticated-xml-base-uri"/>
<xsl:param name="request-query"/>
<xsl:variable name="layout" select="document(concat($authenticated-xml-base-uri,
'/fmi/xml/FMPXMLLAYOUT.xml?','-db=', /fmrs:fmresultset/fmrs:database/@name,'&amp;
-lay=', /fmrs:fmresultset/fmrs:database/@layout, '&amp;-view='))"/>
<xsl:variable name="current-find"><xsl:call-template name="get-current-find"/></xsl:variable>
<xsl:variable name="current-sort"><xsl:call-template name="get-current-sort"/></xsl:variable>
<xsl:variable name="current-action"><xsl:call-template name="get-current-action"/></xsl:variable>
<xsl:variable name="current-lop"><xsl:call-template name="get-current-lop"/></xsl:variable>
<xsl:variable name="current-max"><xsl:call-template name="get-current-max"/></xsl:variable>
<xsl:variable name="current-skip"><xsl:call-template name="get-current-skip"/></xsl:variable>
<xsl:include href="cdml2xsl_utilities.xsl"/>
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="/fmrs:fmresultset">
... the XSLT-CWP statements that were converted from CDML/HTML are inserted here ...
</xsl:template>
</xsl:stylesheet>
For all Standard Generalized Markup Language (SGML) input files, including XML and HTML files, the
CDML Converter inserts line breaks where appropriate and indents nested elements. The CDML Converter
also converts the files into well-formed XML documents by doing the following:
1 inserts missing end-tags immediately before the parent element’s end tag, except for the following empty
HTML elements which are terminated as shown inside HTML-type documents: <area />, <base />,
<basefont />, <br />, <col />, <frame />, <hr />, <img />, <input />, <isindex />, <link />, <meta />, <param />
1 fixes all end-tags to be nested correctly
1 changes all element and attribute names to lowercase, but does not change attribute values
1 verifies that all attribute values are surrounded by double quotation marks
1 assigns a missing attribute value with the attribute name, such as attribute_name="attribute_name"