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