sdo_company.xsd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema targetNamespace="company.xsd"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xmlns:company="company.xsd"
  6. xmlns:sdo="commonj.sdo"
  7. >
  8. <xsd:element name="company" type="company:CompanyType"/>
  9. <xsd:complexType name="CompanyType">
  10. <xsd:sequence>
  11. <xsd:element name="departments" type="company:DepartmentType"
  12. minOccurs="0" maxOccurs="unbounded"/>
  13. <xsd:element name="changes" type="sdo:ChangeSummary" />
  14. </xsd:sequence>
  15. <xsd:attribute name="name" type="xsd:string" use="optional"/>
  16. <xsd:attribute name="employeeOfTheMonth" type="xsd:string" use="optional"/>
  17. </xsd:complexType>
  18. <xsd:complexType name="DepartmentType">
  19. <xsd:sequence>
  20. <xsd:element name="employees" type="company:EmployeeType"
  21. minOccurs="0" maxOccurs="unbounded"/>
  22. </xsd:sequence>
  23. <xsd:attribute name="name" type="xsd:string" use="optional"/>
  24. <xsd:attribute name="location" type="xsd:string" use="optional"/>
  25. <xsd:attribute name="number" type="xsd:int" use="optional"/>
  26. </xsd:complexType>
  27. <xsd:complexType name="EmployeeType">
  28. <xsd:attribute name="name" type="xsd:string" use="optional"/>
  29. <xsd:attribute name="SN" type="xsd:ID" use="optional"/>
  30. <xsd:attribute name="manager" type="xsd:boolean" use="optional"/>
  31. </xsd:complexType>
  32. </xsd:schema>