summaryrefslogtreecommitdiffstats
path: root/XQTS/TestSources/examples2.xsd
blob: e76a5a77afa0ef41713c1e358869fb6074c9077e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<xs:schema
   xmlns:xs = "http://www.w3.org/2001/XMLSchema"
   xmlns:examples = "http://www.w3.org/XQueryTest/someExamples2" 
   targetNamespace = "http://www.w3.org/XQueryTest/someExamples2" 
   elementFormDefault = "qualified">
   
  <xs:attribute name="attr" type="xs:string" />

  <xs:element name = "E6-Root">
   <xs:complexType>
    <xs:sequence>
     <xs:element name="E6" type = "examples:weather"/>   
    </xs:sequence>
   </xs:complexType>
  </xs:element>

  <xs:complexType name="weather">
   <xs:sequence>
    <xs:element name="temperature" type= "xs:string"/>   
    <xs:element name="precipitation" type = "xs:string"/>
   </xs:sequence>
  </xs:complexType>  
</xs:schema>