summaryrefslogtreecommitdiffstats
path: root/schemas/geopriv10.xml
blob: a4a402e81c13452671d5c4ee58b5b5375f18fdb7 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
  targetNamespace="urn:ietf:params:xml:ns:pidf:geopriv10"
  xmlns:tns="urn:ietf:params:xml:ns:pidf:geopriv10"
  xmlns:gbp="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:import namespace=
     "urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy" />

   <!-- This import brings in the XML language attribute xml:lang-->

   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
     schemaLocation="http://www.w3.org/2001/xml.xsd"/>

   <xs:element name="geopriv" type="tns:geopriv"/>

<xs:complexType name="geopriv">
 <xs:sequence>
   <xs:element name="location-info" type="tns:locInfoType"
      minOccurs="1" maxOccurs="1"/>
   <xs:element name="usage-rules" type="gbp:locPolicyType"
      minOccurs="1" maxOccurs="1"/>
   <xs:element name="method" type="tns:locMethod"
      minOccurs="0" maxOccurs="1"/>
   <xs:element name="provided-by" type="tns:locProvidedBy"
      minOccurs="0" maxOccurs="1"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0"
      maxOccurs="unbounded"/>
 </xs:sequence>
</xs:complexType>

<xs:complexType name="locInfoType">
 <xs:sequence>
   <xs:any namespace="##other" processContents="lax" minOccurs="0"
      maxOccurs="unbounded"/>
 </xs:sequence>
</xs:complexType>

<xs:complexType name="locMethod">
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute ref="xml:lang" />
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>

<xs:complexType name="locProvidedBy">
 <xs:sequence>
   <xs:any namespace="##other" processContents="skip"
      minOccurs="1" maxOccurs="unbounded"/>
 </xs:sequence>
</xs:complexType>

</xs:schema>
OpenPOWER on IntegriCloud