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