Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
XSD
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PRO
XSD
Commits
cb0bc1ff
Commit
cb0bc1ff
authored
10 years ago
by
Dale Seed
Browse files
Options
Downloads
Patches
Plain Diff
Update CDT-battery-v0_8_0.xsd
Added support for announce
parent
8cae7645
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CDT-battery-v0_8_0.xsd
+41
-22
41 additions, 22 deletions
CDT-battery-v0_8_0.xsd
with
41 additions
and
22 deletions
CDT-battery-v0_8_0.xsd
+
41
−
22
View file @
cb0bc1ff
...
...
@@ -24,32 +24,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=
"battery"
>
<xs:complexType>
<xs:complexContent>
<!-- Inherit Common Attributes from data type "mgmtResource" -->
<xs:extension
base=
"m2m:mgmtResource"
>
<!-- Resource Specific Attributes -->
<xs:sequence>
<xs:element
name=
"batteryLevel"
type=
"xs:unsignedInt"
/>
<xs:element
name=
"batteryStatus"
type=
"m2m:batteryStatus"
/>
<xs:element
name=
"battery"
>
<xs:complexType>
<xs:complexContent>
<!-- Inherit Common Attributes from data type "mgmtResource" -->
<xs:extension
base=
"m2m:mgmtResource"
>
<!-- Resource Specific Attributes -->
<xs:sequence>
<xs:element
name=
"batteryLevel"
type=
"xs:unsignedInt"
/>
<xs:element
name=
"batteryStatus"
type=
"m2m:batteryStatus"
/>
<!-- 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=
"batteryAnnc"
>
<xs:complexType>
<xs:complexContent>
<!-- Inherit Common Attributes from data type "announcedMgmtResource" -->
<xs:extension
base=
"m2m:announcedMgmtResource"
>
<!-- Resource Specific Attributes -->
<xs:sequence>
<xs:element
name=
"batteryLevel"
type=
"xs:unsignedInt"
minOccurs=
"0"
/>
<xs:element
name=
"batteryStatus"
type=
"m2m:batteryStatus"
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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment