Custom Web Publishing Guide

Table Of Contents
70 Custom Web Publishing Guide
The following examples show how date and time patterns are interpreted in the U.S. locale. The given date
and time are 2001-07-04 12:08:56 local time in the U.S. Pacific Time time zone.
Copyright 2003 Sun Microsystems, Inc. Reprinted with permission.
Checking the error status of extension functions
You can use the following extension function within an XSLT stylesheet to check the current error status of
the most recently called FileMaker XSLT extension function and handle errors that occur during the
processing of your pages:
fmxslt:check_error_status()
When the fmxslt:check_error_status() function is called, the Web Publishing Engine returns the current error
code value for the most recently called function as a Number type, and then resets the error status to 0 (“No
Error”). For information on the error code values, see
“Error code numbers for the FileMaker XSLT extension
functions” on page 97.
Using logging
You can use the standard XSLT <xsl:message> element to write log entries to the Web Publishing Engine
application log file. See
“Using the Web Publishing Engine application log” on page 73.
Date and Time Pattern Result
"yyyy.MM.dd G 'at' HH:mm:ss z" 2001.07.04 AD at 12:08:56 PDT
"EEE, MMM d, ' 'yy" Wed, Jul 4, '01
"h:mm a" 12:08 PM
"hh 'o' 'clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time
"K:mm a, z" 0:08 PM, PDT
"yyyyy.MMMMM.dd GGG hh:mm aaa" 02001.July.04 AD 12:08 PM
"EEE, d MMM yyyy HH:mm:ss Z" Wed, 4 Jul 2001 12:08:56 -0700
"yyMMddHHmmssZ" 010704120856-0700