2 Copyright (c) 2000-2015 Ericsson Telecom AB
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
9 <schema xmlns="http://www.w3.org/2001/XMLSchema"
10 xmlns:r3="www.XmlTest.org/complex_unique"
11 targetNamespace="www.XmlTest.org/complex_unique"
12 elementFormDefault="qualified">
14 <documentation xml:lang="en">
15 This documentum tests based on
16 XML Schema Part 0: Primer Second Edition
17 5 Advanced Concepts III. The Quantity Report
18 5.1 Specifying Uniqueness
19 XML Schema Part 1: Structures Second Edition
20 3.11.2 XML Representation of Identity-constraint Definition Schema Components
24 <element name="purchaseReport">
27 <element name="regions" type="r3:RegionsType"/>
29 <element name="parts" type="r3:PartsType"/>
31 <attribute name="period" type="duration"/>
32 <attribute name="periodEnding" type="date"/>
35 <unique name="dummy1">
36 <selector xpath="r3:regions/r3:zip"/>
37 <field xpath="@code"/>
41 <selector xpath="r3:parts/r3:part"/>
42 <field xpath="@number"/>
45 <keyref name="dummy2" refer="r3:pNumKey">
46 <selector xpath="r3:regions/r3:zip/r3:part"/>
47 <field xpath="@number"/>
52 <complexType name="RegionsType">
54 <element name="zip" maxOccurs="unbounded">
57 <element name="part" maxOccurs="unbounded">
60 <restriction base="anyType">
61 <attribute name="number" type="string"/>
62 <attribute name="quantity" type="positiveInteger"/>
68 <attribute name="code" type="positiveInteger"/>
74 <complexType name="PartsType">
76 <element name="part" maxOccurs="unbounded">
79 <extension base="string">
80 <attribute name="number" type="string"/>