metanorma-itu 2.8.9 → 2.8.11
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/htmlstyle.css +4 -2
- data/lib/isodoc/itu/html/htmlstyle.scss +1 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +155 -10
- data/lib/isodoc/itu/itu.in-force.xsl +155 -10
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +155 -10
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +155 -10
- data/lib/isodoc/itu/itu.recommendation.xsl +155 -10
- data/lib/isodoc/itu/itu.resolution.xsl +155 -10
- data/lib/isodoc/itu/itu.service-publication.xsl +155 -10
- data/lib/isodoc/itu/itu.technical-paper.xsl +155 -10
- data/lib/isodoc/itu/itu.technical-report.xsl +155 -10
- data/lib/metanorma/itu/basicdoc.rng +9 -0
- data/lib/metanorma/itu/biblio.rng +8 -12
- data/lib/metanorma/itu/isodoc.rng +38 -6
- data/lib/metanorma/itu/reqt.rng +9 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ceac3f9d4c8a3e8c90917ee56165b9b6fa691db45e8cf7272e01b2a6a269fe4
|
|
4
|
+
data.tar.gz: 031d734a23f0e1ba3b6fd8e63008a379d1c1d4a1f2d77bdb38665489ebb2aa97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae152a82e095fd48892d94f31802a891ebc6ed94d162edcecde495b3f6a86072c6177b28aa590b50902c7963df817d4e3d50e19653853e4c224acec861cc4ac6
|
|
7
|
+
data.tar.gz: 7f0b1adf2b53903340881c10020b57d45d5f4d541048c13b796a2d52668f72a626082125eab75c8ecefed38f50e14122963117ba4482453b38c7d9339358ab40
|
|
@@ -792,7 +792,9 @@ nav #toc {
|
|
|
792
792
|
background-color: #da1d52;
|
|
793
793
|
color: white !important;
|
|
794
794
|
cursor: pointer;
|
|
795
|
-
|
|
795
|
+
left: 0;
|
|
796
|
+
top: 0;
|
|
797
|
+
z-index: 103;
|
|
796
798
|
}
|
|
797
799
|
#toggle span {
|
|
798
800
|
text-align: center;
|
|
@@ -881,7 +883,7 @@ figure {
|
|
|
881
883
|
font-size: {{monospacefontsize}};
|
|
882
884
|
}
|
|
883
885
|
|
|
884
|
-
table figure {
|
|
886
|
+
table figure, figure pre {
|
|
885
887
|
padding: 0;
|
|
886
888
|
margin: 0;
|
|
887
889
|
}
|
|
@@ -1948,6 +1948,19 @@
|
|
|
1948
1948
|
<xsl:call-template name="insertListOf_Item"/>
|
|
1949
1949
|
</xsl:for-each>
|
|
1950
1950
|
|
|
1951
|
+
<!-- List of Examples -->
|
|
1952
|
+
<xsl:for-each select="$contents//mnx:examples/mnx:example">
|
|
1953
|
+
<xsl:if test="position() = 1">
|
|
1954
|
+
<xsl:call-template name="insertListOf_Title">
|
|
1955
|
+
<xsl:with-param name="title" select="$title-list-examples"/>
|
|
1956
|
+
</xsl:call-template>
|
|
1957
|
+
<fo:block margin-top="6pt" text-align="end" font-weight="bold" keep-with-next="always">
|
|
1958
|
+
<xsl:value-of select="$i18n_page"/>
|
|
1959
|
+
</fo:block>
|
|
1960
|
+
</xsl:if>
|
|
1961
|
+
<xsl:call-template name="insertListOf_Item"/>
|
|
1962
|
+
</xsl:for-each>
|
|
1963
|
+
|
|
1951
1964
|
</xsl:if>
|
|
1952
1965
|
</fo:block>
|
|
1953
1966
|
</fo:block-container>
|
|
@@ -1957,9 +1970,11 @@
|
|
|
1957
1970
|
|
|
1958
1971
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']/mn:fmt-title" priority="4">
|
|
1959
1972
|
<fo:block xsl:use-attribute-sets="toc-title-style">
|
|
1973
|
+
<xsl:call-template name="refine_toc-title-style"/>
|
|
1960
1974
|
<xsl:apply-templates/>
|
|
1961
1975
|
</fo:block>
|
|
1962
1976
|
<fo:block xsl:use-attribute-sets="toc-title-page-style">
|
|
1977
|
+
<xsl:call-template name="refine_toc-title-page-style"/>
|
|
1963
1978
|
<xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Page.sg</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/mn:bibdata"/></xsl:call-template>
|
|
1964
1979
|
</fo:block>
|
|
1965
1980
|
</xsl:template>
|
|
@@ -3143,6 +3158,16 @@
|
|
|
3143
3158
|
</xsl:if>
|
|
3144
3159
|
</xsl:variable>
|
|
3145
3160
|
|
|
3161
|
+
<xsl:variable name="title-list-examples">
|
|
3162
|
+
<xsl:variable name="toc_example_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title"/>
|
|
3163
|
+
<xsl:value-of select="$toc_example_title"/>
|
|
3164
|
+
<xsl:if test="normalize-space($toc_example_title) = ''">
|
|
3165
|
+
<xsl:call-template name="getLocalizedString">
|
|
3166
|
+
<xsl:with-param name="key">toc_examples</xsl:with-param>
|
|
3167
|
+
</xsl:call-template>
|
|
3168
|
+
</xsl:if>
|
|
3169
|
+
</xsl:variable>
|
|
3170
|
+
|
|
3146
3171
|
<xsl:variable name="title-list-recommendations">
|
|
3147
3172
|
<xsl:variable name="toc_requirement_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='requirement']/mn:title"/>
|
|
3148
3173
|
<xsl:value-of select="$toc_requirement_title"/>
|
|
@@ -4054,6 +4079,14 @@
|
|
|
4054
4079
|
|
|
4055
4080
|
<xsl:template match="@semx-id | @anchor" mode="update_xml_step1"/>
|
|
4056
4081
|
|
|
4082
|
+
<xsl:template match="mn:pagebreak" mode="update_xml_step1">
|
|
4083
|
+
<xsl:copy>
|
|
4084
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
4085
|
+
<xsl:attribute name="from_source_xml">true</xsl:attribute>
|
|
4086
|
+
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
|
4087
|
+
</xsl:copy>
|
|
4088
|
+
</xsl:template>
|
|
4089
|
+
|
|
4057
4090
|
<!-- END: update new Presentation XML -->
|
|
4058
4091
|
|
|
4059
4092
|
<!-- =========================================================================== -->
|
|
@@ -4091,6 +4124,7 @@
|
|
|
4091
4124
|
<xsl:for-each select="ancestor-or-self::*[ancestor::mn:preface or ancestor::mn:sections or ancestor-or-self::mn:annex]">
|
|
4092
4125
|
<xsl:if test="following-sibling::*">false</xsl:if>
|
|
4093
4126
|
</xsl:for-each>
|
|
4127
|
+
<xsl:if test="@from_source_xml = 'true'">false</xsl:if>
|
|
4094
4128
|
</xsl:variable>
|
|
4095
4129
|
|
|
4096
4130
|
<xsl:if test="contains($isLast, 'false')">
|
|
@@ -5015,6 +5049,7 @@
|
|
|
5015
5049
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
|
5016
5050
|
|
|
5017
5051
|
<xsl:template name="refine_sourcecode-style">
|
|
5052
|
+
<xsl:call-template name="setKeepAttributes"/>
|
|
5018
5053
|
</xsl:template> <!-- refine_sourcecode-style -->
|
|
5019
5054
|
|
|
5020
5055
|
<xsl:attribute-set name="sourcecode-number-style">
|
|
@@ -5759,10 +5794,38 @@
|
|
|
5759
5794
|
<xsl:template name="refine_strike-style">
|
|
5760
5795
|
</xsl:template>
|
|
5761
5796
|
|
|
5797
|
+
<xsl:attribute-set name="hr-block-style">
|
|
5798
|
+
<xsl:attribute name="font-size">1pt</xsl:attribute>
|
|
5799
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
5800
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
5801
|
+
<xsl:attribute name="padding-top">-2pt</xsl:attribute>
|
|
5802
|
+
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
|
5803
|
+
</xsl:attribute-set>
|
|
5804
|
+
|
|
5805
|
+
<xsl:template name="refine_hr-block-style">
|
|
5806
|
+
</xsl:template>
|
|
5807
|
+
|
|
5808
|
+
<xsl:attribute-set name="hr-style">
|
|
5809
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
5810
|
+
<xsl:attribute name="leader-length">100%</xsl:attribute>
|
|
5811
|
+
</xsl:attribute-set>
|
|
5812
|
+
|
|
5813
|
+
<xsl:template name="refine_hr-style">
|
|
5814
|
+
</xsl:template>
|
|
5815
|
+
|
|
5762
5816
|
<xsl:template match="mn:br">
|
|
5763
5817
|
<xsl:value-of select="$linebreak"/>
|
|
5764
5818
|
</xsl:template>
|
|
5765
5819
|
|
|
5820
|
+
<xsl:template match="mn:hr">
|
|
5821
|
+
<fo:block xsl:use-attribute-sets="hr-block-style">
|
|
5822
|
+
<xsl:call-template name="refine_hr-block-style"/>
|
|
5823
|
+
<fo:leader xsl:use-attribute-sets="hr-style">
|
|
5824
|
+
<xsl:call-template name="refine_hr-style"/>
|
|
5825
|
+
</fo:leader>
|
|
5826
|
+
</fo:block>
|
|
5827
|
+
</xsl:template>
|
|
5828
|
+
|
|
5766
5829
|
<xsl:template match="mn:em">
|
|
5767
5830
|
<fo:inline xsl:use-attribute-sets="em-style">
|
|
5768
5831
|
<xsl:call-template name="refine_em_style"/>
|
|
@@ -7000,6 +7063,7 @@
|
|
|
7000
7063
|
text line 1
|
|
7001
7064
|
text line 2
|
|
7002
7065
|
-->
|
|
7066
|
+
<xsl:variable name="example_display_in"><!-- don't change here, only for override xsl --></xsl:variable> <!-- block or inline -->
|
|
7003
7067
|
<xsl:template match="mn:example" name="example">
|
|
7004
7068
|
<xsl:call-template name="setNamedDestination"/>
|
|
7005
7069
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
@@ -7009,7 +7073,8 @@
|
|
|
7009
7073
|
<xsl:call-template name="refine_example-style"/>
|
|
7010
7074
|
|
|
7011
7075
|
<xsl:variable name="fo_element">
|
|
7012
|
-
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
7076
|
+
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
7077
|
+
<xsl:if test="normalize-space($example_display_in) != ''"><xsl:value-of select="$example_display_in"/></xsl:if>block
|
|
7013
7078
|
</xsl:variable>
|
|
7014
7079
|
|
|
7015
7080
|
<fo:block-container margin-left="0mm" role="SKIP">
|
|
@@ -14475,7 +14540,7 @@
|
|
|
14475
14540
|
<xsl:template name="refine_toc-pagenumber-style">
|
|
14476
14541
|
</xsl:template>
|
|
14477
14542
|
|
|
14478
|
-
<!-- List of Figures, Tables -->
|
|
14543
|
+
<!-- List of Figures, Tables, Examples -->
|
|
14479
14544
|
<xsl:attribute-set name="toc-listof-title-style">
|
|
14480
14545
|
<xsl:attribute name="space-before">36pt</xsl:attribute>
|
|
14481
14546
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
@@ -14579,6 +14644,9 @@
|
|
|
14579
14644
|
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='figure']/mn:title) or normalize-space($always) = 'true'">
|
|
14580
14645
|
<xsl:call-template name="processFigures_Contents"/>
|
|
14581
14646
|
</xsl:if>
|
|
14647
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title)">
|
|
14648
|
+
<xsl:call-template name="processExamples_Contents"/>
|
|
14649
|
+
</xsl:if>
|
|
14582
14650
|
</xsl:template>
|
|
14583
14651
|
|
|
14584
14652
|
<xsl:template name="processTables_Contents">
|
|
@@ -14625,7 +14693,29 @@
|
|
|
14625
14693
|
</mnx:figures>
|
|
14626
14694
|
</xsl:template>
|
|
14627
14695
|
|
|
14628
|
-
<xsl:template
|
|
14696
|
+
<xsl:template name="processExamples_Contents">
|
|
14697
|
+
<mnx:examples>
|
|
14698
|
+
<xsl:for-each select="//mn:example[@id and mn:fmt-name and not(@unnumbered = 'true') and normalize-space(@id) != '']">
|
|
14699
|
+
<xsl:choose>
|
|
14700
|
+
<xsl:when test="mn:fmt-name">
|
|
14701
|
+
<xsl:variable name="fmt_name">
|
|
14702
|
+
<xsl:apply-templates select="mn:fmt-name" mode="update_xml_step1"/>
|
|
14703
|
+
</xsl:variable>
|
|
14704
|
+
<mnx:example id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
|
14705
|
+
<xsl:copy-of select="$fmt_name"/>
|
|
14706
|
+
</mnx:example>
|
|
14707
|
+
</xsl:when>
|
|
14708
|
+
<xsl:otherwise>
|
|
14709
|
+
<mnx:example id="{@id}" alt-text="{mn:name}">
|
|
14710
|
+
<xsl:copy-of select="mn:name"/>
|
|
14711
|
+
</mnx:example>
|
|
14712
|
+
</xsl:otherwise>
|
|
14713
|
+
</xsl:choose>
|
|
14714
|
+
</xsl:for-each>
|
|
14715
|
+
</mnx:examples>
|
|
14716
|
+
</xsl:template>
|
|
14717
|
+
|
|
14718
|
+
<xsl:template match="mn:figure/mn:name | mnx:figure/mn:name | mn:table/mn:name | mnx:table/mn:name | mn:example/mn:name | mnx:example/mn:name | mn:permission/mn:name | mnx:permission/mn:name | mn:recommendation/mn:name | mnx:recommendation/mn:name | mn:requirement/mn:name | mnx:requirement/mn:name" mode="contents">
|
|
14629
14719
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
14630
14720
|
<xsl:apply-templates mode="contents"/>
|
|
14631
14721
|
<xsl:text> </xsl:text>
|
|
@@ -14634,40 +14724,40 @@
|
|
|
14634
14724
|
|
|
14635
14725
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="contents"/>
|
|
14636
14726
|
|
|
14637
|
-
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name" mode="contents">
|
|
14727
|
+
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:example/mn:fmt-name | mnx:example/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name" mode="contents">
|
|
14638
14728
|
<xsl:apply-templates mode="contents"/>
|
|
14639
14729
|
<xsl:text> </xsl:text>
|
|
14640
14730
|
</xsl:template>
|
|
14641
14731
|
|
|
14642
|
-
<xsl:template match="mn:figure/mn:name | mnx:figure/mn:name | mn:table/mn:name | mnx:table/mn:name | mn:permission/mn:name | mnx:permission/mn:name | mn:recommendation/mn:name | mnx:recommendation/mn:name | mn:requirement/mn:name | mnx:requirement/mn:name | mn:sourcecode/mn:name" mode="bookmarks">
|
|
14732
|
+
<xsl:template match="mn:figure/mn:name | mnx:figure/mn:name | mn:table/mn:name | mnx:table/mn:name | mn:example/mn:name | mnx:example/mn:name | mn:permission/mn:name | mnx:permission/mn:name | mn:recommendation/mn:name | mnx:recommendation/mn:name | mn:requirement/mn:name | mnx:requirement/mn:name | mn:sourcecode/mn:name" mode="bookmarks">
|
|
14643
14733
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
14644
14734
|
<xsl:apply-templates mode="bookmarks"/>
|
|
14645
14735
|
<xsl:text> </xsl:text>
|
|
14646
14736
|
</xsl:if>
|
|
14647
14737
|
</xsl:template>
|
|
14648
14738
|
|
|
14649
|
-
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name | mn:sourcecode/mn:fmt-name | mnx:sourcecode/mn:fmt-name" mode="bookmarks">
|
|
14739
|
+
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:example/mn:fmt-name | mnx:example/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name | mn:sourcecode/mn:fmt-name | mnx:sourcecode/mn:fmt-name" mode="bookmarks">
|
|
14650
14740
|
<xsl:apply-templates mode="bookmarks"/>
|
|
14651
14741
|
<xsl:text> </xsl:text>
|
|
14652
14742
|
</xsl:template>
|
|
14653
14743
|
|
|
14654
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:name/text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement]/mn:name/text()" mode="contents" priority="2">
|
|
14744
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:example or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:name/text() | *[self::mnx:figure or self::mnx:table or self::mnx:example or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement]/mn:name/text()" mode="contents" priority="2">
|
|
14655
14745
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
14656
14746
|
<xsl:value-of select="."/>
|
|
14657
14747
|
</xsl:if>
|
|
14658
14748
|
</xsl:template>
|
|
14659
14749
|
|
|
14660
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:fmt-name/text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement]/mn:fmt-name/text()" mode="contents" priority="2">
|
|
14750
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:example or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:fmt-name/text() | *[self::mnx:figure or self::mnx:table or self::mnx:example or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement]/mn:fmt-name/text()" mode="contents" priority="2">
|
|
14661
14751
|
<xsl:value-of select="."/>
|
|
14662
14752
|
</xsl:template>
|
|
14663
14753
|
|
|
14664
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:name//text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement or self::mnx:sourcecode]/mn:name//text()" mode="bookmarks" priority="2">
|
|
14754
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:example or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:name//text() | *[self::mnx:figure or self::mnx:table or self::mnx:example or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement or self::mnx:sourcecode]/mn:name//text()" mode="bookmarks" priority="2">
|
|
14665
14755
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
14666
14756
|
<xsl:value-of select="."/>
|
|
14667
14757
|
</xsl:if>
|
|
14668
14758
|
</xsl:template>
|
|
14669
14759
|
|
|
14670
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:fmt-name//text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement or self::mnx:sourcecode]/mn:fmt-name//text()" mode="bookmarks" priority="2">
|
|
14760
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:example or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:fmt-name//text() | *[self::mnx:figure or self::mnx:table or self::mnx:example or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement or self::mnx:sourcecode]/mn:fmt-name//text()" mode="bookmarks" priority="2">
|
|
14671
14761
|
<xsl:value-of select="."/>
|
|
14672
14762
|
</xsl:template>
|
|
14673
14763
|
|
|
@@ -14900,6 +14990,11 @@
|
|
|
14900
14990
|
<xsl:with-param name="lang" select="@lang"/>
|
|
14901
14991
|
</xsl:call-template>
|
|
14902
14992
|
|
|
14993
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
14994
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
14995
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
14996
|
+
</xsl:call-template>
|
|
14997
|
+
|
|
14903
14998
|
</fo:bookmark>
|
|
14904
14999
|
|
|
14905
15000
|
</xsl:for-each>
|
|
@@ -14918,6 +15013,11 @@
|
|
|
14918
15013
|
<xsl:with-param name="lang" select="@lang"/>
|
|
14919
15014
|
</xsl:call-template>
|
|
14920
15015
|
|
|
15016
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
15017
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15018
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
15019
|
+
</xsl:call-template>
|
|
15020
|
+
|
|
14921
15021
|
</xsl:for-each>
|
|
14922
15022
|
</xsl:otherwise>
|
|
14923
15023
|
</xsl:choose>
|
|
@@ -14934,6 +15034,11 @@
|
|
|
14934
15034
|
<xsl:with-param name="lang" select="@lang"/>
|
|
14935
15035
|
</xsl:call-template>
|
|
14936
15036
|
|
|
15037
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
15038
|
+
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
15039
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
15040
|
+
</xsl:call-template>
|
|
15041
|
+
|
|
14937
15042
|
</xsl:otherwise>
|
|
14938
15043
|
</xsl:choose>
|
|
14939
15044
|
|
|
@@ -15014,6 +15119,46 @@
|
|
|
15014
15119
|
</fo:bookmark>
|
|
15015
15120
|
</xsl:if>
|
|
15016
15121
|
</xsl:template> <!-- insertTableBookmarks -->
|
|
15122
|
+
|
|
15123
|
+
<xsl:template name="insertExampleBookmarks">
|
|
15124
|
+
<xsl:param name="contents"/>
|
|
15125
|
+
<xsl:param name="lang"/>
|
|
15126
|
+
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
15127
|
+
<xsl:if test="$contents_nodes/mnx:example">
|
|
15128
|
+
<fo:bookmark internal-destination="{$contents_nodes/mnx:example[1]/@id}" starting-state="hide">
|
|
15129
|
+
<fo:bookmark-title>
|
|
15130
|
+
<xsl:choose>
|
|
15131
|
+
<xsl:when test="$lang = 'fr'">Exemples</xsl:when>
|
|
15132
|
+
<xsl:otherwise>Examples</xsl:otherwise>
|
|
15133
|
+
</xsl:choose>
|
|
15134
|
+
</fo:bookmark-title>
|
|
15135
|
+
<xsl:for-each select="$contents_nodes/mnx:example">
|
|
15136
|
+
<fo:bookmark internal-destination="{@id}">
|
|
15137
|
+
<fo:bookmark-title>
|
|
15138
|
+
<xsl:value-of select="normalize-space(mnx:title)"/>
|
|
15139
|
+
</fo:bookmark-title>
|
|
15140
|
+
</fo:bookmark>
|
|
15141
|
+
</xsl:for-each>
|
|
15142
|
+
</fo:bookmark>
|
|
15143
|
+
</xsl:if>
|
|
15144
|
+
<xsl:if test="$contents_nodes//mnx:examples/mnx:example">
|
|
15145
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
15146
|
+
|
|
15147
|
+
<xsl:variable name="bookmark-title">
|
|
15148
|
+
<xsl:value-of select="$title-list-examples"/>
|
|
15149
|
+
</xsl:variable>
|
|
15150
|
+
|
|
15151
|
+
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
|
15152
|
+
|
|
15153
|
+
<xsl:for-each select="$contents_nodes//mnx:examples/mnx:example">
|
|
15154
|
+
<fo:bookmark internal-destination="{@id}">
|
|
15155
|
+
<!-- <fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title> -->
|
|
15156
|
+
<fo:bookmark-title><xsl:apply-templates mode="bookmark_clean"/></fo:bookmark-title>
|
|
15157
|
+
</fo:bookmark>
|
|
15158
|
+
</xsl:for-each>
|
|
15159
|
+
</fo:bookmark>
|
|
15160
|
+
</xsl:if>
|
|
15161
|
+
</xsl:template> <!-- insertExampleBookmarks -->
|
|
15017
15162
|
<!-- End Bookmarks -->
|
|
15018
15163
|
|
|
15019
15164
|
<!-- ============================ -->
|