metanorma-itu 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
 
12
- <xsl:key name="kfn" match="itu:fn[local-name(..) = 'p' or ancestor::*[local-name() = 'title']]" use="@reference"/>
12
+ <xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" use="@reference"/>
13
13
 
14
14
 
15
15
 
@@ -1015,7 +1015,7 @@
1015
1015
  <xsl:if test="@level = 1">
1016
1016
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
1017
1017
  </xsl:if>
1018
- <xsl:if test="@level = 2">
1018
+ <xsl:if test="@level &gt;= 2">
1019
1019
  <xsl:attribute name="margin-top">4pt</xsl:attribute>
1020
1020
  <!-- <xsl:attribute name="margin-left">12mm</xsl:attribute> -->
1021
1021
  </xsl:if>
@@ -1031,15 +1031,15 @@
1031
1031
  <xsl:otherwise>12mm</xsl:otherwise>
1032
1032
  </xsl:choose>
1033
1033
  </xsl:if>
1034
- <xsl:if test="@level = 2">26mm</xsl:if>
1034
+ <xsl:if test="@level &gt;= 2"><xsl:value-of select="(@level - 1) * 26"/>mm</xsl:if>
1035
1035
  </xsl:when> <!-- -->
1036
1036
  <xsl:otherwise>0mm</xsl:otherwise>
1037
1037
  </xsl:choose>
1038
1038
  </xsl:attribute>
1039
1039
  <fo:list-item>
1040
1040
  <fo:list-item-label end-indent="label-end()">
1041
- <xsl:if test="@level =2">
1042
- <xsl:attribute name="start-indent">12mm</xsl:attribute>
1041
+ <xsl:if test="@level &gt;= 2">
1042
+ <xsl:attribute name="start-indent"><xsl:value-of select="(@level - 1) * 12"/>mm</xsl:attribute>
1043
1043
  </xsl:if>
1044
1044
  <fo:block>
1045
1045
  <xsl:if test="@section">
@@ -1258,7 +1258,7 @@
1258
1258
 
1259
1259
  <xsl:variable name="display">
1260
1260
  <xsl:choose>
1261
- <xsl:when test="$level &gt;= 3">false</xsl:when>
1261
+ <xsl:when test="$level &gt; $toc_level">false</xsl:when>
1262
1262
  <xsl:when test="$section = '' and $type = 'clause' and $level &gt;= 2">false</xsl:when>
1263
1263
  <xsl:otherwise>true</xsl:otherwise>
1264
1264
  </xsl:choose>
@@ -1846,58 +1846,6 @@
1846
1846
  </fo:footnote>
1847
1847
  </xsl:template>
1848
1848
 
1849
- <xsl:variable name="p_fn">
1850
- <xsl:for-each select="//itu:fn[local-name(..) = 'p' or ancestor::*[local-name() = 'title']][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
1851
- <!-- copy unique fn -->
1852
- <fn gen_id="{generate-id(.)}">
1853
- <xsl:copy-of select="@*"/>
1854
- <xsl:copy-of select="node()"/>
1855
- </fn>
1856
- </xsl:for-each>
1857
- </xsl:variable>
1858
-
1859
- <xsl:template match="itu:fn[local-name(..) = 'p' or ancestor::*[local-name() = 'title']]" priority="2">
1860
- <xsl:variable name="gen_id" select="generate-id(.)"/>
1861
- <xsl:variable name="reference" select="@reference"/>
1862
- <xsl:variable name="number">
1863
- <!-- <xsl:number level="any" count="itu:p/itu:fn"/> -->
1864
- <xsl:value-of select="count(xalan:nodeset($p_fn)//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
1865
- </xsl:variable>
1866
- <xsl:variable name="count_title_footnotes" select="count(/itu:itu-standard/itu:bibdata/itu:note[@type='title-footnote'])"/>
1867
- <xsl:variable name="count_bibitem_notes" select="count(//itu:bibitem/itu:note)"/>
1868
- <xsl:variable name="current_fn_number" select="$number + $count_title_footnotes + $count_bibitem_notes"/>
1869
- <xsl:choose>
1870
- <xsl:when test="xalan:nodeset($p_fn)//fn[@gen_id = $gen_id]">
1871
- <fo:footnote>
1872
- <fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
1873
- <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
1874
- <xsl:value-of select="$current_fn_number"/>
1875
- </fo:basic-link>
1876
- </fo:inline>
1877
- <fo:footnote-body>
1878
- <fo:block font-size="11pt" margin-bottom="12pt" text-align="justify" font-style="normal" font-weight="normal">
1879
- <xsl:if test="$doctype = 'service-publication'">
1880
- <xsl:attribute name="font-size">10pt</xsl:attribute>
1881
- </xsl:if>
1882
- <fo:inline id="footnote_{@reference}_{$number}" font-size="85%" padding-right="2mm" keep-with-next.within-line="always" baseline-shift="30%">
1883
- <xsl:value-of select="$current_fn_number"/>
1884
- </fo:inline>
1885
- <xsl:for-each select="itu:p">
1886
- <xsl:apply-templates/>
1887
- </xsl:for-each>
1888
- </fo:block>
1889
- </fo:footnote-body>
1890
- </fo:footnote>
1891
- </xsl:when>
1892
- <xsl:otherwise>
1893
- <fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
1894
- <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
1895
- <xsl:value-of select="$current_fn_number"/>
1896
- </fo:basic-link>
1897
- </fo:inline>
1898
- </xsl:otherwise>
1899
- </xsl:choose>
1900
- </xsl:template>
1901
1849
 
1902
1850
 
1903
1851
  <xsl:template match="*[local-name()='tt']" priority="2">
@@ -2898,6 +2846,79 @@
2898
2846
 
2899
2847
  </xsl:attribute-set><xsl:attribute-set name="toc-style">
2900
2848
  <xsl:attribute name="line-height">135%</xsl:attribute>
2849
+ </xsl:attribute-set><xsl:attribute-set name="fn-style">
2850
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2851
+ </xsl:attribute-set><xsl:attribute-set name="fn-num-style">
2852
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2853
+
2854
+
2855
+
2856
+
2857
+
2858
+
2859
+
2860
+
2861
+
2862
+ <xsl:attribute name="font-size">60%</xsl:attribute>
2863
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2864
+
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+
2871
+
2872
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-style">
2873
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
2874
+ <xsl:attribute name="font-style">normal</xsl:attribute>
2875
+ <xsl:attribute name="text-indent">0</xsl:attribute>
2876
+ <xsl:attribute name="start-indent">0</xsl:attribute>
2877
+
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+
2884
+
2885
+
2886
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
2887
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2888
+ <xsl:attribute name="text-align">justify</xsl:attribute>
2889
+
2890
+
2891
+
2892
+
2893
+
2894
+
2895
+
2896
+
2897
+
2898
+
2899
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
2900
+ <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+
2910
+ <xsl:attribute name="font-size">85%</xsl:attribute>
2911
+ <xsl:attribute name="padding-right">2mm</xsl:attribute>
2912
+ <xsl:attribute name="baseline-shift">30%</xsl:attribute>
2913
+
2914
+
2915
+
2916
+
2917
+
2918
+
2919
+
2920
+
2921
+
2901
2922
  </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="OLD_processPrefaceSectionsDefault_Contents">
2902
2923
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2903
2924
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -3897,6 +3918,106 @@
3897
3918
 
3898
3919
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
3899
3920
  <xsl:apply-templates/>
3921
+ </xsl:template><xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
3922
+
3923
+ <!-- list of footnotes to calculate actual footnotes number -->
3924
+ <xsl:variable name="p_fn_">
3925
+ <xsl:choose>
3926
+ <xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
3927
+ <fn gen_id="{generate-id(.)}">
3928
+ <xsl:copy-of select="@*"/>
3929
+ <xsl:copy-of select="node()"/>
3930
+ </fn>
3931
+ </xsl:when>
3932
+ <xsl:otherwise>
3933
+ <!-- itetation for:
3934
+ footnotes in bibdata/title
3935
+ footnotes in bibliography
3936
+ footnotes in document's body (except table's head/body/foot and figure text)
3937
+ -->
3938
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
3939
+ <fn gen_id="{generate-id(.)}">
3940
+ <xsl:copy-of select="@*"/>
3941
+ <xsl:copy-of select="node()"/>
3942
+ </fn>
3943
+ </xsl:for-each>
3944
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
3945
+ <xsl:sort select="@displayorder" data-type="number"/>
3946
+ <xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
3947
+ <!-- copy unique fn -->
3948
+ <fn gen_id="{generate-id(.)}">
3949
+ <xsl:copy-of select="@*"/>
3950
+ <xsl:copy-of select="node()"/>
3951
+ </fn>
3952
+ </xsl:for-each>
3953
+ </xsl:for-each>
3954
+ </xsl:otherwise>
3955
+ </xsl:choose>
3956
+ </xsl:variable>
3957
+ <xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
3958
+
3959
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
3960
+ <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
3961
+ <xsl:variable name="reference" select="@reference"/>
3962
+ <!-- fn sequence number in document -->
3963
+ <xsl:variable name="current_fn_number">
3964
+ <xsl:choose>
3965
+ <xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
3966
+ <xsl:otherwise>
3967
+ <xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
3968
+ </xsl:otherwise>
3969
+ </xsl:choose>
3970
+ </xsl:variable>
3971
+ <xsl:variable name="current_fn_number_text">
3972
+ <xsl:value-of select="$current_fn_number"/>
3973
+
3974
+
3975
+ </xsl:variable>
3976
+
3977
+ <xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
3978
+ <xsl:variable name="footnote_inline">
3979
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
3980
+
3981
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
3982
+ <xsl:value-of select="$current_fn_number_text"/>
3983
+ </fo:basic-link>
3984
+ </fo:inline>
3985
+ </xsl:variable>
3986
+ <!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
3987
+ gen_id=<xsl:value-of select="$gen_id"/> -->
3988
+ <xsl:choose>
3989
+ <xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
3990
+ <xsl:copy-of select="$footnote_inline"/>
3991
+ </xsl:when>
3992
+ <xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
3993
+ <fo:footnote xsl:use-attribute-sets="fn-style">
3994
+ <xsl:copy-of select="$footnote_inline"/>
3995
+ <fo:footnote-body>
3996
+
3997
+ <fo:block-container text-indent="0" start-indent="0">
3998
+
3999
+
4000
+ <fo:block xsl:use-attribute-sets="fn-body-style">
4001
+
4002
+
4003
+ <xsl:if test="$doctype = 'service-publication'">
4004
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
4005
+ </xsl:if>
4006
+
4007
+ <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
4008
+
4009
+ <xsl:value-of select="$current_fn_number_text"/>
4010
+ </fo:inline>
4011
+ <xsl:apply-templates/>
4012
+ </fo:block>
4013
+ </fo:block-container>
4014
+ </fo:footnote-body>
4015
+ </fo:footnote>
4016
+ </xsl:when>
4017
+ <xsl:otherwise>
4018
+ <xsl:copy-of select="$footnote_inline"/>
4019
+ </xsl:otherwise>
4020
+ </xsl:choose>
3900
4021
  </xsl:template><xsl:template name="fn_display">
3901
4022
  <xsl:variable name="references">
3902
4023
 
@@ -4108,6 +4229,8 @@
4108
4229
 
4109
4230
  </fo:basic-link>
4110
4231
  </fo:inline>
4232
+ </xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
4233
+ <fo:inline><xsl:value-of select="."/></fo:inline>
4111
4234
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
4112
4235
  <fo:inline>
4113
4236
  <xsl:apply-templates/>
@@ -5117,22 +5240,6 @@
5117
5240
  <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
5118
5241
  <xsl:apply-templates/>
5119
5242
  </fo:inline>
5120
- </xsl:template><xsl:template match="*[local-name() = 'modification']">
5121
- <xsl:variable name="title-modified">
5122
-
5123
-
5124
- <xsl:call-template name="getTitle">
5125
- <xsl:with-param name="name" select="'title-modified'"/>
5126
- </xsl:call-template>
5127
-
5128
- </xsl:variable>
5129
-
5130
- <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
5131
- <xsl:choose>
5132
- <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
5133
- <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
5134
- </xsl:choose>
5135
- <xsl:apply-templates/>
5136
5243
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
5137
5244
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
5138
5245
 
@@ -6372,45 +6479,69 @@
6372
6479
  <xsl:variable name="termsource_text">
6373
6480
  <xsl:apply-templates/>
6374
6481
  </xsl:variable>
6375
-
6376
- <xsl:choose>
6482
+ <xsl:copy-of select="$termsource_text"/>
6483
+ <!-- <xsl:choose>
6377
6484
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
6378
- <!-- <xsl:apply-templates /> -->
6379
6485
  <xsl:copy-of select="$termsource_text"/>
6380
6486
  </xsl:when>
6381
6487
  <xsl:otherwise>
6382
-
6383
-
6488
+ <xsl:if test="$namespace = 'bsi'">
6489
+ <xsl:choose>
6490
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
6491
+ <xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
6492
+ </xsl:choose>
6493
+ </xsl:if>
6494
+ <xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
6384
6495
  <xsl:text>[</xsl:text>
6385
-
6386
- <!-- <xsl:apply-templates /> -->
6496
+ </xsl:if>
6387
6497
  <xsl:copy-of select="$termsource_text"/>
6388
-
6389
-
6498
+ <xsl:if test="$namespace = 'bsi'">
6499
+ <xsl:choose>
6500
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
6501
+ <xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
6502
+ </xsl:choose>
6503
+ </xsl:if>
6504
+ <xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
6390
6505
  <xsl:text>]</xsl:text>
6391
-
6506
+ </xsl:if>
6392
6507
  </xsl:otherwise>
6393
- </xsl:choose>
6508
+ </xsl:choose> -->
6394
6509
  </fo:block>
6395
6510
  </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
6396
6511
  <xsl:if test="normalize-space() != ''">
6397
6512
  <xsl:value-of select="."/>
6398
6513
  </xsl:if>
6399
- </xsl:template><xsl:variable name="localized.source">
6400
- <xsl:call-template name="getLocalizedString">
6401
- <xsl:with-param name="key">source</xsl:with-param>
6402
- </xsl:call-template>
6403
- </xsl:variable><xsl:template match="*[local-name() = 'origin']">
6514
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
6515
+ <fo:inline>
6516
+
6517
+
6518
+ <xsl:value-of select="."/>
6519
+ </fo:inline>
6520
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
6404
6521
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
6405
6522
  <xsl:if test="normalize-space(@citeas) = ''">
6406
6523
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
6407
6524
  </xsl:if>
6408
-
6409
6525
  <fo:inline xsl:use-attribute-sets="origin-style">
6410
6526
  <xsl:apply-templates/>
6411
6527
  </fo:inline>
6528
+ </fo:basic-link>
6529
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
6530
+ <xsl:variable name="title-modified">
6412
6531
 
6413
- </fo:basic-link>
6532
+
6533
+ <xsl:call-template name="getTitle">
6534
+ <xsl:with-param name="name" select="'title-modified'"/>
6535
+ </xsl:call-template>
6536
+
6537
+ </xsl:variable>
6538
+
6539
+ <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
6540
+ <xsl:choose>
6541
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
6542
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
6543
+ </xsl:choose>
6544
+ <xsl:apply-templates/>
6414
6545
  </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
6415
6546
  <fo:inline><xsl:apply-templates/></fo:inline>
6416
6547
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
@@ -7022,7 +7153,31 @@
7022
7153
  <fo:block-container border="1pt solid black" width="50%">
7023
7154
  <fo:block> </fo:block>
7024
7155
  </fo:block-container>
7025
- </xsl:template><xsl:template match="*[local-name() = 'toc']">
7156
+ </xsl:template><xsl:variable name="toc_level">
7157
+ <xsl:choose>
7158
+ <xsl:when test="1 = 2"/> <!-- to do https://github.com/metanorma/mn-native-pdf/issues/337: if there is value in xml -->
7159
+ <xsl:otherwise><!-- default value -->
7160
+
7161
+
7162
+
7163
+
7164
+
7165
+
7166
+
7167
+ 2
7168
+
7169
+
7170
+
7171
+
7172
+
7173
+
7174
+
7175
+
7176
+
7177
+
7178
+ </xsl:otherwise>
7179
+ </xsl:choose>
7180
+ </xsl:variable><xsl:template match="*[local-name() = 'toc']">
7026
7181
  <xsl:param name="colwidths"/>
7027
7182
  <xsl:variable name="colwidths_">
7028
7183
  <xsl:choose>
@@ -7662,4 +7817,14 @@
7662
7817
  </xsl:otherwise>
7663
7818
  </xsl:choose>
7664
7819
  </xsl:if>
7820
+ </xsl:template><xsl:template name="setAltText">
7821
+ <xsl:param name="value"/>
7822
+ <xsl:attribute name="fox:alt-text">
7823
+ <xsl:choose>
7824
+ <xsl:when test="normalize-space($value) != ''">
7825
+ <xsl:value-of select="$value"/>
7826
+ </xsl:when>
7827
+ <xsl:otherwise>_</xsl:otherwise>
7828
+ </xsl:choose>
7829
+ </xsl:attribute>
7665
7830
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.4.3".freeze
3
+ VERSION = "1.4.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -356,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  - !ruby/object:Gem::Version
357
357
  version: '0'
358
358
  requirements: []
359
- rubygems_version: 3.2.22
359
+ rubygems_version: 3.2.32
360
360
  signing_key:
361
361
  specification_version: 4
362
362
  summary: Metanorma for the ITU