Custom Web Publishing with XML and XSLT

Table Of Contents
32 FileMaker Server Custom Web Publishing with XML and XSLT
<metadata> element
The <metadata> element of the fmresultset grammar contains one or more <field-definition> and
<relatedset-definition> elements, each containing attributes for one of the fields of the result set.
The <field-definition> attributes specify:
1 whether the field is an auto-enter field (“yes” or “no”)
1 whether the field is a four-digit-year field (“yes” or “no)
1 whether it is a global field (“yes” or “no”)
1 the maximum number of repeating values (max-repeat attribute)
1 the maximum number of characters allowed (max-characters attribute)
1 whether it is a not-empty field (“yes” or “no”)
1 whether it is for numeric data only (“yes” or “no”)
1 result (“text”, “number”, “date”, “time”, “timestamp”, or “container”)
1 whether it is a time-of-day field (“yes” or “no”)
1 type (“normal”, “calculation”, or “summary”)
1 and the field name (fully qualified as necessary)
The <relatedset-definition> element represents a portal. Each related field in a portal is represented by the
<field-definition> element contained within the <relatedset-definition> element. If there are multiple related fields
in a portal, the field definitions for the related fields are grouped within a single <relatedset-definition> element.
<resultset> element
The <resultset> element contains the <record> elements returned as the result of a query and an attribute for
the total number of records found. Each <record> element contains the field data for one record in the result
set—including the mod-id and the record-id attributes for the record, and the <data> element containing the
data for one field in the record.
Each record in a portal is represented by a <record> element within the <relatedset> element. The count
attribute of the <relatedset> element specifies the number of records in the portal, and the table attribute
specifies the table associated with the portal.