RelaxNG/publidoc.rnc
author Patrick PIERRE <patrick.pierre@prismallia.fr>
lun., 18 juil. 2011 19:10:28 +0200
changeset 33 c70de8fae29d
parent 30 c0f9e813c039
child 34 c51d5097d065
permissions -rw-r--r--
Ajout d'un role pour les auteurs
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@0
    24
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    25
patrick@0
    26
document = element document { document.attributes, document.content }
patrick@0
    27
patrick@0
    28
document.attributes =
patrick@0
    29
   document.id.attribute
patrick@0
    30
document.id.attribute = attribute xml:id { xsd:ID }
patrick@0
    31
patrick@0
    32
document.content =
patrick@20
    33
   top.head?,
patrick@0
    34
   (division+ | topic+)
patrick@0
    35
patrick@0
    36
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    37
patrick@18
    38
top.topic = element topic { top.topic.attributes, top.topic.content }
patrick@0
    39
patrick@20
    40
top.topic.attributes =
patrick@20
    41
   topic.id.attribute
patrick@20
    42
 & topic.type.attribute?
patrick@20
    43
topic.id.attribute = attribute xml:id { xsd:ID }
patrick@20
    44
topic.type.attribute = attribute type { xsd:NCName }
patrick@20
    45
patrick@20
    46
top.topic.content =
patrick@20
    47
   top.head?,
patrick@20
    48
   section+
patrick@0
    49
patrick@0
    50
# =============================================================================
patrick@20
    51
#                                 HEAD LEVEL
patrick@0
    52
# =============================================================================
patrick@0
    53
patrick@20
    54
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    55
patrick@20
    56
top.head = element head { top.head.content }
patrick@20
    57
division.head = element head { division.head.content }
patrick@20
    58
component.head = element head { component.head.content }
patrick@20
    59
section.head = element head { section.head.content }
patrick@20
    60
block.head = element head { block.head.content }
patrick@0
    61
patrick@20
    62
top.head.content =
patrick@18
    63
   (title, subtitle?)?
patrick@18
    64
 & language?
patrick@0
    65
 & author*
patrick@0
    66
 & publisher?
patrick@0
    67
 & date?
patrick@0
    68
 & place?
patrick@0
    69
 & source*
patrick@0
    70
 & subjectset?
patrick@0
    71
 & abstract?
patrick@0
    72
 & annotation*
patrick@20
    73
division.head.content =
patrick@18
    74
   (title, subtitle?)?
patrick@18
    75
 & language?
patrick@18
    76
 & annotation*
patrick@20
    77
component.head.content =
patrick@18
    78
   (title, subtitle?)?
patrick@18
    79
 & language?
patrick@18
    80
 & author*
patrick@18
    81
 & annotation*
patrick@20
    82
section.head.content =
patrick@18
    83
   (title, subtitle?)?
patrick@18
    84
 & language?
patrick@18
    85
 & annotation*
patrick@20
    86
block.head.content =
patrick@20
    87
   (title, subtitle?)?
patrick@0
    88
patrick@0
    89
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
    90
patrick@0
    91
title = element title { title.content }
patrick@18
    92
subtitle = element subtitle { title.content }
patrick@2
    93
patrick@0
    94
title.content = inlines
patrick@0
    95
patrick@18
    96
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@18
    97
patrick@18
    98
language = element language { language.attributes }
patrick@18
    99
patrick@18
   100
language.attributes = lang.attribute
patrick@18
   101
lang.attribute = attribute xml:lang { xsd:language }
patrick@0
   102
patrick@0
   103
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   104
patrick@5
   105
# ~~~~~~ author
patrick@0
   106
author = element author { author.content }
patrick@0
   107
patrick@33
   108
author.attributes =
patrick@33
   109
   role.attribute?
patrick@33
   110
role.attribute = attribute role { "author" | "illustrator" }
patrick@33
   111
patrick@0
   112
author.content =
patrick@0
   113
   firstname?,
patrick@33
   114
   lastname,
patrick@33
   115
   role*
patrick@33
   116
patrick@33
   117
role = element role { role.attributes }
patrick@33
   118
patrick@33
   119
role.attributes =
patrick@33
   120
   role.of.attribute
patrick@33
   121
role.of.attribute = attribute of { "author" | "illustrator" }
patrick@0
   122
patrick@5
   123
# ~~~~~~ publisher
patrick@0
   124
publisher = element publisher { publisher.content }
patrick@0
   125
patrick@0
   126
publisher.content = inlines
patrick@0
   127
patrick@5
   128
# ~~~~~~ firstname
patrick@5
   129
firstname = element firstname { firstname.content }
patrick@5
   130
patrick@5
   131
firstname.content = inlines
patrick@5
   132
patrick@5
   133
# ~~~~~~ lastname
patrick@5
   134
lastname = element lastname { lastname.content }
patrick@5
   135
patrick@5
   136
lastname.content = inlines
patrick@5
   137
patrick@2
   138
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@2
   139
patrick@2
   140
place = element place { place.content }
patrick@2
   141
patrick@2
   142
place.content = inlines
patrick@2
   143
patrick@0
   144
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   145
patrick@2
   146
# ~~~~~~ source
patrick@0
   147
source = element source {
patrick@0
   148
   source.attributes,
patrick@0
   149
   (  (attribute type { "book" }, source.content.book)
patrick@0
   150
    | (attribute type { "file" })),
patrick@0
   151
   source.content
patrick@0
   152
}
patrick@0
   153
patrick@0
   154
source.attributes =
patrick@0
   155
   source.id.attribute
patrick@0
   156
source.id.attribute = attribute id { xsd:NMTOKEN }
patrick@0
   157
patrick@0
   158
source.content.book =
patrick@0
   159
   title,
patrick@0
   160
   pagenumber*
patrick@0
   161
source.content =
patrick@0
   162
   annotation*
patrick@0
   163
patrick@2
   164
# ~~~~~~ pagenumber
patrick@0
   165
pagenumber = element pagenumber { pagenumber.attributes }
patrick@2
   166
patrick@0
   167
pagenumber.attributes =
patrick@0
   168
   pagenumber.value.attribute
patrick@33
   169
pagenumber.value.attribute = attribute value { xsd:positiveInteger }
patrick@0
   170
patrick@0
   171
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   172
patrick@2
   173
# ~~~~~~ subjectset
patrick@0
   174
subjectset = element subjectset { subjectset.content }
patrick@0
   175
patrick@0
   176
subjectset.content = subject+
patrick@0
   177
patrick@2
   178
# ~~~~~~ subject
patrick@0
   179
subject = element subject { subject.attributes }
patrick@2
   180
patrick@0
   181
subject.attributes =
patrick@0
   182
   subject.id.attribute
patrick@0
   183
subject.id.attribute = attribute id { xsd:NMTOKEN }
patrick@0
   184
patrick@5
   185
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@2
   186
patrick@2
   187
abstract = element abstract { abstract.content }
patrick@2
   188
patrick@2
   189
abstract.content =
patrick@20
   190
   p+
patrick@2
   191
patrick@0
   192
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   193
patrick@0
   194
annotation = element annotation { annotation.content }
patrick@0
   195
patrick@0
   196
annotation.content = inlines
patrick@0
   197
patrick@0
   198
patrick@0
   199
# =============================================================================
patrick@20
   200
#                                 DIVISION LEVEL
patrick@0
   201
# =============================================================================
patrick@0
   202
patrick@0
   203
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   204
patrick@0
   205
division = element division { division.content }
patrick@0
   206
patrick@0
   207
division.content =
patrick@20
   208
   division.head?,
patrick@0
   209
   (division+ | topic+)
patrick@0
   210
patrick@0
   211
patrick@0
   212
# =============================================================================
patrick@20
   213
#                               COMPONENT LEVEL
patrick@0
   214
# =============================================================================
patrick@0
   215
patrick@0
   216
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   217
patrick@0
   218
topic = element topic { topic.attributes, topic.content }
patrick@0
   219
patrick@0
   220
topic.attributes =
patrick@0
   221
   topic.id.attribute?
patrick@0
   222
 & topic.type.attribute?
patrick@0
   223
patrick@0
   224
topic.content =
patrick@20
   225
   component.head?,
patrick@0
   226
   section+
patrick@0
   227
patrick@0
   228
patrick@0
   229
# =============================================================================
patrick@20
   230
#                                 SECTION LEVEL
patrick@0
   231
# =============================================================================
patrick@0
   232
patrick@20
   233
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   234
patrick@0
   235
section = element section { section.content, section.attributes }
patrick@0
   236
patrick@0
   237
section.content =
patrick@20
   238
   section.head?,
patrick@9
   239
   (section+ | block+)
patrick@0
   240
patrick@0
   241
section.attributes =
patrick@0
   242
   status.attribute?
patrick@0
   243
status.attribute = attribute status { xsd:NCName }
patrick@0
   244
patrick@0
   245
patrick@0
   246
# =============================================================================
patrick@20
   247
#                                 BLOCK LEVEL
patrick@0
   248
# =============================================================================
patrick@0
   249
patrick@20
   250
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@9
   251
patrick@20
   252
block = (p | speech | \list | table | media)
patrick@9
   253
patrick@20
   254
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   255
patrick@20
   256
p = element p { p.content }
patrick@0
   257
patrick@20
   258
p.content =
patrick@0
   259
   inlines
patrick@0
   260
patrick@18
   261
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@18
   262
patrick@18
   263
# ~~~~~~ speech
patrick@18
   264
speech = element speech { speech.content }
patrick@18
   265
patrick@18
   266
speech.content =
patrick@18
   267
   speaker?,
patrick@18
   268
   stage?,
patrick@20
   269
   p+
patrick@18
   270
patrick@18
   271
# ~~~~~~ speaker
patrick@18
   272
speaker = element speaker { speaker.content }
patrick@18
   273
patrick@18
   274
speaker.content = inlines
patrick@18
   275
patrick@18
   276
# ~~~~~~ stage
patrick@18
   277
stage = element stage { stage.content }
patrick@18
   278
patrick@18
   279
stage.content = inlines
patrick@18
   280
patrick@17
   281
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@9
   282
patrick@9
   283
# ~~~~~~ list
patrick@9
   284
\list = element list { \list.content }
patrick@9
   285
patrick@9
   286
\list.content =
patrick@20
   287
   block.head?,
patrick@13
   288
   (  (attribute type {"ordered"} ?, item, item+)
patrick@9
   289
    | (attribute type {"glossary"}, glossary.item+) )
patrick@9
   290
patrick@9
   291
# ~~~~~~ item
patrick@9
   292
item = element item { item.content }
patrick@9
   293
patrick@30
   294
item.content =
patrick@30
   295
   inlines
patrick@30
   296
 | block+
patrick@9
   297
patrick@9
   298
# ~~~~~~ glossary.item
patrick@9
   299
glossary.item = element item { glossary.item.content }
patrick@9
   300
patrick@9
   301
glossary.item.content =
patrick@9
   302
   label,
patrick@9
   303
   block+
patrick@9
   304
patrick@9
   305
# ~~~~~~ label
patrick@9
   306
label = element label { label.content }
patrick@9
   307
patrick@9
   308
label.content = inlines
patrick@9
   309
patrick@17
   310
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@17
   311
patrick@17
   312
table = element table { table.content }
patrick@17
   313
patrick@17
   314
table.content =
patrick@20
   315
   block.head?,
patrick@17
   316
   tgroup+,
patrick@17
   317
   caption?
patrick@17
   318
patrick@17
   319
# ~~~~~~ tgroup
patrick@17
   320
tgroup = element tgroup { tgroup.attributes, tgroup.content }
patrick@17
   321
patrick@17
   322
tgroup.content =
patrick@17
   323
   thead?,
patrick@17
   324
   tfoot?,
patrick@17
   325
   tbody
patrick@17
   326
patrick@17
   327
tgroup.attributes =
patrick@17
   328
   cols.attribute
patrick@17
   329
 & align.attribute?
patrick@17
   330
 & colsep.attribute?
patrick@17
   331
 & rowsep.attribute?
patrick@17
   332
cols.attribute = attribute cols { xsd:positiveInteger }
patrick@17
   333
align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
patrick@17
   334
colsep.attribute = attribute colsep { "0" | "1" }
patrick@17
   335
rowsep.attribute = attribute rowsep { "0" | "1" }
patrick@17
   336
patrick@17
   337
# ~~~~~~ thead, tfoot, tbody
patrick@22
   338
thead = element thead { thead.attributes, thead.content }
patrick@22
   339
tfoot = element tfoot { tfoot.attributes, tfoot.content }
patrick@22
   340
tbody = element tbody { tbody.attributes, tbody.content }
patrick@17
   341
patrick@22
   342
thead.attributes =
patrick@22
   343
   valign.attribute?
patrick@22
   344
tfoot.attributes =
patrick@22
   345
   valign.attribute?
patrick@22
   346
tbody.attributes =
patrick@22
   347
   valign.attribute?
patrick@22
   348
valign.attribute = attribute valign { "top" | "middle" | "bottom" }
patrick@22
   349
   
patrick@17
   350
thead.content =
patrick@17
   351
   row+
patrick@17
   352
tfoot.content =
patrick@17
   353
   row+
patrick@17
   354
tbody.content =
patrick@17
   355
   row+
patrick@17
   356
patrick@17
   357
# ~~~~~~ row
patrick@17
   358
row = element row { row.attribute, row.content }
patrick@17
   359
patrick@17
   360
row.attribute =
patrick@17
   361
   valign.attribute?
patrick@17
   362
patrick@17
   363
row.content =
patrick@17
   364
  entry+
patrick@17
   365
patrick@17
   366
# ~~~~~~ entry
patrick@17
   367
entry = element entry { entry.content }
patrick@17
   368
patrick@17
   369
entry.content =
patrick@17
   370
   inlines
patrick@20
   371
 | p+
patrick@17
   372
patrick@17
   373
# ~~~~~~ caption
patrick@17
   374
caption = element caption { caption.content }
patrick@17
   375
patrick@17
   376
caption.content =
patrick@20
   377
   inlines
patrick@20
   378
 | p+
patrick@17
   379
patrick@0
   380
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   381
patrick@2
   382
# ~~~~~~ media
patrick@0
   383
media = element media { media.content }
patrick@0
   384
patrick@0
   385
media.content =
patrick@24
   386
   block.head?,
patrick@0
   387
   image+,
patrick@17
   388
   caption?
patrick@0
   389
patrick@2
   390
# ~~~~~~ image
patrick@0
   391
image = element image { image.attributes, image.content }
patrick@0
   392
patrick@0
   393
image.attributes =
patrick@0
   394
   media.id.attribute
patrick@17
   395
media.id.attribute = attribute id { xsd:NMTOKEN }
patrick@0
   396
patrick@0
   397
image.content =
patrick@0
   398
   copyright?
patrick@0
   399
patrick@2
   400
# ~~~~~~ copyright
patrick@0
   401
copyright = element copyright { copyright.content }
patrick@3
   402
patrick@0
   403
copyright.content = inlines
patrick@0
   404
patrick@0
   405
patrick@0
   406
# =============================================================================
patrick@20
   407
#                                 INLINE LEVEL
patrick@0
   408
# =============================================================================
patrick@0
   409
patrick@0
   410
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   411
patrick@0
   412
inlines = mixed {
patrick@0
   413
   sup*
patrick@0
   414
 & sub*
patrick@13
   415
 & number*
patrick@0
   416
 & date*
patrick@0
   417
 & name*
patrick@5
   418
 & note*
patrick@0
   419
 & foreign*
patrick@0
   420
 & highlight*
patrick@5
   421
 & mentioned*
patrick@5
   422
 & quote*
patrick@8
   423
 & acronym*
patrick@8
   424
 & term*
patrick@25
   425
 & link*
patrick@0
   426
}
patrick@0
   427
patrick@0
   428
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   429
patrick@0
   430
sup = element sup { inlines }
patrick@0
   431
patrick@0
   432
sub = element sub { inlines }
patrick@0
   433
patrick@13
   434
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   435
patrick@13
   436
number = element number {
patrick@13
   437
   ( attribute type {"roman"}, number.attributes, number.roman.content )
patrick@13
   438
 | ( number.attributes, number.content)
patrick@13
   439
}
patrick@13
   440
patrick@13
   441
number.attributes =
patrick@13
   442
   number.value.attribute?
patrick@13
   443
number.value.attribute = attribute value { xsd:integer | xsd:decimal }
patrick@13
   444
patrick@13
   445
number.content = mixed { sup* }
patrick@13
   446
number.roman.content = xsd:token {pattern = "[dlxvi]+"}
patrick@0
   447
patrick@0
   448
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   449
patrick@0
   450
date = element date { date.attributes, date.content }
patrick@0
   451
patrick@3
   452
date.attributes =
patrick@13
   453
   date.value.attribute
patrick@13
   454
 & date.of.attribute?
patrick@13
   455
date.value.attribute = attribute value { xsd:date | xsd:gYearMonth | xsd:gYear }
patrick@33
   456
date.of.attribute = attribute of { "birth" | "death" }
patrick@0
   457
patrick@13
   458
date.content = mixed { sup* }
patrick@0
   459
patrick@2
   460
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   461
patrick@0
   462
name = element name { name.attributes, name.content }
patrick@2
   463
patrick@2
   464
name.attributes =
patrick@2
   465
   name.of.attribute?
patrick@33
   466
name.of.attribute = attribute of
patrick@33
   467
   { "person" | "company" | "book" | "newspaper" | "party" }
patrick@0
   468
patrick@2
   469
name.content = inlines
patrick@2
   470
patrick@5
   471
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   472
patrick@5
   473
note = element note { note.attributes, note.content }
patrick@0
   474
patrick@5
   475
note.attributes =
patrick@5
   476
   note.label.attribute?
patrick@5
   477
note.label.attribute = attribute label { text }
patrick@0
   478
patrick@5
   479
note.content =
patrick@17
   480
   inlines
patrick@20
   481
 | p+
patrick@0
   482
patrick@13
   483
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   484
patrick@0
   485
foreign = element foreign { foreign.attributes, foreign.content }
patrick@0
   486
patrick@9
   487
foreign.attributes =
patrick@9
   488
   lang.attribute?
patrick@0
   489
patrick@0
   490
foreign.content = inlines
patrick@0
   491
patrick@0
   492
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ highlight ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   493
patrick@0
   494
highlight = element highlight { highlight.content }
patrick@0
   495
patrick@0
   496
highlight.content = inlines
patrick@0
   497
patrick@5
   498
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@5
   499
patrick@5
   500
mentioned = element mentioned { mentioned.content }
patrick@5
   501
patrick@5
   502
mentioned.content = inlines
patrick@5
   503
patrick@5
   504
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@5
   505
patrick@5
   506
quote = element quote { quote.content }
patrick@5
   507
patrick@5
   508
quote.content = inlines
patrick@5
   509
patrick@8
   510
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@8
   511
patrick@8
   512
acronym = element acronym { acronym.content }
patrick@8
   513
patrick@8
   514
acronym.content = inlines
patrick@8
   515
patrick@8
   516
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@8
   517
patrick@8
   518
term = element term { term.content }
patrick@8
   519
patrick@8
   520
term.content = inlines
patrick@8
   521
patrick@0
   522
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   523
patrick@0
   524
link = element link { link.attributes, link.content }
patrick@0
   525
patrick@9
   526
link.attributes =
patrick@9
   527
   (uri.attribute | idref.attribute)?
patrick@9
   528
uri.attribute = attribute uri { xsd:anyURI }
patrick@9
   529
idref.attribute = attribute idref { xsd:IDREF }
patrick@0
   530
patrick@0
   531
link.content = inlines