RelaxNG/publidoc.rnc
author Marc PIERRE
sam., 08 févr. 2014 02:15:14 +0100
changeset 305 db9645e39ec0
parent 297 2ba15c322900
child 306 08c4ccd5573f
permissions -rw-r--r--
Exemple d'ajustement d'iamge en LaTeX
patrick@0
     1
# $Id$
patrick@0
     2
patrick@0
     3
start = publidoc
patrick@0
     4
patrick@0
     5
patrick@0
     6
publidoc = element publidoc {
patrick@0
     7
   publidoc.attributes,
patrick@0
     8
   publidoc.content
patrick@0
     9
}
patrick@0
    10
patrick@0
    11
publidoc.attributes =
patrick@0
    12
   version.attribute
patrick@0
    13
version.attribute = attribute version { "1.0" }
patrick@0
    14
patrick@0
    15
publidoc.content =
patrick@0
    16
   document
patrick@0
    17
 | top.topic
patrick@0
    18
patrick@0
    19
patrick@0
    20
# =============================================================================
patrick@20
    21
#                                  TOP LEVEL
patrick@0
    22
# =============================================================================
patrick@0
    23
patrick@98
    24
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
    25
patrick@90
    26
top.head = element head { top.head.content }
patrick@90
    27
patrick@90
    28
top.head.content =
Patrick@217
    29
   (title, shorttitle?, subtitle*)?
Patrick@256
    30
 & identifier*
patrick@181
    31
 & copyright*
Patrick@155
    32
 & collection?
patrick@90
    33
 & contributors?
patrick@90
    34
 & date?
patrick@90
    35
 & place?
patrick@156
    36
 & (source, source?)?
patrick@90
    37
 & keywordset?
patrick@90
    38
 & subjectset?
patrick@90
    39
 & abstract?
Patrick@288
    40
 & head.index*
patrick@90
    41
 & cover?
patrick@90
    42
 & annotation*
patrick@90
    43
patrick@0
    44
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    45
patrick@90
    46
# ~~~~~~ document
patrick@0
    47
document = element document { document.attributes, document.content }
patrick@0
    48
patrick@0
    49
document.attributes =
patrick@0
    50
   document.id.attribute
patrick@142
    51
 & document.type.attribute?
patrick@66
    52
 & lang.attribute?
patrick@117
    53
document.id.attribute = attribute id { xsd:NMTOKEN }
patrick@142
    54
document.type.attribute = attribute type { xsd:NCName }
patrick@66
    55
lang.attribute = attribute xml:lang { xsd:language }
patrick@0
    56
patrick@0
    57
document.content =
patrick@20
    58
   top.head?,
patrick@56
    59
   (division | topic)+
patrick@0
    60
patrick@0
    61
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    62
patrick@18
    63
top.topic = element topic { top.topic.attributes, top.topic.content }
patrick@0
    64
patrick@20
    65
top.topic.attributes =
patrick@20
    66
   topic.id.attribute
patrick@20
    67
 & topic.type.attribute?
patrick@66
    68
 & lang.attribute?
patrick@117
    69
topic.id.attribute = attribute id { xsd:NMTOKEN }
patrick@20
    70
topic.type.attribute = attribute type { xsd:NCName }
patrick@20
    71
patrick@20
    72
top.topic.content =
patrick@20
    73
   top.head?,
Patrick@137
    74
   header?,
Patrick@190
    75
   ((section+, bibliography?) | bibliography),
Patrick@137
    76
   footer?
patrick@0
    77
patrick@40
    78
patrick@0
    79
# =============================================================================
patrick@20
    80
#                                 DIVISION LEVEL
patrick@0
    81
# =============================================================================
patrick@0
    82
patrick@70
    83
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    84
patrick@90
    85
# ~~~~~~ division
Patrick@232
    86
division = element division { division.attributes, division.content }
Patrick@232
    87
Patrick@232
    88
division.attributes =
Patrick@232
    89
   division.type.attribute?
Patrick@232
    90
division.type.attribute = attribute type { xsd:NCName }
patrick@0
    91
patrick@0
    92
division.content =
patrick@20
    93
   division.head?,
Patrick@217
    94
   front?,
patrick@56
    95
   (division | topic)+
patrick@0
    96
patrick@90
    97
# ~~~~~~ division.head
patrick@90
    98
division.head = element head { division.head.content }
patrick@90
    99
patrick@90
   100
division.head.content =
Patrick@217
   101
   (title, shorttitle?, subtitle*)?
Patrick@289
   102
 & head.index*
patrick@90
   103
 & abstract?
patrick@90
   104
 & annotation*
patrick@90
   105
Patrick@217
   106
# ~~~~~~ front
Patrick@217
   107
front = element front { front.content }
Patrick@217
   108
Patrick@217
   109
front.content =
Patrick@217
   110
   section+
Patrick@217
   111
patrick@0
   112
patrick@0
   113
# =============================================================================
patrick@90
   114
#                                COMPONENT LEVEL
patrick@0
   115
# =============================================================================
patrick@0
   116
patrick@90
   117
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ component.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   118
patrick@90
   119
component.head = element head { component.head.content }
patrick@90
   120
patrick@90
   121
component.head.content =
Patrick@217
   122
   (title, shorttitle?, subtitle*)?
patrick@90
   123
 & contributors?
patrick@143
   124
 & date?
patrick@143
   125
 & place?
patrick@143
   126
 & keywordset?
patrick@143
   127
 & subjectset?
Patrick@288
   128
 & head.index*
patrick@90
   129
 & abstract?
patrick@90
   130
 & annotation*
patrick@90
   131
patrick@0
   132
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   133
patrick@0
   134
topic = element topic { topic.attributes, topic.content }
patrick@0
   135
patrick@0
   136
topic.attributes =
Patrick@191
   137
   (topic.id.attribute | xmlid.attribute)?
patrick@0
   138
 & topic.type.attribute?
patrick@69
   139
 & lang.attribute?
Patrick@191
   140
xmlid.attribute = attribute xml:id { xsd:ID }
patrick@0
   141
patrick@0
   142
topic.content =
patrick@20
   143
   component.head?,
Patrick@137
   144
   header?,
Patrick@190
   145
   ((section+, bibliography?) | bibliography),
Patrick@137
   146
   footer?
patrick@0
   147
patrick@0
   148
patrick@0
   149
# =============================================================================
patrick@20
   150
#                                 SECTION LEVEL
patrick@0
   151
# =============================================================================
patrick@0
   152
Patrick@137
   153
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@137
   154
Patrick@137
   155
header = element header { header.content }
Patrick@137
   156
Patrick@137
   157
header.content =
Patrick@137
   158
   block+
Patrick@137
   159
patrick@20
   160
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   161
patrick@90
   162
# ~~~~~~ section
patrick@58
   163
section = element section { section.attributes, section.content }
patrick@58
   164
patrick@58
   165
section.attributes =
Patrick@279
   166
   xmlid.attribute?
Patrick@279
   167
 & section.type.attribute?
patrick@64
   168
 & lang.attribute?
patrick@166
   169
 & for.attribute?
patrick@58
   170
section.type.attribute = attribute type { xsd:NCName }
patrick@166
   171
for.attribute = attribute for { xsd:NCName }
patrick@0
   172
patrick@0
   173
section.content =
patrick@20
   174
   section.head?,
patrick@9
   175
   (section+ | block+)
patrick@0
   176
patrick@90
   177
# ~~~~~~ section.head
patrick@90
   178
section.head = element head { section.head.content }
patrick@90
   179
patrick@90
   180
section.head.content =
Patrick@217
   181
   (title, shorttitle?, subtitle*)?
Marc@177
   182
 & keywordset?
Marc@177
   183
 & subjectset?
Patrick@288
   184
 & head.index*
patrick@90
   185
 & abstract?
patrick@105
   186
 & audio*
patrick@90
   187
 & annotation*
patrick@90
   188
Patrick@189
   189
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bibliography ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@189
   190
Patrick@189
   191
# ~~~~~~ bibliography
Patrick@189
   192
bibliography = element bibliography { bibliography.content }
Patrick@189
   193
Patrick@189
   194
bibliography.content =
Patrick@189
   195
   bibliography.entry+
Patrick@189
   196
Patrick@137
   197
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ footer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@137
   198
Patrick@137
   199
footer = element footer { footer.content }
Patrick@137
   200
Patrick@137
   201
footer.content =
Patrick@137
   202
   block+
Patrick@137
   203
patrick@0
   204
patrick@0
   205
# =============================================================================
patrick@20
   206
#                                 BLOCK LEVEL
patrick@0
   207
# =============================================================================
patrick@0
   208
patrick@20
   209
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@9
   210
patrick@90
   211
# ~~~~~~ block
patrick@248
   212
block = (p | speech | \list | blockquote | table | table.cals | media)
patrick@9
   213
patrick@90
   214
# ~~~~~~ block.head
patrick@90
   215
block.head = element head { block.head.content }
patrick@90
   216
patrick@90
   217
block.head.content =
Patrick@217
   218
   (title, shorttitle?, subtitle*)?
Patrick@288
   219
 & head.index*
patrick@90
   220
patrick@42
   221
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   222
patrick@20
   223
p = element p { p.content }
patrick@0
   224
patrick@20
   225
p.content =
patrick@0
   226
   inlines
patrick@0
   227
patrick@18
   228
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@18
   229
patrick@18
   230
# ~~~~~~ speech
patrick@18
   231
speech = element speech { speech.content }
patrick@18
   232
patrick@18
   233
speech.content =
patrick@18
   234
   speaker?,
patrick@18
   235
   stage?,
Patrick@199
   236
   (p | blockquote)+
patrick@18
   237
patrick@18
   238
# ~~~~~~ speaker
patrick@18
   239
speaker = element speaker { speaker.content }
patrick@18
   240
patrick@18
   241
speaker.content = inlines
patrick@18
   242
patrick@17
   243
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@9
   244
patrick@9
   245
# ~~~~~~ list
patrick@75
   246
\list = element list {
patrick@20
   247
   block.head?,
patrick@71
   248
   (  (attribute type {"ordered"}?, item, item+)
patrick@9
   249
    | (attribute type {"glossary"}, glossary.item+) )
patrick@75
   250
}
patrick@9
   251
patrick@9
   252
# ~~~~~~ item
patrick@9
   253
item = element item { item.content }
patrick@9
   254
patrick@30
   255
item.content =
patrick@73
   256
   inlines
patrick@73
   257
 | block+
patrick@9
   258
patrick@9
   259
# ~~~~~~ glossary.item
patrick@9
   260
glossary.item = element item { glossary.item.content }
patrick@9
   261
patrick@9
   262
glossary.item.content =
patrick@9
   263
   label,
patrick@9
   264
   block+
patrick@9
   265
patrick@44
   266
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blockquote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@44
   267
patrick@44
   268
# ~~~~~~ blockquote
patrick@44
   269
blockquote = element blockquote { blockquote.content }
patrick@44
   270
patrick@44
   271
blockquote.content =
patrick@44
   272
   block.head?,
patrick@44
   273
   (p | speech | \list)+,
patrick@44
   274
   attribution?
patrick@44
   275
patrick@44
   276
# ~~~~~~ attribution
patrick@72
   277
attribution = element attribution { attribution.content }
patrick@44
   278
Patrick@225
   279
attribution.content = mixed {
Patrick@225
   280
   sup* & number* & date* & name* & foreign* & acronym* & term* & literal*
Patrick@238
   281
 & highlight* & emphasis* & mentioned* & note* & warning* }
patrick@44
   282
patrick@248
   283
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@17
   284
patrick@73
   285
# ~~~~~~ table
patrick@248
   286
table = element table { table.attributes, table.content }
patrick@248
   287
patrick@248
   288
table.attributes =
patrick@248
   289
   table.type.attribute?
patrick@248
   290
table.type.attribute = attribute type { xsd:NCName }
patrick@17
   291
patrick@17
   292
table.content =
patrick@20
   293
   block.head?,
patrick@248
   294
   thead?,
patrick@248
   295
   (tbody+ | tr+),
patrick@109
   296
   table.caption?
patrick@17
   297
patrick@248
   298
# ~~~~~~ thead, tbody
patrick@248
   299
thead = element thead { thead.content }
patrick@248
   300
tbody = element tbody { tbody.content }
patrick@17
   301
patrick@248
   302
thead.content =
patrick@248
   303
   tr+
patrick@248
   304
tbody.content =
patrick@248
   305
   tr+
patrick@17
   306
patrick@248
   307
# ~~~~~~ tr
patrick@248
   308
tr = element tr { tr.attributes, tr.content }
patrick@248
   309
patrick@248
   310
tr.attributes =
patrick@248
   311
   align.attribute?
patrick@248
   312
 & valign.attribute?
patrick@17
   313
align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
patrick@22
   314
valign.attribute = attribute valign { "top" | "middle" | "bottom" }
patrick@75
   315
patrick@248
   316
tr.content =
patrick@248
   317
   (td | th)+
patrick@17
   318
patrick@248
   319
# ~~~~~~ td, th
patrick@248
   320
td = element td { td.attributes, td.content }
patrick@248
   321
th = element th { td.attributes, td.content }
patrick@17
   322
patrick@248
   323
td.attributes =
patrick@146
   324
   align.attribute?
patrick@146
   325
 & valign.attribute?
patrick@248
   326
 & colspan.attribute?
patrick@248
   327
 & rowspan.attribute?
Anne@297
   328
 & td.type.attribute?
patrick@248
   329
colspan.attribute = attribute colspan { xsd:positiveInteger }
patrick@248
   330
rowspan.attribute = attribute rowspan { xsd:positiveInteger }
Anne@297
   331
td.type.attribute = attribute type { xsd:NCName }
patrick@17
   332
patrick@248
   333
td.content =
patrick@17
   334
   inlines
patrick@37
   335
 | (p | media)+
patrick@17
   336
patrick@109
   337
# ~~~~~~ table.caption
patrick@109
   338
table.caption = element caption { caption.content }
patrick@17
   339
patrick@17
   340
caption.content =
patrick@20
   341
   inlines
Patrick@138
   342
 | (p | speech | \list | blockquote)+
patrick@17
   343
patrick@248
   344
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table.cals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@248
   345
patrick@248
   346
# ~~~~~~ table.cals
patrick@248
   347
table.cals = element table { table.attributes, table.cals.content }
patrick@248
   348
patrick@248
   349
table.cals.content =
patrick@248
   350
   block.head?,
patrick@248
   351
   tgroup+,
patrick@248
   352
   table.caption?
patrick@248
   353
patrick@248
   354
# ~~~~~~ tgroup
patrick@248
   355
tgroup = element tgroup { tgroup.attributes, tgroup.content }
patrick@248
   356
patrick@248
   357
tgroup.attributes =
patrick@248
   358
   cols.attribute
patrick@248
   359
cols.attribute = attribute cols { xsd:positiveInteger }
patrick@248
   360
patrick@248
   361
tgroup.content =
patrick@248
   362
   thead.cals?,
patrick@248
   363
   tbody.cals
patrick@248
   364
patrick@248
   365
# ~~~~~~ thead, tbody
patrick@248
   366
thead.cals = element thead { thead.cals.content }
patrick@248
   367
tbody.cals = element tbody { tbody.cals.content }
patrick@248
   368
patrick@248
   369
thead.cals.content =
patrick@248
   370
   row+
patrick@248
   371
tbody.cals.content =
patrick@248
   372
   row+
patrick@248
   373
patrick@248
   374
# ~~~~~~ row
patrick@248
   375
row = element row { row.attributes, row.content }
patrick@248
   376
patrick@248
   377
row.attributes =
patrick@248
   378
   valign.attribute?
patrick@248
   379
patrick@248
   380
row.content =
patrick@248
   381
  table.cals.entry+
patrick@248
   382
patrick@248
   383
# ~~~~~~ table.cals.entry
patrick@248
   384
table.cals.entry = element entry {
patrick@248
   385
   table.cals.entry.attributes, table.cals.entry.content }
patrick@248
   386
patrick@248
   387
table.cals.entry.attributes =
patrick@248
   388
   align.attribute?
patrick@248
   389
 & valign.attribute?
patrick@248
   390
patrick@248
   391
table.cals.entry.content =
patrick@248
   392
   inlines
patrick@248
   393
 | (p | media)+
patrick@248
   394
patrick@35
   395
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   396
patrick@2
   397
# ~~~~~~ media
patrick@245
   398
media = element media { media.attributes, media.content }
patrick@245
   399
patrick@245
   400
media.attributes =
Patrick@279
   401
   xmlid.attribute?
Patrick@279
   402
 & media.type.attribute?
patrick@245
   403
media.type.attribute = attribute type { xsd:NCName }
patrick@0
   404
patrick@0
   405
media.content =
patrick@24
   406
   block.head?,
Patrick@288
   407
   (media.image | audio | video)+,
patrick@109
   408
   media.caption?,
patrick@36
   409
   link?
patrick@0
   410
patrick@2
   411
# ~~~~~~ image
Patrick@288
   412
image = element image { image.attributes }
Patrick@288
   413
media.image = element image { image.attributes, media.image.content }
patrick@0
   414
patrick@0
   415
image.attributes =
patrick@104
   416
   media.id.attribute
patrick@104
   417
 & image.type?
patrick@17
   418
media.id.attribute = attribute id { xsd:NMTOKEN }
Patrick@184
   419
image.type = attribute type { "cover" | "thumbnail" | "icon" | "animation" }
patrick@0
   420
Patrick@288
   421
media.image.content =
patrick@111
   422
   copyright?,
Patrick@176
   423
   hotspot*
patrick@0
   424
patrick@45
   425
# ~~~~~~ audio
patrick@45
   426
audio = element audio { audio.attributes }
patrick@43
   427
patrick@45
   428
audio.attributes =
patrick@43
   429
   media.id.attribute
patrick@104
   430
 & audio.type?
patrick@113
   431
audio.type = attribute type { "music" | "voice" | "background" | "smil" }
patrick@43
   432
patrick@119
   433
# ~~~~~~ video
patrick@119
   434
video = element video { video.attributes }
patrick@119
   435
patrick@119
   436
video.attributes =
patrick@119
   437
   media.id.attribute
patrick@119
   438
patrick@122
   439
# ~~~~~~ hotspot
patrick@122
   440
hotspot = element hotspot { hotspot.attributes, hotspot.content }
patrick@122
   441
patrick@122
   442
hotspot.attributes =
patrick@122
   443
   x.attribute
patrick@122
   444
 & y.attribute
patrick@182
   445
 & w.attribute
Patrick@183
   446
 & h.attribute?
Patrick@236
   447
 & hotspot.display.attribute?
Patrick@237
   448
 & hotspot.type.attribute?
Patrick@191
   449
 & xmlid.attribute?
Patrick@173
   450
x.attribute = attribute x { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
Patrick@173
   451
y.attribute = attribute y { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
patrick@182
   452
w.attribute = attribute w { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
patrick@182
   453
h.attribute = attribute h { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
Patrick@236
   454
hotspot.display.attribute = attribute display { "normal" | "visible" | "pulse" }
Patrick@237
   455
hotspot.type.attribute = attribute type { xsd:NCName }
Patrick@191
   456
   
Patrick@191
   457
hotspot.content =
Patrick@288
   458
   ((link | p+ | image | audio | video), (spot, scenario?)?)
Patrick@191
   459
 | (spot, scenario?)
patrick@243
   460
 | empty 
Patrick@191
   461
   
Patrick@191
   462
# ~~~~~~ spot
Patrick@191
   463
spot = element spot { spot.attributes, spot.content }
Patrick@191
   464
Patrick@191
   465
spot.attributes =
Patrick@191
   466
   dx.attribute?
Patrick@191
   467
 & dy.attribute?
Patrick@191
   468
 & dw.attribute?
Patrick@191
   469
 & dh.attribute?
patrick@188
   470
dx.attribute = attribute dx { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
patrick@188
   471
dy.attribute = attribute dy { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
Patrick@191
   472
dw.attribute = attribute dw { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
Patrick@191
   473
dh.attribute = attribute dh { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
Patrick@191
   474
Patrick@191
   475
spot.content =
Patrick@191
   476
   ((p+ | image), audio?)
Patrick@191
   477
 | audio
Patrick@191
   478
 | video
Patrick@191
   479
patrick@109
   480
# ~~~~~~ media.caption
patrick@109
   481
media.caption = element caption { caption.attributes, caption.content }
patrick@109
   482
patrick@109
   483
caption.attributes =
patrick@109
   484
   x.attribute?
patrick@109
   485
 & y.attribute?
patrick@109
   486
Patrick@191
   487
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scenario ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@191
   488
Patrick@191
   489
# ~~~~~~ scenario
Patrick@191
   490
scenario = element scenario { scenario.content }
Patrick@191
   491
Patrick@191
   492
scenario.content =
Patrick@191
   493
   init*,
Patrick@191
   494
   onclick*
Patrick@191
   495
Patrick@191
   496
# ~~~~~~ init
Patrick@191
   497
init = element init { init.attributes }
Patrick@191
   498
Patrick@191
   499
init.attributes =
Patrick@191
   500
   init.action.attribute
Patrick@191
   501
 & target.attribute?
Patrick@191
   502
init.action.attribute = attribute action { "hide" }
Patrick@191
   503
target.attribute = attribute target { "hotspot" | "spot" }
Patrick@191
   504
Patrick@191
   505
# ~~~~~~ onclick
Patrick@191
   506
onclick = element onclick { onclick.attributes }
Patrick@191
   507
Patrick@191
   508
onclick.attributes =
Patrick@191
   509
   onclick.action.attribute
Patrick@191
   510
 & target.attribute?
Patrick@191
   511
onclick.action.attribute = attribute action { "show" }
Patrick@191
   512
Patrick@189
   513
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bibliograpgy.entry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@189
   514
Patrick@189
   515
# ~~~~~~ bibliography.entry
Patrick@189
   516
bibliography.entry = element entry { bibliography.entry.content }
Patrick@189
   517
Patrick@189
   518
bibliography.entry.content =
Patrick@189
   519
   identifier.ean?
Patrick@189
   520
 & title
Patrick@189
   521
 & subtitle?
Patrick@189
   522
 & copyright?
Patrick@189
   523
 & collection?
Patrick@189
   524
 & contributors?
Patrick@189
   525
 & date?
Patrick@189
   526
 & place?
Patrick@189
   527
 & folio?
Patrick@189
   528
 & pages?
Patrick@189
   529
Patrick@189
   530
# ~~~~~~ folio
Patrick@189
   531
folio = element folio { folio.content }
Patrick@189
   532
Patrick@189
   533
folio.content = xsd:positiveInteger | xsd:token {pattern = "[DLXVI]+"}
Patrick@189
   534
Patrick@189
   535
# ~~~~~~ pages
Patrick@189
   536
pages = element pages { pages.content }
Patrick@189
   537
Patrick@189
   538
pages.content = xsd:positiveInteger
Patrick@189
   539
patrick@0
   540
patrick@0
   541
# =============================================================================
patrick@90
   542
#                                 HEAD LEVEL
patrick@90
   543
# =============================================================================
patrick@90
   544
patrick@127
   545
# ~~~~~~~~~~~~~~~~~~~~~~~ title, shorttitle, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   546
patrick@90
   547
title = element title { title.content }
patrick@127
   548
shorttitle = element shorttitle { title.content }
patrick@90
   549
subtitle = element subtitle { title.content }
patrick@90
   550
patrick@90
   551
title.content = inlines
patrick@90
   552
patrick@90
   553
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ identifier ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   554
Patrick@256
   555
# ~~~~~~ identifier
Patrick@257
   556
identifier = element identifier {
Patrick@257
   557
   (attribute type { "ean" }, for.attribute?, xsd:token {pattern = "\d{13}"})
Patrick@257
   558
 | (attribute type { "uri" }, for.attribute?, xsd:anyURI)
Patrick@257
   559
}
Patrick@257
   560
Patrick@257
   561
# ~~~~~~ identifier.ean
Patrick@257
   562
identifier.ean = element identifier {
Patrick@257
   563
   attribute type { "ean" }, for.attribute?, xsd:token {pattern = "\d{13}"}
Patrick@257
   564
}
patrick@90
   565
Patrick@256
   566
# ~~~~~~ identifier.uri
Patrick@257
   567
identifier.uri = element identifier {
Patrick@257
   568
   attribute type { "uri" }, for.attribute?, xsd:anyURI
Patrick@257
   569
}
patrick@90
   570
patrick@90
   571
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   572
patrick@90
   573
copyright = element copyright { copyright.content }
patrick@90
   574
Patrick@288
   575
copyright.content = simple.inlines
patrick@90
   576
Patrick@155
   577
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ collection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@155
   578
Patrick@155
   579
collection = element collection { collection.content }
Patrick@155
   580
Patrick@288
   581
collection.content = simple.inlines
Patrick@155
   582
patrick@90
   583
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contributors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   584
patrick@90
   585
# ~~~~~~ contributors
patrick@90
   586
contributors = element contributors { contributors.content }
patrick@90
   587
patrick@90
   588
contributors.content =
patrick@90
   589
   contributor+
patrick@90
   590
patrick@90
   591
# ~~~~~~ contributor
patrick@90
   592
contributor = element contributor { contributor.content }
patrick@90
   593
patrick@90
   594
contributor.content =
Patrick@263
   595
   identifier.uri?,
patrick@90
   596
   (((firstname, secondname?)?, lastname) | label),
patrick@90
   597
   address?,
patrick@90
   598
   link?,
patrick@101
   599
   role+
patrick@90
   600
patrick@90
   601
# ~~~~~~ firstname, secondname, lastname, label
patrick@90
   602
firstname = element firstname { firstname.content }
patrick@90
   603
secondname = element secondname { secondname.content }
patrick@90
   604
lastname = element lastname { lastname.content }
patrick@90
   605
label = element label { label.content }
patrick@90
   606
Patrick@288
   607
firstname.content = simple.inlines
Patrick@288
   608
secondname.content = simple.inlines
Patrick@288
   609
lastname.content = simple.inlines
Patrick@288
   610
label.content = simple.inlines
patrick@90
   611
patrick@90
   612
# ~~~~~~ address
patrick@90
   613
address = element address { address.content }
patrick@90
   614
Patrick@288
   615
address.content = simple.inlines
patrick@90
   616
patrick@90
   617
# ~~~~~~ role
patrick@90
   618
role = element role { role.content }
patrick@90
   619
patrick@90
   620
role.content = "author" | "illustrator" | "publisher" | "packager"
patrick@90
   621
patrick@90
   622
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   623
patrick@90
   624
place = element place { place.content }
patrick@90
   625
Patrick@288
   626
place.content = simple.inlines
patrick@90
   627
patrick@90
   628
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   629
patrick@90
   630
source = element source {
Patrick@189
   631
   (  (attribute type { "book" }, bibliography.entry.content)
patrick@90
   632
    | (attribute type { "file" }, source.content.file)),
patrick@90
   633
   source.content
patrick@90
   634
}
patrick@90
   635
patrick@90
   636
source.content.file =
patrick@90
   637
   identifier.uri
patrick@90
   638
source.content =
patrick@90
   639
   annotation*
patrick@90
   640
Patrick@189
   641
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   642
patrick@90
   643
# ~~~~~~ keywordset
patrick@90
   644
keywordset = element keywordset { keywordset.content }
patrick@90
   645
patrick@90
   646
keywordset.content = keyword+
patrick@90
   647
patrick@90
   648
# ~~~~~~ keyword
patrick@90
   649
keyword = element keyword { keyword.content }
patrick@90
   650
Patrick@288
   651
keyword.content = simple.inlines
patrick@90
   652
patrick@90
   653
# ~~~~~~ subjectset
patrick@90
   654
subjectset = element subjectset { subjectset.content }
patrick@90
   655
patrick@90
   656
subjectset.content = subject+
patrick@90
   657
patrick@90
   658
# ~~~~~~ subject
patrick@132
   659
subject = element subject { subject.content }
patrick@90
   660
Patrick@288
   661
subject.content = simple.inlines
Patrick@288
   662
Patrick@288
   663
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ index ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@288
   664
Patrick@288
   665
# ~~~~~~ index
Patrick@288
   666
index = element index { index.content }
Patrick@288
   667
head.index = element index { head.index.content }
Patrick@288
   668
Patrick@288
   669
index.content =
Patrick@288
   670
   (index.w, index.entry?)
Patrick@288
   671
 | (index.entry, (index.w | index.entry)?)
Patrick@288
   672
head.index.content =
Patrick@288
   673
   index.entry, index.entry?
Patrick@288
   674
Patrick@288
   675
# ~~~~~~ index.w
Patrick@288
   676
index.w = element w { simple.inlines }
Patrick@288
   677
Patrick@288
   678
# ~~~~~~ index.entry
Patrick@288
   679
index.entry = element entry { simple.inlines }
patrick@90
   680
patrick@90
   681
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   682
patrick@90
   683
abstract = element abstract { abstract.content }
patrick@90
   684
patrick@90
   685
abstract.content =
patrick@90
   686
   p+
patrick@90
   687
patrick@90
   688
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   689
patrick@90
   690
cover = element cover { cover.content }
patrick@90
   691
patrick@90
   692
cover.content =
patrick@90
   693
   cover.image
patrick@90
   694
patrick@90
   695
cover.image = element image { cover.image.attributes }
patrick@90
   696
patrick@90
   697
cover.image.attributes =
Patrick@288
   698
   media.id.attribute
patrick@105
   699
   
patrick@90
   700
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   701
patrick@90
   702
annotation = element annotation { annotation.content }
patrick@90
   703
patrick@90
   704
annotation.content = inlines
patrick@90
   705
patrick@90
   706
patrick@90
   707
# =============================================================================
patrick@20
   708
#                                 INLINE LEVEL
patrick@0
   709
# =============================================================================
patrick@0
   710
patrick@0
   711
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   712
Patrick@288
   713
simple.inlines = mixed {
patrick@0
   714
   sup*
patrick@0
   715
 & sub*
patrick@42
   716
 & var*
patrick@13
   717
 & number*
patrick@42
   718
 & math*
patrick@0
   719
 & date*
patrick@0
   720
 & name*
Patrick@212
   721
 & acronym*
Patrick@212
   722
 & term*
Patrick@288
   723
 & warning*
Patrick@288
   724
}
Patrick@288
   725
Patrick@293
   726
inlines = mixed {
Patrick@293
   727
   sup*
Patrick@293
   728
 & sub*
Patrick@293
   729
 & var*
Patrick@293
   730
 & number*
Patrick@293
   731
 & math*
Patrick@293
   732
 & date*
Patrick@293
   733
 & name*
Patrick@293
   734
 & acronym*
Patrick@293
   735
 & term*
Patrick@293
   736
 & warning*
Patrick@293
   737
Patrick@212
   738
 & literal*
Patrick@288
   739
 & foreign*
Patrick@212
   740
 & highlight*
Patrick@238
   741
 & emphasis*
Patrick@212
   742
 & mentioned*
Patrick@288
   743
 & stage*
Patrick@212
   744
 & initial*
patrick@5
   745
 & quote*
patrick@93
   746
 & image*
Patrick@208
   747
 & audio*
patrick@105
   748
 & smil*
Patrick@288
   749
 & note*
Patrick@288
   750
 & link*
Patrick@288
   751
 & anchor*
Patrick@288
   752
 & index*
Patrick@293
   753
}
patrick@0
   754
patrick@42
   755
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup, var ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   756
patrick@252
   757
sup = element sup { mixed { var* & warning* } }
patrick@0
   758
patrick@252
   759
sub = element sub { mixed { var* & warning* } }
patrick@42
   760
Patrick@225
   761
var = element var { mixed { warning* } }
patrick@42
   762
patrick@90
   763
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@90
   764
patrick@90
   765
number = element number {
patrick@90
   766
   ( attribute type {"roman"}, number.attributes, number.roman.content )
patrick@90
   767
 | ( number.attributes, number.content)
patrick@90
   768
}
patrick@90
   769
patrick@90
   770
number.attributes =
patrick@90
   771
   number.value.attribute?
patrick@90
   772
number.value.attribute = attribute value { xsd:integer | xsd:decimal }
patrick@90
   773
Patrick@212
   774
number.content = mixed { sup* & warning* }
patrick@246
   775
number.roman.content = xsd:token {pattern = "[MCLXVI]+"}
patrick@90
   776
patrick@42
   777
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ math ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@42
   778
Patrick@274
   779
# ~~~~~~ math
Patrick@274
   780
math = element math { math.attributes, math.content }
patrick@42
   781
patrick@42
   782
math.attributes =
Patrick@280
   783
   xmlid.attribute?
Patrick@280
   784
 & math.display.attribute?
Patrick@274
   785
math.display.attribute = attribute display {
Patrick@272
   786
   "wide" | "numbered" | "box"  | "numbered-box" }
patrick@42
   787
Patrick@274
   788
math.content =
Patrick@274
   789
   mixed { sup* & sub* & var* & warning* }
Patrick@274
   790
 | latex
Patrick@274
   791
Patrick@274
   792
# ~~~~~~ latex
Patrick@274
   793
latex = element latex { latex.attributes, latex.content }
Patrick@274
   794
Patrick@274
   795
latex.attributes =
Patrick@274
   796
   plain.attritute?
Patrick@274
   797
plain.attritute = attribute plain { xsd:boolean }
Patrick@274
   798
Patrick@274
   799
latex.content = text
patrick@0
   800
patrick@36
   801
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   802
patrick@0
   803
date = element date { date.attributes, date.content }
patrick@0
   804
patrick@3
   805
date.attributes =
patrick@13
   806
   date.value.attribute
patrick@13
   807
 & date.of.attribute?
patrick@13
   808
date.value.attribute = attribute value { xsd:date | xsd:gYearMonth | xsd:gYear }
patrick@33
   809
date.of.attribute = attribute of { "birth" | "death" }
patrick@0
   810
Patrick@226
   811
date.content = mixed { sup* & number* & warning* }
patrick@0
   812
patrick@36
   813
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   814
patrick@0
   815
name = element name { name.attributes, name.content }
patrick@2
   816
patrick@2
   817
name.attributes =
patrick@2
   818
   name.of.attribute?
Patrick@226
   819
name.of.attribute = attribute of {
Patrick@226
   820
   "person" | "company" | "book" | "newspaper" | "party" | "movie"
Patrick@226
   821
 | "painting" }
patrick@0
   822
Patrick@212
   823
name.content = mixed { sup* & number* & acronym* & warning* }
Patrick@212
   824
Patrick@212
   825
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   826
Patrick@212
   827
acronym = element acronym { acronym.content }
Patrick@212
   828
Patrick@212
   829
acronym.content = mixed { sup* & warning* }
Patrick@212
   830
Patrick@212
   831
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   832
Patrick@212
   833
term = element term { term.content }
Patrick@212
   834
Patrick@212
   835
term.content = mixed { sup* & warning* }
Patrick@212
   836
Patrick@212
   837
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ literal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   838
Patrick@212
   839
literal = element literal { literal.content }
Patrick@212
   840
patrick@253
   841
literal.content = inlines
Patrick@212
   842
Patrick@288
   843
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   844
Patrick@288
   845
foreign = element foreign { foreign.attributes, foreign.content }
Patrick@212
   846
Patrick@288
   847
foreign.attributes =
Patrick@288
   848
   lang.attribute?
Patrick@288
   849
Patrick@288
   850
foreign.content = inlines
Patrick@212
   851
Patrick@212
   852
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ highlight ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   853
Patrick@212
   854
highlight = element highlight { highlight.content }
Patrick@212
   855
Patrick@212
   856
highlight.content = inlines
Patrick@212
   857
Patrick@238
   858
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emphasis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@238
   859
Patrick@238
   860
emphasis = element emphasis { emphasis.content }
Patrick@238
   861
Patrick@238
   862
emphasis.content = inlines
Patrick@238
   863
Patrick@212
   864
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   865
Patrick@212
   866
mentioned = element mentioned { mentioned.content }
Patrick@212
   867
Patrick@212
   868
mentioned.content = inlines
Patrick@212
   869
Patrick@288
   870
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@288
   871
Patrick@288
   872
stage = element stage { stage.content }
Patrick@288
   873
Patrick@288
   874
stage.content = inlines
Patrick@288
   875
Patrick@212
   876
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ initial ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@212
   877
Patrick@212
   878
initial = element initial { initial.content }
Patrick@212
   879
Patrick@212
   880
initial.content =
Patrick@288
   881
   initial.c,
Patrick@288
   882
   initial.w?
Patrick@212
   883
Patrick@288
   884
initial.c = element c { text }
Patrick@288
   885
initial.w = element w { inlines }
patrick@91
   886
patrick@36
   887
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@5
   888
patrick@5
   889
quote = element quote { quote.content }
patrick@5
   890
patrick@131
   891
quote.content =
patrick@131
   892
   (phrase, attribution) | inlines
patrick@131
   893
patrick@131
   894
phrase = element phrase { phrase.content }
patrick@131
   895
patrick@131
   896
phrase.content = inlines
patrick@5
   897
patrick@105
   898
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smil ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@105
   899
patrick@105
   900
smil = element smil { smil.attributes, smil.content }
patrick@105
   901
patrick@105
   902
smil.attributes =
Patrick@207
   903
   audio.attribute?
Patrick@207
   904
 & begin.attribute?
patrick@105
   905
 & end.attribute?
Patrick@207
   906
audio.attribute = attribute audio { xsd:anyURI }
patrick@105
   907
begin.attribute = attribute begin { xsd:decimal }
patrick@105
   908
end.attribute = attribute end { xsd:decimal }
patrick@105
   909
patrick@105
   910
smil.content = inlines
Patrick@205
   911
Patrick@288
   912
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@288
   913
Patrick@288
   914
note = element note { note.attributes, note.content }
Patrick@288
   915
Patrick@288
   916
note.attributes =
Patrick@288
   917
   note.label.attribute?
Patrick@288
   918
note.label.attribute = attribute label { text }
Patrick@288
   919
Patrick@288
   920
note.content =
Patrick@288
   921
   (note.w?, block+)
Patrick@288
   922
 | inlines
Patrick@288
   923
Patrick@288
   924
note.w = element w { inlines }
Patrick@288
   925
Patrick@288
   926
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@288
   927
Patrick@288
   928
link = element link { link.attributes, link.content }
Patrick@288
   929
Patrick@288
   930
link.attributes =
Patrick@288
   931
   (uri.attribute | idref.attribute)
Patrick@288
   932
uri.attribute = attribute uri { xsd:anyURI }
Patrick@288
   933
idref.attribute = attribute idref { xsd:IDREF }
Patrick@288
   934
Patrick@288
   935
link.content = simple.inlines
Patrick@288
   936
Patrick@288
   937
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ anchor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@288
   938
Patrick@288
   939
anchor = element anchor { anchor.attributes, anchor.content }
Patrick@288
   940
Patrick@288
   941
anchor.attributes =
Patrick@288
   942
   anchor.id.attribute
Patrick@288
   943
anchor.id.attribute = attribute xml:id { xsd:ID }
Patrick@288
   944
Patrick@288
   945
anchor.content = simple.inlines
Patrick@288
   946
Patrick@205
   947
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick@205
   948
Patrick@285
   949
warning = element warning { warning.attributes, warning.content }
Patrick@285
   950
Patrick@285
   951
warning.attributes =
Patrick@285
   952
   warning.type.attribute?
Patrick@285
   953
warning.type.attribute = attribute type { xsd:NCName }
Patrick@205
   954
Patrick@231
   955
warning.content = inlines