presentation.dtd 5.82 KB
Newer Older
1
<!-- $Id$ -->
gerd's avatar
gerd committed
2

gerd's avatar
gerd committed
3 4 5 6 7
<!-- This DTD should be referred to as:

     <!DOCTYPE presentation PUBLIC "-//GERD STOLPMANN//DTD PRESENTATION 1.0//EN" "">
  -->

8
<!ENTITY % p.like "p|ul|picture">
gerd's avatar
gerd committed
9
<!ENTITY % text   "br|code|c|em|footnote|a|numref|nameref|html|latex">
10
<!ENTITY % layout "layout|headline-layout|msg">
gerd's avatar
gerd committed
11

12 13
<!ELEMENT presentation (languages?,(%layout;)*,hierarchy,page+)>

14 15 16 17 18 19
<!ELEMENT languages (language+)>

<!ELEMENT language (#PCDATA)>    <!-- Description of language -->
<!ATTLIST language code  CDATA #REQUIRED
                   image CDATA #IMPLIED
>
gerd's avatar
gerd committed
20 21

<!ELEMENT layout (#PCDATA)>
22
<!ATTLIST layout
gerd's avatar
gerd committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36
          name NMTOKEN #REQUIRED>

<!ELEMENT headline-layout EMPTY>
<!ATTLIST headline-layout
          name         NMTOKEN  #REQUIRED
          font         CDATA    #REQUIRED
          font-size    CDATA    #REQUIRED
          text-color   CDATA    #REQUIRED
          high-color   CDATA    #REQUIRED
          side-color   CDATA    #REQUIRED
          shadow-color CDATA    #REQUIRED
          bg-color     CDATA    #REQUIRED
>

37 38 39 40 41
<!ELEMENT msg (#PCDATA)>
<!ATTLIST msg name CDATA #REQUIRED
              lang CDATA #REQUIRED
>

gerd's avatar
gerd committed
42 43 44
<!ELEMENT hierarchy (plevel)>
<!ATTLIST hierarchy
          parent-href CDATA #IMPLIED
45
          navstart CDATA #IMPLIED
gerd's avatar
gerd committed
46 47 48
>

<!ELEMENT plevel (related*,plevel*)>
49
<!ATTLIST plevel
gerd's avatar
gerd committed
50
          idref IDREF #REQUIRED
51 52
          navstart CDATA #IMPLIED
          layout-prefix CDATA #IMPLIED
gerd's avatar
gerd committed
53 54 55
>

<!ELEMENT related (#PCDATA)>
56
<!ATTLIST related
gerd's avatar
gerd committed
57 58
          href  CDATA #IMPLIED
          idref CDATA #IMPLIED
59
          lang  CDATA #IMPLIED
gerd's avatar
gerd committed
60
>
61

gerd's avatar
gerd committed
62

63
<!ELEMENT page (title*,sect1+)>
gerd's avatar
gerd committed
64
<!ATTLIST page
65
          title CDATA #IMPLIED
gerd's avatar
gerd committed
66 67
          id    ID    #IMPLIED
          file  CDATA #IMPLIED
gerd's avatar
gerd committed
68
          for-latex (yes|no) "yes"
gerd's avatar
gerd committed
69
>
70 71 72 73 74 75
  <!-- Title:
       - The _attribute_ "title" is only meaningful when I18N is disabled
         (no <languages/>). This is for backwards compatibility.
       - Otherwise, the first matching title element is taken (matching =
         has the right language)
   -->
76 77
  <!-- Layout customizable:
       "page":
78
          CHILDREN, TITLE, UPURL, UPTITLE, LEVEL, RELATED, FOOTER, LANG
79 80 81
       "navigator.topurl":
          -
       "navigator.toptitle":
82
          LANG
83
       "navigator.child":
84
          LEVELTITLE, LEVELURL, LANG
85
       "navigator.current", "navigator.level":
86
          LEVELTITLE, LEVELURL, SUBLEVELS, LANG
87
       "related.link":
88
          TEXT, HREF, LANG
89
       "related":
90
          LINK, LANG
91 92
    -->

gerd's avatar
gerd committed
93

94 95
<!ELEMENT sect1 (title*,(sect2|%p.like;)+)>
  <!-- Layout customizable: CHILDREN, TITLE, GIFURL, LANG -->
96

gerd's avatar
gerd committed
97 98
<!ATTLIST sect1 lang CDATA #IMPLIED>

gerd's avatar
gerd committed
99

100 101
<!ELEMENT sect2 (title*,(sect3|%p.like;)+)>
  <!-- Layout customizable: CHILDREN, TITLE, GIFURL, LANG -->
102

gerd's avatar
gerd committed
103 104
<!ATTLIST sect2 lang CDATA #IMPLIED>

gerd's avatar
gerd committed
105

106 107
<!ELEMENT sect3 (title*,(%p.like;)+)>
  <!-- Layout customizable: CHILDREN, TITLE, GIFURL, LANG -->
gerd's avatar
gerd committed
108 109

<!ATTLIST sect3 lang CDATA #IMPLIED>
110

gerd's avatar
gerd committed
111 112

<!ELEMENT title (#PCDATA|br)*>
113
<!ATTLIST title lang CDATA #IMPLIED>
gerd's avatar
gerd committed
114 115

<!ELEMENT p (#PCDATA|%text;)*>
116 117 118
  <!-- Layout customizable: CHILDREN, LANG -->

<!ATTLIST p lang CDATA #IMPLIED>
119

gerd's avatar
gerd committed
120 121

<!ELEMENT br EMPTY>
122
  <!-- Layout customizable: LANG -->
123

gerd's avatar
gerd committed
124 125

<!ELEMENT code (#PCDATA)>
126
  <!-- Formatted as a new block -->
127
  <!-- Layout customizable: CHILDREN, LANG -->
128 129 130

<!ELEMENT c (#PCDATA)>
  <!-- Inline -->
131
  <!-- Layout customizable: CHILDREN, LANG -->
132

gerd's avatar
gerd committed
133 134

<!ELEMENT em (#PCDATA|%text;)*>
135
  <!-- Layout customizable: CHILDREN, LANG -->
136

gerd's avatar
gerd committed
137 138

<!ELEMENT ul (li+)>
139 140 141
  <!-- Layout customizable: CHILDREN, LANG -->

<!ATTLIST ul lang CDATA #IMPLIED>
142

gerd's avatar
gerd committed
143 144

<!ELEMENT li (%p.like;)*>
145
  <!-- Layout customizable: CHILDREN, LANG -->
146

gerd's avatar
gerd committed
147 148

<!ELEMENT footnote (#PCDATA|%text;)*>
149
  <!-- Two customizable layouts:
150 151
       "footnote.text": SYMBOL, TEXTANCHOR, FOOTANCHOR, LANG
       "footnote.foot": SYMBOL, TEXTANCHOR, FOOTANCHOR, CHILDREN, LANG
152 153 154 155 156 157 158
    -->

<!ELEMENT picture EMPTY>
<!ATTLIST picture
          src     CDATA #REQUIRED
          id      ID    #IMPLIED
          caption CDATA #REQUIRED
gerd's avatar
gerd committed
159
          map     CDATA #IMPLIED
160
          lang    CDATA #IMPLIED
161
>
162
  <!-- Layout customizable: SRC, ANCHOR, CAPTION, NUMBER, MAP, LANG -->
gerd's avatar
gerd committed
163 164 165 166 167
  <!-- The attribute map is the name of a file containing a client-side
       image map. The file consists of lines with three columns, separated
       by space: idref shape coords. The generated <MAP><AREA>...</MAP>
       sequence is appended to the generated picture.
    -->
168 169 170
  <!-- I18N problem: It is not possible to have several pictures in different
       languages for a single id
    -->
171

gerd's avatar
gerd committed
172 173

<!ELEMENT a (#PCDATA)*>
174
<!ATTLIST a
gerd's avatar
gerd committed
175 176
          href  CDATA #IMPLIED
          idref IDREF #IMPLIED
gerd's avatar
gerd committed
177
          type  CDATA "default"
178
          langref CDATA #IMPLIED
gerd's avatar
gerd committed
179
>
180 181 182
  <!-- Generic hyperlink. Either href or idref must be specified.
       The name "a" (anchor) is historical; you cannot define anchors
       with this element.
gerd's avatar
gerd committed
183 184 185 186

       The layout option is called "a.TYPE" where TYPE is the string
       given in the "type" attribute. When the href is missing, TYPE
       is always "emptyref". The layout has access to vars HREF and CHILDREN.
187 188 189
       LANG, too.

       The "langref" attribute can be used to do cross-language hyperlinks.
190 191 192 193 194 195 196 197 198
    -->


<!ELEMENT numref EMPTY>
<!ATTLIST numref
          idref IDREF #REQUIRED
>
  <!-- Expands to a hyperlink containing the number of the picture
       (or page).
gerd's avatar
gerd committed
199 200

       The layout option is "numref.emptyref" if the href is missing,
201
       but normally "numref.default". Vars HREF and NUMBER. LANG, too.
202
    -->
gerd's avatar
gerd committed
203

204 205 206 207 208 209 210
<!ELEMENT nameref EMPTY>
<!ATTLIST nameref
          idref IDREF #REQUIRED
>
  <!-- Expands to a hyperlink containing the name of the object.
       For pages: The title of the page.
       For pictures: The caption of the picture.
gerd's avatar
gerd committed
211 212

       The layout option is "nameref.emptyref" if the href is missing,
213
       but normally "nameref.default". Vars HREF, TITLE, LANG.
214
    -->
gerd's avatar
gerd committed
215

gerd's avatar
gerd committed
216 217
<!ELEMENT html (#PCDATA)*>
  <!-- Includes the text as it is -->
gerd's avatar
gerd committed
218 219 220

<!ELEMENT latex (#PCDATA)*>
  <!-- Includes the text as it is -->