Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / enumeration_restriction2.xsd
CommitLineData
3abe9331 1<?xml version="1.0" encoding="UTF-8"?>
2<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
3 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4 targetNamespace="www.example.org/seq/enumeration/restriction"
5 xmlns:ns2="www.example.org/seq/enumeration/restriction"
6 elementFormDefault="unqualified">
7
8
9<xsd:complexType name="MatchingProblemType">
10 <xsd:sequence>
11 <xsd:element name="operation">
12 <xsd:simpleType>
13 <xsd:restriction base="string">
14 <xsd:enumeration value="receive" />
15 <xsd:enumeration value="trigger" />
16 <xsd:enumeration value="getcall" />
17 <xsd:enumeration value="getreply" />
18 <xsd:enumeration value="catch" />
19 <xsd:enumeration value="check" >
20 <annotation><documentation>Must be "any port"!</documentation></annotation>
21 </xsd:enumeration>
22 </xsd:restriction>
23 </xsd:simpleType>
24 </xsd:element>
25 </xsd:sequence>
26</xsd:complexType>
27
28<xsd:complexType name="MatchingProblemTypeRestricted">
29 <xsd:sequence>
30 <xsd:element name="operation">
31 <xsd:simpleType>
32 <xsd:restriction>
33 <xsd:simpleType>
34 <xsd:restriction base="xsd:string">
35 <xsd:enumeration value="white"/>
36 <xsd:enumeration value="black"/>
37 <xsd:enumeration value="red"/>
38 </xsd:restriction>
39 </xsd:simpleType>
40 <xsd:minLength value="2"/>
41 <xsd:maxLength value="4"/>
42 </xsd:restriction>
43 </xsd:simpleType>
44 </xsd:element>
45 </xsd:sequence>
46</xsd:complexType>
47
48
49
50</xsd:schema>
51
This page took 0.026553 seconds and 5 git commands to generate.