Skip to content
ts_103120_Delivery.xsd 3.5 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:etsi="http://uri.etsi.org/03280/common/2017/07"
           xmlns:common="http://uri.etsi.org/03120/common/2016/02/Common"
           xmlns:core="http://uri.etsi.org/03120/common/2019/10/Core"
           xmlns="http://uri.etsi.org/03120/common/2019/10/Delivery"
           targetNamespace="http://uri.etsi.org/03120/common/2019/10/Delivery"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

    <xs:import namespace="http://uri.etsi.org/03120/common/2016/02/Common" />
    <xs:import namespace="http://uri.etsi.org/03120/common/2019/10/Core" />
    <xs:import namespace="http://uri.etsi.org/03280/common/2017/07" />
    <xs:complexType name="DeliveryObject">
        <xs:complexContent>
            <xs:extension base="core:HI1Object">
                <xs:sequence>
                    <xs:element name="Reference" type="Reference" minOccurs="0"/>
                    <xs:element name="DeliveryID" type="etsi:UUID" minOccurs="0"/>
                    <xs:element name="SequenceNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
                    <xs:element name="LastSequence" type="xs:boolean" minOccurs="0"/>
                    <xs:element name="Manifest" type="Manifest" minOccurs="0"/>
                    <xs:element name="Delivery" type="Delivery" minOccurs="0"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="Reference">
        <xs:choice>
            <xs:element name="LDID" type="etsi:LDID"/>
            <xs:element name="LIID" type="etsi:LIID"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="Manifest">
        <xs:choice>
            <xs:element name="Specification" type="common:DictionaryEntry"/>
            <xs:element name="ExternalSchema" type="ExternalSchema"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="ExternalSchema">
        <xs:sequence>
            <xs:element name="ManifestID" type="etsi:LongString" minOccurs="0"/>
            <xs:element name="ManifestContents" type="ManifestContents" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ManifestContents">
        <xs:choice>
            <xs:element name="BinaryData" type="EmbeddedBinaryData"/>
            <xs:element name="XMLSchema" type="SchemaContent"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="SchemaContent">
        <xs:sequence>
            <xs:element name="schema" xmlns="http://www.w3.org/2001/XMLSchema"></xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Delivery">
        <xs:choice>
            <xs:element name="BinaryData" type="EmbeddedBinaryData"/>
            <xs:element name="XMLData" type="EmbeddedXMLData"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="EmbeddedBinaryData">
        <xs:sequence>
            <xs:element name="Data" type="xs:base64Binary" />
            <xs:element name="ContentType" type="etsi:ShortString" minOccurs="0"/>
            <xs:element name="Checksum" type="etsi:ShortString" minOccurs="0"/>
            <xs:element name="ChecksumType" type="etsi:ShortString" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="EmbeddedXMLData">
        <xs:sequence>
        <xs:any namespace="##other" minOccurs="1" maxOccurs="unbounded"></xs:any>
        </xs:sequence>
    </xs:complexType>