blob: 4becebbd7dc4a29d887b8660fd501dabfa4dc53d (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<!-- $Id: kformula.dtd 202993 2003-01-26 21:30:12Z kuettler $
This is an XML document type definition (DTD) for the KFormula 1.3 XML files
ChangeLog:
* Initial version by Heinrich Kuettler <[email protected]>.
-->
<!-- All but SEQUENCE: -->
<!ENTITY % element "BRACKET | FRACTION | INDEX | MATRIX | ROOT |
NAMESEQUENCE | SPACE | TEXT | EMPTY | SYMBOL | OVERLINE | UNDERLINE |
MULTILINE">
<!ELEMENT KFORMULA (FORMULASETTINGS?, FORMULA*)>
<!ATTLIST KFORMULA
VERSION CDATA #IMPLIED
BASESIZE CDATA #IMPLIED
>
<!ELEMENT FORMULASETTINGS EMPTY>
<!ELEMENT FORMULA (%element;)*>
<!ATTLIST FORMULA
VERSION CDATA #IMPLIED
BASESIZE CDATA #IMPLIED
>
<!ELEMENT BRACKET (CONTENT)>
<!ATTLIST BRACKET
LEFT CDATA #REQUIRED
RIGHT CDATA #REQUIRED
>
<!ELEMENT CONTENT (SEQUENCE)>
<!ELEMENT FRACTION (NUMERATOR,DENOMINATOR)>
<!ATTLIST FRACTION
NOLINE CDATA #IMPLIED
>
<!ELEMENT NUMERATOR (SEQUENCE)>
<!ELEMENT DENOMINATOR (SEQUENCE)>
<!ELEMENT INDEX (CONTENT,UPPERLEFT?,UPPERMIDDLE?,UPPERRIGHT?,LOWERLEFT?,LOWERMIDDLE?,LOWERRIGHT?)>
<!ELEMENT UPPERLEFT (SEQUENCE)>
<!ELEMENT UPPERMIDDLE (SEQUENCE)>
<!ELEMENT UPPERRIGHT (SEQUENCE)>
<!ELEMENT LOWERLEFT (SEQUENCE)>
<!ELEMENT LOWERMIDDLE (SEQUENCE)>
<!ELEMENT LOWERRIGHT (SEQUENCE)>
<!ELEMENT MATRIX (%element;)*>
<!ATTLIST MATRIX
ROWS CDATA #REQUIRED
COLUMNS CDATA #REQUIRED
>
<!ELEMENT ROOT (CONTENT,ROOTINDEX?)>
<!ELEMENT ROOTINDEX (SEQUENCE)>
<!ELEMENT SEQUENCE (%element;)*>
<!ELEMENT NAMESEQUENCE (TEXT)*>
<!ELEMENT SPACE EMPTY>
<!ATTLIST SPACE
WIDTH CDATA #REQUIRED
TAB CDATA #IMPLIED
>
<!ELEMENT TEXT EMPTY>
<!ATTLIST TEXT
CHAR CDATA #REQUIRED
SYMBOL CDATA #IMPLIED
STYLE CDATA #IMPLIED
FAMILY CDATA #IMPLIED
>
<!ELEMENT EMPTY EMPTY>
<!ELEMENT SYMBOL (CONTENT,LOWER?,UPPER?)>
<!ATTLIST SYMBOL
TYPE CDATA #REQUIRED
>
<!ELEMENT OVERLINE (CONTENT)>
<!ELEMENT UNDERLINE (CONTENT)>
<!ELEMENT MULTILINE (SEQUENCE*)>
<!ATTLIST MULTILINE
LINES CDATA #REQUIRED
>
|