metanorma-itu 2.2.12 → 2.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -363,6 +363,9 @@
363
363
  <fo:page-sequence master-reference="SP-first-page" force-page-count="no-force">
364
364
  <fo:flow flow-name="xsl-region-body">
365
365
  <fo:block font-size="10pt" font-style="italic" text-align="center">
366
+ <xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
367
+ <xsl:attribute name="font-style">normal</xsl:attribute>
368
+ </xsl:if>
366
369
  <fo:block>
367
370
  <xsl:call-template name="getLocalizedString">
368
371
  <xsl:with-param name="key">annex_to_itu_ob</xsl:with-param>
@@ -1095,6 +1098,9 @@
1095
1098
  <xsl:variable name="subtitle" select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
1096
1099
  <xsl:if test="$subtitle != ''">
1097
1100
  <fo:block margin-top="18pt" font-weight="normal" font-style="italic">
1101
+ <xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
1102
+ <xsl:attribute name="font-style">normal</xsl:attribute>
1103
+ </xsl:if>
1098
1104
  <xsl:value-of select="$subtitle"/>
1099
1105
  </fo:block>
1100
1106
  </xsl:if>
@@ -1103,6 +1109,9 @@
1103
1109
  <xsl:if test="$doctype = 'resolution' and $resolution-placedate != ''">
1104
1110
  <fo:block font-size="11pt" margin-top="6pt" font-weight="normal">
1105
1111
  <fo:inline font-style="italic">
1112
+ <xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
1113
+ <xsl:attribute name="font-style">normal</xsl:attribute>
1114
+ </xsl:if>
1106
1115
  <xsl:text>(</xsl:text><xsl:value-of select="$resolution-placedate"/><xsl:text>)</xsl:text>
1107
1116
  </fo:inline>
1108
1117
  <xsl:apply-templates select="/itu:itu-standard/itu:bibdata/itu:note[@type = 'title-footnote']" mode="title_footnote"/>
@@ -1483,6 +1492,9 @@
1483
1492
 
1484
1493
  <xsl:template match="itu:clause[@id='draft-warning']/itu:title" mode="caution">
1485
1494
  <fo:block font-size="16pt" font-family="Times New Roman" font-style="italic" font-weight="bold" text-align="center" space-after="6pt" role="H1">
1495
+ <xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
1496
+ <xsl:attribute name="font-style">normal</xsl:attribute>
1497
+ </xsl:if>
1486
1498
  <xsl:apply-templates/>
1487
1499
  <xsl:apply-templates select="following-sibling::*[1][local-name() = 'variant-title'][@type = 'sub']" mode="subtitle"/>
1488
1500
  </fo:block>
@@ -3153,6 +3165,10 @@
3153
3165
  </xsl:attribute-set> <!-- formula-stem-number-style -->
3154
3166
  <!-- End Formula's styles -->
3155
3167
 
3168
+ <xsl:template name="refine_formula-stem-number-style">
3169
+
3170
+ </xsl:template>
3171
+
3156
3172
  <xsl:attribute-set name="image-style">
3157
3173
  <xsl:attribute name="text-align">center</xsl:attribute>
3158
3174
 
@@ -3653,13 +3669,13 @@
3653
3669
 
3654
3670
  <xsl:template name="processPrefaceSectionsDefault_Contents">
3655
3671
  <xsl:variable name="nodes_preface_">
3656
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
3672
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
3657
3673
  <node id="{@id}"/>
3658
3674
  </xsl:for-each>
3659
3675
  </xsl:variable>
3660
3676
  <xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
3661
3677
 
3662
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
3678
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
3663
3679
  <xsl:sort select="@displayorder" data-type="number"/>
3664
3680
 
3665
3681
  <!-- process Section's title -->
@@ -3693,12 +3709,12 @@
3693
3709
  <xsl:apply-templates select="." mode="contents"/>
3694
3710
  </xsl:for-each>
3695
3711
 
3696
- <xsl:for-each select="/*/*[local-name()='annex']">
3712
+ <!-- <xsl:for-each select="/*/*[local-name()='annex']">
3697
3713
  <xsl:sort select="@displayorder" data-type="number"/>
3698
3714
  <xsl:apply-templates select="." mode="contents"/>
3699
- </xsl:for-each>
3715
+ </xsl:for-each> -->
3700
3716
 
3701
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
3717
+ <xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
3702
3718
  <xsl:sort select="@displayorder" data-type="number"/>
3703
3719
  <xsl:apply-templates select="." mode="contents"/>
3704
3720
  </xsl:for-each>
@@ -4166,7 +4182,7 @@
4166
4182
  <fo:table-row>
4167
4183
  <fo:table-cell column-number="2">
4168
4184
  <xsl:copy-of select="$table-preamble"/>
4169
- <fo:block>
4185
+ <fo:block role="SKIP">
4170
4186
  <xsl:call-template name="setTrackChangesStyles">
4171
4187
  <xsl:with-param name="isAdded" select="$isAdded"/>
4172
4188
  <xsl:with-param name="isDeleted" select="$isDeleted"/>
@@ -4209,7 +4225,7 @@
4209
4225
  <xsl:param name="continued"/>
4210
4226
  <xsl:if test="normalize-space() != ''">
4211
4227
 
4212
- <fo:block xsl:use-attribute-sets="table-name-style">
4228
+ <fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
4213
4229
 
4214
4230
  <xsl:call-template name="refine_table-name-style">
4215
4231
  <xsl:with-param name="continued" select="$continued"/>
@@ -4594,8 +4610,8 @@
4594
4610
  <xsl:template name="table-header-title">
4595
4611
  <xsl:param name="cols-count"/>
4596
4612
  <!-- row for title -->
4597
- <fo:table-row>
4598
- <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
4613
+ <fo:table-row role="SKIP">
4614
+ <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
4599
4615
 
4600
4616
  <xsl:call-template name="refine_table-header-title-style"/>
4601
4617
 
@@ -4604,7 +4620,7 @@
4604
4620
  </xsl:apply-templates>
4605
4621
 
4606
4622
  <xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
4607
- <fo:block/>
4623
+ <fo:block role="SKIP"/>
4608
4624
  </xsl:if>
4609
4625
 
4610
4626
  </fo:table-cell>
@@ -4712,7 +4728,7 @@
4712
4728
  <!-- fn will be processed inside 'note' processing -->
4713
4729
 
4714
4730
  <xsl:if test="$doctype = 'service-publication'">
4715
- <fo:block margin-top="7pt" margin-bottom="2pt"><fo:inline>____________</fo:inline></fo:block>
4731
+ <fo:block margin-top="7pt" margin-bottom="2pt" role="SKIP"><fo:inline>____________</fo:inline></fo:block>
4716
4732
  </xsl:if>
4717
4733
 
4718
4734
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -4929,7 +4945,7 @@
4929
4945
 
4930
4946
  <xsl:call-template name="refine_table-header-cell-style"/>
4931
4947
 
4932
- <fo:block>
4948
+ <fo:block role="SKIP">
4933
4949
  <xsl:apply-templates/>
4934
4950
  </fo:block>
4935
4951
  </fo:table-cell>
@@ -4982,7 +4998,7 @@
4982
4998
  <xsl:attribute name="text-align">left</xsl:attribute>
4983
4999
  </xsl:if>
4984
5000
 
4985
- <fo:block>
5001
+ <fo:block role="SKIP">
4986
5002
 
4987
5003
  <xsl:if test="$isGenerateTableIF = 'true'">
4988
5004
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -5857,7 +5873,7 @@
5857
5873
  -->
5858
5874
  <fo:table-row>
5859
5875
  <fo:table-cell number-columns-spanned="2">
5860
- <fo:block>
5876
+ <fo:block role="SKIP">
5861
5877
  <xsl:call-template name="note"/>
5862
5878
  </fo:block>
5863
5879
  </fo:table-cell>
@@ -5922,7 +5938,7 @@
5922
5938
 
5923
5939
  <xsl:call-template name="refine_dt-cell-style"/>
5924
5940
 
5925
- <fo:block xsl:use-attribute-sets="dt-block-style">
5941
+ <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
5926
5942
  <xsl:copy-of select="@id"/>
5927
5943
 
5928
5944
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5952,7 +5968,7 @@
5952
5968
 
5953
5969
  <xsl:call-template name="refine_dd-cell-style"/>
5954
5970
 
5955
- <fo:block>
5971
+ <fo:block role="SKIP">
5956
5972
 
5957
5973
  <xsl:if test="$isGenerateTableIF = 'true'">
5958
5974
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -6103,6 +6119,10 @@
6103
6119
 
6104
6120
  <xsl:template name="refine_italic_style">
6105
6121
 
6122
+ <xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
6123
+ <xsl:attribute name="font-style">normal</xsl:attribute>
6124
+ </xsl:if>
6125
+
6106
6126
  </xsl:template>
6107
6127
 
6108
6128
  <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
@@ -6327,11 +6347,41 @@
6327
6347
 
6328
6348
  <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
6329
6349
  <xsl:variable name="text" select="normalize-space(.)"/>
6330
- <fo:inline font-size="75%">
6350
+ <fo:inline font-size="75%" role="SKIP">
6331
6351
  <xsl:if test="string-length($text) &gt; 0">
6332
- <xsl:call-template name="recursiveSmallCaps">
6333
- <xsl:with-param name="text" select="$text"/>
6334
- </xsl:call-template>
6352
+ <xsl:variable name="smallCapsText">
6353
+ <xsl:call-template name="recursiveSmallCaps">
6354
+ <xsl:with-param name="text" select="$text"/>
6355
+ </xsl:call-template>
6356
+ </xsl:variable>
6357
+ <!-- merge neighboring fo:inline -->
6358
+ <xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
6359
+ <xsl:choose>
6360
+ <xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
6361
+ <xsl:when test="self::fo:inline and @font-size">
6362
+ <xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
6363
+ <!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
6364
+ <xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
6365
+ <xsl:variable name="next_text">
6366
+ <xsl:choose>
6367
+ <xsl:when test="$next_text_ = 0">99999999</xsl:when>
6368
+ <xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
6369
+ </xsl:choose>
6370
+ </xsl:variable>
6371
+ <!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
6372
+ <fo:inline>
6373
+ <xsl:copy-of select="@*"/>
6374
+ <xsl:copy-of select="./node()"/>
6375
+ <xsl:for-each select="following-sibling::node()[position() &lt; $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
6376
+ <xsl:copy-of select="./node()"/>
6377
+ </xsl:for-each>
6378
+ </fo:inline>
6379
+ </xsl:when>
6380
+ <xsl:otherwise>
6381
+ <xsl:copy-of select="."/>
6382
+ </xsl:otherwise>
6383
+ </xsl:choose>
6384
+ </xsl:for-each>
6335
6385
  </xsl:if>
6336
6386
  </fo:inline>
6337
6387
  </xsl:template>
@@ -6343,7 +6393,7 @@
6343
6393
  <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
6344
6394
  <xsl:choose>
6345
6395
  <xsl:when test="$char=$upperCase">
6346
- <fo:inline font-size="{100 div 0.75}%">
6396
+ <fo:inline font-size="{100 div 0.75}%" role="SKIP">
6347
6397
  <xsl:value-of select="$upperCase"/>
6348
6398
  </fo:inline>
6349
6399
  </xsl:when>
@@ -6505,6 +6555,10 @@
6505
6555
 
6506
6556
  <xsl:when test="not(contains($text, $separator))">
6507
6557
  <word>
6558
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
6559
+ <xsl:text>
6560
+  </xsl:text> <!-- to add distance between dt and dd -->
6561
+ </xsl:if>
6508
6562
  <xsl:call-template name="enclose_text_in_tags">
6509
6563
  <xsl:with-param name="text" select="normalize-space($text)"/>
6510
6564
  <xsl:with-param name="tags" select="$tags"/>
@@ -6513,6 +6567,10 @@
6513
6567
  </xsl:when>
6514
6568
  <xsl:otherwise>
6515
6569
  <word>
6570
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
6571
+ <xsl:text>
6572
+  </xsl:text> <!-- to add distance between dt and dd -->
6573
+ </xsl:if>
6516
6574
  <xsl:call-template name="enclose_text_in_tags">
6517
6575
  <xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
6518
6576
  <xsl:with-param name="tags" select="$tags"/>
@@ -6696,6 +6754,10 @@
6696
6754
  <xsl:template name="getSimpleTable">
6697
6755
  <xsl:param name="id"/>
6698
6756
 
6757
+ <!-- <test0>
6758
+ <xsl:copy-of select="."/>
6759
+ </test0> -->
6760
+
6699
6761
  <xsl:variable name="simple-table">
6700
6762
 
6701
6763
  <!-- Step 0. replace <br/> to <p>...</p> -->
@@ -7741,7 +7803,7 @@
7741
7803
  <fo:table-body>
7742
7804
  <fo:table-row>
7743
7805
  <fo:table-cell display-align="center">
7744
- <fo:block xsl:use-attribute-sets="formula-stem-block-style">
7806
+ <fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
7745
7807
 
7746
7808
  <xsl:call-template name="refine_formula-stem-block-style"/>
7747
7809
 
@@ -7749,7 +7811,10 @@
7749
7811
  </fo:block>
7750
7812
  </fo:table-cell>
7751
7813
  <fo:table-cell display-align="center">
7752
- <fo:block xsl:use-attribute-sets="formula-stem-number-style">
7814
+ <fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
7815
+
7816
+ <xsl:call-template name="refine_formula-stem-number-style"/>
7817
+
7753
7818
  <xsl:apply-templates select="../*[local-name() = 'name']"/>
7754
7819
  </fo:block>
7755
7820
  </fo:table-cell>
@@ -9267,7 +9332,7 @@
9267
9332
  <!-- second td with sourcecode -->
9268
9333
  <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
9269
9334
  <fo:table-cell>
9270
- <fo:block>
9335
+ <fo:block role="SKIP">
9271
9336
  <xsl:apply-templates/>
9272
9337
  </fo:block>
9273
9338
  </fo:table-cell>
@@ -9754,7 +9819,7 @@
9754
9819
 
9755
9820
  <xsl:call-template name="setTableCellAttributes"/>
9756
9821
 
9757
- <fo:block>
9822
+ <fo:block role="SKIP">
9758
9823
  <xsl:apply-templates/>
9759
9824
  </fo:block>
9760
9825
  </fo:table-cell>
@@ -9776,7 +9841,7 @@
9776
9841
 
9777
9842
  <xsl:call-template name="setTableCellAttributes"/>
9778
9843
 
9779
- <fo:block>
9844
+ <fo:block role="SKIP">
9780
9845
  <xsl:apply-templates/>
9781
9846
  </fo:block>
9782
9847
  </fo:table-cell>
@@ -10558,7 +10623,48 @@
10558
10623
  </xsl:choose>
10559
10624
  </xsl:when>
10560
10625
  <xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
10561
- <xsl:value-of select="@label"/>
10626
+
10627
+ <xsl:variable name="label">
10628
+
10629
+ <xsl:variable name="type" select="../@type"/>
10630
+
10631
+ <xsl:variable name="style_prefix_">
10632
+ <xsl:if test="$type = 'roman'">
10633
+ <!-- Example: (i) -->
10634
+ </xsl:if>
10635
+ </xsl:variable>
10636
+ <xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
10637
+
10638
+ <xsl:variable name="style_suffix_">
10639
+ <xsl:choose>
10640
+ <xsl:when test="$type = 'arabic'">
10641
+ )
10642
+ </xsl:when>
10643
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
10644
+ )
10645
+ </xsl:when>
10646
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
10647
+ .
10648
+ </xsl:when>
10649
+ <xsl:when test="$type = 'roman'">
10650
+ )
10651
+ </xsl:when>
10652
+ <xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
10653
+ </xsl:choose>
10654
+ </xsl:variable>
10655
+ <xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
10656
+
10657
+ <xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
10658
+ <xsl:value-of select="$style_prefix"/>
10659
+ </xsl:if>
10660
+ <xsl:value-of select="@label"/>
10661
+ <xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
10662
+ <xsl:value-of select="$style_suffix"/>
10663
+ </xsl:if>
10664
+ </xsl:variable>
10665
+
10666
+ <xsl:value-of select="normalize-space($label)"/>
10667
+
10562
10668
  </xsl:when>
10563
10669
  <xsl:otherwise> <!-- for ordered lists 'ol' -->
10564
10670
 
@@ -10751,7 +10857,7 @@
10751
10857
  <xsl:call-template name="refine_list-item-style"/>
10752
10858
 
10753
10859
  <fo:list-item-label end-indent="label-end()">
10754
- <fo:block xsl:use-attribute-sets="list-item-label-style">
10860
+ <fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
10755
10861
 
10756
10862
  <xsl:call-template name="refine_list-item-label-style"/>
10757
10863
 
@@ -10765,7 +10871,7 @@
10765
10871
  </fo:block>
10766
10872
  </fo:list-item-label>
10767
10873
  <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
10768
- <fo:block>
10874
+ <fo:block role="SKIP">
10769
10875
 
10770
10876
  <xsl:call-template name="refine_list-item-body-style"/>
10771
10877
 
@@ -11044,10 +11150,10 @@
11044
11150
  <fo:table-body>
11045
11151
  <fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
11046
11152
 
11047
- <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
11048
- <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
11049
- <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
11050
- <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
11153
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
11154
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
11155
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
11156
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
11051
11157
  </fo:table-row>
11052
11158
  <xsl:apply-templates/>
11053
11159
  </fo:table-body>
@@ -11062,7 +11168,7 @@
11062
11168
 
11063
11169
  <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
11064
11170
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
11065
- <fo:block><xsl:apply-templates/></fo:block>
11171
+ <fo:block role="SKIP"><xsl:apply-templates/></fo:block>
11066
11172
  </fo:table-cell>
11067
11173
  </xsl:template>
11068
11174
  <!-- ============ -->
@@ -11165,8 +11271,8 @@
11165
11271
  <fo:table-column column-width="80%"/>
11166
11272
  <fo:table-body>
11167
11273
  <fo:table-row>
11168
- <fo:table-cell><fo:block><xsl:value-of select="$bibitem_label"/></fo:block></fo:table-cell>
11169
- <fo:table-cell><fo:block><xsl:copy-of select="$bibitem_body"/></fo:block></fo:table-cell>
11274
+ <fo:table-cell><fo:block role="SKIP"><xsl:value-of select="$bibitem_label"/></fo:block></fo:table-cell>
11275
+ <fo:table-cell><fo:block role="SKIP"><xsl:copy-of select="$bibitem_body"/></fo:block></fo:table-cell>
11170
11276
  </fo:table-row>
11171
11277
  </fo:table-body>
11172
11278
  </fo:table>
@@ -11393,7 +11499,7 @@
11393
11499
  <xsl:for-each select="*[local-name() = 'tab']">
11394
11500
  <xsl:variable name="current_id" select="generate-id()"/>
11395
11501
  <fo:table-cell>
11396
- <fo:block line-height-shift-adjustment="disregard-shifts">
11502
+ <fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
11397
11503
  <xsl:call-template name="insert_basic_link">
11398
11504
  <xsl:with-param name="element">
11399
11505
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -11411,7 +11517,7 @@
11411
11517
  </xsl:for-each>
11412
11518
  <!-- last column - for page numbers -->
11413
11519
  <fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
11414
- <fo:block>
11520
+ <fo:block role="SKIP">
11415
11521
  <xsl:call-template name="insert_basic_link">
11416
11522
  <xsl:with-param name="element">
11417
11523
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -0,0 +1,50 @@
1
+ {% if doctype == "Service Publication" %}
2
+ {% else %}
3
+ == copyright-statement
4
+ === {blank}
5
+ &#xa9; ITU {{ docyear }}
6
+
7
+ All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
8
+
9
+ {% if doctype == "Recommendation" %}
10
+ == license-statement
11
+ === INTELLECTUAL PROPERTY RIGHTS
12
+
13
+ ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
14
+
15
+ As of the date of approval of this Recommendation, ITU had {% if ip_notice_received %}{% else %}not{% endif %} received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementers are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database at http://www.itu.int/ITU-T/ipr/[].
16
+ {% endif %}
17
+
18
+ == legal-statement
19
+ === FOREWORD
20
+
21
+ The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications , information and communication technologies (ICTs). The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
22
+
23
+ The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU T study groups which, in turn, produce Recommendations on these topics.
24
+
25
+ The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
26
+
27
+ In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
28
+
29
+ {% if doctype == "Recommendation" %}
30
+ ==== NOTE
31
+
32
+ In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
33
+
34
+ Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure, e.g., interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
35
+
36
+ {% endif %}
37
+
38
+ {% if unpublished %}
39
+ [[draft-warning]]
40
+ === CAUTION! PREPUBLISHED {{ doctype | upcase }}
41
+
42
+ This prepublication is an unedited version of a recently approved {{doctype}}.
43
+ It will be replaced by the published version after editing. Therefore,
44
+ there will be differences between this prepublication and the published
45
+ version.
46
+ {% endif %}
47
+ {% endif %}
48
+
49
+
50
+
@@ -25,6 +25,10 @@ module Metanorma
25
25
  node.attr("legacy-do-not-insert-missing-sections")
26
26
  end
27
27
 
28
+ def boilerplate_file(_xmldoc)
29
+ File.join(@libdir, "boilerplate.adoc")
30
+ end
31
+
28
32
  def makexml(node)
29
33
  @draft = node.attributes.has_key?("draft")
30
34
  super
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "2.2.12".freeze
3
+ VERSION = "2.2.13".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: 2.2.12
4
+ version: 2.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -321,7 +321,7 @@ files:
321
321
  - lib/metanorma/itu/basicdoc.rng
322
322
  - lib/metanorma/itu/biblio-standoc.rng
323
323
  - lib/metanorma/itu/biblio.rng
324
- - lib/metanorma/itu/boilerplate.xml
324
+ - lib/metanorma/itu/boilerplate.adoc
325
325
  - lib/metanorma/itu/cleanup.rb
326
326
  - lib/metanorma/itu/converter.rb
327
327
  - lib/metanorma/itu/front.rb
@@ -1,52 +0,0 @@
1
- <boilerplate>
2
- {% if doctype == "Service Publication" %}
3
- {% else %}
4
- <copyright-statement>
5
- <clause>
6
- <p>&#xa9; ITU {{ docyear }}</p>
7
- <p>All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.</p>
8
- </clause>
9
- </copyright-statement>
10
- {% if doctype == "Recommendation" %}
11
- <license-statement>
12
- <clause>
13
- <title>INTELLECTUAL PROPERTY RIGHTS</title>
14
- <p>ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.</p>
15
- <p>As of the date of approval of this Recommendation, ITU had {% if ip_notice_received %}{% else %}not{% endif %} received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementers are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database at <link target="http://www.itu.int/ITU-T/ipr/"/>.
16
- </p>
17
- </clause>
18
- </license-statement>
19
- {% endif %}
20
- <legal-statement>
21
- <clause>
22
- <title>FOREWORD</title>
23
- <p>The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications , information and communication technologies (ICTs). The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.</p>
24
- <p>The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU T study groups which, in turn, produce Recommendations on these topics.</p>
25
- <p>The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1 .</p>
26
- <p>In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.</p>
27
-
28
- {% if doctype == "Recommendation" %}
29
- <clause>
30
- <title>NOTE</title>
31
- <p>In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency .</p>
32
- <p>Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure, e.g., interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party .</p>
33
- </clause>
34
- {% endif %}
35
- </clause>
36
-
37
- {% if unpublished %}
38
- <clause id="draft-warning">
39
- <title>CAUTION! PREPUBLISHED {{ doctype | upcase }}</title>
40
- <p>This
41
- prepublication is an unedited version of a recently approved {{doctype}}.
42
- It will be replaced by the published version after editing. Therefore,
43
- there will be differences between this prepublication and the published
44
- version.</p>
45
- </clause>
46
- {% endif %}
47
- </legal-statement>
48
- {% endif %}
49
- </boilerplate>
50
-
51
-
52
-