| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<grammar ns="" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://relaxng.org/ns/structure/1.0"> |
| 3 |
<!-- See http://docbook.org/ns/docbook-slides --> |
| 4 |
<!-- |
| 5 |
This file is part of DocBook Slides V5.0 |
| 6 |
|
| 7 |
Copyright 2012 Gabor Kovesdan |
| 8 |
|
| 9 |
Permission to use, copy, modify and distribute the DocBook Slides |
| 10 |
schema and its accompanying documentation for any purpose and without |
| 11 |
fee is hereby granted in perpetuity, provided that the above copyright |
| 12 |
notice and this paragraph appear in all copies. The copyright |
| 13 |
holders make no representation about the suitability of the schema |
| 14 |
for any purpose. It is provided "as is" without expressed or implied |
| 15 |
warranty. |
| 16 |
|
| 17 |
If you modify the DocBook Slides schema in any way, label your schema |
| 18 |
as a variant of DocBook Slides. See the reference documentation |
| 19 |
(http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook) |
| 20 |
for more information. |
| 21 |
|
| 22 |
Please direct all questions, bug reports, or suggestions for changes |
| 23 |
to the [email protected] mailing list. For more |
| 24 |
information, see http://www.oasis-open.org/docbook/. |
| 25 |
|
| 26 |
====================================================================== |
| 27 |
--> |
| 28 |
<include href="docbook.rng" ns="http://docbook.org/ns/docbook"> |
| 29 |
<start> |
| 30 |
<ref name="dbs.slides"/> |
| 31 |
</start> |
| 32 |
<!-- Avoid ID clashes --> |
| 33 |
<define name="db._any.attribute"> |
| 34 |
<attribute> |
| 35 |
<anyName> |
| 36 |
<except> |
| 37 |
<name>xml:id</name> |
| 38 |
<name ns="">linkend</name> |
| 39 |
</except> |
| 40 |
</anyName> |
| 41 |
</attribute> |
| 42 |
</define> |
| 43 |
<define name="db.common.attributes"> |
| 44 |
<interleave> |
| 45 |
<optional> |
| 46 |
<ref name="db.xml.id.attribute"/> |
| 47 |
</optional> |
| 48 |
<ref name="db.common.base.attributes"/> |
| 49 |
<optional> |
| 50 |
<ref name="db.annotations.attribute"/> |
| 51 |
</optional> |
| 52 |
<optional> |
| 53 |
<ref name="dbs.style.attributes"/> |
| 54 |
</optional> |
| 55 |
</interleave> |
| 56 |
</define> |
| 57 |
<!-- Any element and attribute from the SVG namespace --> |
| 58 |
<define name="db._any.svg"> |
| 59 |
<element> |
| 60 |
<nsName ns="http://www.w3.org/2000/svg"/> |
| 61 |
<zeroOrMore> |
| 62 |
<choice> |
| 63 |
<ref name="dbs._any.attribute"/> |
| 64 |
<text/> |
| 65 |
<ref name="db._any"/> |
| 66 |
</choice> |
| 67 |
</zeroOrMore> |
| 68 |
</element> |
| 69 |
</define> |
| 70 |
<!-- Any element and attribute from the MathML namespace --> |
| 71 |
<define name="db._any.mml"> |
| 72 |
<element> |
| 73 |
<nsName ns="http://www.w3.org/1998/Math/MathML"/> |
| 74 |
<zeroOrMore> |
| 75 |
<choice> |
| 76 |
<ref name="dbs._any.attribute"/> |
| 77 |
<text/> |
| 78 |
<ref name="db._any"/> |
| 79 |
</choice> |
| 80 |
</zeroOrMore> |
| 81 |
</element> |
| 82 |
</define> |
| 83 |
</include> |
| 84 |
<!-- Any attribute from any namespace --> |
| 85 |
<define name="dbs._any.attribute"> |
| 86 |
<attribute> |
| 87 |
<anyName/> |
| 88 |
</attribute> |
| 89 |
</define> |
| 90 |
<define name="dbs.all.content"> |
| 91 |
<interleave> |
| 92 |
<optional> |
| 93 |
<ref name="db.all.blocks"/> |
| 94 |
</optional> |
| 95 |
<optional> |
| 96 |
<ref name="dbs.speakernotes"/> |
| 97 |
</optional> |
| 98 |
<optional> |
| 99 |
<ref name="dbs.handoutnotes"/> |
| 100 |
</optional> |
| 101 |
<optional> |
| 102 |
<ref name="db._any.svg"/> |
| 103 |
</optional> |
| 104 |
<optional> |
| 105 |
<ref name="db._any.mml"/> |
| 106 |
</optional> |
| 107 |
<optional> |
| 108 |
<ref name="dbs.block"/> |
| 109 |
</optional> |
| 110 |
</interleave> |
| 111 |
</define> |
| 112 |
<define name="dbs.block"> |
| 113 |
<element> |
| 114 |
<a:documentation>Indicates a formatting block that can have its own styling applied</a:documentation> |
| 115 |
<name ns="http://docbook.org/ns/docbook-slides">block</name> |
| 116 |
<ref name="dbs.block.attlist"/> |
| 117 |
<zeroOrMore> |
| 118 |
<ref name="dbs.all.content"/> |
| 119 |
</zeroOrMore> |
| 120 |
</element> |
| 121 |
</define> |
| 122 |
<define name="dbs.block.role.attribute"> |
| 123 |
<attribute name="role"> |
| 124 |
<a:documentation>Role attribute for the block element</a:documentation> |
| 125 |
</attribute> |
| 126 |
</define> |
| 127 |
<define name="dbs.block.status.attribute"> |
| 128 |
<ref name="db.status.attribute"> |
| 129 |
<a:documentation>Status attribute for the block element</a:documentation> |
| 130 |
</ref> |
| 131 |
</define> |
| 132 |
<define name="dbs.block.attlist"> |
| 133 |
<interleave> |
| 134 |
<optional> |
| 135 |
<ref name="dbs.block.role.attribute"/> |
| 136 |
</optional> |
| 137 |
<ref name="db.common.attributes"/> |
| 138 |
<ref name="db.common.linking.attributes"/> |
| 139 |
<optional> |
| 140 |
<ref name="db.label.attribute"/> |
| 141 |
</optional> |
| 142 |
<optional> |
| 143 |
<ref name="dbs.block.status.attribute"/> |
| 144 |
</optional> |
| 145 |
</interleave> |
| 146 |
</define> |
| 147 |
<define name="dbs.slides"> |
| 148 |
<element> |
| 149 |
<a:documentation>Root element of a slides document</a:documentation> |
| 150 |
<name ns="http://docbook.org/ns/docbook-slides">slides</name> |
| 151 |
<ref name="dbs.slides.attlist"/> |
| 152 |
<ref name="db._info.title.req"/> |
| 153 |
<optional> |
| 154 |
<ref name="dbs.speakernotes"/> |
| 155 |
</optional> |
| 156 |
<optional> |
| 157 |
<ref name="dbs.handoutnotes"/> |
| 158 |
</optional> |
| 159 |
<zeroOrMore> |
| 160 |
<interleave> |
| 161 |
<optional> |
| 162 |
<ref name="dbs.foil"/> |
| 163 |
</optional> |
| 164 |
<optional> |
| 165 |
<ref name="dbs.foilgroup"/> |
| 166 |
</optional> |
| 167 |
</interleave> |
| 168 |
</zeroOrMore> |
| 169 |
</element> |
| 170 |
</define> |
| 171 |
<define name="dbs.slides.role.attribute"> |
| 172 |
<attribute name="role"> |
| 173 |
<a:documentation>Role attribute for the slides element</a:documentation> |
| 174 |
</attribute> |
| 175 |
</define> |
| 176 |
<define name="dbs.slides.status.attribute"> |
| 177 |
<ref name="db.status.attribute"> |
| 178 |
<a:documentation>Status attribute for the slides element</a:documentation> |
| 179 |
</ref> |
| 180 |
</define> |
| 181 |
<define name="dbs.slides.attlist"> |
| 182 |
<interleave> |
| 183 |
<optional> |
| 184 |
<ref name="dbs.slides.role.attribute"/> |
| 185 |
</optional> |
| 186 |
<ref name="db.common.attributes"/> |
| 187 |
<ref name="db.common.linking.attributes"/> |
| 188 |
<optional> |
| 189 |
<ref name="db.label.attribute"/> |
| 190 |
</optional> |
| 191 |
<optional> |
| 192 |
<ref name="dbs.slides.status.attribute"/> |
| 193 |
</optional> |
| 194 |
</interleave> |
| 195 |
</define> |
| 196 |
<define name="dbs.foilgroup"> |
| 197 |
<element> |
| 198 |
<name ns="http://docbook.org/ns/docbook-slides">foilgroup</name> |
| 199 |
<ref name="dbs.foilgroup.attlist"/> |
| 200 |
<ref name="db._info.title.req"/> |
| 201 |
<zeroOrMore> |
| 202 |
<ref name="dbs.all.content"/> |
| 203 |
</zeroOrMore> |
| 204 |
<oneOrMore> |
| 205 |
<ref name="dbs.foil"/> |
| 206 |
</oneOrMore> |
| 207 |
</element> |
| 208 |
</define> |
| 209 |
<define name="dbs.foilgroup.role.attribute"> |
| 210 |
<attribute name="role"> |
| 211 |
<a:documentation>Role attribute for the foilgroup element</a:documentation> |
| 212 |
</attribute> |
| 213 |
</define> |
| 214 |
<define name="dbs.foilgroup.status.attribute"> |
| 215 |
<ref name="db.status.attribute"> |
| 216 |
<a:documentation>Status attribute for the foilgroup element</a:documentation> |
| 217 |
</ref> |
| 218 |
</define> |
| 219 |
<define name="dbs.foilgroup.attlist"> |
| 220 |
<interleave> |
| 221 |
<optional> |
| 222 |
<ref name="dbs.foilgroup.role.attribute"/> |
| 223 |
</optional> |
| 224 |
<ref name="db.common.attributes"/> |
| 225 |
<ref name="db.common.linking.attributes"/> |
| 226 |
<optional> |
| 227 |
<ref name="db.label.attribute"/> |
| 228 |
</optional> |
| 229 |
<optional> |
| 230 |
<ref name="dbs.slides.status.attribute"/> |
| 231 |
</optional> |
| 232 |
</interleave> |
| 233 |
</define> |
| 234 |
<define name="dbs.foil"> |
| 235 |
<element> |
| 236 |
<a:documentation>Indicates a foil that may have some info and content</a:documentation> |
| 237 |
<name ns="http://docbook.org/ns/docbook-slides">foil</name> |
| 238 |
<ref name="dbs.foil.attlist"/> |
| 239 |
<ref name="db._info.title.req"/> |
| 240 |
<zeroOrMore> |
| 241 |
<ref name="dbs.all.content"/> |
| 242 |
</zeroOrMore> |
| 243 |
<zeroOrMore> |
| 244 |
<ref name="db.navigation.components"/> |
| 245 |
</zeroOrMore> |
| 246 |
</element> |
| 247 |
</define> |
| 248 |
<define name="dbs.foil.role.attribute"> |
| 249 |
<attribute name="role"> |
| 250 |
<a:documentation>Role attribute for the foil element</a:documentation> |
| 251 |
</attribute> |
| 252 |
</define> |
| 253 |
<define name="dbs.foil.status.attribute"> |
| 254 |
<ref name="db.status.attribute"> |
| 255 |
<a:documentation>Status attribute for the foil element</a:documentation> |
| 256 |
</ref> |
| 257 |
</define> |
| 258 |
<define name="dbs.foil.attlist"> |
| 259 |
<interleave> |
| 260 |
<optional> |
| 261 |
<ref name="dbs.foil.role.attribute"/> |
| 262 |
</optional> |
| 263 |
<ref name="db.common.attributes"/> |
| 264 |
<ref name="db.common.linking.attributes"/> |
| 265 |
<optional> |
| 266 |
<ref name="db.label.attribute"/> |
| 267 |
</optional> |
| 268 |
<optional> |
| 269 |
<ref name="dbs.foil.status.attribute"/> |
| 270 |
</optional> |
| 271 |
</interleave> |
| 272 |
</define> |
| 273 |
<define name="dbs.speakernotes"> |
| 274 |
<element> |
| 275 |
<a:documentation>Indicates notes for the speaker</a:documentation> |
| 276 |
<name ns="http://docbook.org/ns/docbook-slides">speakernotes</name> |
| 277 |
<ref name="dbs.speakernotes.attlist"/> |
| 278 |
<oneOrMore> |
| 279 |
<ref name="db.all.blocks"/> |
| 280 |
</oneOrMore> |
| 281 |
</element> |
| 282 |
</define> |
| 283 |
<define name="dbs.speakernotes.role.attribute"> |
| 284 |
<attribute name="role"> |
| 285 |
<a:documentation>Role attribute for the speakernotes element</a:documentation> |
| 286 |
</attribute> |
| 287 |
</define> |
| 288 |
<define name="dbs.speakernotes.attlist"> |
| 289 |
<interleave> |
| 290 |
<optional> |
| 291 |
<ref name="dbs.speakernotes.role.attribute"/> |
| 292 |
</optional> |
| 293 |
<ref name="db.common.attributes"/> |
| 294 |
<ref name="db.common.linking.attributes"/> |
| 295 |
</interleave> |
| 296 |
</define> |
| 297 |
<define name="dbs.handoutnotes"> |
| 298 |
<element> |
| 299 |
<a:documentation>Indicates notes that are meant for printed copies</a:documentation> |
| 300 |
<name ns="http://docbook.org/ns/docbook-slides">handoutnotes</name> |
| 301 |
<ref name="dbs.handoutnotes.attlist"/> |
| 302 |
<oneOrMore> |
| 303 |
<ref name="db.all.blocks"/> |
| 304 |
</oneOrMore> |
| 305 |
</element> |
| 306 |
</define> |
| 307 |
<define name="dbs.handoutnotes.role.attribute"> |
| 308 |
<a:documentation>Role attribute for the handoutnotes element</a:documentation> |
| 309 |
<attribute name="role"> |
| 310 |
<a:documentation>Role attribute for the handoutnotes element</a:documentation> |
| 311 |
</attribute> |
| 312 |
</define> |
| 313 |
<define name="dbs.handoutnotes.attlist"> |
| 314 |
<interleave> |
| 315 |
<optional> |
| 316 |
<ref name="dbs.handoutnotes.role.attribute"/> |
| 317 |
</optional> |
| 318 |
<ref name="db.common.attributes"/> |
| 319 |
<ref name="db.common.linking.attributes"/> |
| 320 |
</interleave> |
| 321 |
</define> |
| 322 |
<define name="dbs.style.attributes"> |
| 323 |
<interleave> |
| 324 |
<optional> |
| 325 |
<ref name="dbs.incremental.attribute"/> |
| 326 |
</optional> |
| 327 |
<optional> |
| 328 |
<ref name="dbs.collapsible.attribute"/> |
| 329 |
</optional> |
| 330 |
<optional> |
| 331 |
<ref name="dbs.style.attribute"/> |
| 332 |
</optional> |
| 333 |
</interleave> |
| 334 |
</define> |
| 335 |
<define name="dbs.incremental.attribute"> |
| 336 |
<attribute name="dbs:incremental"> |
| 337 |
<a:documentation>Attribute indicating an incremental part</a:documentation> |
| 338 |
<choice> |
| 339 |
<value>0</value> |
| 340 |
<a:documentation>disabled</a:documentation> |
| 341 |
<value>1</value> |
| 342 |
<a:documentation>enabled</a:documentation> |
| 343 |
</choice> |
| 344 |
</attribute> |
| 345 |
</define> |
| 346 |
<define name="dbs.collapsible.attribute"> |
| 347 |
<attribute name="dbs:collapsible"> |
| 348 |
<a:documentation>Attribute indicating a collapsible part</a:documentation> |
| 349 |
<choice> |
| 350 |
<value>0</value> |
| 351 |
<a:documentation>disabled</a:documentation> |
| 352 |
<value>1</value> |
| 353 |
<a:documentation>enabled</a:documentation> |
| 354 |
<value>expanded</value> |
| 355 |
<a:documentation>enabled and expanded by default</a:documentation> |
| 356 |
</choice> |
| 357 |
</attribute> |
| 358 |
</define> |
| 359 |
<define name="dbs.style.attribute"> |
| 360 |
<attribute name="dbs:style"> |
| 361 |
<a:documentation>Attribute indicating a formatting style class</a:documentation> |
| 362 |
</attribute> |
| 363 |
</define> |
| 364 |
</grammar> |