Form Definition Schema |
Copy Code |
---|---|
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.Accusoft.com/FormDirector" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <!-- OtherDataItems --> <xs:element name="OtherDataItem"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="OtherDataItems"> <xs:complexType> <xs:sequence> <xs:element ref="for:OtherDataItem" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- Operations --> <xs:element name="Operation"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="Operations"> <xs:complexType> <xs:sequence> <xs:element ref="for:Operation" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- Fields --> <xs:element name="Construction"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="Field"> <xs:complexType> <xs:all> <xs:element ref="for:Construction" maxOccurs="1" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> <xs:element ref="for:Operations" maxOccurs="1" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> <xs:element ref="for:OtherDataItems" maxOccurs="1" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:all> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="X" type="xs:int" /> <xs:attribute name="Y" type="xs:int" /> <xs:attribute name="Width" type="xs:int" /> <xs:attribute name="Height" type="xs:int" /> </xs:complexType> </xs:element> <xs:element name="Fields"> <xs:complexType> <xs:sequence> <xs:element ref="for:Field" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- TemplateImages --> <xs:element name="TemplateImage"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="TemplateImages"> <xs:complexType> <xs:sequence> <xs:element ref="for:TemplateImage" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- FormOperations --> <xs:element name="FormOperation"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="FormOperations"> <xs:complexType> <xs:sequence> <xs:element ref="for:FormOperation" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- OtherFormItems --> <xs:element name="OtherFormItem"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name="OtherFormItems"> <xs:complexType> <xs:sequence> <xs:element ref="for:OtherFormItem" maxOccurs="unbounded" minOccurs="0" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:sequence> </xs:complexType> </xs:element> <!-- Document Structure --> <xs:element name="Form"> <xs:complexType> <xs:all> <xs:element ref="for:Fields" xmlns:for="http://www.Accusoft.com/FormDirector" /> <xs:element ref="for:TemplateImages" xmlns:for="http://www.Accusoft.com/FormDirector" /> <xs:element ref="for:FormOperations" xmlns:for="http://www.Accusoft.com/FormDirector" /> <xs:element ref="for:OtherFormItems" xmlns:for="http://www.Accusoft.com/FormDirector" /> </xs:all> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="Version" type="xs:string" /> </xs:complexType> </xs:element> </xs:schema> |