From 5dcd0be5eccc110ca45e374157818c71d176fa00 Mon Sep 17 00:00:00 2001
From: wgranzow <wgranzow@qti.qualcomm.com>
Date: Mon, 26 Jan 2015 14:06:26 +0100
Subject: [PATCH] delivery & request XSD: alignment w. #662R02

---
 CDT-delivery-v0_8_0.xsd | 15 ++++++++-------
 CDT-request-v0_8_0.xsd  | 11 ++++++-----
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/CDT-delivery-v0_8_0.xsd b/CDT-delivery-v0_8_0.xsd
index b90215b..1c7f034 100644
--- a/CDT-delivery-v0_8_0.xsd
+++ b/CDT-delivery-v0_8_0.xsd
@@ -38,23 +38,24 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 				<xs:extension base="m2m:regularResource">
 					<xs:sequence>
 						<!-- Resource Specific Attributes -->
-						<xs:element name="stateTag" type="xs:nonNegativeInteger" />
+						<!-- TODO: The type of source and target should match that of CSE-ID (i.e.they should have type m2m:ID) -->
 						<xs:element name="source" type="m2m:ID" />
 						<xs:element name="target" type="m2m:ID" />
-						<xs:element name="lifespan" type="xs:dateTime" />
+						<xs:element name="lifespan" type="m2m:timestamp" />
 						<xs:element name="eventCat" type="m2m:eventCat" />
 						<xs:element name="deliveryMetaData" type="m2m:deliveryMetaData" />
 						<xs:element name="aggregatedRequest" type="m2m:aggregatedRequest" />
 
 						<!-- Child Resources -->
-                        <xs:choice minOccurs="0" maxOccurs="1">
-                            <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" />
-                            <xs:element ref="m2m:subscription" maxOccurs="unbounded" />
-                        </xs:choice>
+						<xs:choice minOccurs="0" maxOccurs="1">
+							<xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" />
+							<xs:choice minOccurs="1" maxOccurs="unbounded">
+								<xs:element ref="m2m:subscription"></xs:element>
+							</xs:choice>
+						</xs:choice>
 					</xs:sequence>
 				</xs:extension>
 			</xs:complexContent>
 		</xs:complexType>
 	</xs:element>
-	
 </xs:schema>
\ No newline at end of file
diff --git a/CDT-request-v0_8_0.xsd b/CDT-request-v0_8_0.xsd
index f778307..f0d6327 100644
--- a/CDT-request-v0_8_0.xsd
+++ b/CDT-request-v0_8_0.xsd
@@ -37,7 +37,6 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 				<xs:extension base="m2m:regularResource">
 					<xs:sequence>
 						<!-- Resource Specific Attributes -->
-						<xs:element name="stateTag" type="xs:nonNegativeInteger" />
 						<xs:element name="operation" type="m2m:operation" />
 						<xs:element name="target" type="xs:anyURI" />
 						<xs:element name="originator" type="m2m:ID" />
@@ -48,10 +47,12 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 						<xs:element name="operationResult" type="m2m:operationResult" />
 
 						<!-- Child Resources -->
-                        <xs:choice minOccurs="0" maxOccurs="1">
-                            <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" />
-                            <xs:element ref="m2m:subscription" maxOccurs="unbounded" />
-                        </xs:choice>
+						<xs:choice minOccurs="0" maxOccurs="1">
+							<xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" />
+							<xs:choice minOccurs="1" maxOccurs="unbounded">
+								<xs:element ref="m2m:subscription"></xs:element>
+							</xs:choice>
+						</xs:choice>
 					</xs:sequence>
 				</xs:extension>
 			</xs:complexContent>
-- 
GitLab