summaryrefslogtreecommitdiff
path: root/fdi/fdi.dtd
blob: 6084bb1a2a63ccf230831f75ef16f0b399560ea8 (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
57
58
59
60
61
62
63
<!-- 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
    contains_not     CDATA #IMPLIED
    prefix           CDATA #IMPLIED
    prefix_ncase     CDATA #IMPLIED
    suffix           CDATA #IMPLIED
    suffix_ncase     CDATA #IMPLIED
    compare_lt       CDATA #IMPLIED
    compare_le       CDATA #IMPLIED
    compare_gt       CDATA #IMPLIED
    compare_ge       CDATA #IMPLIED
    compare_ne       CDATA #IMPLIED
    sibling_contains 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
>