Commit 4870bc48 authored by Peter Waher's avatar Peter Waher

Adding vesion number to namespaces

parent c5910da9
<?xml version="1.0" encoding="utf-8"?>
<nd id="Node1" xmlns="urn:ieee:iot:sd">
<nd id="Node1" xmlns="urn:ieee:iot:sd:1.0">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
<?xml version="1.0" encoding="utf-8"?>
<req xmlns="urn:ieee:iot:sd" id="00000001" all="true"/>
<req xmlns="urn:ieee:iot:sd:1.0" id="00000001" all="true"/>
<?xml version="1.0" encoding="utf-8"?>
<resp xmlns="urn:ieee:iot:sd" id="00000001">
<resp xmlns="urn:ieee:iot:sd:1.0" id="00000001">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:ieee:iot:sd'
xmlns='urn:ieee:iot:sd'
targetNamespace='urn:ieee:iot:sd:1.0'
xmlns='urn:ieee:iot:sd:1.0'
elementFormDefault='qualified'>
<xs:element name='nd'>
......
......@@ -6,7 +6,7 @@ an annotated XML Schema:
| Sensor Data ||
| ------------|------------------------------------------|
| Namespace: | urn:ieee:iot:sd |
| Namespace: | urn:ieee:iot:sd:1.0 |
| Schema: | [SensorData.xsd](Schemas/SensorData.xsd) |
Motivation and design goal
......@@ -220,7 +220,7 @@ Examples
A simple example containing sensor data from a temperature sensor.
```xml
<ts v="2017-09-22T15:22:33Z" xmlns="urn:ieee:iot:sd">
<ts v="2017-09-22T15:22:33Z" xmlns="urn:ieee:iot:sd:1.0">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
</ts>
......@@ -229,7 +229,7 @@ A simple example containing sensor data from a temperature sensor.
If this temperature sensor would be a node inside a concentrator, the same data would be represented as:
```xml
<nd id="Node1" xmlns="urn:ieee:iot:sd">
<nd id="Node1" xmlns="urn:ieee:iot:sd:1.0">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
......@@ -8,7 +8,7 @@ an annotated XML Schema:
| Sensor Data ||
| ------------|------------------------------------------|
| Namespace: | urn:ieee:iot:sd |
| Namespace: | urn:ieee:iot:sd:1.0 |
| Schema: | [SensorData.xsd](Schemas/SensorData.xsd) |
Motivation and design goal
......@@ -181,7 +181,7 @@ list of noteable differences:
Determining Support
-------------------------
Devices supporting the protocol described in this document should advertise this fact, by including the `urn:ieee:iot:sd` feature in responses to
Devices supporting the protocol described in this document should advertise this fact, by including the `urn:ieee:iot:sd:1.0` feature in responses to
[Service Discover](https://xmpp.org/extensions/xep-0030.html) requests.
......@@ -194,7 +194,7 @@ Request:
```xml
<iq type='get' from='client@example.org/1234' to='device@example.org/abcd' id='R0001'>
  <req xmlns="urn:ieee:iot:sd" id="00000001" all="true"/>
  <req xmlns="urn:ieee:iot:sd:1.0" id="00000001" all="true"/>
</iq>
```
......@@ -202,7 +202,7 @@ Response:
```xml
<iq type='result' from='device@example.org/abcd' to='client@example.org/1234' id='R0001'>
<resp xmlns="urn:ieee:iot:sd" id="00000001">
<resp xmlns="urn:ieee:iot:sd:1.0" id="00000001">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
......
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