source: icXML/icXML-devel/tests/src/XSTSHarness/regression/XERCESC-1817/test2.xsd @ 2726

Last change on this file since 2726 was 2726, checked in by cameron, 7 years ago

Add original Xerces tests and samples directories

File size: 1.4 KB
Line 
1<?xml version="1.0"?>
2<!-- =========================================================================
3Test Type : Schema Valid ( <element> )
4Description: Tests valid substitutionGroup= for <element>s with valid derived
5             <simpleType> definitions.
6========================================================================== -->
7<schema xmlns ="http://www.w3.org/2001/XMLSchema"
8        xmlns:sv ="http://www.schemaTest.org/m3_3v"
9        targetNamespace="http://www.schemaTest.org/m3_3v">
10
11<element name="Magazine" type="sv:strMin5" substitutionGroup="sv:Book"/>
12
13<element name="Book" type="string"/>
14
15<element name="Periodical" type="sv:strMin10" substitutionGroup="sv:Magazine"/>
16
17<element name="Newsletter" substitutionGroup="sv:Magazine">
18<simpleType>
19<restriction base="sv:strMin5">
20<minLength value="15"/>
21</restriction>
22</simpleType>
23</element>
24
25<simpleType name="strMin5">
26<restriction base="string">
27<minLength value="5"/>
28</restriction>
29</simpleType>
30
31<simpleType name="strMin10">
32<restriction base="sv:strMin5">
33<minLength value="10"/>
34</restriction>
35</simpleType>
36
37<element name="Library">
38<complexType>
39<sequence>
40<element ref="sv:Periodical"/>
41<element ref="sv:Magazine" minOccurs="3" maxOccurs="3"/>
42<element ref="sv:Book" minOccurs="4" maxOccurs="4"/>
43<element ref="sv:Newsletter"/>
44</sequence>
45</complexType>
46</element>
47
48</schema>
Note: See TracBrowser for help on using the repository browser.