diff options
author | David Zeuthen <david@fubar.dk> | 2004-01-04 14:53:47 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2004-01-04 14:53:47 +0000 |
commit | c2209062b0b6984b6044302e38df1945b5406aca (patch) | |
tree | 7ec4a75d908bbc354b43ed4a4078952122294097 | |
parent | d190aea23dcf591aeb81ee3b41a4e481681a0009 (diff) |
new file (thanks to Dave Malcolm)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | fdi/fdi.rng | 82 |
2 files changed, 87 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2004-01-04 David Zeuthen <david@fubar.dk> + + * fdi/fdi.rng: new file (thanks to Dave Malcolm) + 2004-01-03 David Zeuthen <david@fubar.dk> * hald/linux/linux_class_block.c @@ -17,7 +21,7 @@ * fdi/Makefile.am: install fdi.dtd to $(datadir)/hal/fdi - * fdi/fdi.dtd: new file + * fdi/fdi.dtd: new file (thanks to Dave Malcolm) * hald/device_store.c (ds_device_find_by_key_value_string): set that we can choose whether to search the GDL or not diff --git a/fdi/fdi.rng b/fdi/fdi.rng new file mode 100644 index 00000000..fa212050 --- /dev/null +++ b/fdi/fdi.rng @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<grammar + xmlns="http://relaxng.org/ns/structure/1.0" + datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" +> + <start> + <element name="deviceinfo"> + <attribute name="version"> + <choice> + <value>0.1</value> + <value>0.2</value> + </choice> + </attribute> + <zeroOrMore> + <ref name="device"/> + </zeroOrMore> + </element> + </start> + <define name="device"> + <element name="device"> + <zeroOrMore> + <choice> + <ref name="match"/> + <ref name="merge"/> + </choice> + </zeroOrMore> + </element> + </define> + <define name="match"> + <element name="match"> + <attribute name="key"/> + <choice> + <attribute name="bool"> + <data type="boolean"/> + </attribute> + <attribute name="int"> + <data type="string"/> + </attribute> + <attribute name="string"> + <text/> + </attribute> + </choice> + <zeroOrMore> + <choice> + <ref name="match"/> + <ref name="merge"/> + </choice> + </zeroOrMore> + </element> + </define> + <define name="merge"> + <element name="merge"> + <attribute name="key"/> + <choice> + <group> + <attribute name="type"> + <value>string</value> + </attribute> + <text/> + </group> + <group> + <attribute name="type"> + <value>int</value> + </attribute> + <data type="int"/> + </group> + <group> + <attribute name="type"> + <value>bool</value> + </attribute> + <data type="boolean"/> + </group> + <group> + <attribute name="type"> + <value>double</value> + </attribute> + <data type="double"/> + </group> + </choice> + </element> + </define> +</grammar> |