source: icXML/icXML-devel/tests/src/XSTSHarness/regression/XERCESC-1745/b.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: 606 bytes
Line 
1<?xml version="1.0"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
3           xmlns:a="a" 
4           xmlns:b="b"   
5           targetNamespace="b">
6
7        <xs:import namespace="a" schemaLocation="a.xsd"/>
8       
9        <!-- If you change a:A to b:A, the error is detected. -->
10        <xs:simpleType name="B">
11          <xs:restriction base="a:A">
12            <xs:enumeration value="B"/>
13          </xs:restriction>
14        </xs:simpleType>
15       
16        <!-- If you change xs:string to b:B you will get the wrong diagnostics.
17             If you change xs:string to a:A you will get the correct diagnostics.
18        -->
19        <xs:element name="root" type="xs:string"/>
20                       
21</xs:schema>
Note: See TracBrowser for help on using the repository browser.