metanorma-bipm 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/isodoc/bipm/bipm.brochure.xsl +162 -15
- data/lib/isodoc/bipm/bipm.guide.xsl +162 -15
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +162 -15
- data/lib/isodoc/bipm/bipm.rapport.xsl +162 -15
- data/lib/isodoc/bipm/jcgm.standard.xsl +69 -13
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1b38fcb74e9bae79ffb3ebb3d6cb878d65f233f5cd50b6ca766028f273ed04
|
4
|
+
data.tar.gz: a34688db4dc19969f3749c84eb1c1055210e0791e836618de89ba82c9a80a2bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41a0b7673959052e0dd0f1b8e6873018b0e1ee4846939ea74bf489c586b8cd387cf683b870bbd230d5b5d267babd0b3a603f2d2168a5c93c62aa0fc90a21ce0
|
7
|
+
data.tar.gz: 7a276e2c67a62742d61df4c3e85158123ff63d1bbbeaeea55945076a1f384a96794aeb8d60eeee3e37a242ab1436bdb5ee9b8386ee2d8036b7c4cefa320cfd45
|
data/.rubocop.yml
CHANGED
@@ -1112,8 +1112,11 @@
|
|
1112
1112
|
|
1113
1113
|
<xsl:variable name="title-toc">
|
1114
1114
|
<fo:inline>
|
1115
|
-
<xsl:call-template name="getTitle">
|
1115
|
+
<!-- <xsl:call-template name="getTitle">
|
1116
1116
|
<xsl:with-param name="name" select="'title-toc'"/>
|
1117
|
+
</xsl:call-template> -->
|
1118
|
+
<xsl:call-template name="getLocalizedString">
|
1119
|
+
<xsl:with-param name="key">table_of_contents</xsl:with-param>
|
1117
1120
|
</xsl:call-template>
|
1118
1121
|
</fo:inline>
|
1119
1122
|
</xsl:variable>
|
@@ -2406,8 +2409,17 @@
|
|
2406
2409
|
|
2407
2410
|
</xsl:template>
|
2408
2411
|
|
2412
|
+
<!-- <xsl:variable name="zero-width-space" select="'​'"/> -->
|
2409
2413
|
<xsl:template match="*" mode="header">
|
2410
2414
|
<xsl:apply-templates mode="header"/>
|
2415
|
+
<!-- <xsl:choose>
|
2416
|
+
<xsl:when test="contains(preceding-sibling::node()[1], $zero-width-space)"> -->
|
2417
|
+
<!-- stop further processing -->
|
2418
|
+
<!-- </xsl:when>
|
2419
|
+
<xsl:otherwise>
|
2420
|
+
<xsl:apply-templates mode="header"/>
|
2421
|
+
</xsl:otherwise>
|
2422
|
+
</xsl:choose> -->
|
2411
2423
|
</xsl:template>
|
2412
2424
|
|
2413
2425
|
<xsl:template match="*[local-name() = 'stem']" mode="header">
|
@@ -2418,6 +2430,11 @@
|
|
2418
2430
|
<xsl:text> </xsl:text>
|
2419
2431
|
</xsl:template>
|
2420
2432
|
|
2433
|
+
<!-- zero-width space - separator for full/short titles. Short titles using in headers -->
|
2434
|
+
<!-- <xsl:template match="text()[contains(., $zero-width-space)]" mode="header">
|
2435
|
+
<xsl:value-of select="substring-before(., $zero-width-space)"/>
|
2436
|
+
</xsl:template> -->
|
2437
|
+
|
2421
2438
|
<!-- ====== -->
|
2422
2439
|
<!-- ====== -->
|
2423
2440
|
|
@@ -2900,11 +2917,13 @@
|
|
2900
2917
|
<xsl:choose>
|
2901
2918
|
<xsl:when test="$num = 1">
|
2902
2919
|
<fo:inline xsl:use-attribute-sets="note-p-style">
|
2920
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
2903
2921
|
<xsl:apply-templates/>
|
2904
2922
|
</fo:inline>
|
2905
2923
|
</xsl:when>
|
2906
2924
|
<xsl:otherwise>
|
2907
2925
|
<fo:block xsl:use-attribute-sets="note-p-style">
|
2926
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
2908
2927
|
<xsl:apply-templates/>
|
2909
2928
|
</fo:block>
|
2910
2929
|
</xsl:otherwise>
|
@@ -2968,6 +2987,7 @@
|
|
2968
2987
|
<xsl:attribute name="text-align">
|
2969
2988
|
<xsl:choose>
|
2970
2989
|
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
2990
|
+
<xsl:when test="ancestor::*[local-name() = 'note_side']">left</xsl:when>
|
2971
2991
|
<xsl:when test="../@align"><xsl:value-of select="../@align"/></xsl:when>
|
2972
2992
|
<xsl:otherwise>justify</xsl:otherwise>
|
2973
2993
|
</xsl:choose>
|
@@ -3477,6 +3497,12 @@
|
|
3477
3497
|
<xsl:attribute name="separators"/>
|
3478
3498
|
</xsl:if>
|
3479
3499
|
<mathml:mspace width="-0.15em"/> <!-- decrease space between opening brackets and inside text-->
|
3500
|
+
|
3501
|
+
<!-- if there is previous or next mfenced with superscript, then increase height of Parentheses -->
|
3502
|
+
<xsl:if test="following-sibling::mathml:mfenced[.//mathml:msup] or preceding-sibling::mathml:mfenced[.//mathml:msup] or ancestor::*[following-sibling::mathml:mfenced[.//mathml:msup] or preceding-sibling::mathml:mfenced[.//mathml:msup]]">
|
3503
|
+
<mathml:mspace height="1.15em"/> <!-- increase height of parentheses -->
|
3504
|
+
</xsl:if>
|
3505
|
+
|
3480
3506
|
<xsl:apply-templates mode="mathml"/>
|
3481
3507
|
<mathml:mspace width="-0.1em"/> <!-- decrease space between inside text and closing brackets -->
|
3482
3508
|
</xsl:copy>
|
@@ -3501,12 +3527,41 @@
|
|
3501
3527
|
</xsl:template> -->
|
3502
3528
|
|
3503
3529
|
<!-- Decrease height of / and | -->
|
3530
|
+
<!-- Decrease space before and after / -->
|
3504
3531
|
<xsl:template match="mathml:mo[normalize-space(text()) = '/' or normalize-space(text()) = '|']" mode="mathml">
|
3505
3532
|
<xsl:copy>
|
3506
3533
|
<xsl:apply-templates select="@*" mode="mathml"/>
|
3507
|
-
|
3508
|
-
|
3534
|
+
<xsl:if test="not(@stretchy) and not(preceding-sibling::*[1][local-name() = 'mfrac'] and following-sibling::*[1][local-name() = 'mfrac'])">
|
3535
|
+
<xsl:attribute name="stretchy">false</xsl:attribute>
|
3536
|
+
</xsl:if>
|
3537
|
+
<xsl:if test="normalize-space(text()) = '/'">
|
3538
|
+
<xsl:if test="not(@lspace)">
|
3539
|
+
<xsl:attribute name="lspace">0em</xsl:attribute>
|
3540
|
+
<xsl:if test="preceding-sibling::*[1][local-name() = 'msub']">
|
3541
|
+
<xsl:attribute name="lspace">0.1em</xsl:attribute>
|
3542
|
+
</xsl:if>
|
3543
|
+
</xsl:if>
|
3544
|
+
<xsl:if test="not(@rspace)">
|
3545
|
+
<xsl:attribute name="rspace">0em</xsl:attribute>
|
3546
|
+
<xsl:if test="following-sibling::*[1][local-name() = 'mfenced']">
|
3547
|
+
<xsl:attribute name="rspace">-0.1em</xsl:attribute>
|
3548
|
+
</xsl:if>
|
3509
3549
|
</xsl:if>
|
3550
|
+
</xsl:if>
|
3551
|
+
<xsl:apply-templates mode="mathml"/>
|
3552
|
+
</xsl:copy>
|
3553
|
+
</xsl:template>
|
3554
|
+
|
3555
|
+
<!-- Increase space before and after multiplication sign -->
|
3556
|
+
<xsl:template match="mathml:mo[normalize-space(text()) = '×']" mode="mathml"> <!-- multiplication sign -->
|
3557
|
+
<xsl:copy>
|
3558
|
+
<xsl:apply-templates select="@*" mode="mathml"/>
|
3559
|
+
<xsl:if test="not(@lspace)">
|
3560
|
+
<xsl:attribute name="lspace">0.5em</xsl:attribute>
|
3561
|
+
</xsl:if>
|
3562
|
+
<xsl:if test="not(@rspace)">
|
3563
|
+
<xsl:attribute name="rspace">0.5em</xsl:attribute>
|
3564
|
+
</xsl:if>
|
3510
3565
|
<xsl:apply-templates mode="mathml"/>
|
3511
3566
|
</xsl:copy>
|
3512
3567
|
</xsl:template>
|
@@ -3525,6 +3580,29 @@
|
|
3525
3580
|
</xsl:copy>
|
3526
3581
|
</xsl:template>
|
3527
3582
|
|
3583
|
+
<!-- decrease space before and after sign 'minus' -->
|
3584
|
+
<xsl:template match="mathml:mo[normalize-space(text()) = '−']" mode="mathml"> <!-- minus sign -->
|
3585
|
+
<xsl:copy>
|
3586
|
+
<xsl:apply-templates select="@*" mode="mathml"/>
|
3587
|
+
<xsl:choose>
|
3588
|
+
<xsl:when test="not(preceding-sibling::*)"><!-- example: -0.234 -->
|
3589
|
+
<xsl:if test="not(@rspace)">
|
3590
|
+
<xsl:attribute name="rspace">0em</xsl:attribute>
|
3591
|
+
</xsl:if>
|
3592
|
+
</xsl:when>
|
3593
|
+
<xsl:otherwise>
|
3594
|
+
<xsl:if test="not(@lspace)">
|
3595
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
3596
|
+
</xsl:if>
|
3597
|
+
<xsl:if test="not(@rspace)">
|
3598
|
+
<xsl:attribute name="rspace">0.2em</xsl:attribute>
|
3599
|
+
</xsl:if>
|
3600
|
+
</xsl:otherwise>
|
3601
|
+
</xsl:choose>
|
3602
|
+
<xsl:apply-templates mode="mathml"/>
|
3603
|
+
</xsl:copy>
|
3604
|
+
</xsl:template>
|
3605
|
+
|
3528
3606
|
<xsl:template match="mathml:mi[string-length(normalize-space()) > 1]" mode="mathml" priority="2">
|
3529
3607
|
<xsl:if test="preceding-sibling::* and preceding-sibling::*[1][not(local-name() = 'mfenced' or local-name() = 'mo')]">
|
3530
3608
|
<mathml:mspace width="0.3em"/>
|
@@ -3535,6 +3613,10 @@
|
|
3535
3613
|
</xsl:if>
|
3536
3614
|
</xsl:template>
|
3537
3615
|
|
3616
|
+
<xsl:template match="mathml:mn/text()" mode="mathml">
|
3617
|
+
<xsl:value-of select="translate(., ' ', ' ')"/>
|
3618
|
+
</xsl:template>
|
3619
|
+
|
3538
3620
|
<xsl:template name="insertHeaderFooter">
|
3539
3621
|
<xsl:param name="header-title"/>
|
3540
3622
|
<xsl:param name="orientation"/>
|
@@ -4396,7 +4478,7 @@
|
|
4396
4478
|
|
4397
4479
|
|
4398
4480
|
|
4399
|
-
|
4481
|
+
|
4400
4482
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
4401
4483
|
|
4402
4484
|
|
@@ -4456,6 +4538,7 @@
|
|
4456
4538
|
|
4457
4539
|
|
4458
4540
|
|
4541
|
+
|
4459
4542
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
4460
4543
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4461
4544
|
|
@@ -4479,6 +4562,8 @@
|
|
4479
4562
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4480
4563
|
|
4481
4564
|
|
4565
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
4566
|
+
|
4482
4567
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
4483
4568
|
|
4484
4569
|
|
@@ -4517,6 +4602,7 @@
|
|
4517
4602
|
|
4518
4603
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4519
4604
|
|
4605
|
+
|
4520
4606
|
</xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
|
4521
4607
|
|
4522
4608
|
|
@@ -4554,12 +4640,14 @@
|
|
4554
4640
|
|
4555
4641
|
|
4556
4642
|
|
4643
|
+
|
4557
4644
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
4558
4645
|
|
4559
4646
|
|
4560
4647
|
|
4561
4648
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4562
4649
|
|
4650
|
+
|
4563
4651
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
4564
4652
|
|
4565
4653
|
|
@@ -4609,6 +4697,7 @@
|
|
4609
4697
|
|
4610
4698
|
|
4611
4699
|
|
4700
|
+
|
4612
4701
|
|
4613
4702
|
|
4614
4703
|
|
@@ -4678,6 +4767,8 @@
|
|
4678
4767
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
4679
4768
|
|
4680
4769
|
|
4770
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
4771
|
+
|
4681
4772
|
</xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
|
4682
4773
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
4683
4774
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -4731,11 +4822,11 @@
|
|
4731
4822
|
<xsl:variable name="table">
|
4732
4823
|
|
4733
4824
|
<xsl:variable name="simple-table">
|
4734
|
-
<xsl:call-template name="getSimpleTable"/>
|
4825
|
+
<xsl:call-template name="getSimpleTable"/>
|
4735
4826
|
</xsl:variable>
|
4736
4827
|
|
4737
4828
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
4738
|
-
<fo:block> </fo:block>
|
4829
|
+
<fo:block> </fo:block>
|
4739
4830
|
</xsl:if> -->
|
4740
4831
|
|
4741
4832
|
<!-- $namespace = 'iso' or -->
|
@@ -4860,6 +4951,8 @@
|
|
4860
4951
|
</xsl:if>
|
4861
4952
|
<attribute name="margin-left">0mm</attribute>
|
4862
4953
|
<attribute name="margin-right">0mm</attribute>
|
4954
|
+
<!-- <attribute name="keep-together.within-column">1</attribute> --> <!-- integer value instead 'always'! -->
|
4955
|
+
|
4863
4956
|
|
4864
4957
|
</xsl:variable>
|
4865
4958
|
|
@@ -5006,6 +5099,9 @@
|
|
5006
5099
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
5007
5100
|
</xsl:if>
|
5008
5101
|
|
5102
|
+
|
5103
|
+
|
5104
|
+
|
5009
5105
|
<xsl:choose>
|
5010
5106
|
<xsl:when test="$continued = 'true'">
|
5011
5107
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
@@ -5153,6 +5249,7 @@
|
|
5153
5249
|
<!-- font-weight="bold" -->
|
5154
5250
|
<fo:table-header>
|
5155
5251
|
|
5252
|
+
|
5156
5253
|
<xsl:apply-templates/>
|
5157
5254
|
</fo:table-header>
|
5158
5255
|
</xsl:template><xsl:template name="table-header-title">
|
@@ -5313,7 +5410,6 @@
|
|
5313
5410
|
|
5314
5411
|
|
5315
5412
|
|
5316
|
-
|
5317
5413
|
<xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) > 1">
|
5318
5414
|
<fo:block font-weight="bold">
|
5319
5415
|
<xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
|
@@ -5325,6 +5421,7 @@
|
|
5325
5421
|
</xsl:if>
|
5326
5422
|
|
5327
5423
|
|
5424
|
+
|
5328
5425
|
<!-- except gb -->
|
5329
5426
|
|
5330
5427
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -5419,6 +5516,10 @@
|
|
5419
5516
|
<xsl:attribute name="min-height">5mm</xsl:attribute>
|
5420
5517
|
</xsl:if>
|
5421
5518
|
|
5519
|
+
|
5520
|
+
|
5521
|
+
|
5522
|
+
|
5422
5523
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
5423
5524
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
5424
5525
|
</xsl:if> -->
|
@@ -5538,6 +5639,9 @@
|
|
5538
5639
|
<xsl:attribute name="display-align">before</xsl:attribute>
|
5539
5640
|
</xsl:if>
|
5540
5641
|
|
5642
|
+
|
5643
|
+
|
5644
|
+
|
5541
5645
|
<xsl:if test=".//*[local-name() = 'table']">
|
5542
5646
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5543
5647
|
</xsl:if>
|
@@ -5557,6 +5661,11 @@
|
|
5557
5661
|
<xsl:if test="not(.//bipm:image)">
|
5558
5662
|
<xsl:attribute name="line-stacking-strategy">font-height</xsl:attribute>
|
5559
5663
|
</xsl:if>
|
5664
|
+
<!-- hanging indent for left column -->
|
5665
|
+
<xsl:if test="not(preceding-sibling::*[local-name() = 'td'])">
|
5666
|
+
<xsl:attribute name="text-indent">-3mm</xsl:attribute>
|
5667
|
+
<xsl:attribute name="start-indent">3mm</xsl:attribute>
|
5668
|
+
</xsl:if>
|
5560
5669
|
|
5561
5670
|
<xsl:apply-templates/>
|
5562
5671
|
</fo:block>
|
@@ -5788,6 +5897,7 @@
|
|
5788
5897
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5789
5898
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
5790
5899
|
|
5900
|
+
|
5791
5901
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
5792
5902
|
|
5793
5903
|
|
@@ -6098,6 +6208,7 @@
|
|
6098
6208
|
|
6099
6209
|
<fo:table-row>
|
6100
6210
|
|
6211
|
+
|
6101
6212
|
<fo:table-cell>
|
6102
6213
|
|
6103
6214
|
<fo:block margin-top="6pt">
|
@@ -6116,6 +6227,7 @@
|
|
6116
6227
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
6117
6228
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
6118
6229
|
|
6230
|
+
|
6119
6231
|
<xsl:apply-templates/>
|
6120
6232
|
<!-- <xsl:if test="$namespace = 'gb'">
|
6121
6233
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
@@ -6655,6 +6767,9 @@
|
|
6655
6767
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
6656
6768
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
6657
6769
|
</xsl:if>
|
6770
|
+
<!-- <xsl:attribute name="fox:alt-text">
|
6771
|
+
put AsciiMath/LaTeX math
|
6772
|
+
</xsl:attribute> -->
|
6658
6773
|
|
6659
6774
|
|
6660
6775
|
<!-- <xsl:copy-of select="."/> -->
|
@@ -6674,7 +6789,15 @@
|
|
6674
6789
|
<xsl:copy>
|
6675
6790
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
6676
6791
|
</xsl:copy>
|
6677
|
-
<
|
6792
|
+
<xsl:choose>
|
6793
|
+
<!-- if in msub, then don't add space -->
|
6794
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
6795
|
+
<!-- if next char in digit, don't add space -->
|
6796
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
6797
|
+
<xsl:otherwise>
|
6798
|
+
<mathml:mspace width="0.5ex"/>
|
6799
|
+
</xsl:otherwise>
|
6800
|
+
</xsl:choose>
|
6678
6801
|
</xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
6679
6802
|
<xsl:variable name="target">
|
6680
6803
|
<xsl:choose>
|
@@ -6698,6 +6821,7 @@
|
|
6698
6821
|
</xsl:variable>
|
6699
6822
|
<fo:inline xsl:use-attribute-sets="link-style">
|
6700
6823
|
|
6824
|
+
|
6701
6825
|
<xsl:choose>
|
6702
6826
|
<xsl:when test="$target_text = ''">
|
6703
6827
|
<xsl:apply-templates/>
|
@@ -6856,6 +6980,7 @@
|
|
6856
6980
|
</xsl:choose>
|
6857
6981
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
6858
6982
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
6983
|
+
|
6859
6984
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
6860
6985
|
|
6861
6986
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
@@ -6937,6 +7062,7 @@
|
|
6937
7062
|
</xsl:call-template>
|
6938
7063
|
|
6939
7064
|
<fo:block>
|
7065
|
+
|
6940
7066
|
<xsl:apply-templates/>
|
6941
7067
|
</fo:block>
|
6942
7068
|
<xsl:call-template name="fn_display_figure"/>
|
@@ -7235,6 +7361,7 @@
|
|
7235
7361
|
<xsl:if test="normalize-space() != ''">
|
7236
7362
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
7237
7363
|
|
7364
|
+
|
7238
7365
|
<xsl:apply-templates/>
|
7239
7366
|
</fo:block>
|
7240
7367
|
</xsl:if>
|
@@ -7315,6 +7442,7 @@
|
|
7315
7442
|
|
7316
7443
|
<fo:block-container margin-left="0mm">
|
7317
7444
|
<xsl:copy-of select="@id"/>
|
7445
|
+
|
7318
7446
|
<xsl:if test="parent::*[local-name() = 'note']">
|
7319
7447
|
<xsl:attribute name="margin-left">
|
7320
7448
|
<xsl:choose>
|
@@ -7325,7 +7453,9 @@
|
|
7325
7453
|
|
7326
7454
|
</xsl:if>
|
7327
7455
|
<fo:block-container margin-left="0mm">
|
7328
|
-
|
7456
|
+
|
7457
|
+
|
7458
|
+
|
7329
7459
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
7330
7460
|
<xsl:variable name="_font-size">
|
7331
7461
|
|
@@ -7354,10 +7484,14 @@
|
|
7354
7484
|
</xsl:choose>
|
7355
7485
|
</xsl:attribute>
|
7356
7486
|
</xsl:if>
|
7357
|
-
|
7358
|
-
|
7487
|
+
|
7488
|
+
<xsl:apply-templates/>
|
7489
|
+
</fo:block>
|
7490
|
+
|
7491
|
+
|
7359
7492
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
7360
7493
|
|
7494
|
+
|
7361
7495
|
</fo:block-container>
|
7362
7496
|
</fo:block-container>
|
7363
7497
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -7702,6 +7836,8 @@
|
|
7702
7836
|
|
7703
7837
|
|
7704
7838
|
|
7839
|
+
|
7840
|
+
|
7705
7841
|
<xsl:value-of select="$localized.source"/>
|
7706
7842
|
<xsl:text> </xsl:text>
|
7707
7843
|
|
@@ -7931,6 +8067,7 @@
|
|
7931
8067
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7932
8068
|
|
7933
8069
|
|
8070
|
+
|
7934
8071
|
<xsl:apply-templates/>
|
7935
8072
|
</fo:block>
|
7936
8073
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
@@ -8207,17 +8344,17 @@
|
|
8207
8344
|
<xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
|
8208
8345
|
<xsl:choose>
|
8209
8346
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
8210
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
|
8347
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
|
8211
8348
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
8212
8349
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
8213
|
-
</xsl:if>
|
8350
|
+
</xsl:if> -->
|
8214
8351
|
<xsl:value-of select="$_doc_ident"/>
|
8215
8352
|
</xsl:when>
|
8216
8353
|
<xsl:otherwise>
|
8217
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
8354
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
8218
8355
|
<xsl:if test="$type != ''">
|
8219
8356
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
8220
|
-
</xsl:if>
|
8357
|
+
</xsl:if> -->
|
8221
8358
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
8222
8359
|
</xsl:otherwise>
|
8223
8360
|
</xsl:choose>
|
@@ -8723,4 +8860,14 @@
|
|
8723
8860
|
<xsl:value-of select="$align"/>
|
8724
8861
|
</xsl:when>
|
8725
8862
|
</xsl:choose>
|
8863
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
8864
|
+
<xsl:param name="default">left</xsl:param>
|
8865
|
+
<xsl:attribute name="text-align">
|
8866
|
+
<xsl:choose>
|
8867
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
8868
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
8869
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
8870
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
8871
|
+
</xsl:choose>
|
8872
|
+
</xsl:attribute>
|
8726
8873
|
</xsl:template></xsl:stylesheet>
|