Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_xsds / XmlTest_complex_restriction.xsd
1 <!--
2 Copyright (c) 2000-2015 Ericsson Telecom AB
3
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <schema xmlns="http://www.w3.org/2001/XMLSchema"
10 xmlns:ns36="www.XmlTest.org/complex_restriction"
11 targetNamespace="www.XmlTest.org/complex_restriction">
12 <annotation>
13 <documentation xml:lang="en">
14 This documentum tests based on
15 XML Schema Part 0: Primer Second Edition
16 4.4 Deriving Types by Restriction
17 XML Schema Part 1: Structures Secod Edition
18 3.4.2 XML Representation of Complex Type Definitions
19 </documentation>
20 </annotation>
21
22 <complexType name="MySubjects4">
23 <sequence>
24 <element name="English" type="string" minOccurs="0"/>
25 <element name="Math" type="string" minOccurs="0" />
26 <element name="Physics" type="string" minOccurs="0" maxOccurs="3"/>
27 <element name="Chemistry" type="string" minOccurs="0"/>
28 </sequence>
29 <attribute name="Year" type="gYear"/>
30 </complexType>
31
32 <complexType name="MySubjects4Restriction">
33 <complexContent>
34 <restriction base="ns36:MySubjects4">
35 <sequence>
36 <element name="English" type="string" minOccurs="1"/>
37 <element name="Math" type="string" minOccurs="1"/>
38 <element name="Physics" type="string" minOccurs="1" maxOccurs="2"/>
39 </sequence>
40 </restriction>
41 </complexContent>
42 </complexType>
43
44 </schema>
This page took 0.073601 seconds and 5 git commands to generate.