metanorma-csa 2.1.3 → 2.1.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: 8d12127944138619a1088873e854f29303023218e466bb41a77cb380b1b64553
4
- data.tar.gz: cb4309da7e9858c847f530b3070e9901ec164f7c77526ef62f147cc749986d01
3
+ metadata.gz: 66c0fc74ab5df13e38d5e6b656c19cdb1922857b1ee25d2a187c8733cae2bf80
4
+ data.tar.gz: cb5ae68c6256eb42f948a2805a3dddce032312014b66de325152ec21a57543aa
5
5
  SHA512:
6
- metadata.gz: 81168a05a9fd253df364ea202a754a91b083c479c03127b968ff7bf93461bf30673fffc898d61de23673ff97b9e75d09de85d9b024a379cb4365b813e9964ef3
7
- data.tar.gz: 891e4aa19dc827ef12002a096a363c2fb43882daba79bee94a52e76ac3f3e203830805eefa74d59979a7545af72150ed6fcf307acba548c05c76de79d0eae439
6
+ metadata.gz: 2e6f2e8d7f44c81adb13a585b8266566366f24cc4d9cc75cabc5afa7a63af2d2c941b44dda3b1c80e7c18a58f03c49ceb0b34b2a98be5068d72984291b962b1b
7
+ data.tar.gz: 29f5a30f4a64d39042f51fd07b94e6389b6c39a6d239c9176ac8349d51383707569e6aaaab2d165dc9f32f21b0b1191efbb955b509d4791248880190e5866eeb
@@ -902,7 +902,10 @@
902
902
 
903
903
  </xsl:attribute-set><xsl:attribute-set name="requirement-style">
904
904
 
905
+
905
906
  </xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
907
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
908
+
906
909
 
907
910
  </xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
908
911
 
@@ -1008,6 +1011,7 @@
1008
1011
 
1009
1012
 
1010
1013
 
1014
+
1011
1015
 
1012
1016
 
1013
1017
  </xsl:attribute-set><xsl:variable name="table-border_">
@@ -1331,7 +1335,8 @@
1331
1335
 
1332
1336
 
1333
1337
 
1334
-
1338
+
1339
+
1335
1340
 
1336
1341
 
1337
1342
 
@@ -1347,6 +1352,7 @@
1347
1352
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1348
1353
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1349
1354
 
1355
+
1350
1356
 
1351
1357
 
1352
1358
 
@@ -1803,7 +1809,10 @@
1803
1809
 
1804
1810
 
1805
1811
 
1806
-
1812
+ <!-- <xsl:if test="$namespace = 'ieee'">
1813
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1814
+ <xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
1815
+ </xsl:if> -->
1807
1816
 
1808
1817
 
1809
1818
 
@@ -2994,80 +3003,88 @@
2994
3003
  </xsl:choose>
2995
3004
  </xsl:variable>
2996
3005
 
2997
- <fo:table keep-with-previous="always">
2998
- <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
2999
- <xsl:variable name="name" select="local-name()"/>
3006
+
3007
+ <xsl:variable name="tableWithNotesAndFootnotes">
3008
+
3009
+ <fo:table keep-with-previous="always">
3010
+ <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
3011
+ <xsl:variable name="name" select="local-name()"/>
3012
+ <xsl:choose>
3013
+ <xsl:when test="$name = 'border-top'">
3014
+ <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
3015
+ </xsl:when>
3016
+ <xsl:when test="$name = 'border'">
3017
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
3018
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
3019
+ </xsl:when>
3020
+ <xsl:otherwise>
3021
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
3022
+ </xsl:otherwise>
3023
+ </xsl:choose>
3024
+ </xsl:for-each>
3025
+
3026
+
3027
+
3000
3028
  <xsl:choose>
3001
- <xsl:when test="$name = 'border-top'">
3002
- <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
3003
- </xsl:when>
3004
- <xsl:when test="$name = 'border'">
3005
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
3006
- <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
3029
+ <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
3030
+ <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
3031
+ <fo:table-column column-width="{@width}"/>
3032
+ </xsl:for-each>
3007
3033
  </xsl:when>
3008
3034
  <xsl:otherwise>
3009
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
3035
+ <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
3036
+ <xsl:call-template name="insertTableColumnWidth">
3037
+ <xsl:with-param name="colwidths" select="$colwidths"/>
3038
+ </xsl:call-template>
3010
3039
  </xsl:otherwise>
3011
3040
  </xsl:choose>
3012
- </xsl:for-each>
3013
-
3014
-
3015
-
3016
- <xsl:choose>
3017
- <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
3018
- <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
3019
- <fo:table-column column-width="{@width}"/>
3020
- </xsl:for-each>
3021
- </xsl:when>
3022
- <xsl:otherwise>
3023
- <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
3024
- <xsl:call-template name="insertTableColumnWidth">
3025
- <xsl:with-param name="colwidths" select="$colwidths"/>
3026
- </xsl:call-template>
3027
- </xsl:otherwise>
3028
- </xsl:choose>
3029
-
3030
- <fo:table-body>
3031
- <fo:table-row>
3032
- <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
3033
-
3034
-
3041
+
3042
+ <fo:table-body>
3043
+ <fo:table-row>
3044
+ <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
3045
+
3046
+
3035
3047
 
3036
-
3037
-
3038
- <!-- fn will be processed inside 'note' processing -->
3039
-
3040
-
3041
-
3042
-
3043
-
3044
-
3045
- <!-- for BSI (not PAS) display Notes before footnotes -->
3046
-
3047
-
3048
- <!-- except gb and bsi -->
3049
-
3050
- <xsl:apply-templates select="../*[local-name()='note']"/>
3051
3048
 
3052
-
3053
-
3054
- <!-- horizontal row separator -->
3055
-
3056
-
3057
- <!-- fn processing -->
3058
-
3059
- <xsl:call-template name="table_fn_display"/>
3060
3049
 
3061
-
3062
-
3063
- <!-- for PAS display Notes after footnotes -->
3064
-
3065
-
3066
- </fo:table-cell>
3067
- </fo:table-row>
3068
- </fo:table-body>
3069
-
3070
- </fo:table>
3050
+ <!-- fn will be processed inside 'note' processing -->
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+ <!-- for BSI (not PAS) display Notes before footnotes -->
3058
+
3059
+
3060
+ <!-- except gb and bsi -->
3061
+
3062
+ <xsl:apply-templates select="../*[local-name()='note']"/>
3063
+
3064
+
3065
+
3066
+ <!-- horizontal row separator -->
3067
+
3068
+
3069
+ <!-- fn processing -->
3070
+
3071
+ <xsl:call-template name="table_fn_display"/>
3072
+
3073
+
3074
+
3075
+ <!-- for PAS display Notes after footnotes -->
3076
+
3077
+
3078
+ </fo:table-cell>
3079
+ </fo:table-row>
3080
+ </fo:table-body>
3081
+
3082
+ </fo:table>
3083
+ </xsl:variable>
3084
+
3085
+ <xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
3086
+ <xsl:copy-of select="$tableWithNotesAndFootnotes"/>
3087
+ </xsl:if>
3071
3088
 
3072
3089
 
3073
3090
 
@@ -3361,6 +3378,7 @@
3361
3378
  <xsl:variable name="footnote_inline">
3362
3379
  <fo:inline xsl:use-attribute-sets="fn-num-style">
3363
3380
 
3381
+
3364
3382
  <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
3365
3383
  <xsl:value-of select="$current_fn_number_text"/>
3366
3384
  </fo:basic-link>
@@ -3382,8 +3400,12 @@
3382
3400
  <fo:block xsl:use-attribute-sets="fn-body-style">
3383
3401
 
3384
3402
 
3403
+
3385
3404
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
3386
3405
 
3406
+
3407
+
3408
+
3387
3409
  <xsl:value-of select="$current_fn_number_text"/>
3388
3410
  </fo:inline>
3389
3411
  <xsl:apply-templates/>
@@ -5068,6 +5090,8 @@
5068
5090
 
5069
5091
 
5070
5092
 
5093
+
5094
+
5071
5095
  <xsl:choose>
5072
5096
  <xsl:when test="$target_text = ''">
5073
5097
  <xsl:apply-templates/>
@@ -5279,6 +5303,7 @@
5279
5303
 
5280
5304
 
5281
5305
 
5306
+
5282
5307
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
5283
5308
  <!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
5284
5309
  <xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
@@ -5301,6 +5326,7 @@
5301
5326
  <xsl:otherwise>
5302
5327
 
5303
5328
 
5329
+
5304
5330
  </xsl:otherwise>
5305
5331
  </xsl:choose>
5306
5332
  </xsl:variable>
@@ -5318,6 +5344,7 @@
5318
5344
  <xsl:otherwise>
5319
5345
 
5320
5346
 
5347
+
5321
5348
  </xsl:otherwise>
5322
5349
  </xsl:choose>
5323
5350
  </xsl:variable>
@@ -6093,6 +6120,9 @@
6093
6120
  <fo:block xsl:use-attribute-sets="figure-name-style">
6094
6121
 
6095
6122
 
6123
+
6124
+
6125
+
6096
6126
  <xsl:apply-templates/>
6097
6127
  </fo:block>
6098
6128
  </xsl:if>
@@ -6153,7 +6183,7 @@
6153
6183
  <xsl:apply-templates/>
6154
6184
  </xsl:otherwise>
6155
6185
  </xsl:choose>
6156
- </xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref']" mode="contents">
6186
+ </xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
6157
6187
  <xsl:value-of select="."/>
6158
6188
  </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
6159
6189
  <xsl:text> </xsl:text>
@@ -6229,6 +6259,9 @@
6229
6259
  <!-- 9 -->
6230
6260
 
6231
6261
 
6262
+ <!-- <xsl:if test="$namespace = 'ieee'">
6263
+ <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
6264
+ </xsl:if> -->
6232
6265
 
6233
6266
 
6234
6267
 
@@ -6673,10 +6706,14 @@
6673
6706
  </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
6674
6707
  <xsl:variable name="element">inline
6675
6708
 
6709
+
6676
6710
  </xsl:variable>
6677
6711
  <xsl:choose>
6678
6712
  <xsl:when test="contains($element, 'block')">
6679
6713
  <fo:block xsl:use-attribute-sets="example-p-style">
6714
+
6715
+
6716
+
6680
6717
  <xsl:apply-templates/>
6681
6718
  </fo:block>
6682
6719
  </xsl:when>
@@ -6784,6 +6821,7 @@
6784
6821
  </xsl:if>
6785
6822
  <fo:block xsl:use-attribute-sets="example-p-style">
6786
6823
 
6824
+
6787
6825
  <xsl:apply-templates/>
6788
6826
  </fo:block>
6789
6827
  </fo:block-container>
@@ -6940,6 +6978,8 @@
6940
6978
 
6941
6979
 
6942
6980
 
6981
+
6982
+
6943
6983
  <fo:basic-link fox:alt-text="{@citeas}">
6944
6984
  <xsl:if test="normalize-space(@citeas) = ''">
6945
6985
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
@@ -7358,6 +7398,8 @@
7358
7398
 
7359
7399
 
7360
7400
 
7401
+
7402
+
7361
7403
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
7362
7404
  <xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
7363
7405
  <xsl:call-template name="append_add-style"/>
@@ -7615,7 +7657,7 @@
7615
7657
  </fo:block>
7616
7658
 
7617
7659
 
7618
- </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
7660
+ </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
7619
7661
 
7620
7662
 
7621
7663
  <!-- start CSA bibitem processing -->
@@ -8384,7 +8426,7 @@
8384
8426
  <dc:description>
8385
8427
  <xsl:variable name="abstract">
8386
8428
 
8387
- <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
8429
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
8388
8430
 
8389
8431
  </xsl:variable>
8390
8432
  <xsl:value-of select="normalize-space($abstract)"/>
@@ -69,6 +69,17 @@
69
69
  </zeroOrMore>
70
70
  </element>
71
71
  </define>
72
+ <define name="AdmonitionType">
73
+ <choice>
74
+ <value>warning</value>
75
+ <value>note</value>
76
+ <value>tip</value>
77
+ <value>important</value>
78
+ <value>caution</value>
79
+ <value>statement</value>
80
+ <value>editorial</value>
81
+ </choice>
82
+ </define>
72
83
  <define name="index">
73
84
  <element name="index">
74
85
  <optional>
@@ -116,6 +127,11 @@
116
127
  <data type="boolean"/>
117
128
  </attribute>
118
129
  </optional>
130
+ <optional>
131
+ <attribute name="suppress_identifier">
132
+ <data type="boolean"/>
133
+ </attribute>
134
+ </optional>
119
135
  <ref name="BibliographicItem"/>
120
136
  </element>
121
137
  </define>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csa
3
- VERSION = "2.1.3".freeze
3
+ VERSION = "2.1.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.1.3
4
+ version: 2.1.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: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic