summaryrefslogtreecommitdiffstats
path: root/karbon/karbon.dtd
blob: 9a277f84501567d07114f35eb9723e067f65614c (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
96
97
<!-- Document Type Definition for the Karbon14 Markup Language
     the file format for Karbon.
     version = 0.1  status = draft  date = 11/Mar/2002
     syntax = XML author = [email protected] -->
<!-- ============================================================= -->

<!-- ============================================================= -->

<!ELEMENT DOC (LAYER*) >
<!ATTLIST DOC editor  CDATA "Karbon14"
              mime   CDATA "application/x-karbon"
              syntaxVersion CDATA #IMPLIED
>

<!--
    The document is grouped by layers.
-->

<!ELEMENT LAYER (COMPOSITE*) >
<!ATTLIST LAYER name  CDATA #IMPLIED
               visible ( 0 | 1 ) "1"
>

<!--
    A composite path.
-->

<!ELEMENT COMPOSITE (STROKE? FILL? PATH+) >
<!ATTLIST COMPOSITE fillrule ( 0 | 1 ) "0"
>

<!--
    Stroke mode and color.
-->

<!ELEMENT STROKE (COLOR) >
<!ATTLIST STROKE lineWidth CDATA #IMPLIED
                lineJoin ( 0 | 1 | 2 ) "0" 
                lineCap ( 0 | 1 | 2 ) "0"
                miterLimit CDATA #IMPLIED 
>

<!--
    Fill mode and color.
-->

<!ELEMENT FILL (COLOR) >

<!--
    Color data.
-->

<!ELEMENT COLOR EMPTY >
<!ATTLIST COLOR colorSpace ( 0 | 1 | 2 ) "0"
               v1 CDATA #IMPLIED 
               v2 CDATA #IMPLIED
               v3 CDATA #IMPLIED
               v4 CDATA #IMPLIED 
>

<!--
    A path.
-->

<!ELEMENT PATH MOVE ( LINE | CURVE )+ >
<!ATTLIST PATH isClosed ( 0 | 1 ) "1"
>

<!--
    Path segment data.
-->

<!ELEMENT MOVE EMPTY >
<!ATTLIST MOVE x CDATA #IMPLIED
               y CDATA #IMPLIED  
>

<!ELEMENT LINE EMPTY >
<!ATTLIST LINE x CDATA #IMPLIED
               y CDATA #IMPLIED  
>

<!ELEMENT CURVE EMPTY >
<!ATTLIST CURVE ctrlPointFixing ( 0 | 1 | 2 ) "0"
               x1 CDATA #IMPLIED
               y1 CDATA #IMPLIED  
               x2 CDATA #IMPLIED
               y2 CDATA #IMPLIED
               x3 CDATA #IMPLIED
               y3 CDATA #IMPLIED
>

<!-- ============================================================= -->
<!--
     End of DTD for Karbon
-->