metanorma-bipm 2.8.10 → 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/.rubocop.yml +9 -0
- data/lib/isodoc/bipm/bipm.brochure.xsl +118 -69
- data/lib/isodoc/bipm/bipm.guide.xsl +118 -69
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +118 -69
- data/lib/isodoc/bipm/bipm.rapport.xsl +118 -69
- data/lib/isodoc/bipm/html/htmlstyle.css +5 -0
- data/lib/isodoc/bipm/jcgm.standard.xsl +116 -69
- data/lib/metanorma/bipm/basicdoc.rng +1 -1
- data/lib/metanorma/bipm/{mathml3-content.rng → mathml4-content.rng} +104 -80
- data/lib/metanorma/bipm/mathml4-core.rng +1041 -0
- data/lib/metanorma/bipm/{mathml3-presentation.rng → mathml4-presentation.rng} +184 -1060
- data/lib/metanorma/bipm/{mathml3-strict-content.rng → mathml4-strict-content.rng} +92 -8
- data/lib/metanorma/bipm/mathml4.rng +30 -0
- data/lib/metanorma/bipm/metanorma-mathml.rng +22 -8
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +6 -7
- data/.hound.yml +0 -5
- data/lib/metanorma/bipm/mathml3-common.rng +0 -257
- data/lib/metanorma/bipm/mathml3.rng +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8cace5f622ac07370af170dffc8f8805ba518f96656928c189f1f664e0696df
|
|
4
|
+
data.tar.gz: 8ec8533476e550db921c7980b6824e261ede18831b929b81d9a5572837958ef7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1f225138b83840c80db446bb0508e6e0363e8b4f2278ffc541b2d06c83026e28e5fe2f92dff5729bf72c7e439e488b4fa36f0f45ad7d49c097aea0c39a07844
|
|
7
|
+
data.tar.gz: 5da4df7467f48769b214f7284e36c1fb3322cfa93577bbfde6e0e94d52fffc58bb196dc37744264d5284985f0427157a828225809aa287ad13d927aee53e914b
|
data/.rubocop.yml
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
# See https://github.com/metanorma/cimas
|
|
3
3
|
inherit_from:
|
|
4
4
|
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
|
+
# .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
|
|
6
|
+
# if listed before oss-guides, the shared config's stricter Metrics/
|
|
7
|
+
# (MethodLength, BlockLength, etc.) rules override the todo's per-file
|
|
8
|
+
# grandfathering, and the todo becomes inert on those cops. Empirically
|
|
9
|
+
# verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
|
|
10
|
+
# remained; moved last, cleared. Every gem in the metanorma-org fleet
|
|
11
|
+
# already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
|
|
12
|
+
# 54/54 have it), so this reference is safe to emit unconditionally.
|
|
13
|
+
- .rubocop_todo.yml
|
|
5
14
|
|
|
6
15
|
# Rubocop plugins enabled centrally so every metanorma-org gem picks them up
|
|
7
16
|
# on cimas sync — best practice belongs at the shared-template layer, not
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<xsl:variable name="docid">
|
|
42
42
|
<xsl:call-template name="getDocumentId"/>
|
|
43
43
|
</xsl:variable>
|
|
44
|
-
<mnx:doc id="{$docid}" lang="{$lang}" doctype="{$doctype}" title-part="{$title-part}">
|
|
44
|
+
<mnx:doc id="{$docid}" lang="{$lang}" doctype="{$doctype}" title-part="{$title-part}" num="{$num}">
|
|
45
45
|
<xsl:call-template name="generateContents"/>
|
|
46
46
|
</mnx:doc>
|
|
47
47
|
</xsl:for-each>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<xsl:variable name="docid">
|
|
59
59
|
<xsl:call-template name="getDocumentId"/>
|
|
60
60
|
</xsl:variable>
|
|
61
|
-
<mnx:doc id="{$docid}" lang="{$lang}">
|
|
61
|
+
<mnx:doc id="{$docid}" lang="{$lang}" num="{$num}">
|
|
62
62
|
<xsl:call-template name="generateContents"/>
|
|
63
63
|
</mnx:doc>
|
|
64
64
|
</xsl:for-each>
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
<xsl:variable name="docid">
|
|
72
72
|
<xsl:call-template name="getDocumentId"/>
|
|
73
73
|
</xsl:variable>
|
|
74
|
-
<
|
|
74
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
75
|
+
<mnx:doc id="{$docid}" lang="{$lang}" num="{$num}">
|
|
75
76
|
<xsl:call-template name="generateContents"/>
|
|
76
77
|
</mnx:doc>
|
|
77
78
|
</xsl:otherwise>
|
|
@@ -1936,6 +1937,7 @@
|
|
|
1936
1937
|
</fo:table-cell>
|
|
1937
1938
|
</fo:table-row>
|
|
1938
1939
|
</xsl:if> -->
|
|
1940
|
+
<xsl:variable name="num" select="$contents/mnx:doc[@id = $docid]/@num"/>
|
|
1939
1941
|
<xsl:for-each select="$contents/mnx:doc[@id = $docid]//mnx:item[@display='true' and (@type = 'annex')]"> <!-- or (@level = 2 and @parent = 'annex') -->
|
|
1940
1942
|
<xsl:call-template name="insertContentItem">
|
|
1941
1943
|
<xsl:with-param name="keep-with-next">true</xsl:with-param>
|
|
@@ -1949,7 +1951,7 @@
|
|
|
1949
1951
|
<xsl:for-each select="$contents/mnx:doc[@id = $docid]//mnx:tables/mnx:table">
|
|
1950
1952
|
<xsl:if test="position() = 1">
|
|
1951
1953
|
<xsl:call-template name="insertListOf_Title">
|
|
1952
|
-
<xsl:with-param name="title" select="$title-list-tables"/>
|
|
1954
|
+
<xsl:with-param name="title" select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-tables"/>
|
|
1953
1955
|
</xsl:call-template>
|
|
1954
1956
|
</xsl:if>
|
|
1955
1957
|
<xsl:call-template name="insertListOf_Item"/>
|
|
@@ -1959,7 +1961,7 @@
|
|
|
1959
1961
|
<xsl:for-each select="$contents/mnx:doc[@id = $docid]//mnx:figures/mnx:figure">
|
|
1960
1962
|
<xsl:if test="position() = 1">
|
|
1961
1963
|
<xsl:call-template name="insertListOf_Title">
|
|
1962
|
-
<xsl:with-param name="title" select="$title-list-figures"/>
|
|
1964
|
+
<xsl:with-param name="title" select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-figures"/>
|
|
1963
1965
|
</xsl:call-template>
|
|
1964
1966
|
</xsl:if>
|
|
1965
1967
|
<xsl:call-template name="insertListOf_Item"/>
|
|
@@ -1969,7 +1971,7 @@
|
|
|
1969
1971
|
<xsl:for-each select="$contents/mnx:doc[@id = $docid]//mnx:examples/mnx:example">
|
|
1970
1972
|
<xsl:if test="position() = 1">
|
|
1971
1973
|
<xsl:call-template name="insertListOf_Title">
|
|
1972
|
-
<xsl:with-param name="title" select="$title-list-examples"/>
|
|
1974
|
+
<xsl:with-param name="title" select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-examples"/>
|
|
1973
1975
|
</xsl:call-template>
|
|
1974
1976
|
</xsl:if>
|
|
1975
1977
|
<xsl:call-template name="insertListOf_Item"/>
|
|
@@ -2103,7 +2105,11 @@
|
|
|
2103
2105
|
<xsl:with-param name="value" select="@alt-text"/>
|
|
2104
2106
|
</xsl:call-template>
|
|
2105
2107
|
<fo:inline>
|
|
2106
|
-
<xsl:
|
|
2108
|
+
<xsl:variable name="item">
|
|
2109
|
+
<!-- mnx:table/mn:fmt-name, mnx:figure/mn:fmt-name, mnx:example/mn:fmt-name -->
|
|
2110
|
+
<xsl:apply-templates select="mn:fmt-name" mode="contents_item"/>
|
|
2111
|
+
</xsl:variable>
|
|
2112
|
+
<xsl:apply-templates select="xalan:nodeset($item)/node()"/>
|
|
2107
2113
|
</fo:inline>
|
|
2108
2114
|
</fo:basic-link>
|
|
2109
2115
|
</fo:block>
|
|
@@ -3948,45 +3954,59 @@
|
|
|
3948
3954
|
|
|
3949
3955
|
<xsl:variable name="ace_tag">ace-tag_</xsl:variable>
|
|
3950
3956
|
|
|
3951
|
-
<xsl:variable name="
|
|
3952
|
-
<xsl:
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
<xsl:
|
|
3956
|
-
<xsl:
|
|
3957
|
-
</xsl:
|
|
3958
|
-
|
|
3959
|
-
|
|
3957
|
+
<xsl:variable name="toc_title_lists_">
|
|
3958
|
+
<xsl:for-each select="//mn:metanorma">
|
|
3959
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
3960
|
+
<xsl:variable name="docid"><xsl:call-template name="getDocumentId"/></xsl:variable>
|
|
3961
|
+
<xsl:variable name="current_document">
|
|
3962
|
+
<xsl:copy-of select="."/>
|
|
3963
|
+
</xsl:variable>
|
|
3964
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
|
3965
|
+
<mnx:doc id="{$docid}" num="{$num}">
|
|
3966
|
+
<mnx:title-list-tables>
|
|
3967
|
+
<xsl:variable name="toc_table_title" select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='table']/mn:title"/>
|
|
3968
|
+
<xsl:value-of select="$toc_table_title"/>
|
|
3969
|
+
<xsl:if test="normalize-space($toc_table_title) = ''">
|
|
3970
|
+
<xsl:call-template name="getLocalizedString">
|
|
3971
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
|
3972
|
+
</xsl:call-template>
|
|
3973
|
+
</xsl:if>
|
|
3974
|
+
</mnx:title-list-tables>
|
|
3960
3975
|
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3976
|
+
<mnx:title-list-figures>
|
|
3977
|
+
<xsl:variable name="toc_figure_title" select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='figure']/mn:title"/>
|
|
3978
|
+
<xsl:value-of select="$toc_figure_title"/>
|
|
3979
|
+
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
|
3980
|
+
<xsl:call-template name="getLocalizedString">
|
|
3981
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
|
3982
|
+
</xsl:call-template>
|
|
3983
|
+
</xsl:if>
|
|
3984
|
+
</mnx:title-list-figures>
|
|
3970
3985
|
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3986
|
+
<mnx:title-list-examples>
|
|
3987
|
+
<xsl:variable name="toc_example_title" select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='example']/mn:title"/>
|
|
3988
|
+
<xsl:value-of select="$toc_example_title"/>
|
|
3989
|
+
<xsl:if test="normalize-space($toc_example_title) = ''">
|
|
3990
|
+
<xsl:call-template name="getLocalizedString">
|
|
3991
|
+
<xsl:with-param name="key">toc_examples</xsl:with-param>
|
|
3992
|
+
</xsl:call-template>
|
|
3993
|
+
</xsl:if>
|
|
3994
|
+
</mnx:title-list-examples>
|
|
3980
3995
|
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3996
|
+
<mnx:title-list-recommendations>
|
|
3997
|
+
<xsl:variable name="toc_requirement_title" select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='requirement']/mn:title"/>
|
|
3998
|
+
<xsl:value-of select="$toc_requirement_title"/>
|
|
3999
|
+
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
|
4000
|
+
<xsl:call-template name="getLocalizedString">
|
|
4001
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
|
4002
|
+
</xsl:call-template>
|
|
4003
|
+
</xsl:if>
|
|
4004
|
+
</mnx:title-list-recommendations>
|
|
4005
|
+
</mnx:doc>
|
|
4006
|
+
</xsl:for-each>
|
|
4007
|
+
</xsl:for-each>
|
|
3989
4008
|
</xsl:variable>
|
|
4009
|
+
<xsl:variable name="toc_title_lists" select="xalan:nodeset($toc_title_lists_)"/>
|
|
3990
4010
|
|
|
3991
4011
|
<xsl:variable name="bibdata">
|
|
3992
4012
|
<xsl:copy-of select="//mn:metanorma/mn:bibdata"/>
|
|
@@ -4760,7 +4780,7 @@
|
|
|
4760
4780
|
<xsl:apply-templates mode="update_xml_step1"/>
|
|
4761
4781
|
</xsl:template>
|
|
4762
4782
|
|
|
4763
|
-
<xsl:template match="mn:semx" mode="update_xml_step1">
|
|
4783
|
+
<xsl:template match="mn:semx[not(@element = 'name')]" mode="update_xml_step1">
|
|
4764
4784
|
<xsl:apply-templates mode="update_xml_step1"/>
|
|
4765
4785
|
</xsl:template>
|
|
4766
4786
|
|
|
@@ -5043,7 +5063,7 @@
|
|
|
5043
5063
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
5044
5064
|
<xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
|
|
5045
5065
|
|
|
5046
|
-
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() > 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
5066
|
+
<xsl:template match="text()[not( (ancestor::mn:bibdata and not(ancestor::mn:title)) or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() > 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or (ancestor::mn:fmt-name and not(ancestor::mn:semx[@element = 'name'])) or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
5047
5067
|
|
|
5048
5068
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
5049
5069
|
|
|
@@ -5088,7 +5108,7 @@
|
|
|
5088
5108
|
<xsl:variable name="text">
|
|
5089
5109
|
<xsl:element name="text" namespace="{$namespace_full}">
|
|
5090
5110
|
<xsl:choose>
|
|
5091
|
-
<xsl:when test="ancestor::mn:table"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
|
|
5111
|
+
<xsl:when test="ancestor::mn:table and not(ancestor::mn:fmt-name)"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
|
|
5092
5112
|
<xsl:otherwise>
|
|
5093
5113
|
<xsl:variable name="text_" select="java:replaceAll(java:java.lang.String.new(.), $regex_standard_reference, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
|
|
5094
5114
|
<!-- <xsl:value-of select="$text__"/> -->
|
|
@@ -5166,6 +5186,10 @@
|
|
|
5166
5186
|
<xsl:copy-of select="."/>
|
|
5167
5187
|
</xsl:template>
|
|
5168
5188
|
|
|
5189
|
+
<xsl:template match="mn:semx" mode="update_xml_enclose_keep-together_within-line">
|
|
5190
|
+
<xsl:apply-templates mode="update_xml_enclose_keep-together_within-line"/>
|
|
5191
|
+
</xsl:template>
|
|
5192
|
+
|
|
5169
5193
|
<xsl:template name="replace_text_tags">
|
|
5170
5194
|
<xsl:param name="tag_open"/>
|
|
5171
5195
|
<xsl:param name="tag_close"/>
|
|
@@ -12494,6 +12518,7 @@
|
|
|
12494
12518
|
<xsl:variable name="svg_content">
|
|
12495
12519
|
<xsl:apply-templates select="." mode="svg_update"/>
|
|
12496
12520
|
</xsl:variable>
|
|
12521
|
+
<!-- <svg_content><xsl:copy-of select="$svg_content"/></svg_content> -->
|
|
12497
12522
|
|
|
12498
12523
|
<xsl:variable name="alt-text">
|
|
12499
12524
|
<xsl:choose>
|
|
@@ -12708,7 +12733,7 @@
|
|
|
12708
12733
|
</xsl:copy>
|
|
12709
12734
|
</xsl:template>
|
|
12710
12735
|
|
|
12711
|
-
<xsl:template match="
|
|
12736
|
+
<xsl:template match="*[local-name() = 'image']/@href" mode="svg_update">
|
|
12712
12737
|
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
|
|
12713
12738
|
<xsl:value-of select="."/>
|
|
12714
12739
|
</xsl:attribute>
|
|
@@ -15347,13 +15372,13 @@
|
|
|
15347
15372
|
|
|
15348
15373
|
<xsl:template name="processTablesFigures_Contents">
|
|
15349
15374
|
<xsl:param name="always"/>
|
|
15350
|
-
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='table']/mn:title) or normalize-space($always) = 'true'">
|
|
15375
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='table']/mn:title) or normalize-space($always) = 'true'">
|
|
15351
15376
|
<xsl:call-template name="processTables_Contents"/>
|
|
15352
15377
|
</xsl:if>
|
|
15353
|
-
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='figure']/mn:title) or normalize-space($always) = 'true'">
|
|
15378
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='figure']/mn:title) or normalize-space($always) = 'true'">
|
|
15354
15379
|
<xsl:call-template name="processFigures_Contents"/>
|
|
15355
15380
|
</xsl:if>
|
|
15356
|
-
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title)">
|
|
15381
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:toc[@type='example']/mn:title)">
|
|
15357
15382
|
<xsl:call-template name="processExamples_Contents"/>
|
|
15358
15383
|
</xsl:if>
|
|
15359
15384
|
</xsl:template>
|
|
@@ -15404,22 +15429,22 @@
|
|
|
15404
15429
|
|
|
15405
15430
|
<xsl:template name="processExamples_Contents">
|
|
15406
15431
|
<mnx:examples>
|
|
15407
|
-
<xsl:for-each select="//mn:example[@id and mn:fmt-name and
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
<xsl:copy-of select="
|
|
15420
|
-
</
|
|
15421
|
-
</xsl:
|
|
15422
|
-
</
|
|
15432
|
+
<xsl:for-each select="//mn:example[@id and mn:fmt-name and normalize-space(@id) != '']">
|
|
15433
|
+
<!-- https://github.com/metanorma/metanorma-pdfa/issues/32#issuecomment-4929133938:
|
|
15434
|
+
//example/fmt-xref-label[@container] + //example/fmt-name/span[@class = 'fmt-caption-delim'] + //example/name,
|
|
15435
|
+
with the last two elements dropped if //example/name does not exist. -->
|
|
15436
|
+
<xsl:variable name="example_name">
|
|
15437
|
+
<xsl:apply-templates select="mn:name/node()" mode="update_xml_step1"/>
|
|
15438
|
+
</xsl:variable>
|
|
15439
|
+
<mnx:example id="{@id}" alt-text="{normalize-space($example_name)}">
|
|
15440
|
+
<xsl:element name="fmt-name" namespace="{$namespace_full}">
|
|
15441
|
+
<xsl:value-of select="mn:fmt-xref-label[@container]"/>
|
|
15442
|
+
<xsl:if test="normalize-space($example_name) != ''">
|
|
15443
|
+
<xsl:value-of select="mn:fmt-name/mn:span[@class = 'fmt-caption-delim']"/>
|
|
15444
|
+
<xsl:copy-of select="$example_name"/>
|
|
15445
|
+
</xsl:if>
|
|
15446
|
+
</xsl:element>
|
|
15447
|
+
</mnx:example>
|
|
15423
15448
|
</xsl:for-each>
|
|
15424
15449
|
</mnx:examples>
|
|
15425
15450
|
</xsl:template>
|
|
@@ -15692,15 +15717,18 @@
|
|
|
15692
15717
|
|
|
15693
15718
|
<xsl:call-template name="insertFigureBookmarks">
|
|
15694
15719
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15720
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15695
15721
|
</xsl:call-template>
|
|
15696
15722
|
|
|
15697
15723
|
<xsl:call-template name="insertTableBookmarks">
|
|
15698
15724
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15725
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15699
15726
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15700
15727
|
</xsl:call-template>
|
|
15701
15728
|
|
|
15702
15729
|
<xsl:call-template name="insertExampleBookmarks">
|
|
15703
15730
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15731
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15704
15732
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15705
15733
|
</xsl:call-template>
|
|
15706
15734
|
|
|
@@ -15715,15 +15743,18 @@
|
|
|
15715
15743
|
|
|
15716
15744
|
<xsl:call-template name="insertFigureBookmarks">
|
|
15717
15745
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15746
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15718
15747
|
</xsl:call-template>
|
|
15719
15748
|
|
|
15720
15749
|
<xsl:call-template name="insertTableBookmarks">
|
|
15721
15750
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15751
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15722
15752
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15723
15753
|
</xsl:call-template>
|
|
15724
15754
|
|
|
15725
15755
|
<xsl:call-template name="insertExampleBookmarks">
|
|
15726
15756
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15757
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15727
15758
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15728
15759
|
</xsl:call-template>
|
|
15729
15760
|
|
|
@@ -15736,15 +15767,18 @@
|
|
|
15736
15767
|
|
|
15737
15768
|
<xsl:call-template name="insertFigureBookmarks">
|
|
15738
15769
|
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
15770
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15739
15771
|
</xsl:call-template>
|
|
15740
15772
|
|
|
15741
15773
|
<xsl:call-template name="insertTableBookmarks">
|
|
15742
15774
|
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
15775
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15743
15776
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15744
15777
|
</xsl:call-template>
|
|
15745
15778
|
|
|
15746
15779
|
<xsl:call-template name="insertExampleBookmarks">
|
|
15747
15780
|
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
15781
|
+
<xsl:with-param name="num" select="@num"/>
|
|
15748
15782
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15749
15783
|
</xsl:call-template>
|
|
15750
15784
|
|
|
@@ -15760,6 +15794,7 @@
|
|
|
15760
15794
|
|
|
15761
15795
|
<xsl:template name="insertFigureBookmarks">
|
|
15762
15796
|
<xsl:param name="contents"/>
|
|
15797
|
+
<xsl:param name="num"/>
|
|
15763
15798
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
15764
15799
|
<xsl:if test="$contents_nodes/mnx:figure">
|
|
15765
15800
|
<fo:bookmark internal-destination="{$contents_nodes/mnx:figure[1]/@id}" starting-state="hide">
|
|
@@ -15777,7 +15812,7 @@
|
|
|
15777
15812
|
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
15778
15813
|
|
|
15779
15814
|
<xsl:variable name="bookmark-title">
|
|
15780
|
-
<xsl:value-of select="$title-list-figures"/>
|
|
15815
|
+
<xsl:value-of select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-figures"/>
|
|
15781
15816
|
</xsl:variable>
|
|
15782
15817
|
<fo:bookmark-title><xsl:value-of select="normalize-space($bookmark-title)"/></fo:bookmark-title>
|
|
15783
15818
|
<xsl:for-each select="$contents_nodes//mnx:figures/mnx:figure">
|
|
@@ -15791,6 +15826,7 @@
|
|
|
15791
15826
|
|
|
15792
15827
|
<xsl:template name="insertTableBookmarks">
|
|
15793
15828
|
<xsl:param name="contents"/>
|
|
15829
|
+
<xsl:param name="num"/>
|
|
15794
15830
|
<xsl:param name="lang"/>
|
|
15795
15831
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
15796
15832
|
<xsl:if test="$contents_nodes/mnx:table">
|
|
@@ -15814,7 +15850,7 @@
|
|
|
15814
15850
|
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
15815
15851
|
|
|
15816
15852
|
<xsl:variable name="bookmark-title">
|
|
15817
|
-
<xsl:value-of select="$title-list-tables"/>
|
|
15853
|
+
<xsl:value-of select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-tables"/>
|
|
15818
15854
|
</xsl:variable>
|
|
15819
15855
|
|
|
15820
15856
|
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
|
@@ -15829,8 +15865,9 @@
|
|
|
15829
15865
|
</xsl:if>
|
|
15830
15866
|
</xsl:template> <!-- insertTableBookmarks -->
|
|
15831
15867
|
|
|
15832
|
-
|
|
15868
|
+
<xsl:template name="insertExampleBookmarks">
|
|
15833
15869
|
<xsl:param name="contents"/>
|
|
15870
|
+
<xsl:param name="num"/>
|
|
15834
15871
|
<xsl:param name="lang"/>
|
|
15835
15872
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
15836
15873
|
<xsl:if test="$contents_nodes/mnx:example">
|
|
@@ -15854,7 +15891,7 @@
|
|
|
15854
15891
|
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
15855
15892
|
|
|
15856
15893
|
<xsl:variable name="bookmark-title">
|
|
15857
|
-
<xsl:value-of select="$title-list-examples"/>
|
|
15894
|
+
<xsl:value-of select="$toc_title_lists/mnx:doc[@num = $num]/mnx:title-list-examples"/>
|
|
15858
15895
|
</xsl:variable>
|
|
15859
15896
|
|
|
15860
15897
|
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
|
@@ -16027,6 +16064,18 @@
|
|
|
16027
16064
|
</xsl:copy>
|
|
16028
16065
|
</xsl:template>
|
|
16029
16066
|
|
|
16067
|
+
<xsl:template match="mn:tt" mode="contents_item">
|
|
16068
|
+
<xsl:copy>
|
|
16069
|
+
<xsl:apply-templates mode="contents_item"/>
|
|
16070
|
+
</xsl:copy>
|
|
16071
|
+
</xsl:template>
|
|
16072
|
+
|
|
16073
|
+
<xsl:template match="*[local-name() = 'keep-together_within-line']" mode="contents_item">
|
|
16074
|
+
<xsl:copy>
|
|
16075
|
+
<xsl:apply-templates mode="contents_item"/>
|
|
16076
|
+
</xsl:copy>
|
|
16077
|
+
</xsl:template>
|
|
16078
|
+
|
|
16030
16079
|
<xsl:template match="mn:stem" mode="contents_item"/>
|
|
16031
16080
|
<xsl:template match="mn:fmt-stem" mode="contents_item">
|
|
16032
16081
|
<xsl:copy-of select="."/>
|