Custom Web Publishing Guide

Table Of Contents
Introduction to Custom Web Publishing with XSLT 45
1 If the converted XSLT stylesheets include a FileMaker date or time extension function, such as
fmxslt:get_date(), then the function uses the configured locale for FileMaker Server. See “Using the date,
time, and day extension functions” on page 66. After conversion, you must manually change and localize
date and time formatting strings that are passed to these functions, such as changing Month/Day/Year to
Day/Month/Year.
Using the CDML Converter’s generated stylesheets
After fixing the errors in the converted XSLT stylesheets, you can use them with the Web Publishing Engine.
See the following section, “Using FileMaker XSLT stylesheets in a web site or program.”
Testing the CDML Converter’s generated stylesheets
You should thoroughly test the converted XSLT stylesheets before using them in a production environment.
See chapter 6, “Testing and monitoring a site.”
Using FileMaker XSLT stylesheets in a web site or program
Whether you have used the Site Assistant or the CDML Converter to generate XSLT stylesheets, or you have
created your own stylesheets from scratch, the steps for using them in a web site or program with the Web
Publishing Engine are the same.
To use FileMaker XSLT stylesheets in a web site or program:
1. Copy or place the XSLT stylesheets in the xslt-template-files folder, which is located inside the Web
Publishing folder inside the FileMaker Server 7 folder on the host where the Web Publishing Engine is
installed.
You can also place the stylesheets in an optional folder or folder hierarchy inside the xslt-template-files
folder.
2. If your XSLT stylesheets reference static files, such as static images or HTML files, place the static files in
their original folder hierarchy within the root folder on the web server. Make sure the relative path is
preserved.
For example, suppose an XSLT stylesheet references an image file called logo.jpg by using the HTML tag
<img src="logo.jpg">. The logo.jpg file must be located in the following location on the web server:
<root folder>/fmi/xsl/logo.jpg
3. If a database container field stores a file reference instead of an actual file, then the referenced container
object must be stored in the FileMaker Pro Web folder when the record is created or edited, and then copied
or moved to a folder with the same relative location in the root folder of the web server software. See
“About
publishing the contents of container fields on the web” on page 19.
Note If the container fields store the actual files in the FileMaker database, then you don’t need to do
anything with the container field contents if the database file is properly hosted and accessible on FileMaker
Server.
4. To request and process an XSLT stylesheet, use the following URL syntax:
<scheme>://<host>[:<port>]/fmi/xsl/<folder>/<stylesheet>.xsl[?<query string>]
See “About the URL syntax for FileMaker XSLT stylesheets” on page 48.