Custom Web Publishing Guide

Table Of Contents
36 Custom Web Publishing Guide
query parameters, which prevent the use of unauthorized query commands and query parameters, such as
database names. See
chapter 4, “Introduction to Custom Web Publishing with XSLT” and chapter 5,
“Developing FileMaker XSLT stylesheets.”
If your solution requires client-side stylesheet processing, you can have the Web Publishing Engine generate
an XML stylesheet processing instruction with each grammar by including the –styletype and –stylehref
parameters in the FileMaker query string request. You can use cascading stylesheets (CSS) or XSLT
stylesheets for displaying your XML document.
1 The –styletype parameter is used for setting the value of the type attribute (type=text/css or type=text/xsl).
1 The –stylehref parameter is used for setting the value of the HREF attribute that specifies the location of the
stylesheet using an absolute path. For example: href=/mystylesheet.css or href=/stylesheets/
mystylesheet.xsl. The name of the stylesheet can be any name but it must contain an extension of either .css
or .xsl.
Here is an example of a FileMaker query string that generates client-side stylesheet processing:
http://localhost/fmi/xml/fmresultset.xml?-db=products-lay=sales&-findall&-styletype=text/xsl
&-stylehref=/mystylesheet.xsl
Note This “/” in “-stylehref=/document.xsl” in this example is used because the stylesheet is located in the
root folder of the web server software. Use a URL for the stylesheet that uses an absolute path to specify its
location on the web server. The stylesheet can also be located on another web server.
Based on this request, the Web Publishing Engine will include the following processing instruction in the
XML document:
<?xml-stylesheet type="text/xsl" href="/mystylesheet.xsl"?>
Copy or place the stylesheet for client-side processing on the web server in the location specified by the
absolute path in the URL for the HREF attribute.
Important Do not place stylesheets for client-side processing inside the xslt-template-files folder, which is used
for server-side processing of XSLT stylesheets. See
“Using FileMaker XSLT stylesheets in a web site or
program” on page 45.
Note Some web browsers do not support client-side processing. For information, see the documentation for
your web browser.
Troubleshooting XML document access
If you have trouble accessing XML documents with the Web Publishing Engine, verify that:
1 The extended privileges in the database are set for XML Custom Web Publishing and assigned to a user
account. See
“Enabling Custom Web Publishing in a database” on page 17.
1 The database is hosted and opened by FileMaker Server. See FileMaker Server Administration Help.
1 The database account name and password you are using, if any, are correct.
1 The web server and the Web Publishing Engine are running.
1 XML Publishing is enabled in the Web Publishing Engine. See the FileMaker Server Advanced Web
Publishing Installation Guide
.