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