aboutsummaryrefslogtreecommitdiffstats
blob: a085ee37b95ece071824ea8db0bc38545ca3840d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:y="addressNamespace" xmlns:x="employeeNamespace" targetNamespace="employeeNamespace">
   <xsd:import schemaLocation="someExistingSchema.xsd" namespace="addressNamespace"/>
   <xsd:complexType name="employee-type">
      <xsd:sequence>
         <xsd:element name="firstName" type="xsd:string"/>
         <xsd:element name="birthday" type="xsd:date" minOccurs="0"/>
         <xsd:element name="age" type="xsd:int"/>
         <xsd:element name="lastName" type="xsd:string" minOccurs="0"/>
         <xsd:element name="address" type="y:address-type" minOccurs="0"/>
         <xsd:element name="startTime" type="xsd:time" minOccurs="0"/>
         <xsd:element name="responsibilities" minOccurs="0">
            <xsd:simpleType>
               <xsd:list itemType="xsd:string"/>
            </xsd:simpleType>
         </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="id" type="xsd:int" use="required"/>
   </xsd:complexType>
   <xsd:element name="employee-data" type="x:employee-type"/>
</xsd:schema>