Commit cf6a40bd authored by markc's avatar markc

TS 103 707 v1.3.1

parent 5b86d671
Pipeline #8744 canceled with stage
......@@ -3,7 +3,7 @@
xmlns:etsi103280="http://uri.etsi.org/03280/common/2017/07"
xmlns="http://uri.etsi.org/03707/2020/02"
targetNamespace="http://uri.etsi.org/03707/2020/02"
version="1.1.1"
version="1.3.1"
elementFormDefault="qualified">
<xs:import namespace="http://uri.etsi.org/03280/common/2017/07"/>
......@@ -13,13 +13,20 @@
<!-- ************************************************************************************* -->
<xs:element name="handoverItem" type="HandoverItem"></xs:element>
<xs:element name="handoverItemCollection" type="HandoverItemCollection"></xs:element>
<xs:complexType name="HandoverItem">
<xs:sequence>
<xs:element name="header" type="Header"></xs:element>
<xs:element name="payload" type="Payload"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="HandoverItemCollection">
<xs:sequence>
<xs:element name="handoverItem" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Header">
<xs:sequence>
......
......@@ -3,7 +3,7 @@
xmlns:etsi103280="http://uri.etsi.org/03280/common/2017/07"
xmlns="http://uri.etsi.org/03707/2020/02"
targetNamespace="http://uri.etsi.org/03707/2020/02"
version="1.1.1"
version="1.3.1"
elementFormDefault="qualified">
<xs:import namespace="http://uri.etsi.org/03280/common/2017/07"/>
......@@ -13,13 +13,20 @@
<!-- ************************************************************************************* -->
<xs:element name="handoverItem" type="HandoverItem"></xs:element>
<xs:element name="handoverItemCollection" type="HandoverItemCollection"></xs:element>
<xs:complexType name="HandoverItem">
<xs:sequence>
<xs:element name="header" type="Header"></xs:element>
<xs:element name="payload" type="Payload"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="HandoverItemCollection">
<xs:sequence>
<xs:element name="handoverItem" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Header">
<xs:sequence>
......
<?xml version="1.0" encoding="utf-8"?>
<handoverItemCollection xmlns="http://uri.etsi.org/03707/2020/02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<handoverItem>
<header></header>
<payload xsi:type="MessagingPayload">
<coreParameters>
<messageSender>
<identifiers>
<identifier>target@example.com</identifier>
</identifiers>
<isTargetedParty>true</isTargetedParty>
</messageSender>
<messageReceivers>
<recipient>
<identifiers>
<identifier>someoneelse@example.com</identifier>
</identifiers>
</recipient>
</messageReceivers>
<timestamp>2021-06-17T06:42:23.000000+01:00</timestamp>
</coreParameters>
<cspDefinedParameters>
<cspDefinedMetadata>
<schemaDetails>
<schemaIdentifier>http://FooServiceSchema.example.com/schema/v1.1.1/</schemaIdentifier>
</schemaDetails>
<xmlData>
<fooServiceDefinedParameters xmlns="http://FooServiceSchema.example.com/schema/v1.1.1/">
<item1>Foo</item1>
<item2>Bar</item2>
<item3>Baz</item3>
</fooServiceDefinedParameters>
</xmlData>
</cspDefinedMetadata>
</cspDefinedParameters>
</payload>
</handoverItem>
<handoverItem>
<header></header>
<payload xsi:type="MessagingPayload">
<coreParameters>
<messageSender>
<identifiers>
<identifier>someoneelse@example.com</identifier>
</identifiers>
</messageSender>
<messageReceivers>
<recipient>
<identifiers>
<identifier>target@example.com</identifier>
</identifiers>
<isTargetedParty>true</isTargetedParty>
</recipient>
</messageReceivers>
<timestamp>2021-06-18T06:42:23.000000+01:00</timestamp>
</coreParameters>
<cspDefinedParameters>
<cspDefinedMetadata>
<schemaDetails>
<schemaIdentifier>http://FooServiceSchema.example.com/schema/v1.1.1/</schemaIdentifier>
</schemaDetails>
<xmlData>
<fooServiceDefinedParameters xmlns="http://FooServiceSchema.example.com/schema/v1.1.1/">
<item1>Foo</item1>
<item2>Bar</item2>
<item3>Baz</item3>
</fooServiceDefinedParameters>
</xmlData>
</cspDefinedMetadata>
</cspDefinedParameters>
</payload>
</handoverItem>
</handoverItemCollection>
import glob
import sys
import argparse
from pathlib import Path
from pprint import pprint
......@@ -21,7 +22,7 @@ if __name__ == '__main__':
extraSchemas = [
'examples/FooServiceSchema.xsd',
'TS_103_280_v020301.xsd'
'TS_103_280_v020401.xsd'
]
locations = []
......@@ -29,7 +30,7 @@ if __name__ == '__main__':
xs = xmlschema.XMLSchema(schemaFile, validation='skip')
locations.append((xs.default_namespace, str(Path(schemaFile))))
coreSchema = xmlschema.XMLSchema('TS_103_707_v010201.xsd', locations=locations)
coreSchema = xmlschema.XMLSchema('TS_103_707_v010301.xsd', locations=locations)
for schema in extraSchemas:
newSchema = xmlschema.XMLSchema(schema)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment