File: sample_types.xsd

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (60 lines) | stat: -rw-r--r-- 2,155 bytes parent folder | download | duplicates (10)
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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.test.org/sample_types"
            xmlns:tns="http://www.test.org/sample_types"
            xmlns:soap-enc="http://www.w3.org/2001/09/soap-encoding"
	    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  
  <!-- 
    These will cause errors in generation but are necessary for an XML schema validator
    like IBM Schema Quality Checker 

    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
                schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
    <xsd:import namespace="http://www.w3.org/2001/09/soap-encoding"
                schemaLocation="http://www.w3.org/2001/09/soap-encoding"/>
  -->

  <xsd:simpleType name="StringPatternType">
   <xsd:restriction base="xsd:string">
     <xsd:pattern value="[A-Z]*"/>
   </xsd:restriction>
  </xsd:simpleType>

  <xsd:group name="StringIntGroup">
    <xsd:sequence>
      <xsd:element name="stringMember" type="xsd:string"/>
      <xsd:element name="intMember" type="xsd:int"/>
    </xsd:sequence>
  </xsd:group>
  
  <xsd:complexType name="ArrayOfString">
    <xsd:complexContent>
      <xsd:restriction base="soap-enc:Array">
        <xsd:sequence>
          <xsd:element name="stringElement" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attributeGroup ref="soap-enc:arrayAttributes"/>
        <xsd:attributeGroup ref="soap-enc:commonAttributes"/>
      </xsd:restriction>
    </xsd:complexContent>
  </xsd:complexType> 

  <xsd:complexType name="ExtensibilityType">
      <xsd:sequence>
          <xsd:any namespace="##any" minOccurs="0"/>
      </xsd:sequence>
  </xsd:complexType>


  <xsd:complexType name="SampleType">
    <xsd:sequence>
      <xsd:group ref="tns:StringIntGroup"/>
      <xsd:element name="pattern" type="tns:StringPatternType"/>
      <!-- Will cause error already in generation --> 
      <xsd:element name="uri" type="xsd:anyURI"/> 
      <xsd:element name="strings" type="tns:ArrayOfString"/>
      <xsd:element name="extension" type="tns:ExtensibilityType"/>
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>