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 +4 -4
- data/lib/isodoc/bipm/base_convert.rb +1 -1
- data/lib/isodoc/bipm/bipm.brochure.xsl +133 -84
- data/lib/isodoc/bipm/bipm.guide.xsl +133 -84
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +133 -84
- data/lib/isodoc/bipm/bipm.rapport.xsl +133 -84
- data/lib/isodoc/bipm/html_convert.rb +4 -4
- data/lib/isodoc/bipm/jcgm.standard.xsl +113 -73
- data/lib/isodoc/bipm/presentation_xml_convert.rb +3 -1
- data/lib/metanorma/bipm/isodoc.rng +5 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +2 -2
@@ -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
|
-
|
6302
|
-
|
6303
|
-
|
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
|
6306
|
-
<xsl:
|
6307
|
-
|
6308
|
-
|
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
|
-
|
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
|
-
|
6317
|
-
|
6318
|
-
|
6319
|
-
|
6320
|
-
|
6321
|
-
|
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']) > 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
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6382
|
-
|
6383
|
-
|
6384
|
-
|
6354
|
+
<!-- fn will be processed inside 'note' processing -->
|
6355
|
+
|
6356
|
+
|
6357
|
+
|
6358
|
+
<xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) > 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="
|
11107
|
-
<xsl:
|
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)"/>
|