summaryrefslogtreecommitdiffstats
path: root/Schemas/ComponentLibrary.xsd
blob: fbd70af2c5e29da2ad18598d1c09d64efb208ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="W3cXmlAttributes.xsd"/>
    <xs:include schemaLocation="ComponentTypeSet.xsd"/>
    <xs:element name="ComponentLibrary" type="ComponentTypeSetType">
        <xs:key name="ComponentTypeUniqueness">
            <xs:selector xpath=".//ComponentType"/>
            <xs:field xpath="@Name"/>
        </xs:key>
        <xs:keyref name="ComponentTypeNotFound" refer="ComponentTypeUniqueness">
            <xs:selector xpath=".//ComponentType/Component"/>
            <xs:field xpath="@Type"/>
        </xs:keyref>
    </xs:element>
</xs:schema>