metanorma-ribose 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19e0702fb65c658a415082116786e4c083e4ea3f0d43348d9435b9359cc51a04
4
- data.tar.gz: 981338bdab7169f29bd851c64461519621e45bd7dac927303899cac8f87b22d3
3
+ metadata.gz: b7fe161c84c37ab5b701b48ad724eb21fd1b1eb9e7fbf5b51baeef16135f0ad3
4
+ data.tar.gz: 64eaca15058fac006e020351807e8646ca000e515fd03ce676a9af4decaa4b39
5
5
  SHA512:
6
- metadata.gz: f3f83c67623e49c698489b21b7f4fd34273b30b7ea1ef5434303a7e7600c27576332638d4dfc6e0017c91778d736d3db9b823a1c34477fa08f165ca91072532d
7
- data.tar.gz: 5339fee39a8708b19367e7a9e0b811adaeebae50f6eac854970235f6450182925ee09e1150638f5a48e3759593613f682c64f103706567cfc9a3bd7babcd6163
6
+ metadata.gz: 523c6ab1d22bf87d03cad3bdebf78cf2cda78e675e2cd071e059e670e8cd330a17a6943a2cb8cf38d6e42f00ece0a02b61a03eafb1e202285dfaa15cbeca9c64
7
+ data.tar.gz: 27ebab46f0aec117f8f5ffee0883ae8378d1cc025b10d6b0517d92ab6adcc75352de9d53c324a3639df31c3d745f0f7dd46a5be146a76e55601e5e7390f780a8
@@ -437,6 +437,10 @@ div.figure {
437
437
  max-width: 100%;
438
438
  height: auto; }
439
439
 
440
+ table div.figure {
441
+ padding: 0;
442
+ margin: 0; }
443
+
440
444
  /*
441
445
  Document types + stages
442
446
  */
@@ -88,6 +88,12 @@ div.figure {
88
88
  @include figureBlock();
89
89
  }
90
90
 
91
+ table div.figure {
92
+ padding: 0;
93
+ margin: 0;
94
+ }
95
+
96
+
91
97
  /*
92
98
  Document types + stages
93
99
  */
@@ -3051,7 +3051,7 @@
3051
3051
  <xsl:variable name="isDeleted" select="@deleted"/>
3052
3052
 
3053
3053
  <xsl:choose>
3054
- <xsl:when test="@width">
3054
+ <xsl:when test="@width and @width != 'full-page-width' and @width != 'text-width'">
3055
3055
 
3056
3056
  <!-- centered table when table name is centered (see table-name-style) -->
3057
3057
 
@@ -3376,6 +3376,7 @@
3376
3376
  This makes columns with large differences between minimum and maximum widths wider than columns with smaller differences. -->
3377
3377
  <xsl:when test="(@width_max &gt; $page_width and @width_min &lt; $page_width) or (@width_min &gt;= $page_width)">
3378
3378
  <!-- difference between the available space and the minimum table width -->
3379
+ <_width_min><xsl:value-of select="@width_min"/></_width_min>
3379
3380
  <xsl:variable name="W" select="$page_width - @width_min"/>
3380
3381
  <W><xsl:value-of select="$W"/></W>
3381
3382
  <!-- difference between maximum and minimum width of the table -->
@@ -3998,17 +3999,20 @@
3998
3999
  <xsl:for-each select="xalan:nodeset($references)//fn">
3999
4000
  <xsl:variable name="reference" select="@reference"/>
4000
4001
  <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
4001
- <fo:block xsl:use-attribute-sets="table-fn-style">
4002
4002
 
4003
- <fo:inline id="{@id}" xsl:use-attribute-sets="table-fn-number-style">
4003
+ <fo:block xsl:use-attribute-sets="table-fn-style">
4004
4004
 
4005
- <xsl:value-of select="@reference"/>
4005
+ <fo:inline id="{@id}" xsl:use-attribute-sets="table-fn-number-style">
4006
+
4007
+ <xsl:value-of select="@reference"/>
4008
+
4009
+ </fo:inline>
4010
+ <fo:inline xsl:use-attribute-sets="table-fn-body-style">
4011
+ <xsl:copy-of select="./node()"/>
4012
+ </fo:inline>
4013
+
4014
+ </fo:block>
4006
4015
 
4007
- </fo:inline>
4008
- <fo:inline xsl:use-attribute-sets="table-fn-body-style">
4009
- <xsl:copy-of select="./node()"/>
4010
- </fo:inline>
4011
- </fo:block>
4012
4016
  </xsl:if>
4013
4017
  </xsl:for-each>
4014
4018
  </xsl:template>
@@ -4957,12 +4961,12 @@
4957
4961
  <xsl:param name="value"/>
4958
4962
  <xsl:variable name="add_width" select="string-length($value) * 20"/>
4959
4963
  <xsl:variable name="maxwidth" select="60 + $add_width"/>
4960
- <fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-20%"><!-- alignment-baseline="middle" -->
4961
- <xsl:attribute name="height">5mm</xsl:attribute>
4964
+ <fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-10%"><!-- alignment-baseline="middle" -->
4965
+ <xsl:attribute name="height">3.5mm</xsl:attribute> <!-- 5mm -->
4962
4966
  <xsl:attribute name="content-width">100%</xsl:attribute>
4963
4967
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
4964
4968
  <xsl:attribute name="scaling">uniform</xsl:attribute>
4965
- <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4969
+ <!-- <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4966
4970
  <g>
4967
4971
  <xsl:if test="$type = 'closing' or $type = 'end'">
4968
4972
  <xsl:attribute name="transform">scale(-1 1) translate(-<xsl:value-of select="$maxwidth + 32"/>,0)</xsl:attribute>
@@ -4976,6 +4980,27 @@
4976
4980
  </xsl:if>
4977
4981
  <xsl:value-of select="$kind"/><tspan dy="10" font-size="30pt"><xsl:value-of select="$value"/></tspan>
4978
4982
  </text>
4983
+ </svg> -->
4984
+ <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4985
+ <g>
4986
+ <xsl:if test="$type = 'closing' or $type = 'end'">
4987
+ <xsl:attribute name="transform">scale(-1 1) translate(-<xsl:value-of select="$maxwidth + 32"/>,0)</xsl:attribute>
4988
+ </xsl:if>
4989
+ <polyline points="0,2.5 {$maxwidth},2.5 {$maxwidth + 20},40 {$maxwidth},77.5 0,77.5" stroke="black" stroke-width="5" fill="white"/>
4990
+ <line x1="9.5" y1="0" x2="9.5" y2="80" stroke="black" stroke-width="19"/>
4991
+ </g>
4992
+ <xsl:variable name="text_x">
4993
+ <xsl:choose>
4994
+ <xsl:when test="$type = 'closing' or $type = 'end'">28</xsl:when>
4995
+ <xsl:otherwise>22</xsl:otherwise>
4996
+ </xsl:choose>
4997
+ </xsl:variable>
4998
+ <text font-family="Arial" x="{$text_x}" y="50" font-size="40pt">
4999
+ <xsl:value-of select="$kind"/>
5000
+ </text>
5001
+ <text font-family="Arial" x="{$text_x + 33}" y="65" font-size="38pt">
5002
+ <xsl:value-of select="$value"/>
5003
+ </text>
4979
5004
  </svg>
4980
5005
  </fo:instream-foreign-object>
4981
5006
  </xsl:template>
@@ -5230,18 +5255,23 @@
5230
5255
 
5231
5256
  <xsl:template name="add-zero-spaces-java">
5232
5257
  <xsl:param name="text" select="."/>
5233
- <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, arrow right -->
5234
- <xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |→)','$1​')"/>
5258
+
5259
+ <!-- add zero-width space (#x200B) after dot with next non-digit -->
5260
+ <xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(\.)([^\d\s])','$1​$2')"/>
5261
+ <!-- add zero-width space (#x200B) after characters: dash, equal, underscore, em dash, thin space, arrow right -->
5262
+ <xsl:variable name="text2" select="java:replaceAll(java:java.lang.String.new($text1),'(-|=|_|—| |→)','$1​')"/>
5263
+ <!-- add zero-width space (#x200B) after characters: colon, if there aren't digits after -->
5264
+ <xsl:variable name="text3" select="java:replaceAll(java:java.lang.String.new($text2),'(:)(\D)','$1​$2')"/>
5235
5265
  <!-- add zero-width space (#x200B) after characters: 'great than' -->
5236
- <xsl:variable name="text2" select="java:replaceAll(java:java.lang.String.new($text1), '(\u003e)(?!\u003e)', '$1​')"/><!-- negative lookahead: 'great than' not followed by 'great than' -->
5266
+ <xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(\u003e)(?!\u003e)', '$1​')"/><!-- negative lookahead: 'great than' not followed by 'great than' -->
5237
5267
  <!-- add zero-width space (#x200B) before characters: 'less than' -->
5238
- <xsl:variable name="text3" select="java:replaceAll(java:java.lang.String.new($text2), '(?&lt;!\u003c)(\u003c)', '​$1')"/> <!-- (?<!\u003c)(\u003c) --> <!-- negative lookbehind: 'less than' not preceeded by 'less than' -->
5268
+ <xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(?&lt;!\u003c)(\u003c)', '​$1')"/> <!-- (?<!\u003c)(\u003c) --> <!-- negative lookbehind: 'less than' not preceeded by 'less than' -->
5239
5269
  <!-- add zero-width space (#x200B) before character: { -->
5240
- <xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(?&lt;!\W)(\{)', '​$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
5270
+ <xsl:variable name="text6" select="java:replaceAll(java:java.lang.String.new($text5), '(?&lt;!\W)(\{)', '​$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
5241
5271
  <!-- add zero-width space (#x200B) after character: , -->
5242
- <xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(\,)(?!\d)', '$1​')"/> <!-- negative lookahead: ',' not followed by digit -->
5272
+ <xsl:variable name="text7" select="java:replaceAll(java:java.lang.String.new($text6), '(\,)(?!\d)', '$1​')"/> <!-- negative lookahead: ',' not followed by digit -->
5243
5273
 
5244
- <xsl:value-of select="$text5"/>
5274
+ <xsl:value-of select="$text7"/>
5245
5275
  </xsl:template>
5246
5276
 
5247
5277
  <xsl:template name="add-zero-spaces-link-java">
@@ -5250,7 +5280,9 @@
5250
5280
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
5251
5281
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5252
5282
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
5253
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
5283
+ <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
5284
+ <!-- remove zero-width space at the end -->
5285
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5254
5286
  </xsl:template>
5255
5287
 
5256
5288
  <!-- add zero space after dash character (for table's entries) -->
@@ -5387,7 +5419,7 @@
5387
5419
  </xsl:copy>
5388
5420
  </xsl:template>
5389
5421
 
5390
- <xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode'])]" mode="table-without-br">
5422
+ <xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode']) and not(*[local-name()='ul']) and not(*[local-name()='ol'])]" mode="table-without-br">
5391
5423
  <xsl:copy>
5392
5424
  <xsl:copy-of select="@*"/>
5393
5425
  <p>
@@ -5463,6 +5495,14 @@
5463
5495
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),' {2,}',' ')"/>
5464
5496
  </xsl:template>
5465
5497
 
5498
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'ol' or local-name() = 'ul']" mode="table-without-br">
5499
+ <xsl:apply-templates mode="table-without-br"/>
5500
+ </xsl:template>
5501
+
5502
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'li']" mode="table-without-br">
5503
+ <xsl:apply-templates mode="table-without-br"/>
5504
+ </xsl:template>
5505
+
5466
5506
  <!-- mode="table-without-br" -->
5467
5507
  <!-- ================================== -->
5468
5508
  <!-- END: Step 0. replace <br/> to <p>...</p> -->
@@ -6287,7 +6327,7 @@
6287
6327
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
6288
6328
  </xsl:if>
6289
6329
 
6290
- <fo:block-container margin-left="0mm">
6330
+ <fo:block-container margin-left="0mm" margin-right="0mm">
6291
6331
 
6292
6332
  <fo:block>
6293
6333
 
@@ -6468,11 +6508,14 @@
6468
6508
  <!-- show figure's name BEFORE image -->
6469
6509
  <xsl:apply-templates select="*[local-name() = 'name']"/>
6470
6510
 
6511
+ <!-- Example: Dimensions in millimeters -->
6512
+ <xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
6513
+
6471
6514
  <fo:block xsl:use-attribute-sets="figure-style">
6472
- <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
6515
+ <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
6473
6516
  </fo:block>
6474
6517
  <xsl:call-template name="fn_display_figure"/>
6475
- <xsl:for-each select="*[local-name() = 'note']">
6518
+ <xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
6476
6519
  <xsl:call-template name="note"/>
6477
6520
  </xsl:for-each>
6478
6521
 
@@ -6727,24 +6770,47 @@
6727
6770
 
6728
6771
  </xsl:when>
6729
6772
  <xsl:otherwise>
6730
- <fo:block xsl:use-attribute-sets="image-style">
6731
- <fo:instream-foreign-object fox:alt-text="{$alt-text}">
6732
- <xsl:attribute name="width">100%</xsl:attribute>
6733
- <xsl:attribute name="content-height">100%</xsl:attribute>
6734
- <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6735
- <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
6736
- <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
6737
- <!-- effective height 297 - 27.4 - 13 = 256.6 -->
6738
- <!-- effective width 210 - 12.5 - 25 = 172.5 -->
6739
- <!-- effective height / width = 1.48, 1.4 - with title -->
6740
- <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
6741
- <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
6742
- <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
6743
- </xsl:if>
6744
- <xsl:attribute name="scaling">uniform</xsl:attribute>
6745
- <xsl:copy-of select="$svg_content"/>
6746
- </fo:instream-foreign-object>
6747
- </fo:block>
6773
+
6774
+ <xsl:variable name="element">
6775
+ <xsl:choose>
6776
+ <xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
6777
+ <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
6778
+ </xsl:when>
6779
+ <xsl:otherwise>
6780
+ <fo:block xsl:use-attribute-sets="image-style">
6781
+ <xsl:if test="ancestor::*[local-name() = 'dt']">
6782
+ <xsl:attribute name="text-align">left</xsl:attribute>
6783
+ </xsl:if>
6784
+ </fo:block>
6785
+ </xsl:otherwise>
6786
+ </xsl:choose>
6787
+ </xsl:variable>
6788
+
6789
+ <xsl:for-each select="xalan:nodeset($element)/*">
6790
+ <xsl:copy>
6791
+ <xsl:copy-of select="@*"/>
6792
+ <!-- <fo:block xsl:use-attribute-sets="image-style"> -->
6793
+ <fo:instream-foreign-object fox:alt-text="{$alt-text}">
6794
+ <xsl:if test="$isGenerateTableIF = 'false'">
6795
+ <xsl:attribute name="width">100%</xsl:attribute>
6796
+ </xsl:if>
6797
+ <xsl:attribute name="content-height">100%</xsl:attribute>
6798
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6799
+ <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
6800
+ <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
6801
+ <!-- effective height 297 - 27.4 - 13 = 256.6 -->
6802
+ <!-- effective width 210 - 12.5 - 25 = 172.5 -->
6803
+ <!-- effective height / width = 1.48, 1.4 - with title -->
6804
+ <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
6805
+ <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
6806
+ <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
6807
+ </xsl:if>
6808
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
6809
+ <xsl:copy-of select="$svg_content"/>
6810
+ </fo:instream-foreign-object>
6811
+ <!-- </fo:block> -->
6812
+ </xsl:copy>
6813
+ </xsl:for-each>
6748
6814
  </xsl:otherwise>
6749
6815
  </xsl:choose>
6750
6816
  </xsl:template>
@@ -6836,6 +6902,13 @@
6836
6902
  </xsl:for-each>
6837
6903
  </xsl:template>
6838
6904
 
6905
+ <!-- For the structures like: <dt><image src="" mimetype="image/svg+xml" height="" width=""><svg xmlns="http://www.w3.org/2000/svg" ... -->
6906
+ <xsl:template match="*[local-name() != 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
6907
+ <xsl:for-each select="*[local-name() = 'svg']">
6908
+ <xsl:call-template name="image_svg"/>
6909
+ </xsl:for-each>
6910
+ </xsl:template>
6911
+
6839
6912
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
6840
6913
  <xsl:variable name="svg_content" select="document(@src)"/>
6841
6914
  <xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
@@ -6974,6 +7047,8 @@
6974
7047
  <xsl:value-of select="."/>
6975
7048
  </xsl:template>
6976
7049
 
7050
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="bookmarks" priority="3"/>
7051
+
6977
7052
  <xsl:template match="node()" mode="contents">
6978
7053
  <xsl:apply-templates mode="contents"/>
6979
7054
  </xsl:template>
@@ -7281,7 +7356,15 @@
7281
7356
  <xsl:value-of select="@section"/>
7282
7357
  <xsl:text> </xsl:text>
7283
7358
  </xsl:if>
7284
- <xsl:value-of select="normalize-space(title)"/>
7359
+ <xsl:variable name="title">
7360
+ <xsl:for-each select="title/node()">
7361
+ <xsl:choose>
7362
+ <xsl:when test="local-name() = 'add' and starts-with(., $ace_tag)"><!-- skip --></xsl:when>
7363
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
7364
+ </xsl:choose>
7365
+ </xsl:for-each>
7366
+ </xsl:variable>
7367
+ <xsl:value-of select="normalize-space($title)"/>
7285
7368
  </fo:bookmark-title>
7286
7369
  <xsl:apply-templates mode="bookmark"/>
7287
7370
  </fo:bookmark>
@@ -7307,6 +7390,12 @@
7307
7390
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
7308
7391
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/>
7309
7392
 
7393
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note'][@type = 'units'] | *[local-name() = 'image']/*[local-name() = 'note'][@type = 'units']" priority="2">
7394
+ <fo:block text-align="right" keep-with-next="always">
7395
+ <xsl:apply-templates/>
7396
+ </fo:block>
7397
+ </xsl:template>
7398
+
7310
7399
  <!-- ====== -->
7311
7400
  <!-- ====== -->
7312
7401
  <xsl:template match="*[local-name() = 'title']" mode="contents_item">
@@ -7456,6 +7545,10 @@
7456
7545
  </xsl:for-each>
7457
7546
  </xsl:template>
7458
7547
 
7548
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="contents_item" priority="2">
7549
+ <xsl:value-of select="."/>
7550
+ </xsl:template>
7551
+
7459
7552
  <!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
7460
7553
  <xsl:template match="*[local-name() = 'span']" mode="contents_item">
7461
7554
  <xsl:apply-templates mode="contents_item"/>
@@ -522,7 +522,6 @@
522
522
  <value>tip</value>
523
523
  <value>important</value>
524
524
  <value>caution</value>
525
- <value>statement</value>
526
525
  </choice>
527
526
  </define>
528
527
  <define name="figure">
@@ -216,6 +216,9 @@
216
216
  <optional>
217
217
  <ref name="fullname"/>
218
218
  </optional>
219
+ <zeroOrMore>
220
+ <ref name="credential"/>
221
+ </zeroOrMore>
219
222
  <zeroOrMore>
220
223
  <ref name="affiliation"/>
221
224
  </zeroOrMore>
@@ -232,6 +235,11 @@
232
235
  <ref name="FullNameType"/>
233
236
  </element>
234
237
  </define>
238
+ <define name="credential">
239
+ <element name="credential">
240
+ <text/>
241
+ </element>
242
+ </define>
235
243
  <define name="FullNameType">
236
244
  <choice>
237
245
  <group>
@@ -305,7 +313,9 @@
305
313
  <zeroOrMore>
306
314
  <ref name="affiliationdescription"/>
307
315
  </zeroOrMore>
308
- <ref name="organization"/>
316
+ <optional>
317
+ <ref name="organization"/>
318
+ </optional>
309
319
  </element>
310
320
  </define>
311
321
  <define name="affiliationname">
@@ -66,6 +66,7 @@
66
66
  <value>caution</value>
67
67
  <value>statement</value>
68
68
  <value>editorial</value>
69
+ <value>box</value>
69
70
  </choice>
70
71
  </define>
71
72
  <define name="index">
@@ -1577,6 +1578,9 @@
1577
1578
  <zeroOrMore>
1578
1579
  <ref name="indexsect"/>
1579
1580
  </zeroOrMore>
1581
+ <optional>
1582
+ <ref name="colophon"/>
1583
+ </optional>
1580
1584
  </element>
1581
1585
  </define>
1582
1586
  <define name="misccontainer">
@@ -1599,6 +1603,13 @@
1599
1603
  </oneOrMore>
1600
1604
  </element>
1601
1605
  </define>
1606
+ <define name="colophon">
1607
+ <element name="colophon">
1608
+ <oneOrMore>
1609
+ <ref name="content"/>
1610
+ </oneOrMore>
1611
+ </element>
1612
+ </define>
1602
1613
  <define name="foreword">
1603
1614
  <element name="foreword">
1604
1615
  <ref name="Content-Section"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.2.3".freeze
3
+ VERSION = "2.2.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic