metanorma-itu 2.8.13 → 2.8.14
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.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/html/_coverpage.css +4 -0
- data/lib/isodoc/itu/html/htmlstyle.css +4 -0
- data/lib/isodoc/itu/itu.implementers-guide.xsl +164 -80
- data/lib/isodoc/itu/itu.in-force.xsl +164 -80
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +164 -80
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +164 -80
- data/lib/isodoc/itu/itu.recommendation.xsl +164 -80
- data/lib/isodoc/itu/itu.resolution.xsl +164 -80
- data/lib/isodoc/itu/itu.service-publication.xsl +164 -80
- data/lib/isodoc/itu/itu.technical-paper.xsl +164 -80
- data/lib/isodoc/itu/itu.technical-report.xsl +164 -80
- data/lib/metanorma/itu/basicdoc.rng +22 -13
- data/lib/metanorma/itu/converter.rb +6 -2
- data/lib/metanorma/itu/isodoc.rng +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bde0efdd7763cdf181075e4c046f2efe868e764395b6fde491083c3548acff3
|
|
4
|
+
data.tar.gz: 43d07a4790c0bae983de907410ba191f1cfbcaad23e4ae2807eeb761ef2039d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c82d7ed8cd3954a1f2cd628ab3bd9b197c2a4ce812d6bc4c30eb0f4d5ec021afe986187975abf68ff59106ab050724d5d35f951d4e8073dbf0e4ac8e41232247
|
|
7
|
+
data.tar.gz: 6ba8b94f4f0e6ec59b43fe930acb6b02c7f6bc71b04678887da8a349af004b59758489e0e5535306c5a7df06644e88c6974212c04744424224c56d50c89c70f0
|
|
@@ -3203,6 +3203,7 @@
|
|
|
3203
3203
|
|
|
3204
3204
|
<!-- Characters -->
|
|
3205
3205
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
3206
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
3206
3207
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
3207
3208
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
3208
3209
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -6628,7 +6629,15 @@
|
|
|
6628
6629
|
<!-- END requirement, recommendation, permission table -->
|
|
6629
6630
|
<!-- ========== -->
|
|
6630
6631
|
|
|
6632
|
+
<xsl:attribute-set name="terms-style">
|
|
6633
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
6634
|
+
</xsl:attribute-set>
|
|
6635
|
+
|
|
6636
|
+
<xsl:template name="refine_terms-style">
|
|
6637
|
+
</xsl:template>
|
|
6638
|
+
|
|
6631
6639
|
<xsl:attribute-set name="term-style">
|
|
6640
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
6632
6641
|
</xsl:attribute-set> <!-- term-style -->
|
|
6633
6642
|
|
|
6634
6643
|
<xsl:template name="refine_term-style">
|
|
@@ -6739,7 +6748,10 @@
|
|
|
6739
6748
|
<xsl:template match="mn:terms">
|
|
6740
6749
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
6741
6750
|
<xsl:call-template name="setNamedDestination"/>
|
|
6742
|
-
<fo:block id="{@id}">
|
|
6751
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
6752
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
6753
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6754
|
+
|
|
6743
6755
|
<xsl:apply-templates/>
|
|
6744
6756
|
</fo:block>
|
|
6745
6757
|
</xsl:template>
|
|
@@ -6748,6 +6760,7 @@
|
|
|
6748
6760
|
<xsl:call-template name="setNamedDestination"/>
|
|
6749
6761
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
6750
6762
|
<xsl:call-template name="refine_term-style"/>
|
|
6763
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6751
6764
|
|
|
6752
6765
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
6753
6766
|
</fo:block>
|
|
@@ -6978,7 +6991,9 @@
|
|
|
6978
6991
|
|
|
6979
6992
|
<xsl:template match="mn:definitions">
|
|
6980
6993
|
<xsl:call-template name="setNamedDestination"/>
|
|
6981
|
-
<fo:block id="{@id}">
|
|
6994
|
+
<fo:block id="{@id}" role="Sect">
|
|
6995
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6996
|
+
|
|
6982
6997
|
<xsl:apply-templates/>
|
|
6983
6998
|
</fo:block>
|
|
6984
6999
|
</xsl:template>
|
|
@@ -7053,6 +7068,7 @@
|
|
|
7053
7068
|
<xsl:template match="mn:termexample/mn:p">
|
|
7054
7069
|
<xsl:variable name="element">inline
|
|
7055
7070
|
|
|
7071
|
+
<xsl:value-of select="$example_display_in"/>
|
|
7056
7072
|
</xsl:variable>
|
|
7057
7073
|
<xsl:choose>
|
|
7058
7074
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -7465,6 +7481,9 @@
|
|
|
7465
7481
|
</xsl:attribute-set><!-- table-note-style -->
|
|
7466
7482
|
|
|
7467
7483
|
<xsl:template name="refine_table-note-style">
|
|
7484
|
+
<xsl:if test="self::mn:note">
|
|
7485
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
7486
|
+
</xsl:if>
|
|
7468
7487
|
</xsl:template> <!-- refine_table-note-style -->
|
|
7469
7488
|
|
|
7470
7489
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -8790,7 +8809,7 @@
|
|
|
8790
8809
|
</xsl:template> <!-- table/note -->
|
|
8791
8810
|
|
|
8792
8811
|
<xsl:template match="mn:table/*[self::mn:note or self::mn:example]/mn:p | mn:table/mn:tfoot//*[self::mn:note or self::mn:example]/mn:p" priority="2">
|
|
8793
|
-
<xsl:apply-templates
|
|
8812
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
8794
8813
|
</xsl:template>
|
|
8795
8814
|
|
|
8796
8815
|
<!-- ============================ -->
|
|
@@ -9720,6 +9739,7 @@
|
|
|
9720
9739
|
<!-- ========================== -->
|
|
9721
9740
|
|
|
9722
9741
|
<xsl:attribute-set name="dl-block-style">
|
|
9742
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
9723
9743
|
</xsl:attribute-set>
|
|
9724
9744
|
|
|
9725
9745
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -9729,12 +9749,14 @@
|
|
|
9729
9749
|
</xsl:template>
|
|
9730
9750
|
|
|
9731
9751
|
<xsl:attribute-set name="dt-row-style">
|
|
9752
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
9732
9753
|
</xsl:attribute-set>
|
|
9733
9754
|
|
|
9734
9755
|
<xsl:template name="refine_dt-row-style">
|
|
9735
9756
|
</xsl:template>
|
|
9736
9757
|
|
|
9737
9758
|
<xsl:attribute-set name="dt-cell-style">
|
|
9759
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9738
9760
|
</xsl:attribute-set>
|
|
9739
9761
|
|
|
9740
9762
|
<xsl:template name="refine_dt-cell-style">
|
|
@@ -9744,6 +9766,7 @@
|
|
|
9744
9766
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
9745
9767
|
|
|
9746
9768
|
<xsl:attribute-set name="dt-block-style">
|
|
9769
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
9747
9770
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
9748
9771
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
|
9749
9772
|
</xsl:attribute-set>
|
|
@@ -9764,6 +9787,7 @@
|
|
|
9764
9787
|
</xsl:template>
|
|
9765
9788
|
|
|
9766
9789
|
<xsl:attribute-set name="dd-cell-style">
|
|
9790
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
9767
9791
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
9768
9792
|
</xsl:attribute-set>
|
|
9769
9793
|
|
|
@@ -9832,7 +9856,7 @@
|
|
|
9832
9856
|
<xsl:variable name="isAdded" select="@added"/>
|
|
9833
9857
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
9834
9858
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
9835
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
9859
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
9836
9860
|
|
|
9837
9861
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
9838
9862
|
|
|
@@ -9952,7 +9976,7 @@
|
|
|
9952
9976
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
9953
9977
|
</xsl:if>
|
|
9954
9978
|
|
|
9955
|
-
<fo:table width="95%" table-layout="fixed">
|
|
9979
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
9956
9980
|
|
|
9957
9981
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
9958
9982
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -10020,7 +10044,7 @@
|
|
|
10020
10044
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
10021
10045
|
</xsl:apply-templates>
|
|
10022
10046
|
|
|
10023
|
-
</xsl:when>
|
|
10047
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
10024
10048
|
<xsl:otherwise>
|
|
10025
10049
|
|
|
10026
10050
|
<xsl:variable name="simple-table">
|
|
@@ -10075,7 +10099,7 @@
|
|
|
10075
10099
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
10076
10100
|
</xsl:call-template>
|
|
10077
10101
|
|
|
10078
|
-
<fo:table-body>
|
|
10102
|
+
<fo:table-body role="SKIP">
|
|
10079
10103
|
|
|
10080
10104
|
<!-- DEBUG -->
|
|
10081
10105
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -10288,8 +10312,8 @@
|
|
|
10288
10312
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
10289
10313
|
</tr>
|
|
10290
10314
|
-->
|
|
10291
|
-
<fo:table-row>
|
|
10292
|
-
<fo:table-cell number-columns-spanned="2">
|
|
10315
|
+
<fo:table-row role="SKIP">
|
|
10316
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
10293
10317
|
<fo:block role="SKIP">
|
|
10294
10318
|
<xsl:call-template name="note"/>
|
|
10295
10319
|
</fo:block>
|
|
@@ -10353,7 +10377,7 @@
|
|
|
10353
10377
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
10354
10378
|
|
|
10355
10379
|
<xsl:call-template name="setNamedDestination"/>
|
|
10356
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
10380
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
10357
10381
|
|
|
10358
10382
|
<xsl:choose>
|
|
10359
10383
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -10443,7 +10467,7 @@
|
|
|
10443
10467
|
</xsl:variable>
|
|
10444
10468
|
<xsl:choose>
|
|
10445
10469
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
10446
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
10470
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
10447
10471
|
</xsl:when>
|
|
10448
10472
|
<xsl:otherwise>
|
|
10449
10473
|
<xsl:apply-templates select="."/>
|
|
@@ -10720,6 +10744,7 @@
|
|
|
10720
10744
|
<!-- ====== -->
|
|
10721
10745
|
|
|
10722
10746
|
<xsl:attribute-set name="note-style">
|
|
10747
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
10723
10748
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
10724
10749
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
|
10725
10750
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
|
@@ -10732,6 +10757,7 @@
|
|
|
10732
10757
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
10733
10758
|
|
|
10734
10759
|
<xsl:attribute-set name="note-name-style">
|
|
10760
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
10735
10761
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
10736
10762
|
|
|
10737
10763
|
<xsl:template name="refine_note-name-style">
|
|
@@ -10742,9 +10768,13 @@
|
|
|
10742
10768
|
</xsl:attribute-set>
|
|
10743
10769
|
|
|
10744
10770
|
<xsl:template name="refine_table-note-name-style">
|
|
10771
|
+
<xsl:if test="self::mn:note">
|
|
10772
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
10773
|
+
</xsl:if>
|
|
10745
10774
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
10746
10775
|
|
|
10747
10776
|
<xsl:attribute-set name="note-p-style">
|
|
10777
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
10748
10778
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
|
10749
10779
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
10750
10780
|
|
|
@@ -10752,6 +10782,7 @@
|
|
|
10752
10782
|
</xsl:template>
|
|
10753
10783
|
|
|
10754
10784
|
<xsl:attribute-set name="termnote-style">
|
|
10785
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
10755
10786
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
10756
10787
|
</xsl:attribute-set> <!-- termnote-style -->
|
|
10757
10788
|
|
|
@@ -10759,12 +10790,14 @@
|
|
|
10759
10790
|
</xsl:template> <!-- refine_termnote-style -->
|
|
10760
10791
|
|
|
10761
10792
|
<xsl:attribute-set name="termnote-name-style">
|
|
10793
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
10762
10794
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
10763
10795
|
|
|
10764
10796
|
<xsl:template name="refine_termnote-name-style">
|
|
10765
10797
|
</xsl:template>
|
|
10766
10798
|
|
|
10767
10799
|
<xsl:attribute-set name="termnote-p-style">
|
|
10800
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
10768
10801
|
</xsl:attribute-set>
|
|
10769
10802
|
|
|
10770
10803
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -10779,7 +10812,7 @@
|
|
|
10779
10812
|
|
|
10780
10813
|
<xsl:call-template name="setNamedDestination"/>
|
|
10781
10814
|
|
|
10782
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
10815
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
10783
10816
|
<xsl:if test="not(parent::mn:references)">
|
|
10784
10817
|
<xsl:copy-of select="@id"/>
|
|
10785
10818
|
</xsl:if>
|
|
@@ -10789,11 +10822,11 @@
|
|
|
10789
10822
|
<xsl:call-template name="refine_note-style"/>
|
|
10790
10823
|
|
|
10791
10824
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
10792
|
-
<fo:block>
|
|
10825
|
+
<fo:block role="SKIP">
|
|
10793
10826
|
|
|
10794
10827
|
<xsl:call-template name="refine_note_block_style"/>
|
|
10795
10828
|
|
|
10796
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
10829
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
10797
10830
|
|
|
10798
10831
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
10799
10832
|
|
|
@@ -10816,7 +10849,15 @@
|
|
|
10816
10849
|
|
|
10817
10850
|
</fo:inline>
|
|
10818
10851
|
|
|
10819
|
-
<xsl:
|
|
10852
|
+
<xsl:choose>
|
|
10853
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
10854
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
10855
|
+
</xsl:when>
|
|
10856
|
+
<xsl:otherwise>
|
|
10857
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
10858
|
+
</xsl:otherwise>
|
|
10859
|
+
</xsl:choose>
|
|
10860
|
+
|
|
10820
10861
|
</fo:block>
|
|
10821
10862
|
</fo:block-container>
|
|
10822
10863
|
</fo:block-container>
|
|
@@ -10832,13 +10873,13 @@
|
|
|
10832
10873
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
10833
10874
|
<xsl:choose>
|
|
10834
10875
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
10835
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
10876
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
10836
10877
|
<xsl:call-template name="refine_note-p-style"/>
|
|
10837
10878
|
<xsl:apply-templates/>
|
|
10838
10879
|
</fo:inline>
|
|
10839
10880
|
</xsl:when>
|
|
10840
10881
|
<xsl:otherwise>
|
|
10841
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
10882
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
10842
10883
|
<xsl:call-template name="refine_note-p-style"/>
|
|
10843
10884
|
<xsl:apply-templates/>
|
|
10844
10885
|
</fo:block>
|
|
@@ -11488,7 +11529,8 @@
|
|
|
11488
11529
|
|
|
11489
11530
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
11490
11531
|
|
|
11491
|
-
<fo:external-graphic src="{$src}"
|
|
11532
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
11533
|
+
<xsl:call-template name="addAltText"/>
|
|
11492
11534
|
|
|
11493
11535
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
11494
11536
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -11552,11 +11594,12 @@
|
|
|
11552
11594
|
<xsl:choose>
|
|
11553
11595
|
<xsl:when test="$isDeleted = 'true'">
|
|
11554
11596
|
<!-- enclose in svg -->
|
|
11555
|
-
<fo:instream-foreign-object
|
|
11597
|
+
<fo:instream-foreign-object>
|
|
11556
11598
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
11557
11599
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
11558
11600
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
11559
11601
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
11602
|
+
<xsl:call-template name="addAltText"/>
|
|
11560
11603
|
|
|
11561
11604
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
11562
11605
|
|
|
@@ -11572,7 +11615,8 @@
|
|
|
11572
11615
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
11573
11616
|
</fo:block> -->
|
|
11574
11617
|
|
|
11575
|
-
<fo:external-graphic src="{$src}"
|
|
11618
|
+
<fo:external-graphic src="{$src}">
|
|
11619
|
+
<xsl:call-template name="addAltText"/>
|
|
11576
11620
|
|
|
11577
11621
|
<xsl:choose>
|
|
11578
11622
|
<!-- default -->
|
|
@@ -11632,6 +11676,25 @@
|
|
|
11632
11676
|
</xsl:choose>
|
|
11633
11677
|
</xsl:template>
|
|
11634
11678
|
|
|
11679
|
+
<xsl:template name="addAltText">
|
|
11680
|
+
<xsl:param name="name">Image</xsl:param>
|
|
11681
|
+
<xsl:variable name="alt-text">
|
|
11682
|
+
<xsl:choose>
|
|
11683
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
11684
|
+
<xsl:value-of select="@alt"/>
|
|
11685
|
+
</xsl:when>
|
|
11686
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
11687
|
+
<xsl:value-of select="../@alt"/>
|
|
11688
|
+
</xsl:when>
|
|
11689
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
11690
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
11691
|
+
</xsl:when>
|
|
11692
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
11693
|
+
</xsl:choose>
|
|
11694
|
+
</xsl:variable>
|
|
11695
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
11696
|
+
</xsl:template>
|
|
11697
|
+
|
|
11635
11698
|
<xsl:template name="setImageWidth">
|
|
11636
11699
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
11637
11700
|
<xsl:value-of select="@width"/>
|
|
@@ -11820,6 +11883,9 @@
|
|
|
11820
11883
|
|
|
11821
11884
|
<xsl:variable name="alt-text">
|
|
11822
11885
|
<xsl:choose>
|
|
11886
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
11887
|
+
<xsl:value-of select="../@alt"/>
|
|
11888
|
+
</xsl:when>
|
|
11823
11889
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
11824
11890
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
11825
11891
|
</xsl:when>
|
|
@@ -13419,6 +13485,7 @@
|
|
|
13419
13485
|
|
|
13420
13486
|
<!-- admonition -->
|
|
13421
13487
|
<xsl:attribute-set name="admonition-style">
|
|
13488
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
13422
13489
|
<xsl:attribute name="border">0.5pt solid black</xsl:attribute>
|
|
13423
13490
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
|
13424
13491
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
|
@@ -13428,6 +13495,7 @@
|
|
|
13428
13495
|
</xsl:template>
|
|
13429
13496
|
|
|
13430
13497
|
<xsl:attribute-set name="admonition-container-style">
|
|
13498
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
13431
13499
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
13432
13500
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
13433
13501
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -13438,6 +13506,7 @@
|
|
|
13438
13506
|
</xsl:template>
|
|
13439
13507
|
|
|
13440
13508
|
<xsl:attribute-set name="admonition-name-style">
|
|
13509
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
13441
13510
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
13442
13511
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
13443
13512
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -13465,7 +13534,7 @@
|
|
|
13465
13534
|
<xsl:call-template name="refine_admonition-style"/>
|
|
13466
13535
|
|
|
13467
13536
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
13468
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
13537
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
13469
13538
|
|
|
13470
13539
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
13471
13540
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -14359,9 +14428,9 @@
|
|
|
14359
14428
|
<xsl:template name="fo_inline_bookmark">
|
|
14360
14429
|
<xsl:param name="bookmark_id"/>
|
|
14361
14430
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
14362
|
-
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
|
14431
|
+
<fo:inline id="{@id}" font-size="1pt" role="SKIP"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><fo:wrapper role="artifact"><xsl:value-of select="$hair_space"/></fo:wrapper></fo:inline>
|
|
14363
14432
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
14364
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
14433
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:inline></xsl:if>
|
|
14365
14434
|
</xsl:template>
|
|
14366
14435
|
<!-- =================== -->
|
|
14367
14436
|
<!-- End of Index processing -->
|
|
@@ -14529,6 +14598,13 @@
|
|
|
14529
14598
|
<!-- End Form's elements processing -->
|
|
14530
14599
|
<!-- =================== -->
|
|
14531
14600
|
|
|
14601
|
+
<xsl:attribute-set name="toc-container-style">
|
|
14602
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14603
|
+
</xsl:attribute-set>
|
|
14604
|
+
|
|
14605
|
+
<xsl:template name="refine_toc-container-style">
|
|
14606
|
+
</xsl:template>
|
|
14607
|
+
|
|
14532
14608
|
<xsl:attribute-set name="toc-style">
|
|
14533
14609
|
</xsl:attribute-set>
|
|
14534
14610
|
|
|
@@ -15932,6 +16008,13 @@
|
|
|
15932
16008
|
<!-- ===================================== -->
|
|
15933
16009
|
<!-- ===================================== -->
|
|
15934
16010
|
|
|
16011
|
+
<xsl:attribute-set name="annex-style">
|
|
16012
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
16013
|
+
</xsl:attribute-set>
|
|
16014
|
+
|
|
16015
|
+
<xsl:template name="refine_annex-style">
|
|
16016
|
+
</xsl:template>
|
|
16017
|
+
|
|
15935
16018
|
<xsl:attribute-set name="annex-title-style">
|
|
15936
16019
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
15937
16020
|
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
@@ -15945,6 +16028,40 @@
|
|
|
15945
16028
|
<xsl:template name="refine_annex-title-style">
|
|
15946
16029
|
</xsl:template>
|
|
15947
16030
|
|
|
16031
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
16032
|
+
<xsl:choose>
|
|
16033
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
16034
|
+
<fo:block role="SKIP">
|
|
16035
|
+
<xsl:apply-templates/>
|
|
16036
|
+
</fo:block>
|
|
16037
|
+
</xsl:when>
|
|
16038
|
+
<xsl:otherwise>
|
|
16039
|
+
|
|
16040
|
+
<fo:block break-after="page"/>
|
|
16041
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
16042
|
+
|
|
16043
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
16044
|
+
|
|
16045
|
+
<xsl:call-template name="setId"/>
|
|
16046
|
+
|
|
16047
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
16048
|
+
<xsl:call-template name="addTagElementT"/>
|
|
16049
|
+
<!-- </xsl:if> -->
|
|
16050
|
+
|
|
16051
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
16052
|
+
|
|
16053
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
16054
|
+
|
|
16055
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
16056
|
+
|
|
16057
|
+
<fo:block role="SKIP">
|
|
16058
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
16059
|
+
</fo:block>
|
|
16060
|
+
</fo:block>
|
|
16061
|
+
</xsl:otherwise>
|
|
16062
|
+
</xsl:choose>
|
|
16063
|
+
</xsl:template>
|
|
16064
|
+
|
|
15948
16065
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
15949
16066
|
</xsl:attribute-set>
|
|
15950
16067
|
|
|
@@ -16473,22 +16590,17 @@
|
|
|
16473
16590
|
</xsl:attribute-set>
|
|
16474
16591
|
|
|
16475
16592
|
<xsl:attribute-set name="clause-style">
|
|
16476
|
-
|
|
16593
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
16477
16594
|
</xsl:attribute-set>
|
|
16478
16595
|
|
|
16479
16596
|
<xsl:template name="refine_clause-style">
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
<xsl:if test="$level >= 4">
|
|
16488
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
16489
|
-
</xsl:if>
|
|
16490
|
-
</xsl:if> -->
|
|
16491
|
-
</xsl:template>
|
|
16597
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
16598
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
16599
|
+
</xsl:if>
|
|
16600
|
+
<xsl:if test="@inline-header='true'">
|
|
16601
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
|
16602
|
+
</xsl:if>
|
|
16603
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
16492
16604
|
|
|
16493
16605
|
<!-- main sections -->
|
|
16494
16606
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -16498,6 +16610,10 @@
|
|
|
16498
16610
|
|
|
16499
16611
|
<xsl:call-template name="sections_element_style"/>
|
|
16500
16612
|
|
|
16613
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
16614
|
+
<xsl:call-template name="addTagElementT"/>
|
|
16615
|
+
<!-- </xsl:if> -->
|
|
16616
|
+
|
|
16501
16617
|
<xsl:call-template name="addReviewHelper"/>
|
|
16502
16618
|
|
|
16503
16619
|
<xsl:apply-templates/>
|
|
@@ -16565,16 +16681,15 @@
|
|
|
16565
16681
|
|
|
16566
16682
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
16567
16683
|
<xsl:call-template name="setNamedDestination"/>
|
|
16568
|
-
<fo:block>
|
|
16569
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
16570
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
16571
|
-
</xsl:if>
|
|
16684
|
+
<fo:block role="Sect">
|
|
16572
16685
|
|
|
16573
16686
|
<xsl:call-template name="setId"/>
|
|
16574
16687
|
|
|
16688
|
+
<xsl:call-template name="addTagElementT"/>
|
|
16689
|
+
|
|
16575
16690
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
16576
16691
|
|
|
16577
|
-
<xsl:call-template name="
|
|
16692
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
16578
16693
|
|
|
16579
16694
|
<xsl:call-template name="addReviewHelper"/>
|
|
16580
16695
|
|
|
@@ -16582,44 +16697,6 @@
|
|
|
16582
16697
|
</fo:block>
|
|
16583
16698
|
</xsl:template>
|
|
16584
16699
|
|
|
16585
|
-
<xsl:template name="refine_clause_style">
|
|
16586
|
-
<xsl:if test="@inline-header='true'">
|
|
16587
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
|
16588
|
-
</xsl:if>
|
|
16589
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
16590
|
-
|
|
16591
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
16592
|
-
<xsl:choose>
|
|
16593
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
16594
|
-
<fo:block>
|
|
16595
|
-
<xsl:apply-templates/>
|
|
16596
|
-
</fo:block>
|
|
16597
|
-
</xsl:when>
|
|
16598
|
-
<xsl:otherwise>
|
|
16599
|
-
|
|
16600
|
-
<fo:block break-after="page"/>
|
|
16601
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
16602
|
-
|
|
16603
|
-
<fo:block id="{@id}">
|
|
16604
|
-
|
|
16605
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
16606
|
-
|
|
16607
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
16608
|
-
|
|
16609
|
-
</fo:block>
|
|
16610
|
-
|
|
16611
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
16612
|
-
|
|
16613
|
-
<fo:block>
|
|
16614
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
16615
|
-
</fo:block>
|
|
16616
|
-
</xsl:otherwise>
|
|
16617
|
-
</xsl:choose>
|
|
16618
|
-
</xsl:template>
|
|
16619
|
-
|
|
16620
|
-
<xsl:template name="refine_annex_style">
|
|
16621
|
-
</xsl:template>
|
|
16622
|
-
|
|
16623
16700
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
16624
16701
|
<!-- 0xA0 to space replacement -->
|
|
16625
16702
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -16735,6 +16812,13 @@
|
|
|
16735
16812
|
<xsl:template name="addTagElementT">
|
|
16736
16813
|
<xsl:variable name="title_">
|
|
16737
16814
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
16815
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
16816
|
+
<name>
|
|
16817
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
16818
|
+
<xsl:text> </xsl:text>
|
|
16819
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
16820
|
+
</name>
|
|
16821
|
+
</xsl:if>
|
|
16738
16822
|
</xsl:variable>
|
|
16739
16823
|
<xsl:variable name="title__">
|
|
16740
16824
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -16744,7 +16828,7 @@
|
|
|
16744
16828
|
</xsl:choose>
|
|
16745
16829
|
</xsl:for-each>
|
|
16746
16830
|
</xsl:variable>
|
|
16747
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
16831
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
16748
16832
|
<xsl:if test="$title != ''">
|
|
16749
16833
|
<xsl:attribute name="fox:title">
|
|
16750
16834
|
<xsl:if test="ancestor::mn:sections">
|