metanorma-itu 1.3.4 → 1.3.5

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: 621588f887228ab3427bf392ab3bedbdf1716c551cd7806c48eac05fdf5dfdae
4
- data.tar.gz: 2a290310e1b75d15766786b02b462b9cd94eb982be50235dfb83b24d63d7ecba
3
+ metadata.gz: 6c0181164c1a02d09ba04043e4b8e0ffe8fc2c3d217d5c141118e8fdb283e438
4
+ data.tar.gz: d9b9f89b8e7156114e69a5b489ec916ae94cfe848961e7f3703b070f59f17f8f
5
5
  SHA512:
6
- metadata.gz: 8d2c873817838b6cb6d4a518403c97d981a8046e420f0c8a2e020d4b2bb2558805275e3e5d17bcddf685151113d41b21aebec45d7cec39faf4990bae6c7f2dc3
7
- data.tar.gz: 6d6048e9fa1500f1f97facb582b582cf950e3f34b48ae255e0fc69a37c0166f31a218d85acc1d459a3c5a2eaec414a338157ca72413f2d6a503f7c29e9c164f5
6
+ metadata.gz: b95365c930cccd659f770fa364f79208f6720b21af9ef60437f34a974f5555ec6f8d31ebb36fe209601f07da8d4e63bbc2ff43c552cdf872d037ee83a9fc2937
7
+ data.tar.gz: e947079f69907e22483af10044997e7adbd4fe65294f975362cf119d0419728ca7c0965e6f7215dd9523320de04142013a6380ae96c436ff18b39e6d77c5e748
data/.rubocop.yml CHANGED
@@ -7,4 +7,4 @@ inherit_from:
7
7
  # ...
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.4
10
+ TargetRubyVersion: 2.5
@@ -2142,7 +2142,7 @@
2142
2142
 
2143
2143
 
2144
2144
 
2145
-
2145
+
2146
2146
  </xsl:attribute-set><xsl:attribute-set name="example-style">
2147
2147
 
2148
2148
 
@@ -2206,6 +2206,7 @@
2206
2206
 
2207
2207
 
2208
2208
 
2209
+
2209
2210
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2210
2211
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2211
2212
 
@@ -2226,6 +2227,8 @@
2226
2227
 
2227
2228
 
2228
2229
 
2230
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
2231
+
2229
2232
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2230
2233
 
2231
2234
 
@@ -2272,6 +2275,7 @@
2272
2275
 
2273
2276
 
2274
2277
 
2278
+
2275
2279
  </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">
2276
2280
 
2277
2281
 
@@ -2312,10 +2316,12 @@
2312
2316
  <xsl:attribute name="margin-top">4pt</xsl:attribute>
2313
2317
 
2314
2318
 
2319
+
2315
2320
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2316
2321
 
2317
2322
 
2318
2323
 
2324
+
2319
2325
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2320
2326
 
2321
2327
 
@@ -2371,6 +2377,7 @@
2371
2377
 
2372
2378
 
2373
2379
 
2380
+
2374
2381
 
2375
2382
 
2376
2383
 
@@ -2450,6 +2457,8 @@
2450
2457
 
2451
2458
  <xsl:attribute name="font-size">11pt</xsl:attribute>
2452
2459
 
2460
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
2461
+
2453
2462
  </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">
2454
2463
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2455
2464
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2497,7 +2506,7 @@
2497
2506
 
2498
2507
  <xsl:variable name="table-preamble">
2499
2508
 
2500
- <fo:block space-before="18pt"> </fo:block>
2509
+ <fo:block space-before="18pt"> </fo:block>
2501
2510
 
2502
2511
 
2503
2512
  </xsl:variable>
@@ -2505,11 +2514,11 @@
2505
2514
  <xsl:variable name="table">
2506
2515
 
2507
2516
  <xsl:variable name="simple-table">
2508
- <xsl:call-template name="getSimpleTable"/>
2517
+ <xsl:call-template name="getSimpleTable"/>
2509
2518
  </xsl:variable>
2510
2519
 
2511
2520
  <!-- <xsl:if test="$namespace = 'bipm'">
2512
- <fo:block>&#xA0;</fo:block>
2521
+ <fo:block>&#xA0;</fo:block>
2513
2522
  </xsl:if> -->
2514
2523
 
2515
2524
  <!-- $namespace = 'iso' or -->
@@ -2622,6 +2631,7 @@
2622
2631
 
2623
2632
 
2624
2633
 
2634
+
2625
2635
  </xsl:variable>
2626
2636
 
2627
2637
 
@@ -2763,6 +2773,9 @@
2763
2773
  <fo:block xsl:use-attribute-sets="table-name-style">
2764
2774
 
2765
2775
 
2776
+
2777
+
2778
+
2766
2779
  <xsl:choose>
2767
2780
  <xsl:when test="$continued = 'true'">
2768
2781
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -2910,6 +2923,7 @@
2910
2923
  <!-- font-weight="bold" -->
2911
2924
  <fo:table-header>
2912
2925
 
2926
+
2913
2927
  <xsl:apply-templates/>
2914
2928
  </fo:table-header>
2915
2929
  </xsl:template><xsl:template name="table-header-title">
@@ -3163,6 +3177,10 @@
3163
3177
 
3164
3178
 
3165
3179
 
3180
+
3181
+
3182
+
3183
+
3166
3184
  <!-- <xsl:if test="$namespace = 'bipm'">
3167
3185
  <xsl:attribute name="height">8mm</xsl:attribute>
3168
3186
  </xsl:if> -->
@@ -3257,6 +3275,9 @@
3257
3275
 
3258
3276
 
3259
3277
 
3278
+
3279
+
3280
+
3260
3281
  <xsl:if test=".//*[local-name() = 'table']">
3261
3282
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3262
3283
  </xsl:if>
@@ -3491,6 +3512,7 @@
3491
3512
 
3492
3513
 
3493
3514
 
3515
+
3494
3516
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
3495
3517
 
3496
3518
 
@@ -3802,6 +3824,7 @@
3802
3824
 
3803
3825
  <fo:table-row>
3804
3826
 
3827
+
3805
3828
  <fo:table-cell>
3806
3829
 
3807
3830
  <xsl:if test="ancestor::*[1][local-name() = 'dl']/preceding-sibling::*[1][local-name() = 'formula']">
@@ -3825,6 +3848,7 @@
3825
3848
 
3826
3849
 
3827
3850
 
3851
+
3828
3852
  <xsl:apply-templates/>
3829
3853
  <!-- <xsl:if test="$namespace = 'gb'">
3830
3854
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -4374,7 +4398,15 @@
4374
4398
  <xsl:copy>
4375
4399
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
4376
4400
  </xsl:copy>
4377
- <mathml:mspace width="0.5ex"/>
4401
+ <xsl:choose>
4402
+ <!-- if in msub, then don't add space -->
4403
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
4404
+ <!-- if next char in digit, don't add space -->
4405
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
4406
+ <xsl:otherwise>
4407
+ <mathml:mspace width="0.5ex"/>
4408
+ </xsl:otherwise>
4409
+ </xsl:choose>
4378
4410
  </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">
4379
4411
  <xsl:variable name="target">
4380
4412
  <xsl:choose>
@@ -4398,6 +4430,7 @@
4398
4430
  </xsl:variable>
4399
4431
  <fo:inline xsl:use-attribute-sets="link-style">
4400
4432
 
4433
+
4401
4434
  <xsl:choose>
4402
4435
  <xsl:when test="$target_text = ''">
4403
4436
  <xsl:apply-templates/>
@@ -4553,6 +4586,7 @@
4553
4586
  </xsl:choose>
4554
4587
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
4555
4588
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4589
+
4556
4590
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4557
4591
 
4558
4592
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -4630,6 +4664,7 @@
4630
4664
  </xsl:call-template>
4631
4665
 
4632
4666
  <fo:block>
4667
+
4633
4668
  <xsl:apply-templates/>
4634
4669
  </fo:block>
4635
4670
  <xsl:call-template name="fn_display_figure"/>
@@ -4914,6 +4949,7 @@
4914
4949
  <xsl:if test="normalize-space() != ''">
4915
4950
  <fo:block xsl:use-attribute-sets="figure-name-style">
4916
4951
 
4952
+
4917
4953
  <xsl:apply-templates/>
4918
4954
  </fo:block>
4919
4955
  </xsl:if>
@@ -4994,6 +5030,7 @@
4994
5030
 
4995
5031
  <fo:block-container margin-left="0mm">
4996
5032
  <xsl:copy-of select="@id"/>
5033
+
4997
5034
  <xsl:if test="parent::*[local-name() = 'note']">
4998
5035
  <xsl:attribute name="margin-left">
4999
5036
  <xsl:choose>
@@ -5004,7 +5041,9 @@
5004
5041
 
5005
5042
  </xsl:if>
5006
5043
  <fo:block-container margin-left="0mm">
5007
-
5044
+
5045
+
5046
+
5008
5047
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5009
5048
  <xsl:variable name="_font-size">
5010
5049
 
@@ -5033,10 +5072,14 @@
5033
5072
  </xsl:choose>
5034
5073
  </xsl:attribute>
5035
5074
  </xsl:if>
5036
- <xsl:apply-templates/>
5037
- </fo:block>
5075
+
5076
+ <xsl:apply-templates/>
5077
+ </fo:block>
5078
+
5079
+
5038
5080
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5039
5081
 
5082
+
5040
5083
  </fo:block-container>
5041
5084
  </fo:block-container>
5042
5085
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -5604,6 +5647,7 @@
5604
5647
  <xsl:call-template name="setId"/>
5605
5648
 
5606
5649
 
5650
+
5607
5651
  <xsl:if test="@inline-header='true'">
5608
5652
  <xsl:attribute name="text-align">justify</xsl:attribute>
5609
5653
  </xsl:if>
@@ -5854,17 +5898,17 @@
5854
5898
  <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')]"/>
5855
5899
  <xsl:choose>
5856
5900
  <xsl:when test="normalize-space($_doc_ident) != ''">
5857
- <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"/>
5901
+ <!-- <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"/>
5858
5902
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
5859
5903
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
5860
- </xsl:if>
5904
+ </xsl:if> -->
5861
5905
  <xsl:value-of select="$_doc_ident"/>
5862
5906
  </xsl:when>
5863
5907
  <xsl:otherwise>
5864
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5908
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5865
5909
  <xsl:if test="$type != ''">
5866
5910
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
5867
- </xsl:if>
5911
+ </xsl:if> -->
5868
5912
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
5869
5913
  </xsl:otherwise>
5870
5914
  </xsl:choose>
@@ -6370,4 +6414,14 @@
6370
6414
  <xsl:value-of select="$align"/>
6371
6415
  </xsl:when>
6372
6416
  </xsl:choose>
6417
+ </xsl:template><xsl:template name="setTextAlignment">
6418
+ <xsl:param name="default">left</xsl:param>
6419
+ <xsl:attribute name="text-align">
6420
+ <xsl:choose>
6421
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6422
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6423
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6424
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6425
+ </xsl:choose>
6426
+ </xsl:attribute>
6373
6427
  </xsl:template></xsl:stylesheet>
@@ -2142,7 +2142,7 @@
2142
2142
 
2143
2143
 
2144
2144
 
2145
-
2145
+
2146
2146
  </xsl:attribute-set><xsl:attribute-set name="example-style">
2147
2147
 
2148
2148
 
@@ -2206,6 +2206,7 @@
2206
2206
 
2207
2207
 
2208
2208
 
2209
+
2209
2210
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2210
2211
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2211
2212
 
@@ -2226,6 +2227,8 @@
2226
2227
 
2227
2228
 
2228
2229
 
2230
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
2231
+
2229
2232
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2230
2233
 
2231
2234
 
@@ -2272,6 +2275,7 @@
2272
2275
 
2273
2276
 
2274
2277
 
2278
+
2275
2279
  </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">
2276
2280
 
2277
2281
 
@@ -2312,10 +2316,12 @@
2312
2316
  <xsl:attribute name="margin-top">4pt</xsl:attribute>
2313
2317
 
2314
2318
 
2319
+
2315
2320
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2316
2321
 
2317
2322
 
2318
2323
 
2324
+
2319
2325
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2320
2326
 
2321
2327
 
@@ -2371,6 +2377,7 @@
2371
2377
 
2372
2378
 
2373
2379
 
2380
+
2374
2381
 
2375
2382
 
2376
2383
 
@@ -2450,6 +2457,8 @@
2450
2457
 
2451
2458
  <xsl:attribute name="font-size">11pt</xsl:attribute>
2452
2459
 
2460
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
2461
+
2453
2462
  </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">
2454
2463
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2455
2464
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2497,7 +2506,7 @@
2497
2506
 
2498
2507
  <xsl:variable name="table-preamble">
2499
2508
 
2500
- <fo:block space-before="18pt"> </fo:block>
2509
+ <fo:block space-before="18pt"> </fo:block>
2501
2510
 
2502
2511
 
2503
2512
  </xsl:variable>
@@ -2505,11 +2514,11 @@
2505
2514
  <xsl:variable name="table">
2506
2515
 
2507
2516
  <xsl:variable name="simple-table">
2508
- <xsl:call-template name="getSimpleTable"/>
2517
+ <xsl:call-template name="getSimpleTable"/>
2509
2518
  </xsl:variable>
2510
2519
 
2511
2520
  <!-- <xsl:if test="$namespace = 'bipm'">
2512
- <fo:block>&#xA0;</fo:block>
2521
+ <fo:block>&#xA0;</fo:block>
2513
2522
  </xsl:if> -->
2514
2523
 
2515
2524
  <!-- $namespace = 'iso' or -->
@@ -2622,6 +2631,7 @@
2622
2631
 
2623
2632
 
2624
2633
 
2634
+
2625
2635
  </xsl:variable>
2626
2636
 
2627
2637
 
@@ -2763,6 +2773,9 @@
2763
2773
  <fo:block xsl:use-attribute-sets="table-name-style">
2764
2774
 
2765
2775
 
2776
+
2777
+
2778
+
2766
2779
  <xsl:choose>
2767
2780
  <xsl:when test="$continued = 'true'">
2768
2781
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -2910,6 +2923,7 @@
2910
2923
  <!-- font-weight="bold" -->
2911
2924
  <fo:table-header>
2912
2925
 
2926
+
2913
2927
  <xsl:apply-templates/>
2914
2928
  </fo:table-header>
2915
2929
  </xsl:template><xsl:template name="table-header-title">
@@ -3163,6 +3177,10 @@
3163
3177
 
3164
3178
 
3165
3179
 
3180
+
3181
+
3182
+
3183
+
3166
3184
  <!-- <xsl:if test="$namespace = 'bipm'">
3167
3185
  <xsl:attribute name="height">8mm</xsl:attribute>
3168
3186
  </xsl:if> -->
@@ -3257,6 +3275,9 @@
3257
3275
 
3258
3276
 
3259
3277
 
3278
+
3279
+
3280
+
3260
3281
  <xsl:if test=".//*[local-name() = 'table']">
3261
3282
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3262
3283
  </xsl:if>
@@ -3491,6 +3512,7 @@
3491
3512
 
3492
3513
 
3493
3514
 
3515
+
3494
3516
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
3495
3517
 
3496
3518
 
@@ -3802,6 +3824,7 @@
3802
3824
 
3803
3825
  <fo:table-row>
3804
3826
 
3827
+
3805
3828
  <fo:table-cell>
3806
3829
 
3807
3830
  <xsl:if test="ancestor::*[1][local-name() = 'dl']/preceding-sibling::*[1][local-name() = 'formula']">
@@ -3825,6 +3848,7 @@
3825
3848
 
3826
3849
 
3827
3850
 
3851
+
3828
3852
  <xsl:apply-templates/>
3829
3853
  <!-- <xsl:if test="$namespace = 'gb'">
3830
3854
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -4374,7 +4398,15 @@
4374
4398
  <xsl:copy>
4375
4399
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
4376
4400
  </xsl:copy>
4377
- <mathml:mspace width="0.5ex"/>
4401
+ <xsl:choose>
4402
+ <!-- if in msub, then don't add space -->
4403
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
4404
+ <!-- if next char in digit, don't add space -->
4405
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
4406
+ <xsl:otherwise>
4407
+ <mathml:mspace width="0.5ex"/>
4408
+ </xsl:otherwise>
4409
+ </xsl:choose>
4378
4410
  </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">
4379
4411
  <xsl:variable name="target">
4380
4412
  <xsl:choose>
@@ -4398,6 +4430,7 @@
4398
4430
  </xsl:variable>
4399
4431
  <fo:inline xsl:use-attribute-sets="link-style">
4400
4432
 
4433
+
4401
4434
  <xsl:choose>
4402
4435
  <xsl:when test="$target_text = ''">
4403
4436
  <xsl:apply-templates/>
@@ -4553,6 +4586,7 @@
4553
4586
  </xsl:choose>
4554
4587
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
4555
4588
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4589
+
4556
4590
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4557
4591
 
4558
4592
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -4630,6 +4664,7 @@
4630
4664
  </xsl:call-template>
4631
4665
 
4632
4666
  <fo:block>
4667
+
4633
4668
  <xsl:apply-templates/>
4634
4669
  </fo:block>
4635
4670
  <xsl:call-template name="fn_display_figure"/>
@@ -4914,6 +4949,7 @@
4914
4949
  <xsl:if test="normalize-space() != ''">
4915
4950
  <fo:block xsl:use-attribute-sets="figure-name-style">
4916
4951
 
4952
+
4917
4953
  <xsl:apply-templates/>
4918
4954
  </fo:block>
4919
4955
  </xsl:if>
@@ -4994,6 +5030,7 @@
4994
5030
 
4995
5031
  <fo:block-container margin-left="0mm">
4996
5032
  <xsl:copy-of select="@id"/>
5033
+
4997
5034
  <xsl:if test="parent::*[local-name() = 'note']">
4998
5035
  <xsl:attribute name="margin-left">
4999
5036
  <xsl:choose>
@@ -5004,7 +5041,9 @@
5004
5041
 
5005
5042
  </xsl:if>
5006
5043
  <fo:block-container margin-left="0mm">
5007
-
5044
+
5045
+
5046
+
5008
5047
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5009
5048
  <xsl:variable name="_font-size">
5010
5049
 
@@ -5033,10 +5072,14 @@
5033
5072
  </xsl:choose>
5034
5073
  </xsl:attribute>
5035
5074
  </xsl:if>
5036
- <xsl:apply-templates/>
5037
- </fo:block>
5075
+
5076
+ <xsl:apply-templates/>
5077
+ </fo:block>
5078
+
5079
+
5038
5080
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5039
5081
 
5082
+
5040
5083
  </fo:block-container>
5041
5084
  </fo:block-container>
5042
5085
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -5604,6 +5647,7 @@
5604
5647
  <xsl:call-template name="setId"/>
5605
5648
 
5606
5649
 
5650
+
5607
5651
  <xsl:if test="@inline-header='true'">
5608
5652
  <xsl:attribute name="text-align">justify</xsl:attribute>
5609
5653
  </xsl:if>
@@ -5854,17 +5898,17 @@
5854
5898
  <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')]"/>
5855
5899
  <xsl:choose>
5856
5900
  <xsl:when test="normalize-space($_doc_ident) != ''">
5857
- <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"/>
5901
+ <!-- <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"/>
5858
5902
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
5859
5903
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
5860
- </xsl:if>
5904
+ </xsl:if> -->
5861
5905
  <xsl:value-of select="$_doc_ident"/>
5862
5906
  </xsl:when>
5863
5907
  <xsl:otherwise>
5864
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5908
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5865
5909
  <xsl:if test="$type != ''">
5866
5910
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
5867
- </xsl:if>
5911
+ </xsl:if> -->
5868
5912
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
5869
5913
  </xsl:otherwise>
5870
5914
  </xsl:choose>
@@ -6370,4 +6414,14 @@
6370
6414
  <xsl:value-of select="$align"/>
6371
6415
  </xsl:when>
6372
6416
  </xsl:choose>
6417
+ </xsl:template><xsl:template name="setTextAlignment">
6418
+ <xsl:param name="default">left</xsl:param>
6419
+ <xsl:attribute name="text-align">
6420
+ <xsl:choose>
6421
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6422
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6423
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6424
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6425
+ </xsl:choose>
6426
+ </xsl:attribute>
6373
6427
  </xsl:template></xsl:stylesheet>