author | Patrick PIERRE <patrick.pierre@prismallia.fr> |
lun., 18 juil. 2011 23:35:32 +0200 | |
changeset 34 | c51d5097d065 |
parent 30 | c0f9e813c039 |
child 35 | de4114d12ef1 |
permissions | -rw-r--r-- |
patrick@0 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
patrick@0 | 2 |
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> |
patrick@0 | 3 |
<!-- $Id$ --> |
patrick@0 | 4 |
<start> |
patrick@0 | 5 |
<ref name="publiset"/> |
patrick@0 | 6 |
</start> |
patrick@0 | 7 |
<define name="publiset"> |
patrick@0 | 8 |
<element name="publiset"> |
patrick@0 | 9 |
<ref name="publiset.attributes"/> |
patrick@0 | 10 |
<ref name="publiset.content"/> |
patrick@0 | 11 |
</element> |
patrick@0 | 12 |
</define> |
patrick@0 | 13 |
<define name="publiset.attributes"> |
patrick@0 | 14 |
<ref name="version.attribute"/> |
patrick@0 | 15 |
</define> |
patrick@0 | 16 |
<define name="version.attribute"> |
patrick@0 | 17 |
<attribute name="version"> |
patrick@0 | 18 |
<value>1.0</value> |
patrick@0 | 19 |
</attribute> |
patrick@0 | 20 |
</define> |
patrick@0 | 21 |
<define name="publiset.content"> |
patrick@0 | 22 |
<oneOrMore> |
patrick@0 | 23 |
<choice> |
patrick@0 | 24 |
<ref name="composition"/> |
patrick@0 | 25 |
<ref name="selection"/> |
patrick@0 | 26 |
</choice> |
patrick@0 | 27 |
</oneOrMore> |
patrick@0 | 28 |
</define> |
patrick@0 | 29 |
<!-- |
patrick@0 | 30 |
============================================================================= |
patrick@20 | 31 |
TOP LEVEL |
patrick@0 | 32 |
============================================================================= |
patrick@0 | 33 |
--> |
patrick@0 | 34 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composition ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 35 |
<define name="composition"> |
patrick@0 | 36 |
<element name="composition"> |
patrick@0 | 37 |
<ref name="composition.attributes"/> |
patrick@0 | 38 |
<ref name="composition.content"/> |
patrick@0 | 39 |
</element> |
patrick@0 | 40 |
</define> |
patrick@0 | 41 |
<define name="composition.attributes"> |
patrick@0 | 42 |
<interleave> |
patrick@0 | 43 |
<ref name="composition.id.attribute"/> |
patrick@29 | 44 |
<optional> |
patrick@29 | 45 |
<ref name="path.attribute"/> |
patrick@29 | 46 |
</optional> |
patrick@29 | 47 |
<optional> |
patrick@29 | 48 |
<ref name="xpath.attribute"/> |
patrick@29 | 49 |
</optional> |
patrick@29 | 50 |
<optional> |
patrick@29 | 51 |
<ref name="xslt.attribute"/> |
patrick@29 | 52 |
</optional> |
patrick@0 | 53 |
<ref name="remap.attributes"/> |
patrick@0 | 54 |
</interleave> |
patrick@0 | 55 |
</define> |
patrick@0 | 56 |
<define name="composition.id.attribute"> |
patrick@0 | 57 |
<attribute name="xml:id"> |
patrick@0 | 58 |
<data type="ID"/> |
patrick@0 | 59 |
</attribute> |
patrick@0 | 60 |
</define> |
patrick@29 | 61 |
<define name="path.attribute"> |
patrick@29 | 62 |
<attribute name="path"> |
patrick@29 | 63 |
<data type="anyURI"/> |
patrick@29 | 64 |
</attribute> |
patrick@29 | 65 |
</define> |
patrick@29 | 66 |
<define name="xslt.attribute"> |
patrick@29 | 67 |
<attribute name="xslt"> |
patrick@29 | 68 |
<data type="anyURI"/> |
patrick@29 | 69 |
</attribute> |
patrick@29 | 70 |
</define> |
patrick@29 | 71 |
<define name="xpath.attribute"> |
patrick@29 | 72 |
<attribute name="xpath"/> |
patrick@29 | 73 |
</define> |
patrick@0 | 74 |
<define name="composition.content"> |
patrick@0 | 75 |
<optional> |
patrick@20 | 76 |
<ref name="composition.head"/> |
patrick@0 | 77 |
</optional> |
patrick@0 | 78 |
<oneOrMore> |
patrick@0 | 79 |
<choice> |
patrick@30 | 80 |
<ref name="composition.division"/> |
patrick@0 | 81 |
<ref name="composition.file"/> |
patrick@0 | 82 |
</choice> |
patrick@0 | 83 |
</oneOrMore> |
patrick@0 | 84 |
</define> |
patrick@0 | 85 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 86 |
<define name="selection"> |
patrick@0 | 87 |
<element name="selection"> |
patrick@0 | 88 |
<ref name="selection.attributes"/> |
patrick@0 | 89 |
<ref name="selection.content"/> |
patrick@0 | 90 |
</element> |
patrick@0 | 91 |
</define> |
patrick@0 | 92 |
<define name="selection.attributes"> |
patrick@29 | 93 |
<interleave> |
patrick@29 | 94 |
<ref name="selection.id.attribute"/> |
patrick@29 | 95 |
<optional> |
patrick@29 | 96 |
<ref name="path.attribute"/> |
patrick@29 | 97 |
</optional> |
patrick@29 | 98 |
</interleave> |
patrick@0 | 99 |
</define> |
patrick@0 | 100 |
<define name="selection.id.attribute"> |
patrick@0 | 101 |
<attribute name="xml:id"> |
patrick@0 | 102 |
<data type="ID"/> |
patrick@0 | 103 |
</attribute> |
patrick@0 | 104 |
</define> |
patrick@0 | 105 |
<define name="selection.content"> |
patrick@0 | 106 |
<optional> |
patrick@20 | 107 |
<ref name="selection.head"/> |
patrick@0 | 108 |
</optional> |
patrick@0 | 109 |
<oneOrMore> |
patrick@0 | 110 |
<choice> |
patrick@30 | 111 |
<ref name="selection.division"/> |
patrick@0 | 112 |
<ref name="selection.file"/> |
patrick@30 | 113 |
<ref name="link"/> |
patrick@0 | 114 |
</choice> |
patrick@0 | 115 |
</oneOrMore> |
patrick@0 | 116 |
</define> |
patrick@0 | 117 |
<!-- |
patrick@0 | 118 |
============================================================================= |
patrick@20 | 119 |
HEAD LEVEL |
patrick@0 | 120 |
============================================================================= |
patrick@0 | 121 |
--> |
patrick@20 | 122 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@20 | 123 |
<define name="composition.head"> |
patrick@20 | 124 |
<element name="head"> |
patrick@20 | 125 |
<ref name="head.attributes"/> |
patrick@20 | 126 |
<ref name="top.head.content"/> |
patrick@0 | 127 |
</element> |
patrick@0 | 128 |
</define> |
patrick@20 | 129 |
<define name="selection.head"> |
patrick@20 | 130 |
<element name="head"> |
patrick@20 | 131 |
<ref name="top.head.content"/> |
patrick@0 | 132 |
</element> |
patrick@0 | 133 |
</define> |
patrick@20 | 134 |
<define name="division.head"> |
patrick@20 | 135 |
<element name="head"> |
patrick@20 | 136 |
<ref name="division.head.content"/> |
patrick@20 | 137 |
</element> |
patrick@20 | 138 |
</define> |
patrick@20 | 139 |
<define name="head.attributes"> |
patrick@0 | 140 |
<ref name="remap.attributes"/> |
patrick@0 | 141 |
</define> |
patrick@20 | 142 |
<define name="top.head.content"> |
patrick@5 | 143 |
<interleave> |
patrick@5 | 144 |
<optional> |
patrick@5 | 145 |
<ref name="title"/> |
patrick@20 | 146 |
<optional> |
patrick@20 | 147 |
<ref name="subtitle"/> |
patrick@20 | 148 |
</optional> |
patrick@5 | 149 |
</optional> |
patrick@34 | 150 |
<zeroOrMore> |
patrick@34 | 151 |
<ref name="identifier"/> |
patrick@34 | 152 |
</zeroOrMore> |
patrick@5 | 153 |
<optional> |
patrick@20 | 154 |
<ref name="language"/> |
patrick@5 | 155 |
</optional> |
patrick@5 | 156 |
<zeroOrMore> |
patrick@5 | 157 |
<ref name="author"/> |
patrick@5 | 158 |
</zeroOrMore> |
patrick@5 | 159 |
<optional> |
patrick@5 | 160 |
<ref name="publisher"/> |
patrick@5 | 161 |
</optional> |
patrick@5 | 162 |
<optional> |
patrick@20 | 163 |
<ref name="source"/> |
patrick@20 | 164 |
</optional> |
patrick@20 | 165 |
</interleave> |
patrick@20 | 166 |
</define> |
patrick@20 | 167 |
<define name="division.head.content"> |
patrick@20 | 168 |
<interleave> |
patrick@20 | 169 |
<optional> |
patrick@20 | 170 |
<ref name="title"/> |
patrick@20 | 171 |
<optional> |
patrick@20 | 172 |
<ref name="subtitle"/> |
patrick@20 | 173 |
</optional> |
patrick@20 | 174 |
</optional> |
patrick@20 | 175 |
<optional> |
patrick@5 | 176 |
<ref name="language"/> |
patrick@5 | 177 |
</optional> |
patrick@5 | 178 |
</interleave> |
patrick@0 | 179 |
</define> |
patrick@0 | 180 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 181 |
<define name="title"> |
patrick@0 | 182 |
<element name="title"> |
patrick@0 | 183 |
<ref name="title.content"/> |
patrick@0 | 184 |
</element> |
patrick@0 | 185 |
</define> |
patrick@0 | 186 |
<define name="subtitle"> |
patrick@0 | 187 |
<element name="subtitle"> |
patrick@0 | 188 |
<ref name="title.content"/> |
patrick@0 | 189 |
</element> |
patrick@0 | 190 |
</define> |
patrick@20 | 191 |
<define name="title.content"> |
patrick@20 | 192 |
<ref name="inlines"/> |
patrick@20 | 193 |
</define> |
patrick@34 | 194 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ identifier ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@34 | 195 |
<define name="identifier"> |
patrick@34 | 196 |
<element name="identifier"> |
patrick@34 | 197 |
<ref name="identifier.content"/> |
patrick@34 | 198 |
<ref name="identifier.attributes"/> |
patrick@34 | 199 |
</element> |
patrick@34 | 200 |
</define> |
patrick@34 | 201 |
<define name="identifier.attributes"> |
patrick@34 | 202 |
<ref name="class.attribute"/> |
patrick@34 | 203 |
</define> |
patrick@34 | 204 |
<define name="class.attribute"> |
patrick@34 | 205 |
<attribute name="class"> |
patrick@34 | 206 |
<choice> |
patrick@34 | 207 |
<value>uri</value> |
patrick@34 | 208 |
<value>ean</value> |
patrick@34 | 209 |
</choice> |
patrick@34 | 210 |
</attribute> |
patrick@34 | 211 |
</define> |
patrick@34 | 212 |
<define name="identifier.content"> |
patrick@34 | 213 |
<choice> |
patrick@34 | 214 |
<data type="anyURI"/> |
patrick@34 | 215 |
<data type="NMTOKEN"/> |
patrick@34 | 216 |
</choice> |
patrick@34 | 217 |
</define> |
patrick@20 | 218 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@20 | 219 |
<define name="language"> |
patrick@20 | 220 |
<element name="language"> |
patrick@20 | 221 |
<ref name="language.attributes"/> |
patrick@20 | 222 |
</element> |
patrick@20 | 223 |
</define> |
patrick@20 | 224 |
<define name="language.attributes"> |
patrick@20 | 225 |
<ref name="lang.attribute"/> |
patrick@20 | 226 |
</define> |
patrick@20 | 227 |
<define name="lang.attribute"> |
patrick@20 | 228 |
<attribute name="xml:lang"> |
patrick@20 | 229 |
<data type="language"/> |
patrick@20 | 230 |
</attribute> |
patrick@20 | 231 |
</define> |
patrick@5 | 232 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@5 | 233 |
<!-- ~~~~~~ author --> |
patrick@5 | 234 |
<define name="author"> |
patrick@5 | 235 |
<element name="author"> |
patrick@5 | 236 |
<ref name="author.content"/> |
patrick@5 | 237 |
</element> |
patrick@5 | 238 |
</define> |
patrick@34 | 239 |
<define name="author.attributes"> |
patrick@34 | 240 |
<optional> |
patrick@34 | 241 |
<ref name="role.attribute"/> |
patrick@34 | 242 |
</optional> |
patrick@34 | 243 |
</define> |
patrick@34 | 244 |
<define name="role.attribute"> |
patrick@34 | 245 |
<attribute name="role"> |
patrick@34 | 246 |
<choice> |
patrick@34 | 247 |
<value>author</value> |
patrick@34 | 248 |
<value>illustrator</value> |
patrick@34 | 249 |
</choice> |
patrick@34 | 250 |
</attribute> |
patrick@34 | 251 |
</define> |
patrick@5 | 252 |
<define name="author.content"> |
patrick@5 | 253 |
<optional> |
patrick@5 | 254 |
<ref name="firstname"/> |
patrick@5 | 255 |
</optional> |
patrick@5 | 256 |
<ref name="lastname"/> |
patrick@34 | 257 |
<zeroOrMore> |
patrick@34 | 258 |
<ref name="role"/> |
patrick@34 | 259 |
</zeroOrMore> |
patrick@5 | 260 |
</define> |
patrick@5 | 261 |
<!-- ~~~~~~ publisher --> |
patrick@5 | 262 |
<define name="publisher"> |
patrick@5 | 263 |
<element name="publisher"> |
patrick@5 | 264 |
<ref name="publisher.content"/> |
patrick@5 | 265 |
</element> |
patrick@5 | 266 |
</define> |
patrick@5 | 267 |
<define name="publisher.content"> |
patrick@34 | 268 |
<ref name="label"/> |
patrick@34 | 269 |
<optional> |
patrick@34 | 270 |
<ref name="url"/> |
patrick@34 | 271 |
</optional> |
patrick@5 | 272 |
</define> |
patrick@5 | 273 |
<!-- ~~~~~~ firstname --> |
patrick@5 | 274 |
<define name="firstname"> |
patrick@5 | 275 |
<element name="firstname"> |
patrick@5 | 276 |
<ref name="firstname.content"/> |
patrick@5 | 277 |
</element> |
patrick@5 | 278 |
</define> |
patrick@5 | 279 |
<define name="firstname.content"> |
patrick@5 | 280 |
<ref name="inlines"/> |
patrick@5 | 281 |
</define> |
patrick@5 | 282 |
<!-- ~~~~~~ lastname --> |
patrick@5 | 283 |
<define name="lastname"> |
patrick@5 | 284 |
<element name="lastname"> |
patrick@5 | 285 |
<ref name="lastname.content"/> |
patrick@5 | 286 |
</element> |
patrick@5 | 287 |
</define> |
patrick@5 | 288 |
<define name="lastname.content"> |
patrick@5 | 289 |
<ref name="inlines"/> |
patrick@5 | 290 |
</define> |
patrick@34 | 291 |
<!-- ~~~~~~ label --> |
patrick@34 | 292 |
<define name="label"> |
patrick@34 | 293 |
<element name="label"> |
patrick@34 | 294 |
<ref name="label.content"/> |
patrick@34 | 295 |
</element> |
patrick@34 | 296 |
</define> |
patrick@34 | 297 |
<define name="label.content"> |
patrick@34 | 298 |
<ref name="inlines"/> |
patrick@34 | 299 |
</define> |
patrick@34 | 300 |
<!-- ~~~~~~ role --> |
patrick@34 | 301 |
<define name="role"> |
patrick@34 | 302 |
<element name="role"> |
patrick@34 | 303 |
<ref name="role.attributes"/> |
patrick@34 | 304 |
</element> |
patrick@34 | 305 |
</define> |
patrick@34 | 306 |
<define name="role.attributes"> |
patrick@34 | 307 |
<ref name="role.of.attribute"/> |
patrick@34 | 308 |
</define> |
patrick@34 | 309 |
<define name="role.of.attribute"> |
patrick@34 | 310 |
<attribute name="of"> |
patrick@34 | 311 |
<choice> |
patrick@34 | 312 |
<value>author</value> |
patrick@34 | 313 |
<value>illustrator</value> |
patrick@34 | 314 |
</choice> |
patrick@34 | 315 |
</attribute> |
patrick@34 | 316 |
</define> |
patrick@34 | 317 |
<!-- ~~~~~~ url --> |
patrick@34 | 318 |
<define name="url"> |
patrick@34 | 319 |
<element name="url"> |
patrick@34 | 320 |
<ref name="url.content"/> |
patrick@34 | 321 |
</element> |
patrick@34 | 322 |
</define> |
patrick@34 | 323 |
<define name="url.content"> |
patrick@34 | 324 |
<data type="anyURI"/> |
patrick@34 | 325 |
</define> |
patrick@0 | 326 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@2 | 327 |
<!-- ~~~~~~ source --> |
patrick@0 | 328 |
<define name="source"> |
patrick@0 | 329 |
<element name="source"> |
patrick@0 | 330 |
<ref name="source.attributes"/> |
patrick@0 | 331 |
<choice> |
patrick@0 | 332 |
<group> |
patrick@0 | 333 |
<attribute name="type"> |
patrick@0 | 334 |
<value>book</value> |
patrick@0 | 335 |
</attribute> |
patrick@0 | 336 |
<ref name="source.content.book"/> |
patrick@0 | 337 |
</group> |
patrick@0 | 338 |
<attribute name="type"> |
patrick@0 | 339 |
<value>file</value> |
patrick@0 | 340 |
</attribute> |
patrick@0 | 341 |
</choice> |
patrick@0 | 342 |
</element> |
patrick@0 | 343 |
</define> |
patrick@0 | 344 |
<define name="source.attributes"> |
patrick@0 | 345 |
<interleave> |
patrick@0 | 346 |
<optional> |
patrick@0 | 347 |
<ref name="source.id.attribute"/> |
patrick@0 | 348 |
</optional> |
patrick@0 | 349 |
<ref name="remap.attributes"/> |
patrick@0 | 350 |
</interleave> |
patrick@0 | 351 |
</define> |
patrick@0 | 352 |
<define name="source.id.attribute"> |
patrick@0 | 353 |
<attribute name="id"> |
patrick@0 | 354 |
<data type="NMTOKEN"/> |
patrick@0 | 355 |
</attribute> |
patrick@0 | 356 |
</define> |
patrick@0 | 357 |
<define name="source.content.book"> |
patrick@0 | 358 |
<optional> |
patrick@0 | 359 |
<ref name="title"/> |
patrick@0 | 360 |
</optional> |
patrick@0 | 361 |
<optional> |
patrick@0 | 362 |
<ref name="pagenumber"/> |
patrick@0 | 363 |
</optional> |
patrick@0 | 364 |
</define> |
patrick@2 | 365 |
<!-- ~~~~~~ pagenumber --> |
patrick@0 | 366 |
<define name="pagenumber"> |
patrick@0 | 367 |
<element name="pagenumber"> |
patrick@0 | 368 |
<ref name="pagenumber.attributes"/> |
patrick@0 | 369 |
</element> |
patrick@0 | 370 |
</define> |
patrick@0 | 371 |
<define name="pagenumber.attributes"> |
patrick@0 | 372 |
<ref name="pagenumber.value.attribute"/> |
patrick@0 | 373 |
</define> |
patrick@0 | 374 |
<define name="pagenumber.value.attribute"> |
patrick@0 | 375 |
<attribute name="value"> |
patrick@0 | 376 |
<ref name="pagenumber.value.enumeration"/> |
patrick@0 | 377 |
</attribute> |
patrick@0 | 378 |
</define> |
patrick@0 | 379 |
<define name="pagenumber.value.enumeration"> |
patrick@0 | 380 |
<data type="positiveInteger"/> |
patrick@0 | 381 |
</define> |
patrick@0 | 382 |
<!-- |
patrick@0 | 383 |
============================================================================= |
patrick@20 | 384 |
DIVISION LEVEL |
patrick@0 | 385 |
============================================================================= |
patrick@0 | 386 |
--> |
patrick@0 | 387 |
<define name="composition.division"> |
patrick@0 | 388 |
<element name="division"> |
patrick@0 | 389 |
<ref name="composition.division.attributes"/> |
patrick@0 | 390 |
<ref name="composition.division.content"/> |
patrick@0 | 391 |
</element> |
patrick@0 | 392 |
</define> |
patrick@0 | 393 |
<define name="selection.division"> |
patrick@0 | 394 |
<element name="division"> |
patrick@0 | 395 |
<ref name="selection.division.attributes"/> |
patrick@0 | 396 |
<ref name="selection.division.content"/> |
patrick@0 | 397 |
</element> |
patrick@0 | 398 |
</define> |
patrick@0 | 399 |
<define name="composition.division.attributes"> |
patrick@0 | 400 |
<interleave> |
patrick@0 | 401 |
<optional> |
patrick@26 | 402 |
<ref name="path.attribute"/> |
patrick@0 | 403 |
</optional> |
patrick@23 | 404 |
<optional> |
patrick@29 | 405 |
<ref name="xpath.attribute"/> |
patrick@23 | 406 |
</optional> |
patrick@23 | 407 |
<optional> |
patrick@29 | 408 |
<ref name="xslt.attribute"/> |
patrick@23 | 409 |
</optional> |
patrick@0 | 410 |
<ref name="remap.attributes"/> |
patrick@0 | 411 |
</interleave> |
patrick@0 | 412 |
</define> |
patrick@0 | 413 |
<define name="selection.division.attributes"> |
patrick@30 | 414 |
<optional> |
patrick@30 | 415 |
<ref name="path.attribute"/> |
patrick@30 | 416 |
</optional> |
patrick@23 | 417 |
</define> |
patrick@0 | 418 |
<define name="composition.division.content"> |
patrick@0 | 419 |
<optional> |
patrick@20 | 420 |
<ref name="composition.head"/> |
patrick@0 | 421 |
</optional> |
patrick@0 | 422 |
<oneOrMore> |
patrick@0 | 423 |
<choice> |
patrick@20 | 424 |
<ref name="composition.division"/> |
patrick@0 | 425 |
<ref name="composition.file"/> |
patrick@0 | 426 |
</choice> |
patrick@0 | 427 |
</oneOrMore> |
patrick@0 | 428 |
</define> |
patrick@0 | 429 |
<define name="selection.division.content"> |
patrick@0 | 430 |
<optional> |
patrick@20 | 431 |
<ref name="selection.head"/> |
patrick@0 | 432 |
</optional> |
patrick@0 | 433 |
<oneOrMore> |
patrick@0 | 434 |
<choice> |
patrick@20 | 435 |
<ref name="selection.division"/> |
patrick@0 | 436 |
<ref name="selection.file"/> |
patrick@30 | 437 |
<ref name="link"/> |
patrick@0 | 438 |
</choice> |
patrick@0 | 439 |
</oneOrMore> |
patrick@0 | 440 |
</define> |
patrick@0 | 441 |
<!-- |
patrick@0 | 442 |
============================================================================= |
patrick@20 | 443 |
FILE LEVEL |
patrick@0 | 444 |
============================================================================= |
patrick@0 | 445 |
--> |
patrick@0 | 446 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 447 |
<define name="composition.file"> |
patrick@0 | 448 |
<element name="file"> |
patrick@0 | 449 |
<ref name="composition.file.attributes"/> |
patrick@0 | 450 |
</element> |
patrick@0 | 451 |
</define> |
patrick@0 | 452 |
<define name="selection.file"> |
patrick@0 | 453 |
<element name="file"> |
patrick@0 | 454 |
<ref name="selection.file.attributes"/> |
patrick@2 | 455 |
<ref name="file.content"/> |
patrick@0 | 456 |
</element> |
patrick@0 | 457 |
</define> |
patrick@0 | 458 |
<define name="composition.file.attributes"> |
patrick@0 | 459 |
<interleave> |
patrick@30 | 460 |
<ref name="name.attribute"/> |
patrick@0 | 461 |
<optional> |
patrick@29 | 462 |
<ref name="xpath.attribute"/> |
patrick@0 | 463 |
</optional> |
patrick@20 | 464 |
<optional> |
patrick@29 | 465 |
<ref name="xslt.attribute"/> |
patrick@20 | 466 |
</optional> |
patrick@0 | 467 |
<ref name="remap.attributes"/> |
patrick@0 | 468 |
</interleave> |
patrick@0 | 469 |
</define> |
patrick@0 | 470 |
<define name="selection.file.attributes"> |
patrick@30 | 471 |
<interleave> |
patrick@30 | 472 |
<ref name="name.attribute"/> |
patrick@30 | 473 |
<optional> |
patrick@30 | 474 |
<ref name="uri.attribute"/> |
patrick@30 | 475 |
</optional> |
patrick@30 | 476 |
</interleave> |
patrick@30 | 477 |
</define> |
patrick@30 | 478 |
<define name="name.attribute"> |
patrick@30 | 479 |
<attribute name="name"> |
patrick@30 | 480 |
<data type="anyURI"/> |
patrick@30 | 481 |
</attribute> |
patrick@30 | 482 |
</define> |
patrick@30 | 483 |
<define name="uri.attribute"> |
patrick@30 | 484 |
<attribute name="uri"> |
patrick@30 | 485 |
<data type="anyURI"/> |
patrick@30 | 486 |
</attribute> |
patrick@0 | 487 |
</define> |
patrick@2 | 488 |
<define name="file.content"> |
patrick@30 | 489 |
<ref name="inlines"/> |
patrick@30 | 490 |
</define> |
patrick@30 | 491 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@30 | 492 |
<define name="link"> |
patrick@30 | 493 |
<element name="link"> |
patrick@30 | 494 |
<ref name="link.attributes"/> |
patrick@30 | 495 |
<ref name="link.content"/> |
patrick@30 | 496 |
</element> |
patrick@30 | 497 |
</define> |
patrick@30 | 498 |
<define name="link.attributes"> |
patrick@30 | 499 |
<ref name="uri.attribute"/> |
patrick@30 | 500 |
</define> |
patrick@30 | 501 |
<define name="link.content"> |
patrick@30 | 502 |
<ref name="inlines"/> |
patrick@2 | 503 |
</define> |
patrick@0 | 504 |
<!-- |
patrick@0 | 505 |
============================================================================= |
patrick@20 | 506 |
INLINE LEVEL |
patrick@0 | 507 |
============================================================================= |
patrick@0 | 508 |
--> |
patrick@0 | 509 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 510 |
<define name="inlines"> |
patrick@0 | 511 |
<mixed> |
patrick@0 | 512 |
<interleave> |
patrick@0 | 513 |
<zeroOrMore> |
patrick@0 | 514 |
<ref name="sup"/> |
patrick@0 | 515 |
</zeroOrMore> |
patrick@0 | 516 |
<zeroOrMore> |
patrick@0 | 517 |
<ref name="sub"/> |
patrick@0 | 518 |
</zeroOrMore> |
patrick@0 | 519 |
</interleave> |
patrick@0 | 520 |
</mixed> |
patrick@0 | 521 |
</define> |
patrick@0 | 522 |
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> |
patrick@0 | 523 |
<define name="sup"> |
patrick@0 | 524 |
<element name="sup"> |
patrick@0 | 525 |
<ref name="inlines"/> |
patrick@0 | 526 |
</element> |
patrick@0 | 527 |
</define> |
patrick@0 | 528 |
<define name="sub"> |
patrick@0 | 529 |
<element name="sub"> |
patrick@0 | 530 |
<ref name="inlines"/> |
patrick@0 | 531 |
</element> |
patrick@0 | 532 |
</define> |
patrick@0 | 533 |
<!-- |
patrick@0 | 534 |
============================================================================= |
patrick@20 | 535 |
REMAP ATTRIBUTES |
patrick@0 | 536 |
============================================================================= |
patrick@0 | 537 |
--> |
patrick@0 | 538 |
<define name="remap.attributes"> |
patrick@0 | 539 |
<interleave> |
patrick@0 | 540 |
<optional> |
patrick@0 | 541 |
<ref name="as.attribute"/> |
patrick@0 | 542 |
</optional> |
patrick@0 | 543 |
<optional> |
patrick@0 | 544 |
<ref name="attributes.attribute"/> |
patrick@0 | 545 |
</optional> |
patrick@0 | 546 |
</interleave> |
patrick@0 | 547 |
</define> |
patrick@0 | 548 |
<define name="as.attribute"> |
patrick@0 | 549 |
<attribute name="as"> |
patrick@0 | 550 |
<data type="QName"/> |
patrick@0 | 551 |
</attribute> |
patrick@0 | 552 |
</define> |
patrick@0 | 553 |
<define name="attributes.attribute"> |
patrick@0 | 554 |
<attribute name="attributes"> |
patrick@0 | 555 |
<list> |
patrick@0 | 556 |
<oneOrMore> |
patrick@0 | 557 |
<data type="token"> |
patrick@0 | 558 |
<param name="pattern">\c+=\S+</param> |
patrick@0 | 559 |
</data> |
patrick@0 | 560 |
</oneOrMore> |
patrick@0 | 561 |
</list> |
patrick@0 | 562 |
</attribute> |
patrick@0 | 563 |
</define> |
patrick@0 | 564 |
</grammar> |