RelaxNG/publidoc.rnc
author Patrick PIERRE <patrick.pierre@prismallia.fr>
dim., 12 juin 2011 15:21:35 +0200
changeset 20 79713ffae179
parent 18 e448c6a000e5
child 22 94b8e4454c47
permissions -rw-r--r--
Noms simplifiés
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
 & link*
patrick@0
   251
patrick@18
   252
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@18
   253
patrick@18
   254
# ~~~~~~ speech
patrick@18
   255
speech = element speech { speech.content }
patrick@18
   256
patrick@18
   257
speech.content =
patrick@18
   258
   speaker?,
patrick@18
   259
   stage?,
patrick@20
   260
   p+
patrick@18
   261
patrick@18
   262
# ~~~~~~ speaker
patrick@18
   263
speaker = element speaker { speaker.content }
patrick@18
   264
patrick@18
   265
speaker.content = inlines
patrick@18
   266
patrick@18
   267
# ~~~~~~ stage
patrick@18
   268
stage = element stage { stage.content }
patrick@18
   269
patrick@18
   270
stage.content = inlines
patrick@18
   271
patrick@17
   272
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@9
   273
patrick@9
   274
# ~~~~~~ list
patrick@9
   275
\list = element list { \list.content }
patrick@9
   276
patrick@9
   277
\list.content =
patrick@20
   278
   block.head?,
patrick@13
   279
   (  (attribute type {"ordered"} ?, item, item+)
patrick@9
   280
    | (attribute type {"glossary"}, glossary.item+) )
patrick@9
   281
patrick@9
   282
# ~~~~~~ item
patrick@9
   283
item = element item { item.content }
patrick@9
   284
patrick@9
   285
item.content = block+
patrick@9
   286
patrick@9
   287
# ~~~~~~ glossary.item
patrick@9
   288
glossary.item = element item { glossary.item.content }
patrick@9
   289
patrick@9
   290
glossary.item.content =
patrick@9
   291
   label,
patrick@9
   292
   block+
patrick@9
   293
patrick@9
   294
# ~~~~~~ label
patrick@9
   295
label = element label { label.content }
patrick@9
   296
patrick@9
   297
label.content = inlines
patrick@9
   298
patrick@17
   299
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@17
   300
patrick@17
   301
table = element table { table.content }
patrick@17
   302
patrick@17
   303
table.content =
patrick@20
   304
   block.head?,
patrick@17
   305
   tgroup+,
patrick@17
   306
   caption?
patrick@17
   307
patrick@17
   308
# ~~~~~~ tgroup
patrick@17
   309
tgroup = element tgroup { tgroup.attributes, tgroup.content }
patrick@17
   310
patrick@17
   311
tgroup.content =
patrick@17
   312
   thead?,
patrick@17
   313
   tfoot?,
patrick@17
   314
   tbody
patrick@17
   315
patrick@17
   316
tgroup.attributes =
patrick@17
   317
   cols.attribute
patrick@17
   318
 & align.attribute?
patrick@17
   319
 & colsep.attribute?
patrick@17
   320
 & rowsep.attribute?
patrick@17
   321
cols.attribute = attribute cols { xsd:positiveInteger }
patrick@17
   322
align.attribute = attribute align { "left"  |  "right"  | "center" | "justify" }
patrick@17
   323
colsep.attribute = attribute colsep { "0" | "1" }
patrick@17
   324
rowsep.attribute = attribute rowsep { "0" | "1" }
patrick@17
   325
patrick@17
   326
# ~~~~~~ thead, tfoot, tbody
patrick@17
   327
thead = element thead { thead.content }
patrick@17
   328
tfoot = element tfoot { tfoot.content }
patrick@17
   329
tbody = element tbody { tbody.content }
patrick@17
   330
patrick@17
   331
thead.content =
patrick@17
   332
   row+
patrick@17
   333
tfoot.content =
patrick@17
   334
   row+
patrick@17
   335
tbody.content =
patrick@17
   336
   row+
patrick@17
   337
patrick@17
   338
# ~~~~~~ row
patrick@17
   339
row = element row { row.attribute, row.content }
patrick@17
   340
patrick@17
   341
row.attribute =
patrick@17
   342
   valign.attribute?
patrick@17
   343
valign.attribute = attribute valign { "top" | "middle" | "bottom" }
patrick@17
   344
patrick@17
   345
row.content =
patrick@17
   346
  entry+
patrick@17
   347
patrick@17
   348
# ~~~~~~ entry
patrick@17
   349
entry = element entry { entry.content }
patrick@17
   350
patrick@17
   351
entry.content =
patrick@17
   352
   inlines
patrick@20
   353
 | p+
patrick@17
   354
patrick@17
   355
# ~~~~~~ caption
patrick@17
   356
caption = element caption { caption.content }
patrick@17
   357
patrick@17
   358
caption.content =
patrick@20
   359
   inlines
patrick@20
   360
 | p+
patrick@17
   361
patrick@0
   362
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   363
patrick@2
   364
# ~~~~~~ media
patrick@0
   365
media = element media { media.content }
patrick@0
   366
patrick@0
   367
media.content =
patrick@0
   368
   image+,
patrick@17
   369
   caption?
patrick@0
   370
patrick@2
   371
# ~~~~~~ image
patrick@0
   372
image = element image { image.attributes, image.content }
patrick@0
   373
patrick@0
   374
image.attributes =
patrick@0
   375
   media.id.attribute
patrick@17
   376
media.id.attribute = attribute id { xsd:NMTOKEN }
patrick@0
   377
patrick@0
   378
image.content =
patrick@0
   379
   copyright?
patrick@0
   380
patrick@2
   381
# ~~~~~~ copyright
patrick@0
   382
copyright = element copyright { copyright.content }
patrick@3
   383
patrick@0
   384
copyright.content = inlines
patrick@0
   385
patrick@0
   386
patrick@0
   387
# =============================================================================
patrick@20
   388
#                                 INLINE LEVEL
patrick@0
   389
# =============================================================================
patrick@0
   390
patrick@0
   391
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   392
patrick@0
   393
inlines = mixed {
patrick@0
   394
   sup*
patrick@0
   395
 & sub*
patrick@13
   396
 & number*
patrick@0
   397
 & date*
patrick@0
   398
 & name*
patrick@5
   399
 & note*
patrick@0
   400
 & foreign*
patrick@0
   401
 & highlight*
patrick@5
   402
 & mentioned*
patrick@5
   403
 & quote*
patrick@8
   404
 & acronym*
patrick@8
   405
 & term*
patrick@0
   406
}
patrick@0
   407
patrick@0
   408
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   409
patrick@0
   410
sup = element sup { inlines }
patrick@0
   411
patrick@0
   412
sub = element sub { inlines }
patrick@0
   413
patrick@13
   414
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   415
patrick@13
   416
number = element number {
patrick@13
   417
   ( attribute type {"roman"}, number.attributes, number.roman.content )
patrick@13
   418
 | ( number.attributes, number.content)
patrick@13
   419
}
patrick@13
   420
patrick@13
   421
number.attributes =
patrick@13
   422
   number.value.attribute?
patrick@13
   423
number.value.attribute = attribute value { xsd:integer | xsd:decimal }
patrick@13
   424
patrick@13
   425
number.content = mixed { sup* }
patrick@13
   426
number.roman.content = xsd:token {pattern = "[dlxvi]+"}
patrick@0
   427
patrick@0
   428
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   429
patrick@0
   430
date = element date { date.attributes, date.content }
patrick@0
   431
patrick@3
   432
date.attributes =
patrick@13
   433
   date.value.attribute
patrick@13
   434
 & date.of.attribute?
patrick@13
   435
date.value.attribute = attribute value { xsd:date | xsd:gYearMonth | xsd:gYear }
patrick@0
   436
date.of.attribute = attribute of { date.of.enumeration }
patrick@13
   437
date.of.enumeration = "birth" | "death"
patrick@0
   438
patrick@13
   439
date.content = mixed { sup* }
patrick@0
   440
patrick@2
   441
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   442
patrick@0
   443
name = element name { name.attributes, name.content }
patrick@2
   444
patrick@2
   445
name.attributes =
patrick@2
   446
   name.of.attribute?
patrick@0
   447
name.of.attribute = attribute of { name.of.enumeration }
patrick@0
   448
name.of.enumeration = "person" | "company" | "book" | "newspaper" | "party"
patrick@0
   449
patrick@2
   450
name.content = inlines
patrick@2
   451
patrick@5
   452
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   453
patrick@5
   454
note = element note { note.attributes, note.content }
patrick@0
   455
patrick@5
   456
note.attributes =
patrick@5
   457
   note.label.attribute?
patrick@5
   458
note.label.attribute = attribute label { text }
patrick@0
   459
patrick@5
   460
note.content =
patrick@17
   461
   inlines
patrick@20
   462
 | p+
patrick@0
   463
patrick@13
   464
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   465
patrick@0
   466
foreign = element foreign { foreign.attributes, foreign.content }
patrick@0
   467
patrick@9
   468
foreign.attributes =
patrick@9
   469
   lang.attribute?
patrick@0
   470
patrick@0
   471
foreign.content = inlines
patrick@0
   472
patrick@0
   473
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ highlight ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   474
patrick@0
   475
highlight = element highlight { highlight.content }
patrick@0
   476
patrick@0
   477
highlight.content = inlines
patrick@0
   478
patrick@5
   479
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@5
   480
patrick@5
   481
mentioned = element mentioned { mentioned.content }
patrick@5
   482
patrick@5
   483
mentioned.content = inlines
patrick@5
   484
patrick@5
   485
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@5
   486
patrick@5
   487
quote = element quote { quote.content }
patrick@5
   488
patrick@5
   489
quote.content = inlines
patrick@5
   490
patrick@8
   491
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@8
   492
patrick@8
   493
acronym = element acronym { acronym.content }
patrick@8
   494
patrick@8
   495
acronym.content = inlines
patrick@8
   496
patrick@8
   497
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@8
   498
patrick@8
   499
term = element term { term.content }
patrick@8
   500
patrick@8
   501
term.content = inlines
patrick@8
   502
patrick@0
   503
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
patrick@0
   504
patrick@0
   505
link = element link { link.attributes, link.content }
patrick@0
   506
patrick@9
   507
link.attributes =
patrick@9
   508
   (uri.attribute | idref.attribute)?
patrick@9
   509
uri.attribute = attribute uri { xsd:anyURI }
patrick@9
   510
idref.attribute = attribute idref { xsd:IDREF }
patrick@0
   511
patrick@0
   512
link.content = inlines