File: issue_259-1.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (65 lines) | stat: -rw-r--r-- 2,422 bytes parent folder | download | duplicates (3)
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
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  elementFormDefault="qualified"
  vc:minVersion="1.1">

  <xs:complexType name="ConfigurationType">
    <xs:all>
      <xs:element name="DefaultProt1" type="ProtocolDefault" minOccurs="0" maxOccurs="1"/>
      <xs:element name="DefaultProt2" type="ProtocolDefault" minOccurs="0" maxOccurs="1"/>
      <!-- More elements -->
      <xs:element name="DefaultProt13" type="ProtocolDefault" minOccurs="0" maxOccurs="1"/>
      <xs:element name="connectionChannel" type="connectionChannel" maxOccurs="1" >
        <xs:unique name="redChannelNameUniqueness">
          <xs:selector xpath="redChannel"/>
          <xs:field xpath="@name"/>
        </xs:unique>
      </xs:element>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="connectionChannel">
    <xs:all>
      <xs:element name="Prot1" type="Protocol" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Prot2" type="Protocol" minOccurs="0" maxOccurs="1"/>
      <!-- More elements -->
      <xs:element name="Prot13" type="Protocol" minOccurs="0" maxOccurs="1"/>
      <xs:element name="redChannel" type="redChannelType" minOccurs="1" maxOccurs="8"/>
    </xs:all>
    <xs:attribute name="name" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1"/>
          <xs:maxLength value="63"/>
          <xs:pattern value="([a-zA-Z0-9\._\-])*"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>


  <xs:element name="Configuration" type="ConfigurationType">
    <xs:unique name="connectionChannelNameUniqueness">
      <xs:selector xpath="connectionChannel"/>
      <xs:field xpath="@name"/>
    </xs:unique>
  </xs:element>


  <xs:complexType name="redChannelType">
    <xs:attribute name="name" use="required" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="ProtocolDefault">
  <xs:attribute name="interfaceIdentifier" use="optional" type="xs:unsignedByte"/>
  <xs:attribute name="outgoingDirectionIdentifier" use="optional" type="xs:unsignedByte"/>
</xs:complexType>

  <xs:complexType name="Protocol">
  <xs:attribute name="interfaceIdentifier" use="optional" type="xs:unsignedByte"/>
  <xs:attribute name="outgoingDirectionIdentifier" use="optional" type="xs:unsignedByte"/>
</xs:complexType>

</xs:schema>