blob: a2087825aa784534d20af39dc53ffa6c3c330b32 [file] [log] [blame]
Florian Thienel02f9c722011-08-18 20:56:54 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
chi5660b2f2013-06-21 22:06:44 +02003 Copyright (c) 2011, 2013 Florian Thienel and others.
Florian Thienel02f9c722011-08-18 20:56:54 +02004 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:
chi5660b2f2013-06-21 22:06:44 +020010 Florian Thienel - initial creation
11 Carsten Hiesserich - modifications for attribute tests
Florian Thienel02f9c722011-08-18 20:56:54 +020012-->
chi5660b2f2013-06-21 22:06:44 +020013<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 Thienel02f9c722011-08-18 20:56:54 +020017
18 <xs:complexType name="ChapterType">
19 <xs:sequence>
chi5660b2f2013-06-21 22:06:44 +020020 <xs:element name="title" type="xs:string" minOccurs="0"
21 maxOccurs="1" />
Florian Thienel02f9c722011-08-18 20:56:54 +020022 <xs:choice>
chi5660b2f2013-06-21 22:06:44 +020023 <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 Thienel02f9c722011-08-18 20:56:54 +020028 </xs:choice>
29 </xs:sequence>
chi5660b2f2013-06-21 22:06:44 +020030 <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 Thienel02f9c722011-08-18 20:56:54 +020042 </xs:complexType>
chi5660b2f2013-06-21 22:06:44 +020043
Florian Thienel02f9c722011-08-18 20:56:54 +020044 <xs:element name="chapter" type="ChapterType"/>
45
46</xs:schema>