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
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">
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
25 <complexType name="MySubjects5">
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"/>
32 <attribute name="Year" type="gYear"/>
35 <complexType name="MySubjects5Restriction">
37 <restriction base="ns:MySubjects5">
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"/>