metanorma-bipm 2.7.6 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +91 -58
- data/lib/isodoc/bipm/bipm.guide.xsl +91 -58
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +91 -58
- data/lib/isodoc/bipm/bipm.rapport.xsl +91 -58
- data/lib/isodoc/bipm/jcgm.standard.xsl +168 -137
- data/lib/metanorma/bipm/biblio.rng +1 -1
- data/lib/metanorma/bipm/bipm.rng +29 -29
- data/lib/metanorma/bipm/isodoc.rng +35 -10
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- metadata +6 -6
|
@@ -366,69 +366,78 @@
|
|
|
366
366
|
<!-- Index -->
|
|
367
367
|
<xsl:apply-templates select="xalan:nodeset($indexes)/doc//mn:indexsect" mode="index"/>
|
|
368
368
|
|
|
369
|
+
<xsl:call-template name="back-page"/>
|
|
370
|
+
|
|
369
371
|
</fo:root>
|
|
370
372
|
</xsl:template>
|
|
371
373
|
|
|
372
374
|
<xsl:template name="cover-page">
|
|
373
|
-
<
|
|
374
|
-
<
|
|
375
|
-
<
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
<
|
|
380
|
-
<
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
<xsl:
|
|
399
|
-
<xsl:
|
|
400
|
-
<
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
375
|
+
<xsl:choose>
|
|
376
|
+
<xsl:when test="(//mn:metanorma)[1]/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space((//mn:metanorma)[1]/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
|
377
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
|
378
|
+
</xsl:when>
|
|
379
|
+
<xsl:otherwise>
|
|
380
|
+
<fo:page-sequence master-reference="cover-page" font-family="Arial" font-size="10.5pt" force-page-count="no-force">
|
|
381
|
+
<fo:static-content flow-name="cover-page-footer" font-size="10pt">
|
|
382
|
+
<fo:block font-size="10pt" border-bottom="0.5pt solid black" padding-bottom="2.5mm" margin-left="-1mm" space-after="4mm">
|
|
383
|
+
<!-- Example: First edition July 2009 -->
|
|
384
|
+
<xsl:call-template name="printEdition"/>
|
|
385
|
+
<xsl:text> </xsl:text>
|
|
386
|
+
<xsl:call-template name="convertDate">
|
|
387
|
+
<xsl:with-param name="date" select="(//mn:metanorma)[1]/mn:bibdata/mn:date[@type = 'published']/mn:on"/>
|
|
388
|
+
</xsl:call-template>
|
|
389
|
+
</fo:block>
|
|
390
|
+
<!-- Example © JCGM 2009 -->
|
|
391
|
+
<fo:block font-size="11pt">
|
|
392
|
+
<fo:inline font-family="Times New Roman" font-size="12pt"><xsl:text>© </xsl:text></fo:inline>
|
|
393
|
+
<!-- <xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:editorialgroup/mn:committee/@acronym"/> -->
|
|
394
|
+
<xsl:value-of select="$committee_acronym"/>
|
|
395
|
+
<xsl:text> </xsl:text>
|
|
396
|
+
<xsl:value-of select="$copyright_year"/>
|
|
397
|
+
</fo:block>
|
|
398
|
+
</fo:static-content>
|
|
399
|
+
<fo:flow flow-name="xsl-region-body">
|
|
400
|
+
<xsl:call-template name="insert_Logo-BIPM-Metro"/>
|
|
401
|
+
<xsl:call-template name="insertDraftWatermark"/>
|
|
402
|
+
<fo:block-container font-weight="bold">
|
|
403
|
+
<fo:block font-size="16.5pt">
|
|
404
|
+
<!-- <xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:editorialgroup/mn:committee/@acronym"/> -->
|
|
405
|
+
<xsl:value-of select="$committee_acronym"/>
|
|
406
|
+
<xsl:text> </xsl:text>
|
|
407
|
+
<xsl:value-of select="$docnumber"/>
|
|
408
|
+
<fo:inline font-weight="normal">:</fo:inline>
|
|
409
|
+
<xsl:value-of select="$copyright_year"/>
|
|
410
|
+
</fo:block>
|
|
411
|
+
<fo:block font-size="13pt" font-weight="normal" space-after="19.5mm">
|
|
412
|
+
<xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@type = 'title-provenance']"/>
|
|
413
|
+
</fo:block>
|
|
414
|
+
<fo:block border-bottom="1pt solid black"> </fo:block>
|
|
415
|
+
<fo:block font-size="16.5pt" margin-left="-0.5mm" padding-top="3.5mm" space-after="7mm" margin-right="7mm" line-height="105%" role="H1">
|
|
416
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'title-main']" mode="title"/>
|
|
417
|
+
<xsl:variable name="title_part">
|
|
418
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'title-part']" mode="title"/>
|
|
419
|
+
</xsl:variable>
|
|
420
|
+
<xsl:if test="normalize-space($title_part) != ''">
|
|
421
|
+
<xsl:text> — </xsl:text>
|
|
422
|
+
<xsl:copy-of select="$title_part"/>
|
|
423
|
+
</xsl:if>
|
|
424
|
+
</fo:block>
|
|
425
|
+
<fo:block font-size="12pt" font-style="italic" line-height="140%" role="H1">
|
|
426
|
+
<xsl:variable name="secondLang" select="(//mn:metanorma)[1]/mn:bibdata/mn:title/@language[. != $lang]"/>
|
|
427
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $secondLang and @type = 'title-main']" mode="title"/>
|
|
428
|
+
<xsl:variable name="title_part">
|
|
429
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $secondLang and @type = 'title-part']" mode="title"/>
|
|
430
|
+
</xsl:variable>
|
|
431
|
+
<xsl:if test="normalize-space($title_part) != ''">
|
|
432
|
+
<xsl:text> — </xsl:text>
|
|
433
|
+
<xsl:copy-of select="$title_part"/>
|
|
434
|
+
</xsl:if>
|
|
435
|
+
</fo:block>
|
|
436
|
+
</fo:block-container>
|
|
437
|
+
</fo:flow>
|
|
438
|
+
</fo:page-sequence>
|
|
439
|
+
</xsl:otherwise>
|
|
440
|
+
</xsl:choose>
|
|
432
441
|
</xsl:template> <!-- END: cover-page -->
|
|
433
442
|
|
|
434
443
|
<xsl:template name="inner-cover-page">
|
|
@@ -484,6 +493,9 @@
|
|
|
484
493
|
</fo:page-sequence>
|
|
485
494
|
</xsl:template> <!-- END: inner-cover-page -->
|
|
486
495
|
|
|
496
|
+
<xsl:template name="back-page">
|
|
497
|
+
</xsl:template>
|
|
498
|
+
|
|
487
499
|
<xsl:template name="processPrefaceAndMainSectionsJCGM_items">
|
|
488
500
|
|
|
489
501
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
|
@@ -844,12 +856,12 @@
|
|
|
844
856
|
<xsl:variable name="levelTerm">
|
|
845
857
|
<xsl:call-template name="getLevelTermName"/>
|
|
846
858
|
</xsl:variable>
|
|
847
|
-
<fo:block role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
848
|
-
<fo:block xsl:use-attribute-sets="term-
|
|
859
|
+
<fo:block role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
|
860
|
+
<fo:block xsl:use-attribute-sets="term-number-style">
|
|
849
861
|
<xsl:apply-templates select="preceding-sibling::mn:term_name[1]" mode="presentation"/>
|
|
850
862
|
</fo:block>
|
|
851
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
|
852
|
-
<xsl:call-template name="
|
|
863
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style">
|
|
864
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
|
853
865
|
<xsl:apply-templates/>
|
|
854
866
|
</fo:block>
|
|
855
867
|
</fo:block>
|
|
@@ -865,8 +877,8 @@
|
|
|
865
877
|
</xsl:template>
|
|
866
878
|
|
|
867
879
|
<xsl:template match="mn:domain[not(parent::mn:term)]" priority="2">
|
|
868
|
-
<fo:block xsl:use-attribute-sets="domain-style">
|
|
869
|
-
<xsl:call-template name="
|
|
880
|
+
<fo:block xsl:use-attribute-sets="term-domain-style">
|
|
881
|
+
<xsl:call-template name="refine_term-domain-style"/>
|
|
870
882
|
<fo:inline>
|
|
871
883
|
<xsl:text><</xsl:text>
|
|
872
884
|
<xsl:apply-templates/>
|
|
@@ -1034,6 +1046,14 @@
|
|
|
1034
1046
|
|
|
1035
1047
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
1036
1048
|
|
|
1049
|
+
<xsl:call-template name="insertHeader">
|
|
1050
|
+
<xsl:with-param name="isDraft" select="$isDraft"/>
|
|
1051
|
+
</xsl:call-template>
|
|
1052
|
+
<xsl:call-template name="insertFooter"/>
|
|
1053
|
+
</xsl:template>
|
|
1054
|
+
|
|
1055
|
+
<xsl:template name="insertHeader">
|
|
1056
|
+
<xsl:param name="isDraft"/>
|
|
1037
1057
|
<fo:static-content flow-name="header-even-jcgm" role="artifact">
|
|
1038
1058
|
<xsl:call-template name="insertDraftWatermark">
|
|
1039
1059
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
|
@@ -1044,24 +1064,33 @@
|
|
|
1044
1064
|
</fo:block>
|
|
1045
1065
|
</fo:block-container>
|
|
1046
1066
|
</fo:static-content>
|
|
1047
|
-
<fo:static-content flow-name="
|
|
1067
|
+
<fo:static-content flow-name="header-odd-jcgm" role="artifact">
|
|
1068
|
+
<xsl:call-template name="insertDraftWatermark">
|
|
1069
|
+
<xsl:with-param name="isDraft" select="$isDraft"/>
|
|
1070
|
+
</xsl:call-template>
|
|
1048
1071
|
<fo:block-container height="98%">
|
|
1049
|
-
<fo:block text-align-
|
|
1050
|
-
<
|
|
1051
|
-
<fo:inline keep-together.within-line="always">
|
|
1052
|
-
<fo:leader leader-pattern="space"/>
|
|
1053
|
-
<fo:inline font-size="10pt"><xsl:value-of select="$copyrightText"/></fo:inline>
|
|
1054
|
-
</fo:inline>
|
|
1072
|
+
<fo:block font-size="13pt" font-weight="bold" text-align="right" padding-top="12mm">
|
|
1073
|
+
<xsl:value-of select="$header_text"/>
|
|
1055
1074
|
</fo:block>
|
|
1056
1075
|
</fo:block-container>
|
|
1057
1076
|
</fo:static-content>
|
|
1058
|
-
<fo:static-content flow-name="header-
|
|
1077
|
+
<fo:static-content flow-name="header-blank" role="artifact">
|
|
1059
1078
|
<xsl:call-template name="insertDraftWatermark">
|
|
1060
1079
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
|
1061
1080
|
</xsl:call-template>
|
|
1081
|
+
<fo:block/>
|
|
1082
|
+
</fo:static-content>
|
|
1083
|
+
</xsl:template>
|
|
1084
|
+
|
|
1085
|
+
<xsl:template name="insertFooter">
|
|
1086
|
+
<fo:static-content flow-name="footer-even-jcgm" role="artifact">
|
|
1062
1087
|
<fo:block-container height="98%">
|
|
1063
|
-
<fo:block
|
|
1064
|
-
<
|
|
1088
|
+
<fo:block text-align-last="justify">
|
|
1089
|
+
<fo:inline font-size="12pt" font-weight="bold"><fo:page-number/></fo:inline>
|
|
1090
|
+
<fo:inline keep-together.within-line="always">
|
|
1091
|
+
<fo:leader leader-pattern="space"/>
|
|
1092
|
+
<fo:inline font-size="10pt"><xsl:value-of select="$copyrightText"/></fo:inline>
|
|
1093
|
+
</fo:inline>
|
|
1065
1094
|
</fo:block>
|
|
1066
1095
|
</fo:block-container>
|
|
1067
1096
|
</fo:static-content>
|
|
@@ -1076,12 +1105,6 @@
|
|
|
1076
1105
|
</fo:block>
|
|
1077
1106
|
</fo:block-container>
|
|
1078
1107
|
</fo:static-content>
|
|
1079
|
-
<fo:static-content flow-name="header-blank" role="artifact">
|
|
1080
|
-
<xsl:call-template name="insertDraftWatermark">
|
|
1081
|
-
<xsl:with-param name="isDraft" select="$isDraft"/>
|
|
1082
|
-
</xsl:call-template>
|
|
1083
|
-
<fo:block/>
|
|
1084
|
-
</fo:static-content>
|
|
1085
1108
|
</xsl:template>
|
|
1086
1109
|
|
|
1087
1110
|
<xsl:template name="insertDraftWatermark">
|
|
@@ -5229,87 +5252,81 @@
|
|
|
5229
5252
|
<xsl:template name="refine_term-style">
|
|
5230
5253
|
</xsl:template>
|
|
5231
5254
|
|
|
5232
|
-
<xsl:attribute-set name="term-
|
|
5255
|
+
<xsl:attribute-set name="term-number-style">
|
|
5233
5256
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
5234
5257
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
5235
5258
|
</xsl:attribute-set> <!-- term-name-style -->
|
|
5236
5259
|
|
|
5237
|
-
<xsl:template name="refine_term-
|
|
5238
|
-
</xsl:template>
|
|
5239
|
-
|
|
5240
|
-
<xsl:attribute-set name="preferred-style">
|
|
5241
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
|
5242
|
-
|
|
5243
|
-
<xsl:template name="refine_preferred-style">
|
|
5260
|
+
<xsl:template name="refine_term-number-style">
|
|
5244
5261
|
</xsl:template>
|
|
5245
5262
|
|
|
5246
|
-
<xsl:attribute-set name="preferred-block-style">
|
|
5263
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
|
5247
5264
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
|
5248
5265
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
|
5249
5266
|
|
|
5250
|
-
<xsl:template name="
|
|
5267
|
+
<xsl:template name="refine_term-preferred-block-style">
|
|
5251
5268
|
</xsl:template>
|
|
5252
5269
|
|
|
5253
|
-
<xsl:attribute-set name="preferred-
|
|
5270
|
+
<xsl:attribute-set name="term-preferred-style">
|
|
5254
5271
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
5255
5272
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
5256
5273
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
|
5257
5274
|
|
|
5258
|
-
<xsl:template name="
|
|
5275
|
+
<xsl:template name="refine_term-preferred-style">
|
|
5259
5276
|
<xsl:if test="mn:strong">
|
|
5260
5277
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
5261
5278
|
</xsl:if>
|
|
5262
5279
|
</xsl:template>
|
|
5263
5280
|
|
|
5264
|
-
<xsl:attribute-set name="domain-style">
|
|
5265
|
-
</xsl:attribute-set> <!-- domain-style -->
|
|
5281
|
+
<xsl:attribute-set name="term-domain-style">
|
|
5282
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
|
5266
5283
|
|
|
5267
|
-
<xsl:template name="
|
|
5284
|
+
<xsl:template name="refine_term-domain-style">
|
|
5268
5285
|
</xsl:template>
|
|
5269
5286
|
|
|
5270
|
-
<xsl:attribute-set name="admitted-style">
|
|
5287
|
+
<xsl:attribute-set name="term-admitted-style">
|
|
5271
5288
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
5272
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
|
5289
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
|
5273
5290
|
|
|
5274
|
-
<xsl:template name="
|
|
5291
|
+
<xsl:template name="refine_term-admitted-style">
|
|
5275
5292
|
</xsl:template>
|
|
5276
5293
|
|
|
5277
|
-
<xsl:attribute-set name="deprecates-style">
|
|
5278
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
|
5294
|
+
<xsl:attribute-set name="term-deprecates-style">
|
|
5295
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
|
5279
5296
|
|
|
5280
|
-
<xsl:template name="
|
|
5297
|
+
<xsl:template name="refine_term-deprecates-style">
|
|
5281
5298
|
</xsl:template>
|
|
5282
5299
|
|
|
5283
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
|
5300
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
|
5284
5301
|
</xsl:attribute-set>
|
|
5285
5302
|
|
|
5286
|
-
<xsl:template name="
|
|
5303
|
+
<xsl:template name="refine_term-related-block-style">
|
|
5287
5304
|
</xsl:template>
|
|
5288
5305
|
|
|
5289
|
-
<xsl:attribute-set name="definition-style">
|
|
5306
|
+
<xsl:attribute-set name="term-definition-style">
|
|
5290
5307
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
5291
|
-
</xsl:attribute-set> <!-- definition-style -->
|
|
5308
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
|
5292
5309
|
|
|
5293
|
-
<xsl:template name="
|
|
5310
|
+
<xsl:template name="refine_term-definition-style">
|
|
5294
5311
|
</xsl:template>
|
|
5295
5312
|
|
|
5296
|
-
<xsl:attribute-set name="termsource-style">
|
|
5313
|
+
<xsl:attribute-set name="term-termsource-style">
|
|
5297
5314
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
5298
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
|
5315
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
|
5299
5316
|
|
|
5300
|
-
<xsl:template name="
|
|
5301
|
-
</xsl:template> <!--
|
|
5317
|
+
<xsl:template name="refine_term-termsource-style">
|
|
5318
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
|
5302
5319
|
|
|
5303
|
-
<xsl:attribute-set name="termsource-text-style">
|
|
5304
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
|
5320
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
|
5321
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
|
5305
5322
|
|
|
5306
|
-
<xsl:template name="
|
|
5323
|
+
<xsl:template name="refine_term-termsource-text-style">
|
|
5307
5324
|
</xsl:template>
|
|
5308
5325
|
|
|
5309
|
-
<xsl:attribute-set name="origin-style">
|
|
5310
|
-
</xsl:attribute-set> <!-- origin-style -->
|
|
5326
|
+
<xsl:attribute-set name="term-origin-style">
|
|
5327
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
|
5311
5328
|
|
|
5312
|
-
<xsl:template name="
|
|
5329
|
+
<xsl:template name="refine_term-origin-style">
|
|
5313
5330
|
</xsl:template>
|
|
5314
5331
|
|
|
5315
5332
|
<!-- ====== -->
|
|
@@ -5353,9 +5370,9 @@
|
|
|
5353
5370
|
<!-- modification -->
|
|
5354
5371
|
<!-- ====== -->
|
|
5355
5372
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
|
5356
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
|
5373
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
|
5357
5374
|
|
|
5358
|
-
<xsl:call-template name="
|
|
5375
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
|
5359
5376
|
|
|
5360
5377
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
|
5361
5378
|
<xsl:variable name="termsource_text">
|
|
@@ -5403,8 +5420,8 @@
|
|
|
5403
5420
|
|
|
5404
5421
|
<!-- text SOURCE: -->
|
|
5405
5422
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
|
5406
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
|
5407
|
-
<xsl:call-template name="
|
|
5423
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
|
5424
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
|
5408
5425
|
<xsl:value-of select="."/>
|
|
5409
5426
|
</fo:inline>
|
|
5410
5427
|
</xsl:template>
|
|
@@ -5416,8 +5433,8 @@
|
|
|
5416
5433
|
<xsl:if test="normalize-space(@citeas) = ''">
|
|
5417
5434
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
|
5418
5435
|
</xsl:if>
|
|
5419
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
|
5420
|
-
<xsl:call-template name="
|
|
5436
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
|
5437
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
|
5421
5438
|
<xsl:apply-templates/>
|
|
5422
5439
|
</fo:inline>
|
|
5423
5440
|
</fo:basic-link>
|
|
@@ -5465,14 +5482,14 @@
|
|
|
5465
5482
|
<xsl:variable name="levelTerm">
|
|
5466
5483
|
<xsl:call-template name="getLevelTermName"/>
|
|
5467
5484
|
</xsl:variable>
|
|
5468
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
5485
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
|
5469
5486
|
|
|
5470
|
-
<xsl:call-template name="
|
|
5487
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
|
5471
5488
|
|
|
5472
5489
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
|
5473
5490
|
|
|
5474
|
-
<fo:block xsl:use-attribute-sets="term-
|
|
5475
|
-
<xsl:call-template name="refine_term-
|
|
5491
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
|
5492
|
+
<xsl:call-template name="refine_term-number-style"/>
|
|
5476
5493
|
|
|
5477
5494
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
|
5478
5495
|
<xsl:call-template name="setIDforNamedDestination"/>
|
|
@@ -5482,8 +5499,8 @@
|
|
|
5482
5499
|
</fo:block>
|
|
5483
5500
|
</xsl:if>
|
|
5484
5501
|
|
|
5485
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
|
5486
|
-
<xsl:call-template name="
|
|
5502
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
|
5503
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
|
5487
5504
|
|
|
5488
5505
|
<xsl:apply-templates/>
|
|
5489
5506
|
</fo:block>
|
|
@@ -5503,15 +5520,15 @@
|
|
|
5503
5520
|
<xsl:template match="mn:domain"/>
|
|
5504
5521
|
|
|
5505
5522
|
<xsl:template match="mn:fmt-admitted">
|
|
5506
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
|
5507
|
-
<xsl:call-template name="
|
|
5523
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
|
5524
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
|
5508
5525
|
<xsl:apply-templates/>
|
|
5509
5526
|
</fo:block>
|
|
5510
5527
|
</xsl:template>
|
|
5511
5528
|
|
|
5512
5529
|
<xsl:template match="mn:fmt-deprecates">
|
|
5513
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
|
5514
|
-
<xsl:call-template name="
|
|
5530
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
|
5531
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
|
5515
5532
|
<xsl:apply-templates/>
|
|
5516
5533
|
</fo:block>
|
|
5517
5534
|
</xsl:template>
|
|
@@ -5524,8 +5541,8 @@
|
|
|
5524
5541
|
<!-- End Preferred, admitted, deprecated -->
|
|
5525
5542
|
|
|
5526
5543
|
<xsl:template match="mn:fmt-related">
|
|
5527
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
|
5528
|
-
<xsl:call-template name="
|
|
5544
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
|
5545
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
|
5529
5546
|
<xsl:apply-templates/>
|
|
5530
5547
|
</fo:block>
|
|
5531
5548
|
</xsl:template>
|
|
@@ -5539,8 +5556,8 @@
|
|
|
5539
5556
|
<!-- definition -->
|
|
5540
5557
|
<!-- ========== -->
|
|
5541
5558
|
<xsl:template match="mn:fmt-definition">
|
|
5542
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
|
5543
|
-
<xsl:call-template name="
|
|
5559
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
|
5560
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
|
5544
5561
|
<xsl:apply-templates/>
|
|
5545
5562
|
</fo:block>
|
|
5546
5563
|
</xsl:template>
|
|
@@ -15467,6 +15484,20 @@
|
|
|
15467
15484
|
</fo:block-container>
|
|
15468
15485
|
</xsl:template>
|
|
15469
15486
|
|
|
15487
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
|
15488
|
+
<xsl:template name="insertCoverPageFullImage">
|
|
15489
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
|
15490
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
|
15491
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
|
15492
|
+
<fo:flow flow-name="xsl-region-body">
|
|
15493
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
|
15494
|
+
<xsl:with-param name="number" select="position()"/>
|
|
15495
|
+
</xsl:call-template>
|
|
15496
|
+
</fo:flow>
|
|
15497
|
+
</fo:page-sequence>
|
|
15498
|
+
</xsl:for-each>
|
|
15499
|
+
</xsl:template>
|
|
15500
|
+
|
|
15470
15501
|
<xsl:template name="insertPageImage">
|
|
15471
15502
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
|
15472
15503
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
|
@@ -869,7 +869,7 @@ depending on whether the items exist as independent documents, or are parts of a
|
|
|
869
869
|
</zeroOrMore>
|
|
870
870
|
</element>
|
|
871
871
|
</define>
|
|
872
|
-
<define name="BibItemType"
|
|
872
|
+
<define name="BibItemType">
|
|
873
873
|
<a:documentation>Type of bibliographic item.
|
|
874
874
|
The value list complies with the types provided in ISO 690:2021.
|
|
875
875
|
NOTE: These values represent a strict superset to BibTeX
|
data/lib/metanorma/bipm/bipm.rng
CHANGED
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
<grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
3
|
<include href="relaton-bipm.rng"/>
|
|
4
4
|
<include href="isodoc.rng">
|
|
5
|
-
<define name="XrefAttributes" combine="interleave">
|
|
6
|
-
<optional>
|
|
7
|
-
<attribute name="pagenumber">
|
|
8
|
-
<data type="boolean"/>
|
|
9
|
-
</attribute>
|
|
10
|
-
</optional>
|
|
11
|
-
<optional>
|
|
12
|
-
<attribute name="nosee">
|
|
13
|
-
<data type="boolean"/>
|
|
14
|
-
</attribute>
|
|
15
|
-
</optional>
|
|
16
|
-
<optional>
|
|
17
|
-
<attribute name="nopage">
|
|
18
|
-
<data type="boolean"/>
|
|
19
|
-
</attribute>
|
|
20
|
-
</optional>
|
|
21
|
-
</define>
|
|
22
5
|
<define name="Clause-Section">
|
|
23
6
|
<ref name="Section-Attributes"/>
|
|
24
7
|
<optional>
|
|
@@ -44,17 +27,34 @@
|
|
|
44
27
|
</zeroOrMore>
|
|
45
28
|
</group>
|
|
46
29
|
</define>
|
|
47
|
-
<define name="Annex-Section-Attributes" combine="interleave">
|
|
48
|
-
<optional>
|
|
49
|
-
<attribute name="unnumbered">
|
|
50
|
-
<data type="boolean"/>
|
|
51
|
-
</attribute>
|
|
52
|
-
</optional>
|
|
53
|
-
</define>
|
|
54
|
-
<define name="OlAttributes" combine="interleave">
|
|
55
|
-
<optional>
|
|
56
|
-
<attribute name="start"/>
|
|
57
|
-
</optional>
|
|
58
|
-
</define>
|
|
59
30
|
</include>
|
|
31
|
+
<define name="XrefAttributes" combine="interleave">
|
|
32
|
+
<optional>
|
|
33
|
+
<attribute name="pagenumber">
|
|
34
|
+
<data type="boolean"/>
|
|
35
|
+
</attribute>
|
|
36
|
+
</optional>
|
|
37
|
+
<optional>
|
|
38
|
+
<attribute name="nosee">
|
|
39
|
+
<data type="boolean"/>
|
|
40
|
+
</attribute>
|
|
41
|
+
</optional>
|
|
42
|
+
<optional>
|
|
43
|
+
<attribute name="nopage">
|
|
44
|
+
<data type="boolean"/>
|
|
45
|
+
</attribute>
|
|
46
|
+
</optional>
|
|
47
|
+
</define>
|
|
48
|
+
<define name="Annex-Section-Attributes" combine="interleave">
|
|
49
|
+
<optional>
|
|
50
|
+
<attribute name="unnumbered">
|
|
51
|
+
<data type="boolean"/>
|
|
52
|
+
</attribute>
|
|
53
|
+
</optional>
|
|
54
|
+
</define>
|
|
55
|
+
<define name="OlAttributes" combine="interleave">
|
|
56
|
+
<optional>
|
|
57
|
+
<attribute name="start"/>
|
|
58
|
+
</optional>
|
|
59
|
+
</define>
|
|
60
60
|
</grammar>
|