diff --git a/CDT-eventLog-v0_8_0.xsd b/CDT-eventLog-v0_8_0.xsd index da8043ab970162932ae7d450ddce6c0ad64269e4..284ea5456bf12a00f8013e96903565f4bf903e94 100644 --- a/CDT-eventLog-v0_8_0.xsd +++ b/CDT-eventLog-v0_8_0.xsd @@ -24,35 +24,57 @@ 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="eventLog"> - <xs:complexType> - <xs:complexContent> - <!-- Inherit Common Attributes from data type "mgmtResource" --> - <xs:extension base="m2m:mgmtResource"> - <!-- Resource Specific Attributes --> - <xs:sequence> - <xs:element name="logTypeId" type="m2m:logTypeId" /> - <xs:element name="logData" type="xs:string" /> - <xs:element name="logStatus" type="m2m:logStatus" /> - <xs:element name="logStart" type="xs:boolean" /> - <xs:element name="logStop" type="xs:boolean" /> + <xs:complexType> + <xs:complexContent> + <!-- Inherit Common Attributes from data type "mgmtResource" --> + <xs:extension base="m2m:mgmtResource"> + <!-- Resource Specific Attributes --> + <xs:sequence> + <xs:element name="logTypeId" type="m2m:logTypeId" /> + <xs:element name="logData" type="xs:string" /> + <xs:element name="logStatus" type="m2m:logStatus" /> + <xs:element name="logStart" type="xs:boolean" /> + <xs:element name="logStop" type="xs:boolean" /> - <!-- 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> - </xs:element> + <!-- 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="eventLogAnnc"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit Common Attributes from data type "announcedMgmtResource" --> + <xs:extension base="m2m:announcedMgmtResource"> + <!-- Resource Specific Attributes --> + <xs:sequence> + <xs:element name="logTypeId" type="m2m:logTypeId" minOccurs="0" /> + <xs:element name="logData" type="xs:string" minOccurs="0" /> + <xs:element name="logStatus" type="m2m:logStatus"minOccurs="0" /> + <xs:element name="logStart" type="xs:boolean" minOccurs="0" /> + <xs:element name="logStop" type="xs:boolean" 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>