From 8cae76457c17b3b4216ee5e49bf0334ae9b5c8c9 Mon Sep 17 00:00:00 2001 From: seeddn <dale.seed@interdigital.com> Date: Mon, 26 Jan 2015 19:36:26 -0500 Subject: [PATCH] Update CDT-areaNwkInfo-v0_8_0.xsd Added support for announce --- CDT-areaNwkInfo-v0_8_0.xsd | 63 +++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 22 deletions(-) diff --git a/CDT-areaNwkInfo-v0_8_0.xsd b/CDT-areaNwkInfo-v0_8_0.xsd index 40ca413..6bcd708 100644 --- a/CDT-areaNwkInfo-v0_8_0.xsd +++ b/CDT-areaNwkInfo-v0_8_0.xsd @@ -23,32 +23,51 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR --> <xs:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" - xmlns:m2m="http://www.onem2m.org/xml/protocols" elementFormDefault="unqualified" - attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + xmlns:m2m="http://www.onem2m.org/xml/protocols" elementFormDefault="unqualified" + attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="CDT-commonTypes-v0_8_0.xsd" /> <xs:include schemaLocation="CDT-subscription-v0_8_0.xsd" /> - <xs:element name="areaNwkInfo"> - <xs:complexType> - <xs:complexContent> - <!-- Inherit Common Attributes from mgmtResource --> - <xs:extension base="m2m:mgmtResource"> - <!-- Resource Specific Attributes --> - <xs:sequence> - <xs:element name="areaNwkType" type="xs:string" /> - <xs:element name="listOfDevices" type="m2m:listOfM2MID" /> + <xs:element name="areaNwkInfo"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit Common Attributes from mgmtResource --> + <xs:extension base="m2m:mgmtResource"> + <!-- Resource Specific Attributes --> + <xs:sequence> + <xs:element name="areaNwkType" type="xs:string" /> + <xs:element name="listOfDevices" type="m2m:listOfURIs" /> - <!-- Child Resources --> - <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:choice> - </xs:choice> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> + <!-- 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:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> + + <xs:element name="areaNwkInfoAnnc"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit Common Attributes from announcedMgmtResource --> + <xs:extension base="m2m:announcedMgmtResource"> + <!-- Resource Specific Attributes --> + <xs:sequence> + <xs:element name="areaNwkType" type="xs:string" minOccurs="0" /> + <xs:element name="listOfDevices" type="m2m:listOfURIs" minOccurs="0" /> + + <!-- 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:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> </xs:element> </xs:schema> -- GitLab