Custom Web Publishing Guide

Table Of Contents
Developing FileMaker XSLT stylesheets 49
For example:
<data>/fmi/xsl/cnt/data.jpg?-db=products&-lay=sales&-field=product_image(1)&-recid=2</data>
Note In the generated XML for a container field, the value for the -field query parameter is a fully qualified
field name. The number in the parentheses indicates the repetition number for the container field, and is
generated for both repeating and non-repeating fields. See
“About the syntax for a fully qualified field
name” on page 77.
To retrieve the container data from the database, use the following syntax:
<scheme>://<host>[:<port>]/fmi/xsl/cnt/data.<extension>?<query string>
For information about <scheme>, <host>, or <port>, see the previous section, “About the URL syntax for
FileMaker XSLT stylesheets.”
For example:
http://www.company.com/fmi/xsl/cnt/data.jpg?-db=products&-lay=sales&-field=product_image(1)&-recid=2
1 If a container field stores a file reference instead of an actual object, then the container field’s <data>
element contains a relative path that refers to the object. For example, if logo.jpg was in the Web folder
inside the FileMaker Pro folder, the container field’s
<data> element is:
<data>/images/logo.jpg</data>
Note 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.
1 If a container field is empty, then the container field’s <data> element is empty.
Using query strings in FileMaker XSLT stylesheets
When using a query string in a URL or in the <?xslt-cwp-query?> processing instruction in a FileMaker XSLT
stylesheet, you can include any of the query commands and parameters that are defined for requesting XML
data from a FileMaker database. See
“Using FileMaker query strings to request XML data” on page 33.
You can also use the following query command and parameters that are defined for use only with FileMaker
XSLT stylesheets.
Use this XSLT
query command or
parameter name To Comment
–grammar Specify the XML grammar for XSLT-CWP requests or
for XSLT stylesheets. See the next section, “Specifying
an XML grammar for a FileMaker XSLT stylesheet.”
This query parameter is
required in all XSLT requests.
–encoding Specify the text encoding for a request. See “Setting text
encoding for requests” on page 52.
This query parameter is
optional in all XSLT requests.
–process Process a stylesheet without requesting data. See
“Processing XSLT requests that do not query FileMaker
Server” on page 53.
This query command requires
the –grammar query
parameter.
–token Pass values between pages without using sessions or
cookies. See “Using tokens to pass information between
stylesheets” on page 54.
This query parameter is
optional in all XSLT requests.