2.2.1.2.42 documentSchema

The documentSchema element specifies an XML schema for the form template. The specified XML schema MUST be defined by an XML schema document in the form template (.xsn) file.

Parent Elements

documentSchemas

Attributes:

location: This attribute specifies the XML schema location as either only the name of the XML schema document or both the XML schema namespace and the name of the XML schema document, separated by a space. The specified name of the XML schema document MUST match the name of the corresponding file in the form template (.xsn) file. If the XML schema namespace is specified, it MUST match the namespace specified by the value attribute of the corresponding property element (section 2.2.1.2.81) where the name attribute is "namespace". All XML schema documents in the form template MUST use different namespaces.

rootSchema: This attribute specifies whether an XML schema is the top-level XML schema for form files associated with this form template. There MUST be exactly one documentSchema element with a rootSchema value of "yes" in a form template. If this attribute is not present, its value MUST be interpreted as "no".

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="documentSchema">
   <xsd:complexType>
     <xsd:attribute name="location" type="xsd:string" use="required"/>
     <xsd:attribute name="rootSchema" type="xsf:xdYesNo"/>
   </xsd:complexType>
 </xsd:element>