The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Axentra Mini Case Kit


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Draft XML Schema for X-10


  • To: <ukha_d@xxxxxxx>
  • Subject: Draft XML Schema for X-10
  • From: "Mark Harrison" <Mark.Harrison@xxxxxxx>
  • Date: Thu, 21 Feb 2002 10:13:59 -0000
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Thought this might be of interest....

Got XML skills? please come over to to the "project" group at
http://groups.yahoo.com/group/ukha_hamp3r/
and join the discussion!

OK - here goes....

----------------------------------------------------------

<xsd:schema xmlns:xsd="http://groups.yahoo.com/group/ukha_hamp3r/";>

<xsd:annotation>
<xsd:documentation xml:lang="en">
Draft XML Schema for X10 control messages
Copyright Mark Harrison 2002, all rights reserved
</xsd:documentation>
</xsd:annotation>

<xsd:element name="X10message"
type="x10messagetype"/>


<xsd:complexType name="x10messagetype">
<xsd:attribute name="RoomCode"
type="RoomCodetype"/>
<xsd:attribute name="UnitCode"
type="UnitCodetype"/>
<xsd:attribute name="Command" 
type="Commandtype"/>
</xsd:complexType>

<xsd:simpleType name="RoomCodetype">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[A-P]"/>
<xsd:annotation>
<xsd:documentation xml:lang="en">
Is that [A-P] thing actually valid???
</xsd:documentation>
</xsd:annotation>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="UnitCodetype">
<xsd:restriction base="xsd:integer">
<xsd:minInclusiveValue="1">
<xsd:maxInclusiveValue="16">
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="Commandtype">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ON"/>
<xsd:enumeration value="OFF"/>
<xsd:enumeration value="BRIGHT"/>
<xsd:enumeration value="DIM"/>
<xsd:annotation>
<xsd:documentation xml:lang="en">
Needs more thought here about how "Dim To"
and "Brighten To" should be defined...
</xsd:documentation>
</xsd:annotation>
<xsd:enumeration value="ALL LIGHTS ON"/>
<xsd:enumeration value="ALL LIGHTS OFF"/>
<xsd:enumeration value="ALL ITEMS ON"/>
</xsd:restriction>
</xsd:simpleType>



</xsd:schema>


Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.