metanorma-bipm 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: '08e889cbb9c799854346513b73a19d340c7af5ce9f2e495d1213f13b02ca6825'
4
- data.tar.gz: 375765761711226363504eaf5b25a917518084263660c86eff45e0fdf07e5598
3
+ metadata.gz: 8de2c864f697dd38f483b36b95daeb6f88f1c3b03ae1d2ceb6f2ae962273ee1a
4
+ data.tar.gz: 06b75e980255f8dd9a4d5b879b5e88e2a0a729b7adcc1d73bc369d7cf475d4cb
5
5
  SHA512:
6
- metadata.gz: df0cf9a1a6dc69849c808e175650b4c4c4b9be6107d93c935877659a31ae135ead9b2350cf17e874aec25d147194e968b72571a08009b494c92e1ee1195348e8
7
- data.tar.gz: d5f8e230343a5afa51128f3175c5d6b113ce2169cdc469844b6f12d53ea9408ebe1569016d99bf9ff254fda675fc3af1aa65918ad41865df97fc970a580c92fb
6
+ metadata.gz: fae1c30063c28568540400c9a5cde38106d11a0956b981a4770f911ca2d49debc80c1ff3e8fcddb122dab905c69b441387f9aad8ca763f4f3a262414be2f1b76
7
+ data.tar.gz: d6c1b101c93980f8b9503f23cffbedfba357baf237383894df6704c166d08244deeca2c119f59e1139ada398c2020d5b1647efa8c14962f0f0d4b3b2ad0608a9
@@ -49,7 +49,7 @@ module IsoDoc
49
49
  def implicit_reference(bib)
50
50
  b = bib.at(ns("./docidentifier[@primary = 'true'][@type = 'BIPM']"))
51
51
  return true if /^(CGPM|CIPM|CCDS|CCTF)\s
52
- (Resolution|Recommendation|Declaration|Decision|Recommendation)/x
52
+ (Resolution|Recommendation|Declaration|Decision|Recommendation|Meeting)/x
53
53
  .match?(b&.text)
54
54
 
55
55
  super
@@ -4178,7 +4178,10 @@
4178
4178
 
4179
4179
  </xsl:attribute-set><xsl:attribute-set name="requirement-style">
4180
4180
 
4181
+
4181
4182
  </xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
4183
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
4184
+
4182
4185
 
4183
4186
  </xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
4184
4187
 
@@ -4272,6 +4275,7 @@
4272
4275
 
4273
4276
 
4274
4277
 
4278
+
4275
4279
 
4276
4280
 
4277
4281
  </xsl:attribute-set><xsl:variable name="table-border_">
@@ -4618,7 +4622,8 @@
4618
4622
 
4619
4623
 
4620
4624
 
4621
-
4625
+
4626
+
4622
4627
 
4623
4628
 
4624
4629
 
@@ -4633,6 +4638,7 @@
4633
4638
  </xsl:attribute-set><xsl:attribute-set name="termnote-style">
4634
4639
 
4635
4640
 
4641
+
4636
4642
 
4637
4643
 
4638
4644
 
@@ -5074,7 +5080,10 @@
5074
5080
 
5075
5081
 
5076
5082
 
5077
-
5083
+ <!-- <xsl:if test="$namespace = 'ieee'">
5084
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
5085
+ <xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
5086
+ </xsl:if> -->
5078
5087
 
5079
5088
 
5080
5089
 
@@ -6298,90 +6307,98 @@
6298
6307
  </xsl:choose>
6299
6308
  </xsl:variable>
6300
6309
 
6301
- <fo:table keep-with-previous="always">
6302
- <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
6303
- <xsl:variable name="name" select="local-name()"/>
6310
+
6311
+ <xsl:variable name="tableWithNotesAndFootnotes">
6312
+
6313
+ <fo:table keep-with-previous="always">
6314
+ <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
6315
+ <xsl:variable name="name" select="local-name()"/>
6316
+ <xsl:choose>
6317
+ <xsl:when test="$name = 'border-top'">
6318
+ <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
6319
+ </xsl:when>
6320
+ <xsl:when test="$name = 'border'">
6321
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
6322
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
6323
+ </xsl:when>
6324
+ <xsl:otherwise>
6325
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
6326
+ </xsl:otherwise>
6327
+ </xsl:choose>
6328
+ </xsl:for-each>
6329
+
6330
+
6331
+
6304
6332
  <xsl:choose>
6305
- <xsl:when test="$name = 'border-top'">
6306
- <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
6307
- </xsl:when>
6308
- <xsl:when test="$name = 'border'">
6309
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
6310
- <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
6333
+ <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
6334
+ <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
6335
+ <fo:table-column column-width="{@width}"/>
6336
+ </xsl:for-each>
6311
6337
  </xsl:when>
6312
6338
  <xsl:otherwise>
6313
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
6339
+ <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
6340
+ <xsl:call-template name="insertTableColumnWidth">
6341
+ <xsl:with-param name="colwidths" select="$colwidths"/>
6342
+ </xsl:call-template>
6314
6343
  </xsl:otherwise>
6315
6344
  </xsl:choose>
6316
- </xsl:for-each>
6317
-
6318
-
6319
-
6320
- <xsl:choose>
6321
- <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
6322
- <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
6323
- <fo:table-column column-width="{@width}"/>
6324
- </xsl:for-each>
6325
- </xsl:when>
6326
- <xsl:otherwise>
6327
- <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
6328
- <xsl:call-template name="insertTableColumnWidth">
6329
- <xsl:with-param name="colwidths" select="$colwidths"/>
6330
- </xsl:call-template>
6331
- </xsl:otherwise>
6332
- </xsl:choose>
6333
-
6334
- <fo:table-body>
6335
- <fo:table-row>
6336
- <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
6337
-
6338
-
6345
+
6346
+ <fo:table-body>
6347
+ <fo:table-row>
6348
+ <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
6349
+
6350
+
6339
6351
 
6340
-
6341
-
6342
- <!-- fn will be processed inside 'note' processing -->
6343
-
6344
-
6345
-
6346
- <xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) &gt; 1">
6347
- <fo:block font-weight="bold">
6348
- <xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
6349
- <xsl:choose>
6350
- <xsl:when test="$curr_lang = 'fr'">Remarques</xsl:when>
6351
- <xsl:otherwise>Notes</xsl:otherwise>
6352
- </xsl:choose>
6353
- </fo:block>
6354
- </xsl:if>
6355
-
6356
-
6357
-
6358
-
6359
- <!-- for BSI (not PAS) display Notes before footnotes -->
6360
-
6361
-
6362
- <!-- except gb and bsi -->
6363
-
6364
- <xsl:apply-templates select="../*[local-name()='note']"/>
6365
6352
 
6366
-
6367
-
6368
- <!-- horizontal row separator -->
6369
-
6370
-
6371
- <!-- fn processing -->
6372
-
6373
- <xsl:call-template name="table_fn_display"/>
6374
6353
 
6375
-
6376
-
6377
- <!-- for PAS display Notes after footnotes -->
6378
-
6379
-
6380
- </fo:table-cell>
6381
- </fo:table-row>
6382
- </fo:table-body>
6383
-
6384
- </fo:table>
6354
+ <!-- fn will be processed inside 'note' processing -->
6355
+
6356
+
6357
+
6358
+ <xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) &gt; 1">
6359
+ <fo:block font-weight="bold">
6360
+ <xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
6361
+ <xsl:choose>
6362
+ <xsl:when test="$curr_lang = 'fr'">Remarques</xsl:when>
6363
+ <xsl:otherwise>Notes</xsl:otherwise>
6364
+ </xsl:choose>
6365
+ </fo:block>
6366
+ </xsl:if>
6367
+
6368
+
6369
+
6370
+
6371
+ <!-- for BSI (not PAS) display Notes before footnotes -->
6372
+
6373
+
6374
+ <!-- except gb and bsi -->
6375
+
6376
+ <xsl:apply-templates select="../*[local-name()='note']"/>
6377
+
6378
+
6379
+
6380
+ <!-- horizontal row separator -->
6381
+
6382
+
6383
+ <!-- fn processing -->
6384
+
6385
+ <xsl:call-template name="table_fn_display"/>
6386
+
6387
+
6388
+
6389
+ <!-- for PAS display Notes after footnotes -->
6390
+
6391
+
6392
+ </fo:table-cell>
6393
+ </fo:table-row>
6394
+ </fo:table-body>
6395
+
6396
+ </fo:table>
6397
+ </xsl:variable>
6398
+
6399
+ <xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
6400
+ <xsl:copy-of select="$tableWithNotesAndFootnotes"/>
6401
+ </xsl:if>
6385
6402
 
6386
6403
 
6387
6404
 
@@ -6726,6 +6743,7 @@
6726
6743
  <xsl:variable name="footnote_inline">
6727
6744
  <fo:inline xsl:use-attribute-sets="fn-num-style">
6728
6745
 
6746
+
6729
6747
  <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
6730
6748
  <xsl:value-of select="$current_fn_number_text"/>
6731
6749
  </fo:basic-link>
@@ -6747,8 +6765,12 @@
6747
6765
  <fo:block xsl:use-attribute-sets="fn-body-style">
6748
6766
 
6749
6767
 
6768
+
6750
6769
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
6751
6770
 
6771
+
6772
+
6773
+
6752
6774
  <xsl:value-of select="$current_fn_number_text"/>
6753
6775
  </fo:inline>
6754
6776
  <xsl:apply-templates/>
@@ -8477,6 +8499,8 @@
8477
8499
 
8478
8500
 
8479
8501
 
8502
+
8503
+
8480
8504
  <xsl:choose>
8481
8505
  <xsl:when test="$target_text = ''">
8482
8506
  <xsl:apply-templates/>
@@ -8696,6 +8720,7 @@
8696
8720
 
8697
8721
 
8698
8722
 
8723
+
8699
8724
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
8700
8725
  <!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
8701
8726
  <xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
@@ -8717,6 +8742,7 @@
8717
8742
  </xsl:when>
8718
8743
  <xsl:otherwise>
8719
8744
 
8745
+
8720
8746
  <xsl:text>:</xsl:text>
8721
8747
 
8722
8748
 
@@ -8736,6 +8762,7 @@
8736
8762
  </xsl:when>
8737
8763
  <xsl:otherwise>
8738
8764
 
8765
+
8739
8766
  <xsl:text>:</xsl:text>
8740
8767
 
8741
8768
 
@@ -9532,6 +9559,9 @@
9532
9559
  <fo:block xsl:use-attribute-sets="figure-name-style">
9533
9560
 
9534
9561
 
9562
+
9563
+
9564
+
9535
9565
  <xsl:apply-templates/>
9536
9566
  </fo:block>
9537
9567
  </xsl:if>
@@ -9592,7 +9622,7 @@
9592
9622
  <xsl:apply-templates/>
9593
9623
  </xsl:otherwise>
9594
9624
  </xsl:choose>
9595
- </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">
9625
+ </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">
9596
9626
  <xsl:value-of select="."/>
9597
9627
  </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
9598
9628
  <xsl:text> </xsl:text>
@@ -9668,6 +9698,9 @@
9668
9698
  <!-- 9 -->
9669
9699
 
9670
9700
 
9701
+ <!-- <xsl:if test="$namespace = 'ieee'">
9702
+ <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
9703
+ </xsl:if> -->
9671
9704
 
9672
9705
 
9673
9706
 
@@ -10112,10 +10145,14 @@
10112
10145
  </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
10113
10146
  <xsl:variable name="element">inline
10114
10147
 
10148
+
10115
10149
  </xsl:variable>
10116
10150
  <xsl:choose>
10117
10151
  <xsl:when test="contains($element, 'block')">
10118
10152
  <fo:block xsl:use-attribute-sets="example-p-style">
10153
+
10154
+
10155
+
10119
10156
  <xsl:apply-templates/>
10120
10157
  </fo:block>
10121
10158
  </xsl:when>
@@ -10223,6 +10260,7 @@
10223
10260
  </xsl:if>
10224
10261
  <fo:block xsl:use-attribute-sets="example-p-style">
10225
10262
 
10263
+
10226
10264
  <xsl:apply-templates/>
10227
10265
  </fo:block>
10228
10266
  </fo:block-container>
@@ -10379,6 +10417,8 @@
10379
10417
 
10380
10418
 
10381
10419
 
10420
+
10421
+
10382
10422
  <fo:basic-link fox:alt-text="{@citeas}">
10383
10423
  <xsl:if test="normalize-space(@citeas) = ''">
10384
10424
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
@@ -10805,6 +10845,8 @@
10805
10845
 
10806
10846
 
10807
10847
 
10848
+
10849
+
10808
10850
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
10809
10851
  <xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
10810
10852
  <xsl:call-template name="append_add-style"/>
@@ -11062,7 +11104,7 @@
11062
11104
  </fo:block>
11063
11105
 
11064
11106
 
11065
- </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
11107
+ </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
11066
11108
 
11067
11109
 
11068
11110
  <!-- start BIPM bibitem processing -->
@@ -11103,10 +11145,17 @@
11103
11145
  <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
11104
11146
  </xsl:if>
11105
11147
 
11106
- <xsl:variable name="docidentifier" select="*[local-name() = 'docidentifier'][not(@type = 'URN' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type = 'BIPM' or @type = 'ISBN' or @type = 'ISSN')]"/>
11107
- <xsl:value-of select="$docidentifier"/>
11148
+ <xsl:variable name="docidentifier_" select="*[local-name() = 'docidentifier'][not(@type = 'URN' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type = 'BIPM' or @type = 'ISBN' or @type = 'ISSN')]"/>
11149
+ <xsl:variable name="docidentifier_main" select="*[local-name() = 'docidentifier'][not(@type)]"/>
11150
+ <xsl:variable name="docidentifier">
11151
+ <xsl:choose>
11152
+ <xsl:when test="$docidentifier_ = $docidentifier_main and @suppress_identifier = 'true'"><!-- suppress indentifier --></xsl:when>
11153
+ <xsl:otherwise><xsl:value-of select="$docidentifier_"/></xsl:otherwise>
11154
+ </xsl:choose>
11155
+ </xsl:variable>
11156
+ <xsl:value-of select="normalize-space($docidentifier)"/>
11108
11157
 
11109
- <xsl:if test="$docidentifier != '' and *[local-name() = 'formattedref']">, </xsl:if>
11158
+ <xsl:if test="normalize-space($docidentifier) != '' and *[local-name() = 'formattedref']">, </xsl:if>
11110
11159
  <xsl:apply-templates select="*[local-name() = 'formattedref']"/>
11111
11160
  <!-- end BIPM bibitem processing-->
11112
11161
 
@@ -11835,7 +11884,7 @@
11835
11884
  <dc:description>
11836
11885
  <xsl:variable name="abstract">
11837
11886
 
11838
- <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
11887
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
11839
11888
 
11840
11889
  </xsl:variable>
11841
11890
  <xsl:value-of select="normalize-space($abstract)"/>