Custom Web Publishing Guide

Table Of Contents
48 Custom Web Publishing Guide
About the FileMaker XSLT Extension Function Reference
The FileMaker Server Advanced CD includes a FileMaker database called XSLT Reference.fp7 that contains
brief descriptions and examples of each of the FileMaker XSLT extension functions. You can open the
FileMaker XSLT Extension Function Reference in the Custom Web Publishing Reference folder on the
FileMaker Server Advanced CD.
About the URL syntax for FileMaker XSLT stylesheets
The URL syntax for using FileMaker XSLT stylesheets with the Web Publishing Engine is:
<scheme>://<host>[:<port>]/fmi/xsl/[<path>/]<stylesheet.xsl>[?<query string>]
where:
1 <scheme> can be the HTTP or HTTPS protocol.
1 <host> is the IP address or domain name of the host where the web server is installed.
1 <port> is optional and specifies the port that the web server is using. If no port is specified, then the default
port for the protocol is used (port 80 for HTTP, or port 443 for HTTPS).
1 <path> is optional and specifies the folder(s) inside the xslt-template-files folder where the XSLT stylesheet
is located.
1 <stylesheet.xsl> is the XSLT stylesheet filename.
1 <query string> can be a combination of one query command and one or more query parameters for Custom
Web Publishing with XSLT. See
“Using query strings in FileMaker XSLT stylesheets” on page 49, and
appendix A, “Valid names used in query strings.” If the specified stylesheet includes a <?xslt-cwp-query ?>
processing instruction, the statically defined query command and parameters take precedence over any
matching query command or parameters in the URL query string. See
“Using statically defined query
commands and query parameters” on page 51.
Note The URL syntax, including the names of the query command and parameters, is case sensitive except
for portions of the query string. The majority of the URL is in lowercase, with the exception of the uppercase
grammar names FMPXMLRESULT and FMPXMLLAYOUT. For information on the rules for case
sensitivity of the query string, see
“Guidelines for using query commands and parameters” on page 76.
Here is an example of a URL for using a FileMaker XSLT stylesheet with the Web Publishing Engine:
http://192.168.123.101/fmi/xsl/my_template/my_stylesheet.xsl?-grammar=fmresultset&-db=mydatabase
&-lay=mylayout&-findall
About the URL syntax for FileMaker container objects in XSLT solutions
In a generated XML document for an XSLT solution, the syntax used to refer to a container object is different
for container fields that store the actual object in the database, as opposed to container fields that store a
reference to the object.
1 If a container field stores the actual object in the database, then the container field’s <data> element uses the
following URL syntax to refer to the object:
<data>/fmi/xsl/cnt/data.<extension>?<query string></data>
where <extension> is the filename extension identifying the type of object, such as .jpg or .mov. For
information on
<query string>, see the previous section, “About the URL syntax for FileMaker XSLT
stylesheets.”