Custom Web Publishing Guide

Table Of Contents
28 Custom Web Publishing Guide
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.
The <resultset> element contains all of 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.
Example of XML data in the fmresultset grammar
The following is an example of XML data generated with the fmresultset grammar.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE fmresultset PUBLIC "-//FMI//DTD fmresultset//EN" "/fmi/xml/fmresultset.dtd">
<fmresultset xmlns="http://www.filemaker.com/xml/fmresultset" version="1.0">
<error code="0"></error>
<product build="01/10/2004" name="FileMaker Web Publishing Engine" version="7.0v1" />
<datasource database="art" date-format="M/d/yyyy" layout="web" table="art" time-format="h:mm:ss a"
total-count="3" />
<metadata>
<field-definition auto-enter="no" global="no" max-repeat="1" name="Title" not-empty="no" result="text"
type="normal" />
<field-definition auto-enter="no" global="no" max-repeat="1" name="Artist" not-empty="no" result="text"
type="normal" />
<field-definition auto-enter="no" global="no" max-repeat="1" name="Image" not-empty="no" result="container"
type="normal" />
<field-definition auto-enter="no" global="no" max-repeat="2" name="Description" not-empty="no" result="text"
type="normal" />
<relatedset-definition table="artlocations">
<field-definition auto-enter="no" global="no" max-repeat="1" name="artlocations::Location"
not-empty="no" result="text" type="normal" />
<field-definition auto-enter="no" global="no" max-repeat="1" name="artlocations::Date" not-empty="no"
result="text" type="normal" />
</relatedset-definition>
<field-definition auto-enter="no" global="no" max-repeat="1" name="artistbio::birthdate" not-empty="no"
result="date" type="normal" />
</metadata>
<resultset count="1" fetch-size="1">
<record mod-id="5" record-id="1">
<field name="Title">
<data>Village Market</data>
</field>
<field name="Artist">
<data>Camille Pissarro</data>
</field>