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

Validating HAL device info files



There didn't seem to be a DTD for HAL device info files, so I put one
together; you should find it attached.  It's very much a first attempt -
I hacked it until it validated the example fdi file in the HAL 0.2
tarball - so it might need some refinement.

I'll do a RelaxNG schema if anyone's interested.

Dave Malcolm
<!-- Document Type for FreeDesktop.org Device Information Files -->

<!-- <deviceinfo> is the top-level element of an fdi file. -->
<!ELEMENT deviceinfo (device*) >
<!ATTLIST deviceinfo 
    version (0.1|0.2) #REQUIRED
>

<!ELEMENT device (match|merge)*  >

<!ELEMENT match (match|merge)* >
<!ATTLIST match 
    key    CDATA #REQUIRED
    string CDATA #IMPLIED
    int    CDATA #IMPLIED
    bool   CDATA #IMPLIED
>

<!ELEMENT merge (#PCDATA) >
<!ATTLIST merge 
    key    CDATA #REQUIRED
    type   (string|int|bool|double) #REQUIRED
>

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