Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
hekate:hekate_markup_language [2009/05/07 21:23] gjn |
hekate:hekate_markup_language [2019/06/27 15:49] (current) |
===== HML syntax ===== | ===== HML syntax ===== |
| |
HeKatE markup language DTD: {{hml.dtd}} (for HML2). | HeKatE markup language DTD: (for HML2). |
| |
For syntax test purposes there is example XML file: {{hml-test.xml}} | For syntax test purposes there is an example XML file:{{:hekate:hml-test-hekate_case_thermostat.xml|}} |
A minimalistic file is: {{hml-test-min.xml}} | A minimalistic file is: {{:hekate:hml-test-min.xml}} |
| |
//(Note: the above files are versioned in the HaDEs CVS repo in the [[HatHoR]] module.)// | //(Note: the above files are versioned in the HaDEs CVS repo in the [[HatHoR]] module.)// |
* dependencies: ''id="dep_..."'' | * dependencies: ''id="dep_..."'' |
* ARD history (TPH): ''id="hst_..."'' | * ARD history (TPH): ''id="hst_..."'' |
| //All id numbers start with 1// |
| |
An additional attribute (''id'') is introduced to guarantee that types, attributes, properties and groups can be uniquely referenced. | An additional attribute (''id'') is introduced to guarantee that types, attributes, properties and groups can be uniquely referenced. |
| |
<types> | <types> |
<type id="tpe_0" name="Temperature" base="numeric" length="5" scale="0"> | <type id="tpe_1" name="Temperature" base="numeric" length="5" scale="0"> |
<desc>represents a temperature</desc> | <desc>represents a temperature</desc> |
<domain> | <domain> |
</domain> | </domain> |
</type> | </type> |
<type id="tpe_1" name="Integer" base="numeric" length="5" scale="0"> | <type id="tpe_2" name="Integer" base="numeric" length="5" scale="0"> |
<desc>represents an integer number</desc> | <desc>represents an integer number</desc> |
<domain> | <domain> |
| |
<attributes> | <attributes> |
<attr id="att_0" type="tpe_0" name="temp" abbrev="t1" class="simple" comm="in"> | <attr id="att_1" type="tpe_1" name="temp" abbrev="t1" class="simple" comm="in"> |
<desc>input temperature from sensor number 1</desc> | <desc>input temperature from sensor number 1</desc> |
</attr> | </attr> |
<attr id="att_1" type="tpe_0" name="temp-aux" abbrev="t1a" class="general" comm="in"> | <attr id="att_2" type="tpe_1" name="temp-aux" abbrev="t1a" class="general" comm="in"> |
<desc>input temperature from sensor number 1, aux reading, including historic data</desc> | <desc>input temperature from sensor number 1, aux reading, including historic data</desc> |
</attr> | </attr> |
| |
<agroup id="grp_0" name="sensors" abbrev="sns"> | <agroup id="grp_1" name="sensors" abbrev="sns"> |
<desc>temperatures from sensors</desc> | <desc>temperatures from sensors</desc> |
<attref ref="att_0"/> | |
<attref ref="att_1"/> | <attref ref="att_1"/> |
| <attref ref="att_2"/> |
</agroup> | </agroup> |
| |