Custom Web Publishing with XML and XSLT

Table Of Contents
Chapter 7
|
Staging, testing, and monitoring a site 83
Examples of stylesheets for testing XML output
Here are two examples of XSLT stylesheets that are useful for testing XML output.
1 The following stylesheet example outputs the requested XML data without doing any transformation.
This stylesheet is useful for displaying the actual XML data that the Web Publishing Engine is using.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fmrs="http://www.filemaker.com/xml/fmresultset">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
1 When debugging a stylesheet, you can use the following example of an HTML <textarea> tag to display the
XML source document that was accessed via the stylesheet in a scrolling text area. On the same page, you
can compare the transformed XSLT results against the XML source document before the transformation.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fmrs="http://www.filemaker.com/xml/fmresultset">
<xsl:output method="html"/>
<html>
<body>
<xsl:template match="/fmrs:fmresultset">
<textarea rows="20" cols="100">
<xsl:copy-of select="."/>
</textarea><br/>
</xsl:template>
</body>
</html>
</xsl:stylesheet>
Monitoring your site
You can use the following types of log files to monitor your Custom Web Publishing site and gather
information about web users who visit your site:
1 Web server access and error logs
1 Web Publishing Engine application log
1 Web Server Module error log
1 Web Publishing Core internal access logs