HAL 0.1 release

Robert Wittams robert at wittams.com
Thu Oct 9 02:35:45 EEST 2003


David Zeuthen wrote:

>   <device Bus="pci" pci.vendorId="1002" pci.deviceId="4654">

It would be better to use xml namespaces than some new naming convention. 

 <device bus="pci" pci:vendorId="1002" pci:deviceId="4654"   
           xmlns:pci="http://freedesktop.org/hal/bus/pci">

( The xmlns only needs to exist on or before the first element the namespace
is used).

Also I'd really recommend xml schema over DTDs. 

This way it is possible to declare the device element type "open" - ie can
include attributes from other namespaces, and define the bus specific types
in separate schemas. 

Then just a combined schema pulling in all the buses can be used to validate
the files. 

Rob




More information about the xdg mailing list