| 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:ns="www.XmlTest.org/element_abstract" |
| 11 | targetNamespace="www.XmlTest.org/element_abstract"> |
| 12 | <annotation> |
| 13 | <documentation xml:lang="en"> |
| 14 | This documentum tests based on |
| 15 | XML Schema Part 0: Primer Second Edition |
| 16 | 4.7 Abstract Elements and Types |
| 17 | </documentation> |
| 18 | </annotation> |
| 19 | |
| 20 | <element name="Vehicle" type="string" abstract="true"/> |
| 21 | |
| 22 | <element name="Car" type="string" substitutionGroup="ns:Vehicle"/> |
| 23 | <element name="Plane" type="string" substitutionGroup="ns:Vehicle"/> |
| 24 | <element name="Truck" type="string" substitutionGroup="ns:Vehicle"/> |
| 25 | |
| 26 | <element name="VehicleData"> |
| 27 | <complexType> |
| 28 | <sequence> |
| 29 | <element name="ID" type="string"/> |
| 30 | <element ref="ns:Vehicle"/> |
| 31 | <element name="YearOfProduction" type="string"/> |
| 32 | </sequence> |
| 33 | </complexType> |
| 34 | </element> |
| 35 | |
| 36 | </schema> |