source: icXML/icXML-devel/tests/src/XSTSHarness/regression/XERCESC-1583/keyref-main.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: 852 bytes
Line 
1<?xml version="1.0"?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:main" xmlns="urn:main" xmlns:auto1="urn:imported">
3    <xsd:import schemaLocation="keyref-imported.xsd" namespace="urn:imported"/>
4    <xsd:element name="root">
5        <xsd:complexType>
6            <xsd:sequence maxOccurs="unbounded">
7                <xsd:element ref="auto1:items"/>
8            </xsd:sequence>
9            <xsd:attribute name="main" type="xsd:integer"/>
10        </xsd:complexType>
11        <xsd:unique name="noDuplicate">
12            <xsd:selector xpath="auto1:items"/>
13            <xsd:field xpath="@id"/>
14        </xsd:unique>
15        <xsd:keyref name="parent" refer="auto1:index">
16            <xsd:selector xpath="."/>
17            <xsd:field xpath="@main"/>
18        </xsd:keyref>
19    </xsd:element>
20</xsd:schema>
Note: See TracBrowser for help on using the repository browser.