Custom Web Publishing with XML and XSLT

Table Of Contents
Chapter 6
|
Developing FileMaker XSLT stylesheets 53
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 54, 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 55.
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 88.
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.”
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 89.
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