summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schemas/bug152470_1.xsd
blob: 7fc97477f99ac831fe258c699cbf15bd8f24f2a8 (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
<?xml version="1.0"?>
<schema 
  targetNamespace="urn:oma:bac:dldrm:roap-1.0"
  xmlns="http://www.w3.org/2001/XMLSchema"
  xmlns:roap="urn:oma:bac:dldrm:roap-1.0"
  xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
<!-- Basic Types -->
<complexType name="Request" abstract="true"/>
<!-- Basic types to identify entities -->

<complexType name="Identifier">
  <choice>
    <element name="keyIdentifier" type="roap:X509SPKIHash"/> <!-- was: type="roap:KeyIdentifier" -->
  </choice>
</complexType>

<complexType name="KeyIdentifier" /> <!-- removed: abstract="true" -->

<complexType name="X509SPKIHash">
  <complexContent>
    <extension base="roap:KeyIdentifier">
      <sequence>
        <element name="hash" type="base64Binary"/>
      </sequence>
      <attribute name="algorithm" type="anyURI"
                 default="http://www.w3.org/2000/09/xmldsig#sha1"/> 
    </extension>
  </complexContent>
</complexType>

<element name="deviceHello" type="roap:DeviceHello"/>

<complexType name="DeviceHello">
  <complexContent>
    <extension base="roap:Request">
      <sequence>
        <element name="deviceID" type="roap:Identifier"
                 maxOccurs="unbounded"/> 
      </sequence>
    </extension>
  </complexContent>
</complexType>

</schema>