metanorma-csa 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: 6247cd1d99f827e1c07acead231cb5905a8a76f65825512adc363bac46887548
4
- data.tar.gz: 7ca46a311abb4ef7130aa384ecf103a31f1977a6634616010c2ce7f37f073c7b
3
+ metadata.gz: 2d3a32f72415c3686b71c6403ce09f7eda11dbf6183b75cfaf91747b27e0ee60
4
+ data.tar.gz: 321c976dff72a64acbb5f267850505f2f0008d51ce79a6221958c836a55236e1
5
5
  SHA512:
6
- metadata.gz: 1082cbdd5f25f87d13704d726d9f8968f495cd04700e05f0ce7dda8c7c63161e4e8b85020834086c73ca65867a50bf15700d81edb41adb425c4750f99420d421
7
- data.tar.gz: 2a25ce7752ed8739b68550acb37783144e6310fe8bc07f28c1fa0fdf027de1fa328ef84ad4565b674cec6ab7e8176e5b4570f1235269b9823019086464e7c46c
6
+ metadata.gz: 0f1147857046f984258e10ecf5f063797d69cedddd8600d11be944ed98d65a6824b9089bda57701f02a11cbb6fed852276c0277742eca49ec6433e6956603ffe
7
+ data.tar.gz: 8d2b991f6a03678bcc0baae65009874ebdcbb73f06d5c5f4a64e5732fb2fb30c29dd1d7c2277684f9221b33e77073b23efcc966cc19f0025f86b870fb22b3a88
@@ -2340,7 +2340,7 @@
2340
2340
  <xsl:variable name="isDeleted" select="@deleted"/>
2341
2341
 
2342
2342
  <xsl:choose>
2343
- <xsl:when test="@width">
2343
+ <xsl:when test="@width and @width != 'full-page-width' and @width != 'text-width'">
2344
2344
 
2345
2345
  <!-- centered table when table name is centered (see table-name-style) -->
2346
2346
 
@@ -2665,6 +2665,7 @@
2665
2665
  This makes columns with large differences between minimum and maximum widths wider than columns with smaller differences. -->
2666
2666
  <xsl:when test="(@width_max &gt; $page_width and @width_min &lt; $page_width) or (@width_min &gt;= $page_width)">
2667
2667
  <!-- difference between the available space and the minimum table width -->
2668
+ <_width_min><xsl:value-of select="@width_min"/></_width_min>
2668
2669
  <xsl:variable name="W" select="$page_width - @width_min"/>
2669
2670
  <W><xsl:value-of select="$W"/></W>
2670
2671
  <!-- difference between maximum and minimum width of the table -->
@@ -3282,17 +3283,20 @@
3282
3283
  <xsl:for-each select="xalan:nodeset($references)//fn">
3283
3284
  <xsl:variable name="reference" select="@reference"/>
3284
3285
  <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
3285
- <fo:block xsl:use-attribute-sets="table-fn-style">
3286
3286
 
3287
- <fo:inline id="{@id}" xsl:use-attribute-sets="table-fn-number-style">
3287
+ <fo:block xsl:use-attribute-sets="table-fn-style">
3288
3288
 
3289
- <xsl:value-of select="@reference"/>
3289
+ <fo:inline id="{@id}" xsl:use-attribute-sets="table-fn-number-style">
3290
+
3291
+ <xsl:value-of select="@reference"/>
3292
+
3293
+ </fo:inline>
3294
+ <fo:inline xsl:use-attribute-sets="table-fn-body-style">
3295
+ <xsl:copy-of select="./node()"/>
3296
+ </fo:inline>
3297
+
3298
+ </fo:block>
3290
3299
 
3291
- </fo:inline>
3292
- <fo:inline xsl:use-attribute-sets="table-fn-body-style">
3293
- <xsl:copy-of select="./node()"/>
3294
- </fo:inline>
3295
- </fo:block>
3296
3300
  </xsl:if>
3297
3301
  </xsl:for-each>
3298
3302
  </xsl:template>
@@ -4230,12 +4234,12 @@
4230
4234
  <xsl:param name="value"/>
4231
4235
  <xsl:variable name="add_width" select="string-length($value) * 20"/>
4232
4236
  <xsl:variable name="maxwidth" select="60 + $add_width"/>
4233
- <fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-20%"><!-- alignment-baseline="middle" -->
4234
- <xsl:attribute name="height">5mm</xsl:attribute>
4237
+ <fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-10%"><!-- alignment-baseline="middle" -->
4238
+ <xsl:attribute name="height">3.5mm</xsl:attribute> <!-- 5mm -->
4235
4239
  <xsl:attribute name="content-width">100%</xsl:attribute>
4236
4240
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
4237
4241
  <xsl:attribute name="scaling">uniform</xsl:attribute>
4238
- <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4242
+ <!-- <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4239
4243
  <g>
4240
4244
  <xsl:if test="$type = 'closing' or $type = 'end'">
4241
4245
  <xsl:attribute name="transform">scale(-1 1) translate(-<xsl:value-of select="$maxwidth + 32"/>,0)</xsl:attribute>
@@ -4249,6 +4253,27 @@
4249
4253
  </xsl:if>
4250
4254
  <xsl:value-of select="$kind"/><tspan dy="10" font-size="30pt"><xsl:value-of select="$value"/></tspan>
4251
4255
  </text>
4256
+ </svg> -->
4257
+ <svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
4258
+ <g>
4259
+ <xsl:if test="$type = 'closing' or $type = 'end'">
4260
+ <xsl:attribute name="transform">scale(-1 1) translate(-<xsl:value-of select="$maxwidth + 32"/>,0)</xsl:attribute>
4261
+ </xsl:if>
4262
+ <polyline points="0,2.5 {$maxwidth},2.5 {$maxwidth + 20},40 {$maxwidth},77.5 0,77.5" stroke="black" stroke-width="5" fill="white"/>
4263
+ <line x1="9.5" y1="0" x2="9.5" y2="80" stroke="black" stroke-width="19"/>
4264
+ </g>
4265
+ <xsl:variable name="text_x">
4266
+ <xsl:choose>
4267
+ <xsl:when test="$type = 'closing' or $type = 'end'">28</xsl:when>
4268
+ <xsl:otherwise>22</xsl:otherwise>
4269
+ </xsl:choose>
4270
+ </xsl:variable>
4271
+ <text font-family="Arial" x="{$text_x}" y="50" font-size="40pt">
4272
+ <xsl:value-of select="$kind"/>
4273
+ </text>
4274
+ <text font-family="Arial" x="{$text_x + 33}" y="65" font-size="38pt">
4275
+ <xsl:value-of select="$value"/>
4276
+ </text>
4252
4277
  </svg>
4253
4278
  </fo:instream-foreign-object>
4254
4279
  </xsl:template>
@@ -4503,18 +4528,20 @@
4503
4528
 
4504
4529
  <xsl:template name="add-zero-spaces-java">
4505
4530
  <xsl:param name="text" select="."/>
4506
- <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, arrow right -->
4507
- <xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |→)','$1​')"/>
4531
+ <!-- add zero-width space (#x200B) after characters: dash, dot, equal, underscore, em dash, thin space, arrow right -->
4532
+ <xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|=|_|—| |→)','$1​')"/>
4533
+ <!-- add zero-width space (#x200B) after characters: colon, if there aren't digits after -->
4534
+ <xsl:variable name="text2" select="java:replaceAll(java:java.lang.String.new($text1),'(:)(\D)','$1​$2')"/>
4508
4535
  <!-- add zero-width space (#x200B) after characters: 'great than' -->
4509
- <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' -->
4536
+ <xsl:variable name="text3" select="java:replaceAll(java:java.lang.String.new($text2), '(\u003e)(?!\u003e)', '$1​')"/><!-- negative lookahead: 'great than' not followed by 'great than' -->
4510
4537
  <!-- add zero-width space (#x200B) before characters: 'less than' -->
4511
- <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' -->
4538
+ <xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(?&lt;!\u003c)(\u003c)', '​$1')"/> <!-- (?<!\u003c)(\u003c) --> <!-- negative lookbehind: 'less than' not preceeded by 'less than' -->
4512
4539
  <!-- add zero-width space (#x200B) before character: { -->
4513
- <xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(?&lt;!\W)(\{)', '​$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
4540
+ <xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(?&lt;!\W)(\{)', '​$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
4514
4541
  <!-- add zero-width space (#x200B) after character: , -->
4515
- <xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(\,)(?!\d)', '$1​')"/> <!-- negative lookahead: ',' not followed by digit -->
4542
+ <xsl:variable name="text6" select="java:replaceAll(java:java.lang.String.new($text5), '(\,)(?!\d)', '$1​')"/> <!-- negative lookahead: ',' not followed by digit -->
4516
4543
 
4517
- <xsl:value-of select="$text5"/>
4544
+ <xsl:value-of select="$text6"/>
4518
4545
  </xsl:template>
4519
4546
 
4520
4547
  <xsl:template name="add-zero-spaces-link-java">
@@ -4523,7 +4550,9 @@
4523
4550
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
4524
4551
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
4525
4552
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
4526
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
4553
+ <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
4554
+ <!-- remove zero-width space at the end -->
4555
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
4527
4556
  </xsl:template>
4528
4557
 
4529
4558
  <!-- add zero space after dash character (for table's entries) -->
@@ -4660,7 +4689,7 @@
4660
4689
  </xsl:copy>
4661
4690
  </xsl:template>
4662
4691
 
4663
- <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">
4692
+ <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">
4664
4693
  <xsl:copy>
4665
4694
  <xsl:copy-of select="@*"/>
4666
4695
  <p>
@@ -4736,6 +4765,14 @@
4736
4765
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),' {2,}',' ')"/>
4737
4766
  </xsl:template>
4738
4767
 
4768
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'ol' or local-name() = 'ul']" mode="table-without-br">
4769
+ <xsl:apply-templates mode="table-without-br"/>
4770
+ </xsl:template>
4771
+
4772
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'li']" mode="table-without-br">
4773
+ <xsl:apply-templates mode="table-without-br"/>
4774
+ </xsl:template>
4775
+
4739
4776
  <!-- mode="table-without-br" -->
4740
4777
  <!-- ================================== -->
4741
4778
  <!-- END: Step 0. replace <br/> to <p>...</p> -->
@@ -5549,7 +5586,7 @@
5549
5586
 
5550
5587
  <fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
5551
5588
 
5552
- <fo:block-container margin-left="0mm">
5589
+ <fo:block-container margin-left="0mm" margin-right="0mm">
5553
5590
 
5554
5591
  <xsl:if test="ancestor::csa:ul or ancestor::csa:ol and not(ancestor::csa:note[1]/following-sibling::*)">
5555
5592
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
@@ -5727,11 +5764,14 @@
5727
5764
  <xsl:with-param name="isDeleted" select="$isDeleted"/>
5728
5765
  </xsl:call-template>
5729
5766
 
5767
+ <!-- Example: Dimensions in millimeters -->
5768
+ <xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
5769
+
5730
5770
  <fo:block xsl:use-attribute-sets="figure-style">
5731
- <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
5771
+ <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
5732
5772
  </fo:block>
5733
5773
  <xsl:call-template name="fn_display_figure"/>
5734
- <xsl:for-each select="*[local-name() = 'note']">
5774
+ <xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
5735
5775
  <xsl:call-template name="note"/>
5736
5776
  </xsl:for-each>
5737
5777
 
@@ -5988,24 +6028,47 @@
5988
6028
 
5989
6029
  </xsl:when>
5990
6030
  <xsl:otherwise>
5991
- <fo:block xsl:use-attribute-sets="image-style">
5992
- <fo:instream-foreign-object fox:alt-text="{$alt-text}">
5993
- <xsl:attribute name="width">100%</xsl:attribute>
5994
- <xsl:attribute name="content-height">100%</xsl:attribute>
5995
- <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5996
- <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
5997
- <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
5998
- <!-- effective height 297 - 27.4 - 13 = 256.6 -->
5999
- <!-- effective width 210 - 12.5 - 25 = 172.5 -->
6000
- <!-- effective height / width = 1.48, 1.4 - with title -->
6001
- <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
6002
- <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
6003
- <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
6004
- </xsl:if>
6005
- <xsl:attribute name="scaling">uniform</xsl:attribute>
6006
- <xsl:copy-of select="$svg_content"/>
6007
- </fo:instream-foreign-object>
6008
- </fo:block>
6031
+
6032
+ <xsl:variable name="element">
6033
+ <xsl:choose>
6034
+ <xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
6035
+ <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
6036
+ </xsl:when>
6037
+ <xsl:otherwise>
6038
+ <fo:block xsl:use-attribute-sets="image-style">
6039
+ <xsl:if test="ancestor::*[local-name() = 'dt']">
6040
+ <xsl:attribute name="text-align">left</xsl:attribute>
6041
+ </xsl:if>
6042
+ </fo:block>
6043
+ </xsl:otherwise>
6044
+ </xsl:choose>
6045
+ </xsl:variable>
6046
+
6047
+ <xsl:for-each select="xalan:nodeset($element)/*">
6048
+ <xsl:copy>
6049
+ <xsl:copy-of select="@*"/>
6050
+ <!-- <fo:block xsl:use-attribute-sets="image-style"> -->
6051
+ <fo:instream-foreign-object fox:alt-text="{$alt-text}">
6052
+ <xsl:if test="$isGenerateTableIF = 'false'">
6053
+ <xsl:attribute name="width">100%</xsl:attribute>
6054
+ </xsl:if>
6055
+ <xsl:attribute name="content-height">100%</xsl:attribute>
6056
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6057
+ <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
6058
+ <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
6059
+ <!-- effective height 297 - 27.4 - 13 = 256.6 -->
6060
+ <!-- effective width 210 - 12.5 - 25 = 172.5 -->
6061
+ <!-- effective height / width = 1.48, 1.4 - with title -->
6062
+ <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
6063
+ <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
6064
+ <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
6065
+ </xsl:if>
6066
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
6067
+ <xsl:copy-of select="$svg_content"/>
6068
+ </fo:instream-foreign-object>
6069
+ <!-- </fo:block> -->
6070
+ </xsl:copy>
6071
+ </xsl:for-each>
6009
6072
  </xsl:otherwise>
6010
6073
  </xsl:choose>
6011
6074
  </xsl:template>
@@ -6097,6 +6160,13 @@
6097
6160
  </xsl:for-each>
6098
6161
  </xsl:template>
6099
6162
 
6163
+ <!-- For the structures like: <dt><image src="" mimetype="image/svg+xml" height="" width=""><svg xmlns="http://www.w3.org/2000/svg" ... -->
6164
+ <xsl:template match="*[local-name() != 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
6165
+ <xsl:for-each select="*[local-name() = 'svg']">
6166
+ <xsl:call-template name="image_svg"/>
6167
+ </xsl:for-each>
6168
+ </xsl:template>
6169
+
6100
6170
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
6101
6171
  <xsl:variable name="svg_content" select="document(@src)"/>
6102
6172
  <xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
@@ -6235,6 +6305,8 @@
6235
6305
  <xsl:value-of select="."/>
6236
6306
  </xsl:template>
6237
6307
 
6308
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="bookmarks" priority="3"/>
6309
+
6238
6310
  <xsl:template match="node()" mode="contents">
6239
6311
  <xsl:apply-templates mode="contents"/>
6240
6312
  </xsl:template>
@@ -6542,7 +6614,15 @@
6542
6614
  <xsl:value-of select="@section"/>
6543
6615
  <xsl:text> </xsl:text>
6544
6616
  </xsl:if>
6545
- <xsl:value-of select="normalize-space(title)"/>
6617
+ <xsl:variable name="title">
6618
+ <xsl:for-each select="title/node()">
6619
+ <xsl:choose>
6620
+ <xsl:when test="local-name() = 'add' and starts-with(., $ace_tag)"><!-- skip --></xsl:when>
6621
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
6622
+ </xsl:choose>
6623
+ </xsl:for-each>
6624
+ </xsl:variable>
6625
+ <xsl:value-of select="normalize-space($title)"/>
6546
6626
  </fo:bookmark-title>
6547
6627
  <xsl:apply-templates mode="bookmark"/>
6548
6628
  </fo:bookmark>
@@ -6568,6 +6648,12 @@
6568
6648
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
6569
6649
  <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/>
6570
6650
 
6651
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note'][@type = 'units'] | *[local-name() = 'image']/*[local-name() = 'note'][@type = 'units']" priority="2">
6652
+ <fo:block text-align="right" keep-with-next="always">
6653
+ <xsl:apply-templates/>
6654
+ </fo:block>
6655
+ </xsl:template>
6656
+
6571
6657
  <!-- ====== -->
6572
6658
  <!-- ====== -->
6573
6659
  <xsl:template match="*[local-name() = 'title']" mode="contents_item">
@@ -6717,6 +6803,10 @@
6717
6803
  </xsl:for-each>
6718
6804
  </xsl:template>
6719
6805
 
6806
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="contents_item" priority="2">
6807
+ <xsl:value-of select="."/>
6808
+ </xsl:template>
6809
+
6720
6810
  <!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
6721
6811
  <xsl:template match="*[local-name() = 'span']" mode="contents_item">
6722
6812
  <xsl:apply-templates mode="contents_item"/>
@@ -696,6 +696,10 @@ pre,
696
696
  font-size: 1em;
697
697
  text-align: center; }
698
698
 
699
+ table div.figure {
700
+ padding: 0;
701
+ margin: 0; }
702
+
699
703
  .AdmonitionTitle {
700
704
  font-weight: 700;
701
705
  font-size: 1em;
@@ -323,6 +323,12 @@ pre,
323
323
  margin: 2em 0 2em -1em;
324
324
  }
325
325
 
326
+ table div.figure {
327
+ padding: 0;
328
+ margin: 0;
329
+ }
330
+
331
+
326
332
  @include admonitionBlock();
327
333
  @include recommendationBlock();
328
334
  @include listBlock();
@@ -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 Csa
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-csa
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