Project

Profile

Help

Bug #6033 ยป bleep2.xsd

Octavian Nadolu, 2023-05-11 16:06

 
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://erehwon.org/xsd/foo"
xmlns:t="http://erehwon.org/xsd/foo"
targetNamespace="http://erehwon.org/xsd/foo"
elementFormDefault="qualified"
attributeFormDefault="unqualified">

<xs:element name="Docu"
type="DocuType">
<xs:key name="MassUnitKey">
<xs:selector
xpath="t:FileUnits/t:MassUnit"/>
<xs:field xpath="t:UnitName"/>
</xs:key>
<xs:key name="LinearUnitKey">
<xs:selector
xpath="t:FileUnits/t:LinearUnit
| t:FileUnits/t:PMILinearUnit"/>
<xs:field xpath="t:UnitName"/>
</xs:key>
</xs:element>

<xs:complexType name="DocuType">
<xs:sequence>
<xs:element ref="FileUnits"
minOccurs="0">
</xs:element>
</xs:sequence>
</xs:complexType>

<xs:complexType name="UnitsType">
<xs:sequence>
<xs:element name="LinearUnit"
type="LinearUnitType"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="MassUnit"
type="MassUnitType"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="PMILinearUnit"
type="LinearUnitType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="LinearUnitType">
<xs:sequence>
<xs:element name="UnitName"
type="xs:token"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="MassUnitType">
<xs:sequence>
<xs:element name="UnitName"
type="xs:token"/>
</xs:sequence>
</xs:complexType>

<xs:element name="FileUnits"
type="UnitsType">
</xs:element>


</xs:schema>
    (1-1/1)