summaryrefslogtreecommitdiff
path: root/fdi/fdi.dtd
blob: 360d917761238bb12450dc1a228538f9b783a66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!-- 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|prepend|append|remove|spawn)* >
<!ATTLIST match 
    key              CDATA #REQUIRED
    string           CDATA #IMPLIED
    int              CDATA #IMPLIED
    bool             (false|true) #IMPLIED
    exists           (false|true) #IMPLIED
    empty            (false|true) #IMPLIED
    is_ascii         (false|true) #IMPLIED
    is_absolute_path (false|true) #IMPLIED
    contains         CDATA #IMPLIED
    contains_ncase   CDATA #IMPLIED
    compare_lt       CDATA #IMPLIED
    compare_le       CDATA #IMPLIED
    compare_gt       CDATA #IMPLIED
    compare_ge       CDATA #IMPLIED
>

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

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

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

<!ELEMENT remove (#PCDATA) >
<!ATTLIST remove
    key    CDATA #REQUIRED
    type   (strlist) #REQUIRED
>

<!ELEMENT spawn (#PCDATA) >
<!ATTLIST spawn
    udi    CDATA #REQUIRED
>