RelaxNG/publidoc.rng
author Patrick PIERRE <patrick.pierre@prismallia.fr>
sam., 18 juin 2011 15:40:14 +0200
changeset 30 c0f9e813c039
parent 25 d77ae7040e3e
child 33 c70de8fae29d
permissions -rw-r--r--
Ajustement des sélection
patrick@0
     1
<?xml version="1.0" encoding="UTF-8"?>
patrick@0
     2
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
patrick@0
     3
  <!-- $Id$ -->
patrick@0
     4
  <start>
patrick@0
     5
    <ref name="publidoc"/>
patrick@0
     6
  </start>
patrick@0
     7
  <define name="publidoc">
patrick@0
     8
    <element name="publidoc">
patrick@0
     9
      <ref name="publidoc.attributes"/>
patrick@0
    10
      <ref name="publidoc.content"/>
patrick@0
    11
    </element>
patrick@0
    12
  </define>
patrick@0
    13
  <define name="publidoc.attributes">
patrick@0
    14
    <ref name="version.attribute"/>
patrick@0
    15
  </define>
patrick@0
    16
  <define name="version.attribute">
patrick@0
    17
    <attribute name="version">
patrick@0
    18
      <value>1.0</value>
patrick@0
    19
    </attribute>
patrick@0
    20
  </define>
patrick@0
    21
  <define name="publidoc.content">
patrick@0
    22
    <choice>
patrick@0
    23
      <ref name="document"/>
patrick@0
    24
      <ref name="top.topic"/>
patrick@0
    25
    </choice>
patrick@0
    26
  </define>
patrick@0
    27
  <!--
patrick@0
    28
    =============================================================================
patrick@20
    29
                                     TOP LEVEL
patrick@0
    30
    =============================================================================
patrick@0
    31
  -->
patrick@0
    32
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
    33
  <define name="document">
patrick@0
    34
    <element name="document">
patrick@0
    35
      <ref name="document.attributes"/>
patrick@0
    36
      <ref name="document.content"/>
patrick@0
    37
    </element>
patrick@0
    38
  </define>
patrick@0
    39
  <define name="document.attributes">
patrick@0
    40
    <ref name="document.id.attribute"/>
patrick@0
    41
  </define>
patrick@0
    42
  <define name="document.id.attribute">
patrick@0
    43
    <attribute name="xml:id">
patrick@0
    44
      <data type="ID"/>
patrick@0
    45
    </attribute>
patrick@0
    46
  </define>
patrick@0
    47
  <define name="document.content">
patrick@0
    48
    <optional>
patrick@20
    49
      <ref name="top.head"/>
patrick@0
    50
    </optional>
patrick@0
    51
    <choice>
patrick@0
    52
      <oneOrMore>
patrick@0
    53
        <ref name="division"/>
patrick@0
    54
      </oneOrMore>
patrick@0
    55
      <oneOrMore>
patrick@0
    56
        <ref name="topic"/>
patrick@0
    57
      </oneOrMore>
patrick@0
    58
    </choice>
patrick@0
    59
  </define>
patrick@0
    60
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
    61
  <define name="top.topic">
patrick@0
    62
    <element name="topic">
patrick@0
    63
      <ref name="top.topic.attributes"/>
patrick@20
    64
      <ref name="top.topic.content"/>
patrick@0
    65
    </element>
patrick@0
    66
  </define>
patrick@20
    67
  <define name="top.topic.attributes">
patrick@20
    68
    <interleave>
patrick@20
    69
      <ref name="topic.id.attribute"/>
patrick@20
    70
      <optional>
patrick@20
    71
        <ref name="topic.type.attribute"/>
patrick@20
    72
      </optional>
patrick@20
    73
    </interleave>
patrick@20
    74
  </define>
patrick@20
    75
  <define name="topic.id.attribute">
patrick@20
    76
    <attribute name="xml:id">
patrick@20
    77
      <data type="ID"/>
patrick@20
    78
    </attribute>
patrick@20
    79
  </define>
patrick@20
    80
  <define name="topic.type.attribute">
patrick@20
    81
    <attribute name="type">
patrick@20
    82
      <data type="NCName"/>
patrick@20
    83
    </attribute>
patrick@20
    84
  </define>
patrick@20
    85
  <define name="top.topic.content">
patrick@20
    86
    <optional>
patrick@20
    87
      <ref name="top.head"/>
patrick@20
    88
    </optional>
patrick@20
    89
    <oneOrMore>
patrick@20
    90
      <ref name="section"/>
patrick@20
    91
    </oneOrMore>
patrick@20
    92
  </define>
patrick@0
    93
  <!--
patrick@0
    94
    =============================================================================
patrick@20
    95
                                    HEAD LEVEL
patrick@0
    96
    =============================================================================
patrick@0
    97
  -->
patrick@20
    98
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@20
    99
  <define name="top.head">
patrick@20
   100
    <element name="head">
patrick@20
   101
      <ref name="top.head.content"/>
patrick@0
   102
    </element>
patrick@0
   103
  </define>
patrick@20
   104
  <define name="division.head">
patrick@20
   105
    <element name="head">
patrick@20
   106
      <ref name="division.head.content"/>
patrick@20
   107
    </element>
patrick@20
   108
  </define>
patrick@20
   109
  <define name="component.head">
patrick@20
   110
    <element name="head">
patrick@20
   111
      <ref name="component.head.content"/>
patrick@20
   112
    </element>
patrick@20
   113
  </define>
patrick@20
   114
  <define name="section.head">
patrick@20
   115
    <element name="head">
patrick@20
   116
      <ref name="section.head.content"/>
patrick@20
   117
    </element>
patrick@20
   118
  </define>
patrick@20
   119
  <define name="block.head">
patrick@20
   120
    <element name="head">
patrick@20
   121
      <ref name="block.head.content"/>
patrick@20
   122
    </element>
patrick@20
   123
  </define>
patrick@20
   124
  <define name="top.head.content">
patrick@0
   125
    <interleave>
patrick@0
   126
      <optional>
patrick@20
   127
        <ref name="title"/>
patrick@20
   128
        <optional>
patrick@20
   129
          <ref name="subtitle"/>
patrick@20
   130
        </optional>
patrick@20
   131
      </optional>
patrick@20
   132
      <optional>
patrick@20
   133
        <ref name="language"/>
patrick@0
   134
      </optional>
patrick@0
   135
      <zeroOrMore>
patrick@0
   136
        <ref name="author"/>
patrick@0
   137
      </zeroOrMore>
patrick@0
   138
      <optional>
patrick@0
   139
        <ref name="publisher"/>
patrick@0
   140
      </optional>
patrick@0
   141
      <optional>
patrick@0
   142
        <ref name="date"/>
patrick@0
   143
      </optional>
patrick@0
   144
      <optional>
patrick@0
   145
        <ref name="place"/>
patrick@0
   146
      </optional>
patrick@0
   147
      <zeroOrMore>
patrick@0
   148
        <ref name="source"/>
patrick@0
   149
      </zeroOrMore>
patrick@0
   150
      <optional>
patrick@0
   151
        <ref name="subjectset"/>
patrick@0
   152
      </optional>
patrick@0
   153
      <optional>
patrick@0
   154
        <ref name="abstract"/>
patrick@0
   155
      </optional>
patrick@0
   156
      <zeroOrMore>
patrick@0
   157
        <ref name="annotation"/>
patrick@0
   158
      </zeroOrMore>
patrick@0
   159
    </interleave>
patrick@0
   160
  </define>
patrick@20
   161
  <define name="division.head.content">
patrick@20
   162
    <interleave>
patrick@20
   163
      <optional>
patrick@20
   164
        <ref name="title"/>
patrick@20
   165
        <optional>
patrick@20
   166
          <ref name="subtitle"/>
patrick@20
   167
        </optional>
patrick@20
   168
      </optional>
patrick@20
   169
      <optional>
patrick@20
   170
        <ref name="language"/>
patrick@20
   171
      </optional>
patrick@20
   172
      <zeroOrMore>
patrick@20
   173
        <ref name="annotation"/>
patrick@20
   174
      </zeroOrMore>
patrick@20
   175
    </interleave>
patrick@20
   176
  </define>
patrick@20
   177
  <define name="component.head.content">
patrick@20
   178
    <interleave>
patrick@20
   179
      <optional>
patrick@20
   180
        <ref name="title"/>
patrick@20
   181
        <optional>
patrick@20
   182
          <ref name="subtitle"/>
patrick@20
   183
        </optional>
patrick@20
   184
      </optional>
patrick@20
   185
      <optional>
patrick@20
   186
        <ref name="language"/>
patrick@20
   187
      </optional>
patrick@20
   188
      <zeroOrMore>
patrick@20
   189
        <ref name="author"/>
patrick@20
   190
      </zeroOrMore>
patrick@20
   191
      <zeroOrMore>
patrick@20
   192
        <ref name="annotation"/>
patrick@20
   193
      </zeroOrMore>
patrick@20
   194
    </interleave>
patrick@20
   195
  </define>
patrick@20
   196
  <define name="section.head.content">
patrick@20
   197
    <interleave>
patrick@20
   198
      <optional>
patrick@20
   199
        <ref name="title"/>
patrick@20
   200
        <optional>
patrick@20
   201
          <ref name="subtitle"/>
patrick@20
   202
        </optional>
patrick@20
   203
      </optional>
patrick@20
   204
      <optional>
patrick@20
   205
        <ref name="language"/>
patrick@20
   206
      </optional>
patrick@20
   207
      <zeroOrMore>
patrick@20
   208
        <ref name="annotation"/>
patrick@20
   209
      </zeroOrMore>
patrick@20
   210
    </interleave>
patrick@20
   211
  </define>
patrick@20
   212
  <define name="block.head.content">
patrick@20
   213
    <optional>
patrick@20
   214
      <ref name="title"/>
patrick@20
   215
      <optional>
patrick@20
   216
        <ref name="subtitle"/>
patrick@20
   217
      </optional>
patrick@20
   218
    </optional>
patrick@20
   219
  </define>
patrick@0
   220
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   221
  <define name="title">
patrick@0
   222
    <element name="title">
patrick@0
   223
      <ref name="title.content"/>
patrick@0
   224
    </element>
patrick@0
   225
  </define>
patrick@0
   226
  <define name="subtitle">
patrick@0
   227
    <element name="subtitle">
patrick@0
   228
      <ref name="title.content"/>
patrick@0
   229
    </element>
patrick@0
   230
  </define>
patrick@20
   231
  <define name="title.content">
patrick@20
   232
    <ref name="inlines"/>
patrick@20
   233
  </define>
patrick@20
   234
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@20
   235
  <define name="language">
patrick@20
   236
    <element name="language">
patrick@20
   237
      <ref name="language.attributes"/>
patrick@20
   238
    </element>
patrick@20
   239
  </define>
patrick@20
   240
  <define name="language.attributes">
patrick@20
   241
    <ref name="lang.attribute"/>
patrick@20
   242
  </define>
patrick@20
   243
  <define name="lang.attribute">
patrick@20
   244
    <attribute name="xml:lang">
patrick@20
   245
      <data type="language"/>
patrick@20
   246
    </attribute>
patrick@20
   247
  </define>
patrick@0
   248
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@5
   249
  <!-- ~~~~~~ author -->
patrick@0
   250
  <define name="author">
patrick@0
   251
    <element name="author">
patrick@0
   252
      <ref name="author.content"/>
patrick@0
   253
    </element>
patrick@0
   254
  </define>
patrick@0
   255
  <define name="author.content">
patrick@0
   256
    <optional>
patrick@0
   257
      <ref name="firstname"/>
patrick@0
   258
    </optional>
patrick@0
   259
    <ref name="lastname"/>
patrick@0
   260
  </define>
patrick@5
   261
  <!-- ~~~~~~ publisher -->
patrick@0
   262
  <define name="publisher">
patrick@0
   263
    <element name="publisher">
patrick@0
   264
      <ref name="publisher.content"/>
patrick@0
   265
    </element>
patrick@0
   266
  </define>
patrick@0
   267
  <define name="publisher.content">
patrick@0
   268
    <ref name="inlines"/>
patrick@0
   269
  </define>
patrick@5
   270
  <!-- ~~~~~~ firstname -->
patrick@5
   271
  <define name="firstname">
patrick@5
   272
    <element name="firstname">
patrick@5
   273
      <ref name="firstname.content"/>
patrick@5
   274
    </element>
patrick@5
   275
  </define>
patrick@5
   276
  <define name="firstname.content">
patrick@5
   277
    <ref name="inlines"/>
patrick@5
   278
  </define>
patrick@5
   279
  <!-- ~~~~~~ lastname -->
patrick@5
   280
  <define name="lastname">
patrick@5
   281
    <element name="lastname">
patrick@5
   282
      <ref name="lastname.content"/>
patrick@5
   283
    </element>
patrick@5
   284
  </define>
patrick@5
   285
  <define name="lastname.content">
patrick@5
   286
    <ref name="inlines"/>
patrick@5
   287
  </define>
patrick@2
   288
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@2
   289
  <define name="place">
patrick@2
   290
    <element name="place">
patrick@2
   291
      <ref name="place.content"/>
patrick@2
   292
    </element>
patrick@2
   293
  </define>
patrick@2
   294
  <define name="place.content">
patrick@2
   295
    <ref name="inlines"/>
patrick@2
   296
  </define>
patrick@0
   297
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@2
   298
  <!-- ~~~~~~ source -->
patrick@0
   299
  <define name="source">
patrick@0
   300
    <element name="source">
patrick@0
   301
      <ref name="source.attributes"/>
patrick@0
   302
      <choice>
patrick@0
   303
        <group>
patrick@0
   304
          <attribute name="type">
patrick@0
   305
            <value>book</value>
patrick@0
   306
          </attribute>
patrick@0
   307
          <ref name="source.content.book"/>
patrick@0
   308
        </group>
patrick@0
   309
        <attribute name="type">
patrick@0
   310
          <value>file</value>
patrick@0
   311
        </attribute>
patrick@0
   312
      </choice>
patrick@0
   313
      <ref name="source.content"/>
patrick@0
   314
    </element>
patrick@0
   315
  </define>
patrick@0
   316
  <define name="source.attributes">
patrick@0
   317
    <ref name="source.id.attribute"/>
patrick@0
   318
  </define>
patrick@0
   319
  <define name="source.id.attribute">
patrick@0
   320
    <attribute name="id">
patrick@0
   321
      <data type="NMTOKEN"/>
patrick@0
   322
    </attribute>
patrick@0
   323
  </define>
patrick@0
   324
  <define name="source.content.book">
patrick@0
   325
    <ref name="title"/>
patrick@0
   326
    <zeroOrMore>
patrick@0
   327
      <ref name="pagenumber"/>
patrick@0
   328
    </zeroOrMore>
patrick@0
   329
  </define>
patrick@0
   330
  <define name="source.content">
patrick@0
   331
    <zeroOrMore>
patrick@0
   332
      <ref name="annotation"/>
patrick@0
   333
    </zeroOrMore>
patrick@0
   334
  </define>
patrick@2
   335
  <!-- ~~~~~~ pagenumber -->
patrick@0
   336
  <define name="pagenumber">
patrick@0
   337
    <element name="pagenumber">
patrick@0
   338
      <ref name="pagenumber.attributes"/>
patrick@0
   339
    </element>
patrick@0
   340
  </define>
patrick@0
   341
  <define name="pagenumber.attributes">
patrick@0
   342
    <ref name="pagenumber.value.attribute"/>
patrick@0
   343
  </define>
patrick@0
   344
  <define name="pagenumber.value.attribute">
patrick@0
   345
    <attribute name="value">
patrick@0
   346
      <ref name="pagenumber.value.enumeration"/>
patrick@0
   347
    </attribute>
patrick@0
   348
  </define>
patrick@0
   349
  <define name="pagenumber.value.enumeration">
patrick@0
   350
    <data type="positiveInteger"/>
patrick@0
   351
  </define>
patrick@0
   352
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@2
   353
  <!-- ~~~~~~ subjectset -->
patrick@0
   354
  <define name="subjectset">
patrick@0
   355
    <element name="subjectset">
patrick@0
   356
      <ref name="subjectset.content"/>
patrick@0
   357
    </element>
patrick@0
   358
  </define>
patrick@0
   359
  <define name="subjectset.content">
patrick@0
   360
    <oneOrMore>
patrick@0
   361
      <ref name="subject"/>
patrick@0
   362
    </oneOrMore>
patrick@0
   363
  </define>
patrick@2
   364
  <!-- ~~~~~~ subject -->
patrick@0
   365
  <define name="subject">
patrick@0
   366
    <element name="subject">
patrick@0
   367
      <ref name="subject.attributes"/>
patrick@0
   368
    </element>
patrick@0
   369
  </define>
patrick@0
   370
  <define name="subject.attributes">
patrick@0
   371
    <ref name="subject.id.attribute"/>
patrick@0
   372
  </define>
patrick@0
   373
  <define name="subject.id.attribute">
patrick@0
   374
    <attribute name="id">
patrick@0
   375
      <data type="NMTOKEN"/>
patrick@0
   376
    </attribute>
patrick@0
   377
  </define>
patrick@5
   378
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@2
   379
  <define name="abstract">
patrick@2
   380
    <element name="abstract">
patrick@2
   381
      <ref name="abstract.content"/>
patrick@2
   382
    </element>
patrick@2
   383
  </define>
patrick@2
   384
  <define name="abstract.content">
patrick@2
   385
    <oneOrMore>
patrick@20
   386
      <ref name="p"/>
patrick@2
   387
    </oneOrMore>
patrick@2
   388
  </define>
patrick@0
   389
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   390
  <define name="annotation">
patrick@0
   391
    <element name="annotation">
patrick@0
   392
      <ref name="annotation.content"/>
patrick@0
   393
    </element>
patrick@0
   394
  </define>
patrick@0
   395
  <define name="annotation.content">
patrick@0
   396
    <ref name="inlines"/>
patrick@0
   397
  </define>
patrick@0
   398
  <!--
patrick@0
   399
    =============================================================================
patrick@20
   400
                                    DIVISION LEVEL
patrick@0
   401
    =============================================================================
patrick@0
   402
  -->
patrick@0
   403
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   404
  <define name="division">
patrick@0
   405
    <element name="division">
patrick@0
   406
      <ref name="division.content"/>
patrick@0
   407
    </element>
patrick@0
   408
  </define>
patrick@0
   409
  <define name="division.content">
patrick@0
   410
    <optional>
patrick@20
   411
      <ref name="division.head"/>
patrick@0
   412
    </optional>
patrick@0
   413
    <choice>
patrick@0
   414
      <oneOrMore>
patrick@0
   415
        <ref name="division"/>
patrick@0
   416
      </oneOrMore>
patrick@0
   417
      <oneOrMore>
patrick@0
   418
        <ref name="topic"/>
patrick@0
   419
      </oneOrMore>
patrick@0
   420
    </choice>
patrick@0
   421
  </define>
patrick@0
   422
  <!--
patrick@0
   423
    =============================================================================
patrick@20
   424
                                  COMPONENT LEVEL
patrick@0
   425
    =============================================================================
patrick@0
   426
  -->
patrick@0
   427
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   428
  <define name="topic">
patrick@0
   429
    <element name="topic">
patrick@0
   430
      <ref name="topic.attributes"/>
patrick@0
   431
      <ref name="topic.content"/>
patrick@0
   432
    </element>
patrick@0
   433
  </define>
patrick@0
   434
  <define name="topic.attributes">
patrick@0
   435
    <interleave>
patrick@0
   436
      <optional>
patrick@0
   437
        <ref name="topic.id.attribute"/>
patrick@0
   438
      </optional>
patrick@0
   439
      <optional>
patrick@0
   440
        <ref name="topic.type.attribute"/>
patrick@0
   441
      </optional>
patrick@0
   442
    </interleave>
patrick@0
   443
  </define>
patrick@0
   444
  <define name="topic.content">
patrick@0
   445
    <optional>
patrick@20
   446
      <ref name="component.head"/>
patrick@0
   447
    </optional>
patrick@0
   448
    <oneOrMore>
patrick@0
   449
      <ref name="section"/>
patrick@0
   450
    </oneOrMore>
patrick@0
   451
  </define>
patrick@0
   452
  <!--
patrick@0
   453
    =============================================================================
patrick@20
   454
                                    SECTION LEVEL
patrick@0
   455
    =============================================================================
patrick@0
   456
  -->
patrick@20
   457
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   458
  <define name="section">
patrick@0
   459
    <element name="section">
patrick@0
   460
      <ref name="section.content"/>
patrick@0
   461
      <ref name="section.attributes"/>
patrick@0
   462
    </element>
patrick@0
   463
  </define>
patrick@0
   464
  <define name="section.content">
patrick@0
   465
    <optional>
patrick@20
   466
      <ref name="section.head"/>
patrick@0
   467
    </optional>
patrick@0
   468
    <choice>
patrick@0
   469
      <oneOrMore>
patrick@0
   470
        <ref name="section"/>
patrick@0
   471
      </oneOrMore>
patrick@0
   472
      <oneOrMore>
patrick@10
   473
        <ref name="block"/>
patrick@0
   474
      </oneOrMore>
patrick@0
   475
    </choice>
patrick@0
   476
  </define>
patrick@0
   477
  <define name="section.attributes">
patrick@0
   478
    <optional>
patrick@0
   479
      <ref name="status.attribute"/>
patrick@0
   480
    </optional>
patrick@0
   481
  </define>
patrick@0
   482
  <define name="status.attribute">
patrick@0
   483
    <attribute name="status">
patrick@0
   484
      <data type="NCName"/>
patrick@0
   485
    </attribute>
patrick@0
   486
  </define>
patrick@0
   487
  <!--
patrick@0
   488
    =============================================================================
patrick@20
   489
                                    BLOCK LEVEL
patrick@0
   490
    =============================================================================
patrick@0
   491
  -->
patrick@20
   492
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@10
   493
  <define name="block">
patrick@10
   494
    <choice>
patrick@20
   495
      <ref name="p"/>
patrick@20
   496
      <ref name="speech"/>
patrick@10
   497
      <ref name="list"/>
patrick@17
   498
      <ref name="table"/>
patrick@10
   499
      <ref name="media"/>
patrick@10
   500
    </choice>
patrick@10
   501
  </define>
patrick@20
   502
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@20
   503
  <define name="p">
patrick@20
   504
    <element name="p">
patrick@20
   505
      <ref name="p.content"/>
patrick@0
   506
    </element>
patrick@0
   507
  </define>
patrick@20
   508
  <define name="p.content">
patrick@25
   509
    <ref name="inlines"/>
patrick@0
   510
  </define>
patrick@20
   511
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@20
   512
  <!-- ~~~~~~ speech -->
patrick@20
   513
  <define name="speech">
patrick@20
   514
    <element name="speech">
patrick@20
   515
      <ref name="speech.content"/>
patrick@20
   516
    </element>
patrick@20
   517
  </define>
patrick@20
   518
  <define name="speech.content">
patrick@20
   519
    <optional>
patrick@20
   520
      <ref name="speaker"/>
patrick@20
   521
    </optional>
patrick@20
   522
    <optional>
patrick@20
   523
      <ref name="stage"/>
patrick@20
   524
    </optional>
patrick@20
   525
    <oneOrMore>
patrick@20
   526
      <ref name="p"/>
patrick@20
   527
    </oneOrMore>
patrick@20
   528
  </define>
patrick@20
   529
  <!-- ~~~~~~ speaker -->
patrick@20
   530
  <define name="speaker">
patrick@20
   531
    <element name="speaker">
patrick@20
   532
      <ref name="speaker.content"/>
patrick@20
   533
    </element>
patrick@20
   534
  </define>
patrick@20
   535
  <define name="speaker.content">
patrick@20
   536
    <ref name="inlines"/>
patrick@20
   537
  </define>
patrick@20
   538
  <!-- ~~~~~~ stage -->
patrick@20
   539
  <define name="stage">
patrick@20
   540
    <element name="stage">
patrick@20
   541
      <ref name="stage.content"/>
patrick@20
   542
    </element>
patrick@20
   543
  </define>
patrick@20
   544
  <define name="stage.content">
patrick@20
   545
    <ref name="inlines"/>
patrick@20
   546
  </define>
patrick@17
   547
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@10
   548
  <!-- ~~~~~~ list -->
patrick@10
   549
  <define name="list">
patrick@10
   550
    <element name="list">
patrick@10
   551
      <ref name="list.content"/>
patrick@10
   552
    </element>
patrick@10
   553
  </define>
patrick@10
   554
  <define name="list.content">
patrick@10
   555
    <optional>
patrick@20
   556
      <ref name="block.head"/>
patrick@10
   557
    </optional>
patrick@10
   558
    <choice>
patrick@10
   559
      <group>
patrick@10
   560
        <optional>
patrick@10
   561
          <attribute name="type">
patrick@12
   562
            <value>ordered</value>
patrick@10
   563
          </attribute>
patrick@10
   564
        </optional>
patrick@10
   565
        <ref name="item"/>
patrick@10
   566
        <oneOrMore>
patrick@10
   567
          <ref name="item"/>
patrick@10
   568
        </oneOrMore>
patrick@10
   569
      </group>
patrick@10
   570
      <group>
patrick@10
   571
        <attribute name="type">
patrick@10
   572
          <value>glossary</value>
patrick@10
   573
        </attribute>
patrick@10
   574
        <oneOrMore>
patrick@10
   575
          <ref name="glossary.item"/>
patrick@10
   576
        </oneOrMore>
patrick@10
   577
      </group>
patrick@10
   578
    </choice>
patrick@10
   579
  </define>
patrick@10
   580
  <!-- ~~~~~~ item -->
patrick@10
   581
  <define name="item">
patrick@10
   582
    <element name="item">
patrick@10
   583
      <ref name="item.content"/>
patrick@10
   584
    </element>
patrick@10
   585
  </define>
patrick@10
   586
  <define name="item.content">
patrick@30
   587
    <choice>
patrick@30
   588
      <ref name="inlines"/>
patrick@30
   589
      <oneOrMore>
patrick@30
   590
        <ref name="block"/>
patrick@30
   591
      </oneOrMore>
patrick@30
   592
    </choice>
patrick@10
   593
  </define>
patrick@10
   594
  <!-- ~~~~~~ glossary.item -->
patrick@10
   595
  <define name="glossary.item">
patrick@10
   596
    <element name="item">
patrick@10
   597
      <ref name="glossary.item.content"/>
patrick@10
   598
    </element>
patrick@10
   599
  </define>
patrick@10
   600
  <define name="glossary.item.content">
patrick@10
   601
    <ref name="label"/>
patrick@10
   602
    <oneOrMore>
patrick@10
   603
      <ref name="block"/>
patrick@10
   604
    </oneOrMore>
patrick@10
   605
  </define>
patrick@10
   606
  <!-- ~~~~~~ label -->
patrick@10
   607
  <define name="label">
patrick@10
   608
    <element name="label">
patrick@10
   609
      <ref name="label.content"/>
patrick@10
   610
    </element>
patrick@10
   611
  </define>
patrick@10
   612
  <define name="label.content">
patrick@10
   613
    <ref name="inlines"/>
patrick@10
   614
  </define>
patrick@17
   615
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@17
   616
  <define name="table">
patrick@17
   617
    <element name="table">
patrick@17
   618
      <ref name="table.content"/>
patrick@17
   619
    </element>
patrick@17
   620
  </define>
patrick@17
   621
  <define name="table.content">
patrick@17
   622
    <optional>
patrick@20
   623
      <ref name="block.head"/>
patrick@17
   624
    </optional>
patrick@17
   625
    <oneOrMore>
patrick@17
   626
      <ref name="tgroup"/>
patrick@17
   627
    </oneOrMore>
patrick@17
   628
    <optional>
patrick@17
   629
      <ref name="caption"/>
patrick@17
   630
    </optional>
patrick@17
   631
  </define>
patrick@17
   632
  <!-- ~~~~~~ tgroup -->
patrick@17
   633
  <define name="tgroup">
patrick@17
   634
    <element name="tgroup">
patrick@17
   635
      <ref name="tgroup.attributes"/>
patrick@17
   636
      <ref name="tgroup.content"/>
patrick@17
   637
    </element>
patrick@17
   638
  </define>
patrick@17
   639
  <define name="tgroup.content">
patrick@17
   640
    <optional>
patrick@17
   641
      <ref name="thead"/>
patrick@17
   642
    </optional>
patrick@17
   643
    <optional>
patrick@17
   644
      <ref name="tfoot"/>
patrick@17
   645
    </optional>
patrick@17
   646
    <ref name="tbody"/>
patrick@17
   647
  </define>
patrick@17
   648
  <define name="tgroup.attributes">
patrick@17
   649
    <interleave>
patrick@17
   650
      <ref name="cols.attribute"/>
patrick@17
   651
      <optional>
patrick@17
   652
        <ref name="align.attribute"/>
patrick@17
   653
      </optional>
patrick@17
   654
      <optional>
patrick@17
   655
        <ref name="colsep.attribute"/>
patrick@17
   656
      </optional>
patrick@17
   657
      <optional>
patrick@17
   658
        <ref name="rowsep.attribute"/>
patrick@17
   659
      </optional>
patrick@17
   660
    </interleave>
patrick@17
   661
  </define>
patrick@17
   662
  <define name="cols.attribute">
patrick@17
   663
    <attribute name="cols">
patrick@17
   664
      <data type="positiveInteger"/>
patrick@17
   665
    </attribute>
patrick@17
   666
  </define>
patrick@17
   667
  <define name="align.attribute">
patrick@17
   668
    <attribute name="align">
patrick@17
   669
      <choice>
patrick@17
   670
        <value>left</value>
patrick@17
   671
        <value>right</value>
patrick@17
   672
        <value>center</value>
patrick@17
   673
        <value>justify</value>
patrick@17
   674
      </choice>
patrick@17
   675
    </attribute>
patrick@17
   676
  </define>
patrick@17
   677
  <define name="colsep.attribute">
patrick@17
   678
    <attribute name="colsep">
patrick@17
   679
      <choice>
patrick@17
   680
        <value>0</value>
patrick@17
   681
        <value>1</value>
patrick@17
   682
      </choice>
patrick@17
   683
    </attribute>
patrick@17
   684
  </define>
patrick@17
   685
  <define name="rowsep.attribute">
patrick@17
   686
    <attribute name="rowsep">
patrick@17
   687
      <choice>
patrick@17
   688
        <value>0</value>
patrick@17
   689
        <value>1</value>
patrick@17
   690
      </choice>
patrick@17
   691
    </attribute>
patrick@17
   692
  </define>
patrick@17
   693
  <!-- ~~~~~~ thead, tfoot, tbody -->
patrick@17
   694
  <define name="thead">
patrick@17
   695
    <element name="thead">
patrick@22
   696
      <ref name="thead.attributes"/>
patrick@17
   697
      <ref name="thead.content"/>
patrick@17
   698
    </element>
patrick@17
   699
  </define>
patrick@17
   700
  <define name="tfoot">
patrick@17
   701
    <element name="tfoot">
patrick@22
   702
      <ref name="tfoot.attributes"/>
patrick@17
   703
      <ref name="tfoot.content"/>
patrick@17
   704
    </element>
patrick@17
   705
  </define>
patrick@17
   706
  <define name="tbody">
patrick@17
   707
    <element name="tbody">
patrick@22
   708
      <ref name="tbody.attributes"/>
patrick@17
   709
      <ref name="tbody.content"/>
patrick@17
   710
    </element>
patrick@17
   711
  </define>
patrick@22
   712
  <define name="thead.attributes">
patrick@22
   713
    <optional>
patrick@22
   714
      <ref name="valign.attribute"/>
patrick@22
   715
    </optional>
patrick@22
   716
  </define>
patrick@22
   717
  <define name="tfoot.attributes">
patrick@22
   718
    <optional>
patrick@22
   719
      <ref name="valign.attribute"/>
patrick@22
   720
    </optional>
patrick@22
   721
  </define>
patrick@22
   722
  <define name="tbody.attributes">
patrick@22
   723
    <optional>
patrick@22
   724
      <ref name="valign.attribute"/>
patrick@22
   725
    </optional>
patrick@22
   726
  </define>
patrick@22
   727
  <define name="valign.attribute">
patrick@22
   728
    <attribute name="valign">
patrick@22
   729
      <choice>
patrick@22
   730
        <value>top</value>
patrick@22
   731
        <value>middle</value>
patrick@22
   732
        <value>bottom</value>
patrick@22
   733
      </choice>
patrick@22
   734
    </attribute>
patrick@22
   735
  </define>
patrick@17
   736
  <define name="thead.content">
patrick@17
   737
    <oneOrMore>
patrick@17
   738
      <ref name="row"/>
patrick@17
   739
    </oneOrMore>
patrick@17
   740
  </define>
patrick@17
   741
  <define name="tfoot.content">
patrick@17
   742
    <oneOrMore>
patrick@17
   743
      <ref name="row"/>
patrick@17
   744
    </oneOrMore>
patrick@17
   745
  </define>
patrick@17
   746
  <define name="tbody.content">
patrick@17
   747
    <oneOrMore>
patrick@17
   748
      <ref name="row"/>
patrick@17
   749
    </oneOrMore>
patrick@17
   750
  </define>
patrick@17
   751
  <!-- ~~~~~~ row -->
patrick@17
   752
  <define name="row">
patrick@17
   753
    <element name="row">
patrick@17
   754
      <ref name="row.attribute"/>
patrick@17
   755
      <ref name="row.content"/>
patrick@17
   756
    </element>
patrick@17
   757
  </define>
patrick@17
   758
  <define name="row.attribute">
patrick@17
   759
    <optional>
patrick@17
   760
      <ref name="valign.attribute"/>
patrick@17
   761
    </optional>
patrick@17
   762
  </define>
patrick@17
   763
  <define name="row.content">
patrick@17
   764
    <oneOrMore>
patrick@17
   765
      <ref name="entry"/>
patrick@17
   766
    </oneOrMore>
patrick@17
   767
  </define>
patrick@17
   768
  <!-- ~~~~~~ entry -->
patrick@17
   769
  <define name="entry">
patrick@17
   770
    <element name="entry">
patrick@17
   771
      <ref name="entry.content"/>
patrick@17
   772
    </element>
patrick@17
   773
  </define>
patrick@17
   774
  <define name="entry.content">
patrick@17
   775
    <choice>
patrick@17
   776
      <ref name="inlines"/>
patrick@17
   777
      <oneOrMore>
patrick@20
   778
        <ref name="p"/>
patrick@17
   779
      </oneOrMore>
patrick@17
   780
    </choice>
patrick@17
   781
  </define>
patrick@17
   782
  <!-- ~~~~~~ caption -->
patrick@17
   783
  <define name="caption">
patrick@17
   784
    <element name="caption">
patrick@17
   785
      <ref name="caption.content"/>
patrick@17
   786
    </element>
patrick@17
   787
  </define>
patrick@17
   788
  <define name="caption.content">
patrick@20
   789
    <choice>
patrick@20
   790
      <ref name="inlines"/>
patrick@20
   791
      <oneOrMore>
patrick@20
   792
        <ref name="p"/>
patrick@20
   793
      </oneOrMore>
patrick@20
   794
    </choice>
patrick@11
   795
  </define>
patrick@0
   796
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@2
   797
  <!-- ~~~~~~ media -->
patrick@0
   798
  <define name="media">
patrick@0
   799
    <element name="media">
patrick@0
   800
      <ref name="media.content"/>
patrick@0
   801
    </element>
patrick@0
   802
  </define>
patrick@0
   803
  <define name="media.content">
patrick@24
   804
    <optional>
patrick@24
   805
      <ref name="block.head"/>
patrick@24
   806
    </optional>
patrick@0
   807
    <oneOrMore>
patrick@0
   808
      <ref name="image"/>
patrick@0
   809
    </oneOrMore>
patrick@0
   810
    <optional>
patrick@17
   811
      <ref name="caption"/>
patrick@0
   812
    </optional>
patrick@0
   813
  </define>
patrick@2
   814
  <!-- ~~~~~~ image -->
patrick@0
   815
  <define name="image">
patrick@0
   816
    <element name="image">
patrick@0
   817
      <ref name="image.attributes"/>
patrick@0
   818
      <ref name="image.content"/>
patrick@0
   819
    </element>
patrick@0
   820
  </define>
patrick@0
   821
  <define name="image.attributes">
patrick@0
   822
    <ref name="media.id.attribute"/>
patrick@0
   823
  </define>
patrick@17
   824
  <define name="media.id.attribute">
patrick@17
   825
    <attribute name="id">
patrick@17
   826
      <data type="NMTOKEN"/>
patrick@17
   827
    </attribute>
patrick@17
   828
  </define>
patrick@0
   829
  <define name="image.content">
patrick@0
   830
    <optional>
patrick@0
   831
      <ref name="copyright"/>
patrick@0
   832
    </optional>
patrick@0
   833
  </define>
patrick@2
   834
  <!-- ~~~~~~ copyright -->
patrick@0
   835
  <define name="copyright">
patrick@0
   836
    <element name="copyright">
patrick@0
   837
      <ref name="copyright.content"/>
patrick@0
   838
    </element>
patrick@0
   839
  </define>
patrick@0
   840
  <define name="copyright.content">
patrick@0
   841
    <ref name="inlines"/>
patrick@0
   842
  </define>
patrick@0
   843
  <!--
patrick@0
   844
    =============================================================================
patrick@20
   845
                                    INLINE LEVEL
patrick@0
   846
    =============================================================================
patrick@0
   847
  -->
patrick@0
   848
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   849
  <define name="inlines">
patrick@0
   850
    <mixed>
patrick@0
   851
      <interleave>
patrick@0
   852
        <zeroOrMore>
patrick@0
   853
          <ref name="sup"/>
patrick@0
   854
        </zeroOrMore>
patrick@0
   855
        <zeroOrMore>
patrick@0
   856
          <ref name="sub"/>
patrick@0
   857
        </zeroOrMore>
patrick@0
   858
        <zeroOrMore>
patrick@12
   859
          <ref name="number"/>
patrick@0
   860
        </zeroOrMore>
patrick@0
   861
        <zeroOrMore>
patrick@0
   862
          <ref name="date"/>
patrick@0
   863
        </zeroOrMore>
patrick@0
   864
        <zeroOrMore>
patrick@0
   865
          <ref name="name"/>
patrick@0
   866
        </zeroOrMore>
patrick@0
   867
        <zeroOrMore>
patrick@5
   868
          <ref name="note"/>
patrick@0
   869
        </zeroOrMore>
patrick@0
   870
        <zeroOrMore>
patrick@0
   871
          <ref name="foreign"/>
patrick@0
   872
        </zeroOrMore>
patrick@0
   873
        <zeroOrMore>
patrick@0
   874
          <ref name="highlight"/>
patrick@0
   875
        </zeroOrMore>
patrick@5
   876
        <zeroOrMore>
patrick@5
   877
          <ref name="mentioned"/>
patrick@5
   878
        </zeroOrMore>
patrick@5
   879
        <zeroOrMore>
patrick@5
   880
          <ref name="quote"/>
patrick@5
   881
        </zeroOrMore>
patrick@8
   882
        <zeroOrMore>
patrick@8
   883
          <ref name="acronym"/>
patrick@8
   884
        </zeroOrMore>
patrick@10
   885
        <zeroOrMore>
patrick@10
   886
          <ref name="term"/>
patrick@10
   887
        </zeroOrMore>
patrick@25
   888
        <zeroOrMore>
patrick@25
   889
          <ref name="link"/>
patrick@25
   890
        </zeroOrMore>
patrick@0
   891
      </interleave>
patrick@0
   892
    </mixed>
patrick@0
   893
  </define>
patrick@0
   894
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   895
  <define name="sup">
patrick@0
   896
    <element name="sup">
patrick@0
   897
      <ref name="inlines"/>
patrick@0
   898
    </element>
patrick@0
   899
  </define>
patrick@0
   900
  <define name="sub">
patrick@0
   901
    <element name="sub">
patrick@0
   902
      <ref name="inlines"/>
patrick@0
   903
    </element>
patrick@0
   904
  </define>
patrick@12
   905
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@12
   906
  <define name="number">
patrick@12
   907
    <element name="number">
patrick@12
   908
      <choice>
patrick@12
   909
        <group>
patrick@12
   910
          <attribute name="type">
patrick@12
   911
            <value>roman</value>
patrick@12
   912
          </attribute>
patrick@12
   913
          <ref name="number.attributes"/>
patrick@12
   914
          <ref name="number.roman.content"/>
patrick@12
   915
        </group>
patrick@12
   916
        <group>
patrick@12
   917
          <ref name="number.attributes"/>
patrick@12
   918
          <ref name="number.content"/>
patrick@12
   919
        </group>
patrick@12
   920
      </choice>
patrick@0
   921
    </element>
patrick@0
   922
  </define>
patrick@12
   923
  <define name="number.attributes">
patrick@12
   924
    <optional>
patrick@12
   925
      <ref name="number.value.attribute"/>
patrick@12
   926
    </optional>
patrick@12
   927
  </define>
patrick@12
   928
  <define name="number.value.attribute">
patrick@12
   929
    <attribute name="value">
patrick@12
   930
      <choice>
patrick@12
   931
        <data type="integer"/>
patrick@12
   932
        <data type="decimal"/>
patrick@12
   933
      </choice>
patrick@12
   934
    </attribute>
patrick@12
   935
  </define>
patrick@12
   936
  <define name="number.content">
patrick@12
   937
    <mixed>
patrick@12
   938
      <zeroOrMore>
patrick@12
   939
        <ref name="sup"/>
patrick@12
   940
      </zeroOrMore>
patrick@12
   941
    </mixed>
patrick@12
   942
  </define>
patrick@12
   943
  <define name="number.roman.content">
patrick@12
   944
    <data type="token">
patrick@12
   945
      <param name="pattern">[dlxvi]+</param>
patrick@12
   946
    </data>
patrick@12
   947
  </define>
patrick@0
   948
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   949
  <define name="date">
patrick@0
   950
    <element name="date">
patrick@0
   951
      <ref name="date.attributes"/>
patrick@0
   952
      <ref name="date.content"/>
patrick@0
   953
    </element>
patrick@0
   954
  </define>
patrick@0
   955
  <define name="date.attributes">
patrick@12
   956
    <interleave>
patrick@12
   957
      <ref name="date.value.attribute"/>
patrick@12
   958
      <optional>
patrick@12
   959
        <ref name="date.of.attribute"/>
patrick@12
   960
      </optional>
patrick@12
   961
    </interleave>
patrick@12
   962
  </define>
patrick@12
   963
  <define name="date.value.attribute">
patrick@12
   964
    <attribute name="value">
patrick@12
   965
      <choice>
patrick@12
   966
        <data type="date"/>
patrick@12
   967
        <data type="gYearMonth"/>
patrick@12
   968
        <data type="gYear"/>
patrick@12
   969
      </choice>
patrick@12
   970
    </attribute>
patrick@0
   971
  </define>
patrick@0
   972
  <define name="date.of.attribute">
patrick@0
   973
    <attribute name="of">
patrick@0
   974
      <ref name="date.of.enumeration"/>
patrick@0
   975
    </attribute>
patrick@0
   976
  </define>
patrick@0
   977
  <define name="date.of.enumeration">
patrick@0
   978
    <choice>
patrick@0
   979
      <value>birth</value>
patrick@0
   980
      <value>death</value>
patrick@0
   981
    </choice>
patrick@0
   982
  </define>
patrick@0
   983
  <define name="date.content">
patrick@12
   984
    <mixed>
patrick@12
   985
      <zeroOrMore>
patrick@12
   986
        <ref name="sup"/>
patrick@12
   987
      </zeroOrMore>
patrick@12
   988
    </mixed>
patrick@0
   989
  </define>
patrick@2
   990
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
   991
  <define name="name">
patrick@0
   992
    <element name="name">
patrick@0
   993
      <ref name="name.attributes"/>
patrick@0
   994
      <ref name="name.content"/>
patrick@0
   995
    </element>
patrick@0
   996
  </define>
patrick@0
   997
  <define name="name.attributes">
patrick@0
   998
    <optional>
patrick@0
   999
      <ref name="name.of.attribute"/>
patrick@0
  1000
    </optional>
patrick@0
  1001
  </define>
patrick@0
  1002
  <define name="name.of.attribute">
patrick@0
  1003
    <attribute name="of">
patrick@0
  1004
      <ref name="name.of.enumeration"/>
patrick@0
  1005
    </attribute>
patrick@0
  1006
  </define>
patrick@0
  1007
  <define name="name.of.enumeration">
patrick@0
  1008
    <choice>
patrick@0
  1009
      <value>person</value>
patrick@0
  1010
      <value>company</value>
patrick@0
  1011
      <value>book</value>
patrick@0
  1012
      <value>newspaper</value>
patrick@0
  1013
      <value>party</value>
patrick@0
  1014
    </choice>
patrick@0
  1015
  </define>
patrick@2
  1016
  <define name="name.content">
patrick@2
  1017
    <ref name="inlines"/>
patrick@2
  1018
  </define>
patrick@5
  1019
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@5
  1020
  <define name="note">
patrick@5
  1021
    <element name="note">
patrick@5
  1022
      <ref name="note.attributes"/>
patrick@5
  1023
      <ref name="note.content"/>
patrick@0
  1024
    </element>
patrick@0
  1025
  </define>
patrick@5
  1026
  <define name="note.attributes">
patrick@0
  1027
    <optional>
patrick@5
  1028
      <ref name="note.label.attribute"/>
patrick@0
  1029
    </optional>
patrick@0
  1030
  </define>
patrick@5
  1031
  <define name="note.label.attribute">
patrick@0
  1032
    <attribute name="label"/>
patrick@0
  1033
  </define>
patrick@5
  1034
  <define name="note.content">
patrick@17
  1035
    <choice>
patrick@17
  1036
      <ref name="inlines"/>
patrick@17
  1037
      <oneOrMore>
patrick@20
  1038
        <ref name="p"/>
patrick@17
  1039
      </oneOrMore>
patrick@17
  1040
    </choice>
patrick@0
  1041
  </define>
patrick@12
  1042
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
  1043
  <define name="foreign">
patrick@0
  1044
    <element name="foreign">
patrick@0
  1045
      <ref name="foreign.attributes"/>
patrick@0
  1046
      <ref name="foreign.content"/>
patrick@0
  1047
    </element>
patrick@0
  1048
  </define>
patrick@0
  1049
  <define name="foreign.attributes">
patrick@0
  1050
    <optional>
patrick@0
  1051
      <ref name="lang.attribute"/>
patrick@0
  1052
    </optional>
patrick@0
  1053
  </define>
patrick@0
  1054
  <define name="foreign.content">
patrick@0
  1055
    <ref name="inlines"/>
patrick@0
  1056
  </define>
patrick@0
  1057
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ highlight ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
  1058
  <define name="highlight">
patrick@0
  1059
    <element name="highlight">
patrick@0
  1060
      <ref name="highlight.content"/>
patrick@0
  1061
    </element>
patrick@0
  1062
  </define>
patrick@0
  1063
  <define name="highlight.content">
patrick@0
  1064
    <ref name="inlines"/>
patrick@0
  1065
  </define>
patrick@5
  1066
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@5
  1067
  <define name="mentioned">
patrick@5
  1068
    <element name="mentioned">
patrick@5
  1069
      <ref name="mentioned.content"/>
patrick@5
  1070
    </element>
patrick@5
  1071
  </define>
patrick@5
  1072
  <define name="mentioned.content">
patrick@5
  1073
    <ref name="inlines"/>
patrick@5
  1074
  </define>
patrick@5
  1075
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@5
  1076
  <define name="quote">
patrick@5
  1077
    <element name="quote">
patrick@5
  1078
      <ref name="quote.content"/>
patrick@5
  1079
    </element>
patrick@5
  1080
  </define>
patrick@5
  1081
  <define name="quote.content">
patrick@5
  1082
    <ref name="inlines"/>
patrick@5
  1083
  </define>
patrick@8
  1084
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@8
  1085
  <define name="acronym">
patrick@8
  1086
    <element name="acronym">
patrick@8
  1087
      <ref name="acronym.content"/>
patrick@8
  1088
    </element>
patrick@8
  1089
  </define>
patrick@8
  1090
  <define name="acronym.content">
patrick@8
  1091
    <ref name="inlines"/>
patrick@8
  1092
  </define>
patrick@10
  1093
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@10
  1094
  <define name="term">
patrick@10
  1095
    <element name="term">
patrick@10
  1096
      <ref name="term.content"/>
patrick@10
  1097
    </element>
patrick@10
  1098
  </define>
patrick@10
  1099
  <define name="term.content">
patrick@10
  1100
    <ref name="inlines"/>
patrick@10
  1101
  </define>
patrick@0
  1102
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
patrick@0
  1103
  <define name="link">
patrick@0
  1104
    <element name="link">
patrick@0
  1105
      <ref name="link.attributes"/>
patrick@0
  1106
      <ref name="link.content"/>
patrick@0
  1107
    </element>
patrick@0
  1108
  </define>
patrick@0
  1109
  <define name="link.attributes">
patrick@10
  1110
    <optional>
patrick@10
  1111
      <choice>
patrick@10
  1112
        <ref name="uri.attribute"/>
patrick@10
  1113
        <ref name="idref.attribute"/>
patrick@10
  1114
      </choice>
patrick@10
  1115
    </optional>
patrick@10
  1116
  </define>
patrick@10
  1117
  <define name="uri.attribute">
patrick@10
  1118
    <attribute name="uri">
patrick@10
  1119
      <data type="anyURI"/>
patrick@10
  1120
    </attribute>
patrick@10
  1121
  </define>
patrick@10
  1122
  <define name="idref.attribute">
patrick@10
  1123
    <attribute name="idref">
patrick@10
  1124
      <data type="IDREF"/>
patrick@10
  1125
    </attribute>
patrick@0
  1126
  </define>
patrick@0
  1127
  <define name="link.content">
patrick@0
  1128
    <ref name="inlines"/>
patrick@0
  1129
  </define>
patrick@0
  1130
</grammar>