<xs:complexType name="BindType">
<xs:sequence>
<xs:element name="valueset" type="ValuesetType" minOccurs="0" maxOccurs="1"/>
<xs:element name="property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="target" type="xr:XPathExpression" use="required"/>
<!-- TODO: not implemented yet
<xs:attribute name="value" type="xr:XPathExpression" use="optional" />
-->
<xs:attribute name="type" type="xs:QName" use="optional"/>
<xs:attribute name="min" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="max" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="minLength" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="maxLength" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="minOccurs" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="maxOccurs" type="xr:XPathExpression" use="optional"/>
<!-- TODO: implement static minOccurs and maxOccurs
<xs:attribute name="minOccurs" type="xs:nonNegativeInteger" use="optional" default="1" />
<xs:attribute name="maxOccurs" type="xr:allNNI" use="optional" default="unbounded" />
-->
<xs:attribute name="regex" type="xr:XPathExpression" use="optional"/>
<xs:attribute name="enabled" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="errorMessage" type="xr:StringWithEmbededXPath" use="optional"/>
<!-- TODO: not implemented yet
<xs:attribute name="errorMessage.value" type="xr:StringWithEmbededXPath" use="optional" />
-->
<xs:attribute name="errorMessage.type" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.min" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.max" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.minLength" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.maxLength" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.minOccurs" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.maxOccurs" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:attribute name="errorMessage.regex" type="xr:StringWithEmbededXPath" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType> |