metanorma-iso 1.8.4 → 1.8.5

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.
@@ -2712,7 +2712,7 @@
2712
2712
 
2713
2713
 
2714
2714
 
2715
-
2715
+
2716
2716
  </xsl:attribute-set><xsl:attribute-set name="example-style">
2717
2717
 
2718
2718
 
@@ -2782,6 +2782,7 @@
2782
2782
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
2783
2783
 
2784
2784
 
2785
+
2785
2786
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2786
2787
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2787
2788
 
@@ -2804,6 +2805,8 @@
2804
2805
 
2805
2806
 
2806
2807
 
2808
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
2809
+
2807
2810
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2808
2811
 
2809
2812
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -2857,6 +2860,7 @@
2857
2860
 
2858
2861
 
2859
2862
 
2863
+
2860
2864
  </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">
2861
2865
 
2862
2866
 
@@ -2902,10 +2906,12 @@
2902
2906
 
2903
2907
 
2904
2908
 
2909
+
2905
2910
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2906
2911
 
2907
2912
 
2908
2913
 
2914
+
2909
2915
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2910
2916
 
2911
2917
 
@@ -2965,6 +2971,7 @@
2965
2971
 
2966
2972
 
2967
2973
 
2974
+
2968
2975
 
2969
2976
 
2970
2977
 
@@ -3040,6 +3047,8 @@
3040
3047
  <xsl:attribute name="font-family">Cambria Math</xsl:attribute>
3041
3048
 
3042
3049
 
3050
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
3051
+
3043
3052
  </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">
3044
3053
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
3045
3054
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -3093,11 +3102,11 @@
3093
3102
  <xsl:variable name="table">
3094
3103
 
3095
3104
  <xsl:variable name="simple-table">
3096
- <xsl:call-template name="getSimpleTable"/>
3105
+ <xsl:call-template name="getSimpleTable"/>
3097
3106
  </xsl:variable>
3098
3107
 
3099
3108
  <!-- <xsl:if test="$namespace = 'bipm'">
3100
- <fo:block>&#xA0;</fo:block>
3109
+ <fo:block>&#xA0;</fo:block>
3101
3110
  </xsl:if> -->
3102
3111
 
3103
3112
  <!-- $namespace = 'iso' or -->
@@ -3215,6 +3224,7 @@
3215
3224
 
3216
3225
 
3217
3226
 
3227
+
3218
3228
  </xsl:variable>
3219
3229
 
3220
3230
 
@@ -3358,6 +3368,9 @@
3358
3368
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
3359
3369
 
3360
3370
 
3371
+
3372
+
3373
+
3361
3374
  <xsl:choose>
3362
3375
  <xsl:when test="$continued = 'true'">
3363
3376
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -3511,6 +3524,7 @@
3511
3524
  <xsl:with-param name="cols-count" select="$cols-count"/>
3512
3525
  </xsl:call-template>
3513
3526
 
3527
+
3514
3528
  <xsl:apply-templates/>
3515
3529
  </fo:table-header>
3516
3530
  </xsl:template><xsl:template name="table-header-title">
@@ -3769,8 +3783,8 @@
3769
3783
  <fo:table-cell>
3770
3784
 
3771
3785
  <fo:marker marker-class-name="table_continued">
3772
- <xsl:value-of select="$title_continued"/>
3773
- </fo:marker>
3786
+ <xsl:value-of select="$title_continued"/>
3787
+ </fo:marker>
3774
3788
  <fo:block/>
3775
3789
  </fo:table-cell>
3776
3790
  </fo:table-row>
@@ -3821,6 +3835,10 @@
3821
3835
 
3822
3836
 
3823
3837
 
3838
+
3839
+
3840
+
3841
+
3824
3842
  <!-- <xsl:if test="$namespace = 'bipm'">
3825
3843
  <xsl:attribute name="height">8mm</xsl:attribute>
3826
3844
  </xsl:if> -->
@@ -3914,6 +3932,9 @@
3914
3932
 
3915
3933
 
3916
3934
 
3935
+
3936
+
3937
+
3917
3938
  <xsl:if test=".//*[local-name() = 'table']">
3918
3939
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3919
3940
  </xsl:if>
@@ -4141,6 +4162,7 @@
4141
4162
 
4142
4163
 
4143
4164
 
4165
+
4144
4166
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
4145
4167
 
4146
4168
 
@@ -4457,6 +4479,7 @@
4457
4479
 
4458
4480
  <fo:table-row>
4459
4481
 
4482
+
4460
4483
  <fo:table-cell>
4461
4484
 
4462
4485
  <fo:block margin-top="6pt">
@@ -4474,6 +4497,7 @@
4474
4497
 
4475
4498
 
4476
4499
 
4500
+
4477
4501
  <xsl:apply-templates/>
4478
4502
  <!-- <xsl:if test="$namespace = 'gb'">
4479
4503
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -5028,7 +5052,15 @@
5028
5052
  <xsl:copy>
5029
5053
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
5030
5054
  </xsl:copy>
5031
- <mathml:mspace width="0.5ex"/>
5055
+ <xsl:choose>
5056
+ <!-- if in msub, then don't add space -->
5057
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
5058
+ <!-- if next char in digit, don't add space -->
5059
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
5060
+ <xsl:otherwise>
5061
+ <mathml:mspace width="0.5ex"/>
5062
+ </xsl:otherwise>
5063
+ </xsl:choose>
5032
5064
  </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">
5033
5065
  <xsl:variable name="target">
5034
5066
  <xsl:choose>
@@ -5052,6 +5084,7 @@
5052
5084
  </xsl:variable>
5053
5085
  <fo:inline xsl:use-attribute-sets="link-style">
5054
5086
 
5087
+
5055
5088
  <xsl:choose>
5056
5089
  <xsl:when test="$target_text = ''">
5057
5090
  <xsl:apply-templates/>
@@ -5203,6 +5236,7 @@
5203
5236
  </xsl:choose>
5204
5237
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
5205
5238
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
5239
+
5206
5240
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
5207
5241
 
5208
5242
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -5278,6 +5312,7 @@
5278
5312
  </xsl:call-template>
5279
5313
 
5280
5314
  <fo:block>
5315
+
5281
5316
  <xsl:apply-templates/>
5282
5317
  </fo:block>
5283
5318
  <xsl:call-template name="fn_display_figure"/>
@@ -5562,6 +5597,7 @@
5562
5597
  <xsl:if test="normalize-space() != ''">
5563
5598
  <fo:block xsl:use-attribute-sets="figure-name-style">
5564
5599
 
5600
+
5565
5601
  <xsl:apply-templates/>
5566
5602
  </fo:block>
5567
5603
  </xsl:if>
@@ -5642,6 +5678,7 @@
5642
5678
 
5643
5679
  <fo:block-container margin-left="0mm">
5644
5680
  <xsl:copy-of select="@id"/>
5681
+
5645
5682
  <xsl:if test="parent::*[local-name() = 'note']">
5646
5683
  <xsl:attribute name="margin-left">
5647
5684
  <xsl:choose>
@@ -5652,7 +5689,9 @@
5652
5689
 
5653
5690
  </xsl:if>
5654
5691
  <fo:block-container margin-left="0mm">
5655
-
5692
+
5693
+
5694
+
5656
5695
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5657
5696
  <xsl:variable name="_font-size">
5658
5697
 
@@ -5681,10 +5720,14 @@
5681
5720
  </xsl:choose>
5682
5721
  </xsl:attribute>
5683
5722
  </xsl:if>
5684
- <xsl:apply-templates/>
5685
- </fo:block>
5723
+
5724
+ <xsl:apply-templates/>
5725
+ </fo:block>
5726
+
5727
+
5686
5728
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5687
5729
 
5730
+
5688
5731
  </fo:block-container>
5689
5732
  </fo:block-container>
5690
5733
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -6033,6 +6076,8 @@
6033
6076
  <fo:inline>
6034
6077
 
6035
6078
 
6079
+
6080
+
6036
6081
  <xsl:value-of select="$localized.source"/>
6037
6082
  <xsl:text>: </xsl:text>
6038
6083
 
@@ -6263,6 +6308,7 @@
6263
6308
  <xsl:call-template name="setId"/>
6264
6309
 
6265
6310
 
6311
+
6266
6312
  <xsl:apply-templates/>
6267
6313
  </fo:block>
6268
6314
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -6535,17 +6581,17 @@
6535
6581
  <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')]"/>
6536
6582
  <xsl:choose>
6537
6583
  <xsl:when test="normalize-space($_doc_ident) != ''">
6538
- <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"/>
6584
+ <!-- <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"/>
6539
6585
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
6540
6586
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6541
- </xsl:if>
6587
+ </xsl:if> -->
6542
6588
  <xsl:value-of select="$_doc_ident"/>
6543
6589
  </xsl:when>
6544
6590
  <xsl:otherwise>
6545
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6591
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6546
6592
  <xsl:if test="$type != ''">
6547
6593
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6548
- </xsl:if>
6594
+ </xsl:if> -->
6549
6595
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
6550
6596
  </xsl:otherwise>
6551
6597
  </xsl:choose>
@@ -7051,4 +7097,14 @@
7051
7097
  <xsl:value-of select="$align"/>
7052
7098
  </xsl:when>
7053
7099
  </xsl:choose>
7100
+ </xsl:template><xsl:template name="setTextAlignment">
7101
+ <xsl:param name="default">left</xsl:param>
7102
+ <xsl:attribute name="text-align">
7103
+ <xsl:choose>
7104
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7105
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7106
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7107
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7108
+ </xsl:choose>
7109
+ </xsl:attribute>
7054
7110
  </xsl:template></xsl:stylesheet>
@@ -2712,7 +2712,7 @@
2712
2712
 
2713
2713
 
2714
2714
 
2715
-
2715
+
2716
2716
  </xsl:attribute-set><xsl:attribute-set name="example-style">
2717
2717
 
2718
2718
 
@@ -2782,6 +2782,7 @@
2782
2782
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
2783
2783
 
2784
2784
 
2785
+
2785
2786
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2786
2787
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2787
2788
 
@@ -2804,6 +2805,8 @@
2804
2805
 
2805
2806
 
2806
2807
 
2808
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
2809
+
2807
2810
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2808
2811
 
2809
2812
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -2857,6 +2860,7 @@
2857
2860
 
2858
2861
 
2859
2862
 
2863
+
2860
2864
  </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">
2861
2865
 
2862
2866
 
@@ -2902,10 +2906,12 @@
2902
2906
 
2903
2907
 
2904
2908
 
2909
+
2905
2910
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2906
2911
 
2907
2912
 
2908
2913
 
2914
+
2909
2915
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2910
2916
 
2911
2917
 
@@ -2965,6 +2971,7 @@
2965
2971
 
2966
2972
 
2967
2973
 
2974
+
2968
2975
 
2969
2976
 
2970
2977
 
@@ -3040,6 +3047,8 @@
3040
3047
  <xsl:attribute name="font-family">Cambria Math</xsl:attribute>
3041
3048
 
3042
3049
 
3050
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
3051
+
3043
3052
  </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">
3044
3053
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
3045
3054
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -3093,11 +3102,11 @@
3093
3102
  <xsl:variable name="table">
3094
3103
 
3095
3104
  <xsl:variable name="simple-table">
3096
- <xsl:call-template name="getSimpleTable"/>
3105
+ <xsl:call-template name="getSimpleTable"/>
3097
3106
  </xsl:variable>
3098
3107
 
3099
3108
  <!-- <xsl:if test="$namespace = 'bipm'">
3100
- <fo:block>&#xA0;</fo:block>
3109
+ <fo:block>&#xA0;</fo:block>
3101
3110
  </xsl:if> -->
3102
3111
 
3103
3112
  <!-- $namespace = 'iso' or -->
@@ -3215,6 +3224,7 @@
3215
3224
 
3216
3225
 
3217
3226
 
3227
+
3218
3228
  </xsl:variable>
3219
3229
 
3220
3230
 
@@ -3358,6 +3368,9 @@
3358
3368
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
3359
3369
 
3360
3370
 
3371
+
3372
+
3373
+
3361
3374
  <xsl:choose>
3362
3375
  <xsl:when test="$continued = 'true'">
3363
3376
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -3511,6 +3524,7 @@
3511
3524
  <xsl:with-param name="cols-count" select="$cols-count"/>
3512
3525
  </xsl:call-template>
3513
3526
 
3527
+
3514
3528
  <xsl:apply-templates/>
3515
3529
  </fo:table-header>
3516
3530
  </xsl:template><xsl:template name="table-header-title">
@@ -3769,8 +3783,8 @@
3769
3783
  <fo:table-cell>
3770
3784
 
3771
3785
  <fo:marker marker-class-name="table_continued">
3772
- <xsl:value-of select="$title_continued"/>
3773
- </fo:marker>
3786
+ <xsl:value-of select="$title_continued"/>
3787
+ </fo:marker>
3774
3788
  <fo:block/>
3775
3789
  </fo:table-cell>
3776
3790
  </fo:table-row>
@@ -3821,6 +3835,10 @@
3821
3835
 
3822
3836
 
3823
3837
 
3838
+
3839
+
3840
+
3841
+
3824
3842
  <!-- <xsl:if test="$namespace = 'bipm'">
3825
3843
  <xsl:attribute name="height">8mm</xsl:attribute>
3826
3844
  </xsl:if> -->
@@ -3914,6 +3932,9 @@
3914
3932
 
3915
3933
 
3916
3934
 
3935
+
3936
+
3937
+
3917
3938
  <xsl:if test=".//*[local-name() = 'table']">
3918
3939
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3919
3940
  </xsl:if>
@@ -4141,6 +4162,7 @@
4141
4162
 
4142
4163
 
4143
4164
 
4165
+
4144
4166
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
4145
4167
 
4146
4168
 
@@ -4457,6 +4479,7 @@
4457
4479
 
4458
4480
  <fo:table-row>
4459
4481
 
4482
+
4460
4483
  <fo:table-cell>
4461
4484
 
4462
4485
  <fo:block margin-top="6pt">
@@ -4474,6 +4497,7 @@
4474
4497
 
4475
4498
 
4476
4499
 
4500
+
4477
4501
  <xsl:apply-templates/>
4478
4502
  <!-- <xsl:if test="$namespace = 'gb'">
4479
4503
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -5028,7 +5052,15 @@
5028
5052
  <xsl:copy>
5029
5053
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
5030
5054
  </xsl:copy>
5031
- <mathml:mspace width="0.5ex"/>
5055
+ <xsl:choose>
5056
+ <!-- if in msub, then don't add space -->
5057
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
5058
+ <!-- if next char in digit, don't add space -->
5059
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
5060
+ <xsl:otherwise>
5061
+ <mathml:mspace width="0.5ex"/>
5062
+ </xsl:otherwise>
5063
+ </xsl:choose>
5032
5064
  </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">
5033
5065
  <xsl:variable name="target">
5034
5066
  <xsl:choose>
@@ -5052,6 +5084,7 @@
5052
5084
  </xsl:variable>
5053
5085
  <fo:inline xsl:use-attribute-sets="link-style">
5054
5086
 
5087
+
5055
5088
  <xsl:choose>
5056
5089
  <xsl:when test="$target_text = ''">
5057
5090
  <xsl:apply-templates/>
@@ -5203,6 +5236,7 @@
5203
5236
  </xsl:choose>
5204
5237
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
5205
5238
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
5239
+
5206
5240
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
5207
5241
 
5208
5242
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -5278,6 +5312,7 @@
5278
5312
  </xsl:call-template>
5279
5313
 
5280
5314
  <fo:block>
5315
+
5281
5316
  <xsl:apply-templates/>
5282
5317
  </fo:block>
5283
5318
  <xsl:call-template name="fn_display_figure"/>
@@ -5562,6 +5597,7 @@
5562
5597
  <xsl:if test="normalize-space() != ''">
5563
5598
  <fo:block xsl:use-attribute-sets="figure-name-style">
5564
5599
 
5600
+
5565
5601
  <xsl:apply-templates/>
5566
5602
  </fo:block>
5567
5603
  </xsl:if>
@@ -5642,6 +5678,7 @@
5642
5678
 
5643
5679
  <fo:block-container margin-left="0mm">
5644
5680
  <xsl:copy-of select="@id"/>
5681
+
5645
5682
  <xsl:if test="parent::*[local-name() = 'note']">
5646
5683
  <xsl:attribute name="margin-left">
5647
5684
  <xsl:choose>
@@ -5652,7 +5689,9 @@
5652
5689
 
5653
5690
  </xsl:if>
5654
5691
  <fo:block-container margin-left="0mm">
5655
-
5692
+
5693
+
5694
+
5656
5695
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5657
5696
  <xsl:variable name="_font-size">
5658
5697
 
@@ -5681,10 +5720,14 @@
5681
5720
  </xsl:choose>
5682
5721
  </xsl:attribute>
5683
5722
  </xsl:if>
5684
- <xsl:apply-templates/>
5685
- </fo:block>
5723
+
5724
+ <xsl:apply-templates/>
5725
+ </fo:block>
5726
+
5727
+
5686
5728
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5687
5729
 
5730
+
5688
5731
  </fo:block-container>
5689
5732
  </fo:block-container>
5690
5733
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -6033,6 +6076,8 @@
6033
6076
  <fo:inline>
6034
6077
 
6035
6078
 
6079
+
6080
+
6036
6081
  <xsl:value-of select="$localized.source"/>
6037
6082
  <xsl:text>: </xsl:text>
6038
6083
 
@@ -6263,6 +6308,7 @@
6263
6308
  <xsl:call-template name="setId"/>
6264
6309
 
6265
6310
 
6311
+
6266
6312
  <xsl:apply-templates/>
6267
6313
  </fo:block>
6268
6314
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -6535,17 +6581,17 @@
6535
6581
  <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')]"/>
6536
6582
  <xsl:choose>
6537
6583
  <xsl:when test="normalize-space($_doc_ident) != ''">
6538
- <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"/>
6584
+ <!-- <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"/>
6539
6585
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
6540
6586
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6541
- </xsl:if>
6587
+ </xsl:if> -->
6542
6588
  <xsl:value-of select="$_doc_ident"/>
6543
6589
  </xsl:when>
6544
6590
  <xsl:otherwise>
6545
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6591
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6546
6592
  <xsl:if test="$type != ''">
6547
6593
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6548
- </xsl:if>
6594
+ </xsl:if> -->
6549
6595
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
6550
6596
  </xsl:otherwise>
6551
6597
  </xsl:choose>
@@ -7051,4 +7097,14 @@
7051
7097
  <xsl:value-of select="$align"/>
7052
7098
  </xsl:when>
7053
7099
  </xsl:choose>
7100
+ </xsl:template><xsl:template name="setTextAlignment">
7101
+ <xsl:param name="default">left</xsl:param>
7102
+ <xsl:attribute name="text-align">
7103
+ <xsl:choose>
7104
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7105
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7106
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7107
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7108
+ </xsl:choose>
7109
+ </xsl:attribute>
7054
7110
  </xsl:template></xsl:stylesheet>