5543eb9de8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1824563 13f79535-47bb-0310-9956-ffa450edef68
39 lines
1.5 KiB
XML
Executable File
39 lines
1.5 KiB
XML
Executable File
<!--this is schema company.xsd stripped down and modified to have a value restriction on the employees age-->
|
|
|
|
<xsd:schema
|
|
targetNamespace="http://xbean.prePostFeature/ValueRestriction/company"
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:company="http://xbean.prePostFeature/ValueRestriction/company">
|
|
<xsd:element name="company" type="company:CompanyType"/>
|
|
<xsd:complexType name="CompanyType">
|
|
<xsd:sequence>
|
|
<xsd:element name="departments" type="company:DepartmentType" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
|
|
<xsd:anyAttribute namespace="http://www.omg.org/XMI" processContents="lax"/>
|
|
</xsd:complexType>
|
|
<xsd:element name="department" type="company:DepartmentType"/>
|
|
<xsd:complexType name="DepartmentType">
|
|
<xsd:sequence>
|
|
<xsd:element name="consultant" type="company:ConsultantType" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
<xsd:anyAttribute namespace="http://www.omg.org/XMI" processContents="lax"/>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="ConsultantType">
|
|
|
|
<xsd:attribute name="name" type="xsd:string"/>
|
|
<xsd:attribute name="age" type="company:age"/>
|
|
<xsd:anyAttribute namespace="http://www.omg.org/XMI" processContents="lax"/>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
|
<xsd:simpleType name="age">
|
|
<xsd:restriction base="xsd:integer">
|
|
<xsd:minInclusive value="0"/>
|
|
<xsd:maxInclusive value="100"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
|
|
</xsd:schema>
|