summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2007-04-01 15:08:52 -0400
committerDavid Zeuthen <davidz@redhat.com>2007-04-01 15:08:52 -0400
commitd3aaf33d66443c0f18743a78511caf16df36cb69 (patch)
tree4d8a6e7b47fcc07ff41926def2f1db6215fefbaf
parent6992f57a90e9e2a5b9f9c008204f2ef953d4db63 (diff)
teach fdi.dtd about contains_not, rip out RNG scheme
Also add a note to the TODO list that we should have a hal-fdi-file-validate tool much like desktop-file-validate
-rw-r--r--doc/TODO3
-rw-r--r--fdi/Makefile.am4
-rw-r--r--fdi/fdi.dtd1
-rw-r--r--fdi/fdi.rng82
4 files changed, 6 insertions, 84 deletions
diff --git a/doc/TODO b/doc/TODO
index a429ae03..5b7f125c 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -15,6 +15,9 @@ Items specifically planned for 0.5.10
(TODO: need to go through and nominate things for 0.5.10)
------------------------------------
+ - Should provide a hal-fdi-file-validate tool that validates fdi
+ files.
+
- Rip out translation framework (.po files) since only deprecated
functions in libhal-storage have relied on it since the 0.5.8
release.
diff --git a/fdi/Makefile.am b/fdi/Makefile.am
index a8115b95..edf9d88c 100644
--- a/fdi/Makefile.am
+++ b/fdi/Makefile.am
@@ -1,8 +1,8 @@
SUBDIRS = information policy preprobe
-EXTRA_DIST = fdi.dtd fdi.rng
+EXTRA_DIST = fdi.dtd
fdidir = $(datadir)/hal/fdi
-dist_fdi_DATA = fdi.dtd fdi.rng
+dist_fdi_DATA = fdi.dtd
diff --git a/fdi/fdi.dtd b/fdi/fdi.dtd
index 1cf19e44..6084bb1a 100644
--- a/fdi/fdi.dtd
+++ b/fdi/fdi.dtd
@@ -20,6 +20,7 @@
is_absolute_path (false|true) #IMPLIED
contains CDATA #IMPLIED
contains_ncase CDATA #IMPLIED
+ contains_not CDATA #IMPLIED
prefix CDATA #IMPLIED
prefix_ncase CDATA #IMPLIED
suffix CDATA #IMPLIED
diff --git a/fdi/fdi.rng b/fdi/fdi.rng
deleted file mode 100644
index fa212050..00000000
--- a/fdi/fdi.rng
+++ /dev/null
@@ -1,82 +0,0 @@
-<?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>