forked from clonkspot/crdocs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clonk.dtd
74 lines (65 loc) · 2.47 KB
/
clonk.dtd
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
64
65
66
67
68
69
70
71
72
73
74
<!ENTITY % text "a | img | emlink | funclink | em | code | strong">
<!ELEMENT funcs (func+, (author, date)+)>
<!ELEMENT func (title, deprecated?, category, subcat*, version, deprecated?, syntax, desc, remark*, examples?, related?)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT category (#PCDATA)>
<!ELEMENT subcat (#PCDATA)>
<!ELEMENT version (#PCDATA | extversion)*>
<!ELEMENT extversion (#PCDATA)>
<!ELEMENT deprecated EMPTY>
<!ELEMENT internal EMPTY>
<!ELEMENT syntax (rtype, params*)>
<!ELEMENT rtype (#PCDATA)>
<!ELEMENT params (#PCDATA | param)*>
<!ELEMENT param (type?, optional?, name, optional?, desc, optional?)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT desc (#PCDATA | br | ul | li | table | %text;)*>
<!ELEMENT optional EMPTY>
<!ELEMENT remark (#PCDATA | br | ul | li | table | %text;)*>
<!ELEMENT examples (example+)>
<!ELEMENT example (code | text)*>
<!ELEMENT code (#PCDATA | funclink | emlink | em | strong)*>
<!ELEMENT text (#PCDATA | br | ul | li | table | %text;)*>
<!ELEMENT related (funclink | emlink)+>
<!ELEMENT funclink (#PCDATA)>
<!ELEMENT emlink (#PCDATA)>
<!ATTLIST emlink href CDATA #REQUIRED>
<!ELEMENT author (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT doc (title, (h | text | dl | part | code | author | date | img)*)>
<!ELEMENT part (h | text | part | code | dl)*>
<!ELEMENT br EMPTY>
<!ELEMENT table (#PCDATA | caption | rowh | row | bitmask)*>
<!ELEMENT caption (#PCDATA)>
<!ATTLIST caption
id ID #IMPLIED>
<!ELEMENT row (#PCDATA | col)*>
<!ATTLIST row
id ID #IMPLIED>
<!ELEMENT rowh (#PCDATA | col)*>
<!ELEMENT col (#PCDATA | %text;)*>
<!ATTLIST col
colspan CDATA #IMPLIED>
<!ELEMENT bitmask (#PCDATA)>
<!ELEMENT ul (#PCDATA | li)*>
<!ELEMENT li (#PCDATA | %text;)*>
<!ELEMENT dl (#PCDATA | dd | dt)*>
<!ELEMENT dt (#PCDATA | emlink | funclink | img)*>
<!ATTLIST dt
id ID #IMPLIED>
<!ELEMENT dd (#PCDATA | text | code)*>
<!ELEMENT em (#PCDATA)>
<!ELEMENT strong (#PCDATA)>
<!ELEMENT h (#PCDATA)>
<!ATTLIST h
id ID #IMPLIED>
<!ELEMENT img EMPTY>
<!ATTLIST img
src CDATA #REQUIRED
width CDATA "0"
height CDATA "0"
id ID #IMPLIED>
<!ELEMENT a (#PCDATA)>
<!ATTLIST a
href CDATA #REQUIRED>