summaryrefslogtreecommitdiffstats
path: root/tags/java-stable-20060304/sdo/tools/src/test/resources/enum.xsd
blob: 4cbde32849f16b1eb371113921e881aa5d9201a0 (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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema 
  targetNamespace="http://www.example.com/simple"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:simple="http://www.example.com/simple"> 
  
   <xsd:element name="stockQuote" type="simple:Quote"/>
   
   <xsd:simpleType name="PriceClass">
       <xsd:restriction base="xsd:string">
           <xsd:enumeration value="Large"/>
           <xsd:enumeration value="Medium"/>
           <xsd:enumeration value="Small"/>
       </xsd:restriction>
   </xsd:simpleType>
   
   <xsd:complexType name="Quote">
       <xsd:sequence>
          <xsd:element name="symbol" type="xsd:string"/>
          <xsd:element name="companyName" type="xsd:string"/>
          <xsd:element name="priceClass" type="simple:PriceClass"/>
          <xsd:element name="price" type="xsd:decimal"/>
          <xsd:element name="open1" type="xsd:decimal"/>
          <xsd:element name="high" type="xsd:decimal"/>
          <xsd:element name="low" type="xsd:decimal"/>
          <xsd:element name="volume" type="xsd:double"/>
          <xsd:element name="change1" type="xsd:double"/>
          <xsd:element name="quotes" type="simple:Quote" minOccurs="0" maxOccurs="unbounded"/>
       </xsd:sequence>
   </xsd:complexType>

</xsd:schema>