Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 3 | Copyright (c) 2011, 2013 Florian Thienel and others. |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 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 | Contributors: |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 10 | Florian Thienel - initial creation |
| 11 | Carsten Hiesserich - modifications for attribute tests |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 12 | --> |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 13 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.eclipse.org/vex/test/structure" xmlns="http://www.eclipse.org/vex/test/structure" xmlns:ns1="http://www.eclipse.org/vex/test/test_ns1" elementFormDefault="qualified"> |
| 14 | |
| 15 | |
| 16 | <xs:import schemaLocation="test_ns1.xsd" namespace="http://www.eclipse.org/vex/test/test_ns1"></xs:import> |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 17 | |
| 18 | <xs:complexType name="ChapterType"> |
| 19 | <xs:sequence> |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 20 | <xs:element name="title" type="xs:string" minOccurs="0" |
| 21 | maxOccurs="1" /> |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 22 | <xs:choice> |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 23 | <xs:element ref="chapter" minOccurs="0" |
| 24 | maxOccurs="unbounded" /> |
| 25 | <xs:any |
| 26 | namespace="http://www.eclipse.org/vex/test/content" |
| 27 | processContents="strict" minOccurs="0" maxOccurs="unbounded" /> |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 28 | </xs:choice> |
| 29 | </xs:sequence> |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 30 | <xs:attribute name="name" type="xs:string"></xs:attribute> |
| 31 | <xs:attribute name="enatt" default="value1"> |
| 32 | <xs:simpleType> |
| 33 | <xs:restriction base="xs:token"> |
| 34 | <xs:enumeration value="value1" /> |
| 35 | <xs:enumeration value="value2" /> |
| 36 | <xs:enumeration value="value3" /> |
| 37 | </xs:restriction> |
| 38 | </xs:simpleType> |
| 39 | </xs:attribute> |
| 40 | <xs:attribute ref="ns1:att1"></xs:attribute> |
| 41 | <xs:attribute name="reqatt" type="xs:string" use="required"></xs:attribute> |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 42 | </xs:complexType> |
chi | 5660b2f | 2013-06-21 22:06:44 +0200 | [diff] [blame^] | 43 | |
Florian Thienel | 02f9c72 | 2011-08-18 20:56:54 +0200 | [diff] [blame] | 44 | <xs:element name="chapter" type="ChapterType"/> |
| 45 | |
| 46 | </xs:schema> |