metanorma-bipm 2.8.7 → 2.8.10
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 +13 -1
- data/lib/isodoc/bipm/bipm.brochure.xsl +197 -26
- data/lib/isodoc/bipm/bipm.guide.xsl +197 -26
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +197 -26
- data/lib/isodoc/bipm/bipm.rapport.xsl +197 -26
- data/lib/isodoc/bipm/html/htmlstyle.css +1 -1
- data/lib/isodoc/bipm/html/htmlstyle.scss +1 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +204 -30
- data/lib/metanorma/bipm/basicdoc.rng +31 -6
- data/lib/metanorma/bipm/isodoc.rng +28 -3
- data/lib/metanorma/bipm/mathml3-common.rng +257 -0
- data/lib/metanorma/bipm/mathml3-content.rng +1544 -0
- data/lib/metanorma/bipm/mathml3-presentation.rng +2324 -0
- data/lib/metanorma/bipm/mathml3-strict-content.rng +205 -0
- data/lib/metanorma/bipm/mathml3.rng +23 -0
- data/lib/metanorma/bipm/metanorma-mathml.rng +45 -0
- data/lib/metanorma/bipm/reqt.rng +10 -2
- data/lib/metanorma/bipm/version.rb +1 -1
- data/lib/relaton/render/config.yml +9 -9
- data/metanorma-bipm.gemspec +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d48ce68eca58a03f89efa3ec9786cc63c8d2bdf553c1170c95bebd928827783f
|
|
4
|
+
data.tar.gz: 55a48fc7d328cc604b37921872fe69175b58d0934dddde9d3699a15e3f999730
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e1f1063ca440c5b0c0e16997e97dc67c32443c0e6658df28f8b374e946b9f78b6ea52e1ca3389fe52daeffc92f55ebdea253e385e7583ad40bb83512e60f0c6
|
|
7
|
+
data.tar.gz: 8d5d4fe4b9b422b5b92d5d79492f6a1e0afd02ed634e284ef257c20448fab220f23ea9d85c78b07fc30637f198e15015a6babde9382ad0c9a778de4d0d87124e
|
data/.rubocop.yml
CHANGED
|
@@ -3,8 +3,20 @@
|
|
|
3
3
|
inherit_from:
|
|
4
4
|
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
5
|
|
|
6
|
+
# Rubocop plugins enabled centrally so every metanorma-org gem picks them up
|
|
7
|
+
# on cimas sync — best practice belongs at the shared-template layer, not
|
|
8
|
+
# per-repo. Per ronaldtse feedback on metanorma/ci#332.
|
|
9
|
+
plugins:
|
|
10
|
+
- rubocop-rspec
|
|
11
|
+
- rubocop-performance
|
|
12
|
+
- rubocop-rake
|
|
13
|
+
|
|
6
14
|
# local repo-specific modifications
|
|
7
15
|
# ...
|
|
8
16
|
|
|
9
17
|
AllCops:
|
|
10
|
-
|
|
18
|
+
# 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
|
|
19
|
+
# Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
|
|
20
|
+
# this commit — 3.4 was above the org's stated minimum and would have
|
|
21
|
+
# applied Rubocop rules that fail-close on gems still targeting 3.3.
|
|
22
|
+
TargetRubyVersion: 3.3
|
|
@@ -1904,6 +1904,7 @@
|
|
|
1904
1904
|
<!-- <fo:block-container margin-left="-14mm" margin-right="0mm">
|
|
1905
1905
|
<fo:block-container margin-left="0mm" margin-right="0mm"> -->
|
|
1906
1906
|
<fo:block xsl:use-attribute-sets="toc-title-style">
|
|
1907
|
+
<xsl:call-template name="refine_toc-title-style"/>
|
|
1907
1908
|
<fo:inline><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:title[@language = $curr_lang and @type='title-main']"/></fo:inline>
|
|
1908
1909
|
<fo:inline keep-together.within-line="always">
|
|
1909
1910
|
<fo:leader leader-pattern="space"/>
|
|
@@ -1964,6 +1965,16 @@
|
|
|
1964
1965
|
<xsl:call-template name="insertListOf_Item"/>
|
|
1965
1966
|
</xsl:for-each>
|
|
1966
1967
|
|
|
1968
|
+
<!-- List of Examples -->
|
|
1969
|
+
<xsl:for-each select="$contents/mnx:doc[@id = $docid]//mnx:examples/mnx:example">
|
|
1970
|
+
<xsl:if test="position() = 1">
|
|
1971
|
+
<xsl:call-template name="insertListOf_Title">
|
|
1972
|
+
<xsl:with-param name="title" select="$title-list-examples"/>
|
|
1973
|
+
</xsl:call-template>
|
|
1974
|
+
</xsl:if>
|
|
1975
|
+
<xsl:call-template name="insertListOf_Item"/>
|
|
1976
|
+
</xsl:for-each>
|
|
1977
|
+
|
|
1967
1978
|
</fo:table-body>
|
|
1968
1979
|
</fo:table>
|
|
1969
1980
|
</xsl:if>
|
|
@@ -3957,6 +3968,16 @@
|
|
|
3957
3968
|
</xsl:if>
|
|
3958
3969
|
</xsl:variable>
|
|
3959
3970
|
|
|
3971
|
+
<xsl:variable name="title-list-examples">
|
|
3972
|
+
<xsl:variable name="toc_example_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title"/>
|
|
3973
|
+
<xsl:value-of select="$toc_example_title"/>
|
|
3974
|
+
<xsl:if test="normalize-space($toc_example_title) = ''">
|
|
3975
|
+
<xsl:call-template name="getLocalizedString">
|
|
3976
|
+
<xsl:with-param name="key">toc_examples</xsl:with-param>
|
|
3977
|
+
</xsl:call-template>
|
|
3978
|
+
</xsl:if>
|
|
3979
|
+
</xsl:variable>
|
|
3980
|
+
|
|
3960
3981
|
<xsl:variable name="title-list-recommendations">
|
|
3961
3982
|
<xsl:variable name="toc_requirement_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='requirement']/mn:title"/>
|
|
3962
3983
|
<xsl:value-of select="$toc_requirement_title"/>
|
|
@@ -4819,6 +4840,14 @@
|
|
|
4819
4840
|
|
|
4820
4841
|
<xsl:template match="@semx-id | @anchor" mode="update_xml_step1"/>
|
|
4821
4842
|
|
|
4843
|
+
<xsl:template match="mn:pagebreak" mode="update_xml_step1">
|
|
4844
|
+
<xsl:copy>
|
|
4845
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
4846
|
+
<xsl:attribute name="from_source_xml">true</xsl:attribute>
|
|
4847
|
+
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
|
4848
|
+
</xsl:copy>
|
|
4849
|
+
</xsl:template>
|
|
4850
|
+
|
|
4822
4851
|
<!-- END: update new Presentation XML -->
|
|
4823
4852
|
|
|
4824
4853
|
<!-- =========================================================================== -->
|
|
@@ -4856,6 +4885,7 @@
|
|
|
4856
4885
|
<xsl:for-each select="ancestor-or-self::*[ancestor::mn:preface or ancestor::mn:sections or ancestor-or-self::mn:annex]">
|
|
4857
4886
|
<xsl:if test="following-sibling::*">false</xsl:if>
|
|
4858
4887
|
</xsl:for-each>
|
|
4888
|
+
<xsl:if test="@from_source_xml = 'true'">false</xsl:if>
|
|
4859
4889
|
</xsl:variable>
|
|
4860
4890
|
|
|
4861
4891
|
<xsl:if test="contains($isLast, 'false')">
|
|
@@ -5768,6 +5798,7 @@
|
|
|
5768
5798
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
|
5769
5799
|
|
|
5770
5800
|
<xsl:template name="refine_sourcecode-style">
|
|
5801
|
+
<xsl:call-template name="setKeepAttributes"/>
|
|
5771
5802
|
</xsl:template> <!-- refine_sourcecode-style -->
|
|
5772
5803
|
|
|
5773
5804
|
<xsl:attribute-set name="sourcecode-number-style">
|
|
@@ -6503,10 +6534,38 @@
|
|
|
6503
6534
|
<xsl:template name="refine_strike-style">
|
|
6504
6535
|
</xsl:template>
|
|
6505
6536
|
|
|
6537
|
+
<xsl:attribute-set name="hr-block-style">
|
|
6538
|
+
<xsl:attribute name="font-size">1pt</xsl:attribute>
|
|
6539
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
6540
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
6541
|
+
<xsl:attribute name="padding-top">-2pt</xsl:attribute>
|
|
6542
|
+
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
|
6543
|
+
</xsl:attribute-set>
|
|
6544
|
+
|
|
6545
|
+
<xsl:template name="refine_hr-block-style">
|
|
6546
|
+
</xsl:template>
|
|
6547
|
+
|
|
6548
|
+
<xsl:attribute-set name="hr-style">
|
|
6549
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
6550
|
+
<xsl:attribute name="leader-length">100%</xsl:attribute>
|
|
6551
|
+
</xsl:attribute-set>
|
|
6552
|
+
|
|
6553
|
+
<xsl:template name="refine_hr-style">
|
|
6554
|
+
</xsl:template>
|
|
6555
|
+
|
|
6506
6556
|
<xsl:template match="mn:br">
|
|
6507
6557
|
<xsl:value-of select="$linebreak"/>
|
|
6508
6558
|
</xsl:template>
|
|
6509
6559
|
|
|
6560
|
+
<xsl:template match="mn:hr">
|
|
6561
|
+
<fo:block xsl:use-attribute-sets="hr-block-style">
|
|
6562
|
+
<xsl:call-template name="refine_hr-block-style"/>
|
|
6563
|
+
<fo:leader xsl:use-attribute-sets="hr-style">
|
|
6564
|
+
<xsl:call-template name="refine_hr-style"/>
|
|
6565
|
+
</fo:leader>
|
|
6566
|
+
</fo:block>
|
|
6567
|
+
</xsl:template>
|
|
6568
|
+
|
|
6510
6569
|
<xsl:template match="mn:em">
|
|
6511
6570
|
<fo:inline xsl:use-attribute-sets="em-style">
|
|
6512
6571
|
<xsl:call-template name="refine_em_style"/>
|
|
@@ -7724,6 +7783,7 @@
|
|
|
7724
7783
|
text line 1
|
|
7725
7784
|
text line 2
|
|
7726
7785
|
-->
|
|
7786
|
+
<xsl:variable name="example_display_in"><!-- don't change here, only for override xsl --></xsl:variable> <!-- block or inline -->
|
|
7727
7787
|
<xsl:template match="mn:example" name="example">
|
|
7728
7788
|
<xsl:call-template name="setNamedDestination"/>
|
|
7729
7789
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
@@ -7733,7 +7793,8 @@
|
|
|
7733
7793
|
<xsl:call-template name="refine_example-style"/>
|
|
7734
7794
|
|
|
7735
7795
|
<xsl:variable name="fo_element">
|
|
7736
|
-
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
7796
|
+
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
7797
|
+
<xsl:if test="normalize-space($example_display_in) != ''"><xsl:value-of select="$example_display_in"/></xsl:if>block
|
|
7737
7798
|
</xsl:variable>
|
|
7738
7799
|
|
|
7739
7800
|
<fo:block-container margin-left="0mm" role="SKIP">
|
|
@@ -9331,6 +9392,12 @@
|
|
|
9331
9392
|
<style name="{$key}-left"><xsl:value-of select="$value"/></style>
|
|
9332
9393
|
<style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
|
|
9333
9394
|
</xsl:if>
|
|
9395
|
+
<xsl:if test="$key = 'page-break-inside' and $value = 'avoid'">
|
|
9396
|
+
<style name="keep-together.within-page">always</style>
|
|
9397
|
+
</xsl:if>
|
|
9398
|
+
<xsl:if test="$key = 'page-break-after' and $value = 'always'">
|
|
9399
|
+
<style name="break-after">page</style>
|
|
9400
|
+
</xsl:if>
|
|
9334
9401
|
</xsl:for-each>
|
|
9335
9402
|
</xsl:variable>
|
|
9336
9403
|
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
|
@@ -9374,6 +9441,11 @@
|
|
|
9374
9441
|
|
|
9375
9442
|
<fo:block role="SKIP">
|
|
9376
9443
|
|
|
9444
|
+
<xsl:variable name="styles">
|
|
9445
|
+
<styles><xsl:call-template name="setTableStyles"/></styles>
|
|
9446
|
+
</xsl:variable>
|
|
9447
|
+
<xsl:copy-of select="xalan:nodeset($styles)/styles/@break-after"/>
|
|
9448
|
+
|
|
9377
9449
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
9378
9450
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
9379
9451
|
</xsl:if>
|
|
@@ -11556,9 +11628,25 @@
|
|
|
11556
11628
|
<!-- ====== -->
|
|
11557
11629
|
<!-- ====== -->
|
|
11558
11630
|
|
|
11559
|
-
<xsl:attribute-set name="quote-style">
|
|
11631
|
+
<xsl:attribute-set name="quote-container-style">
|
|
11560
11632
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
|
11561
11633
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
|
11634
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
11635
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
11636
|
+
</xsl:attribute-set>
|
|
11637
|
+
|
|
11638
|
+
<xsl:template name="refine_quote-container-style">
|
|
11639
|
+
<xsl:if test="parent::mn:note">
|
|
11640
|
+
<xsl:if test="not(ancestor::mn:table)">
|
|
11641
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
|
11642
|
+
</xsl:if>
|
|
11643
|
+
</xsl:if>
|
|
11644
|
+
</xsl:template>
|
|
11645
|
+
|
|
11646
|
+
<xsl:attribute-set name="quote-style">
|
|
11647
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
11648
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
11649
|
+
|
|
11562
11650
|
</xsl:attribute-set> <!-- quote-style -->
|
|
11563
11651
|
|
|
11564
11652
|
<xsl:template name="refine_quote-style">
|
|
@@ -11566,6 +11654,7 @@
|
|
|
11566
11654
|
|
|
11567
11655
|
<xsl:attribute-set name="quote-source-style">
|
|
11568
11656
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
|
11657
|
+
<xsl:attribute name="margin-right">-12mm</xsl:attribute>
|
|
11569
11658
|
</xsl:attribute-set> <!-- quote-source-style -->
|
|
11570
11659
|
|
|
11571
11660
|
<xsl:template name="refine_quote-source-style">
|
|
@@ -11588,12 +11677,9 @@
|
|
|
11588
11677
|
|
|
11589
11678
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
11590
11679
|
|
|
11591
|
-
<xsl:
|
|
11592
|
-
<xsl:
|
|
11593
|
-
|
|
11594
|
-
</xsl:if>
|
|
11595
|
-
</xsl:if>
|
|
11596
|
-
<fo:block-container margin-left="0mm" role="SKIP">
|
|
11680
|
+
<fo:block-container xsl:use-attribute-sets="quote-container-style">
|
|
11681
|
+
<xsl:call-template name="refine_quote-container-style"/>
|
|
11682
|
+
|
|
11597
11683
|
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
|
11598
11684
|
|
|
11599
11685
|
<xsl:call-template name="refine_quote-style"/>
|
|
@@ -11605,14 +11691,16 @@
|
|
|
11605
11691
|
</fo:block-container>
|
|
11606
11692
|
</fo:block-container>
|
|
11607
11693
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
|
11608
|
-
<fo:block
|
|
11609
|
-
<xsl:
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11694
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
11695
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
|
11696
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
|
11697
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
|
11698
|
+
<xsl:apply-templates select="mn:author"/>
|
|
11699
|
+
<xsl:apply-templates select="mn:fmt-source"/>
|
|
11700
|
+
<!-- added for https://github.com/metanorma/isodoc/issues/607 -->
|
|
11701
|
+
<xsl:apply-templates select="mn:attribution/mn:p/node()"/>
|
|
11702
|
+
</fo:block>
|
|
11703
|
+
</fo:block-container>
|
|
11616
11704
|
</xsl:if>
|
|
11617
11705
|
|
|
11618
11706
|
</fo:block-container>
|
|
@@ -15090,7 +15178,6 @@
|
|
|
15090
15178
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
15091
15179
|
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
|
15092
15180
|
<xsl:attribute name="margin-bottom">82pt</xsl:attribute>
|
|
15093
|
-
<xsl:attribute name="role">H1</xsl:attribute>
|
|
15094
15181
|
</xsl:attribute-set>
|
|
15095
15182
|
|
|
15096
15183
|
<xsl:template name="refine_toc-title-style">
|
|
@@ -15161,7 +15248,7 @@
|
|
|
15161
15248
|
<xsl:template name="refine_toc-pagenumber-style">
|
|
15162
15249
|
</xsl:template>
|
|
15163
15250
|
|
|
15164
|
-
<!-- List of Figures, Tables -->
|
|
15251
|
+
<!-- List of Figures, Tables, Examples -->
|
|
15165
15252
|
<xsl:attribute-set name="toc-listof-title-style">
|
|
15166
15253
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
|
15167
15254
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
@@ -15266,6 +15353,9 @@
|
|
|
15266
15353
|
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='figure']/mn:title) or normalize-space($always) = 'true'">
|
|
15267
15354
|
<xsl:call-template name="processFigures_Contents"/>
|
|
15268
15355
|
</xsl:if>
|
|
15356
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title)">
|
|
15357
|
+
<xsl:call-template name="processExamples_Contents"/>
|
|
15358
|
+
</xsl:if>
|
|
15269
15359
|
</xsl:template>
|
|
15270
15360
|
|
|
15271
15361
|
<xsl:template name="processTables_Contents">
|
|
@@ -15312,7 +15402,29 @@
|
|
|
15312
15402
|
</mnx:figures>
|
|
15313
15403
|
</xsl:template>
|
|
15314
15404
|
|
|
15315
|
-
<xsl:template
|
|
15405
|
+
<xsl:template name="processExamples_Contents">
|
|
15406
|
+
<mnx:examples>
|
|
15407
|
+
<xsl:for-each select="//mn:example[@id and mn:fmt-name and not(@unnumbered = 'true') and normalize-space(@id) != '']">
|
|
15408
|
+
<xsl:choose>
|
|
15409
|
+
<xsl:when test="mn:fmt-name">
|
|
15410
|
+
<xsl:variable name="fmt_name">
|
|
15411
|
+
<xsl:apply-templates select="mn:fmt-name" mode="update_xml_step1"/>
|
|
15412
|
+
</xsl:variable>
|
|
15413
|
+
<mnx:example id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
|
15414
|
+
<xsl:copy-of select="$fmt_name"/>
|
|
15415
|
+
</mnx:example>
|
|
15416
|
+
</xsl:when>
|
|
15417
|
+
<xsl:otherwise>
|
|
15418
|
+
<mnx:example id="{@id}" alt-text="{mn:name}">
|
|
15419
|
+
<xsl:copy-of select="mn:name"/>
|
|
15420
|
+
</mnx:example>
|
|
15421
|
+
</xsl:otherwise>
|
|
15422
|
+
</xsl:choose>
|
|
15423
|
+
</xsl:for-each>
|
|
15424
|
+
</mnx:examples>
|
|
15425
|
+
</xsl:template>
|
|
15426
|
+
|
|
15427
|
+
<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">
|
|
15316
15428
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
15317
15429
|
<xsl:apply-templates mode="contents"/>
|
|
15318
15430
|
<xsl:text> </xsl:text>
|
|
@@ -15321,40 +15433,40 @@
|
|
|
15321
15433
|
|
|
15322
15434
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="contents"/>
|
|
15323
15435
|
|
|
15324
|
-
<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">
|
|
15436
|
+
<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">
|
|
15325
15437
|
<xsl:apply-templates mode="contents"/>
|
|
15326
15438
|
<xsl:text> </xsl:text>
|
|
15327
15439
|
</xsl:template>
|
|
15328
15440
|
|
|
15329
|
-
<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">
|
|
15441
|
+
<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">
|
|
15330
15442
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
15331
15443
|
<xsl:apply-templates mode="bookmarks"/>
|
|
15332
15444
|
<xsl:text> </xsl:text>
|
|
15333
15445
|
</xsl:if>
|
|
15334
15446
|
</xsl:template>
|
|
15335
15447
|
|
|
15336
|
-
<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">
|
|
15448
|
+
<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">
|
|
15337
15449
|
<xsl:apply-templates mode="bookmarks"/>
|
|
15338
15450
|
<xsl:text> </xsl:text>
|
|
15339
15451
|
</xsl:template>
|
|
15340
15452
|
|
|
15341
|
-
<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">
|
|
15453
|
+
<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">
|
|
15342
15454
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
15343
15455
|
<xsl:value-of select="."/>
|
|
15344
15456
|
</xsl:if>
|
|
15345
15457
|
</xsl:template>
|
|
15346
15458
|
|
|
15347
|
-
<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">
|
|
15459
|
+
<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">
|
|
15348
15460
|
<xsl:value-of select="."/>
|
|
15349
15461
|
</xsl:template>
|
|
15350
15462
|
|
|
15351
|
-
<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">
|
|
15463
|
+
<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">
|
|
15352
15464
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
15353
15465
|
<xsl:value-of select="."/>
|
|
15354
15466
|
</xsl:if>
|
|
15355
15467
|
</xsl:template>
|
|
15356
15468
|
|
|
15357
|
-
<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">
|
|
15469
|
+
<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">
|
|
15358
15470
|
<xsl:value-of select="."/>
|
|
15359
15471
|
</xsl:template>
|
|
15360
15472
|
|
|
@@ -15587,6 +15699,11 @@
|
|
|
15587
15699
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15588
15700
|
</xsl:call-template>
|
|
15589
15701
|
|
|
15702
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
15703
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15704
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
15705
|
+
</xsl:call-template>
|
|
15706
|
+
|
|
15590
15707
|
</fo:bookmark>
|
|
15591
15708
|
|
|
15592
15709
|
</xsl:for-each>
|
|
@@ -15605,6 +15722,11 @@
|
|
|
15605
15722
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15606
15723
|
</xsl:call-template>
|
|
15607
15724
|
|
|
15725
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
15726
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
15727
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
15728
|
+
</xsl:call-template>
|
|
15729
|
+
|
|
15608
15730
|
</xsl:for-each>
|
|
15609
15731
|
</xsl:otherwise>
|
|
15610
15732
|
</xsl:choose>
|
|
@@ -15621,6 +15743,11 @@
|
|
|
15621
15743
|
<xsl:with-param name="lang" select="@lang"/>
|
|
15622
15744
|
</xsl:call-template>
|
|
15623
15745
|
|
|
15746
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
15747
|
+
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
15748
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
15749
|
+
</xsl:call-template>
|
|
15750
|
+
|
|
15624
15751
|
</xsl:otherwise>
|
|
15625
15752
|
</xsl:choose>
|
|
15626
15753
|
|
|
@@ -15701,6 +15828,46 @@
|
|
|
15701
15828
|
</fo:bookmark>
|
|
15702
15829
|
</xsl:if>
|
|
15703
15830
|
</xsl:template> <!-- insertTableBookmarks -->
|
|
15831
|
+
|
|
15832
|
+
<xsl:template name="insertExampleBookmarks">
|
|
15833
|
+
<xsl:param name="contents"/>
|
|
15834
|
+
<xsl:param name="lang"/>
|
|
15835
|
+
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
15836
|
+
<xsl:if test="$contents_nodes/mnx:example">
|
|
15837
|
+
<fo:bookmark internal-destination="{$contents_nodes/mnx:example[1]/@id}" starting-state="hide">
|
|
15838
|
+
<fo:bookmark-title>
|
|
15839
|
+
<xsl:choose>
|
|
15840
|
+
<xsl:when test="$lang = 'fr'">Exemples</xsl:when>
|
|
15841
|
+
<xsl:otherwise>Examples</xsl:otherwise>
|
|
15842
|
+
</xsl:choose>
|
|
15843
|
+
</fo:bookmark-title>
|
|
15844
|
+
<xsl:for-each select="$contents_nodes/mnx:example">
|
|
15845
|
+
<fo:bookmark internal-destination="{@id}">
|
|
15846
|
+
<fo:bookmark-title>
|
|
15847
|
+
<xsl:value-of select="normalize-space(mnx:title)"/>
|
|
15848
|
+
</fo:bookmark-title>
|
|
15849
|
+
</fo:bookmark>
|
|
15850
|
+
</xsl:for-each>
|
|
15851
|
+
</fo:bookmark>
|
|
15852
|
+
</xsl:if>
|
|
15853
|
+
<xsl:if test="$contents_nodes//mnx:examples/mnx:example">
|
|
15854
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
15855
|
+
|
|
15856
|
+
<xsl:variable name="bookmark-title">
|
|
15857
|
+
<xsl:value-of select="$title-list-examples"/>
|
|
15858
|
+
</xsl:variable>
|
|
15859
|
+
|
|
15860
|
+
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
|
15861
|
+
|
|
15862
|
+
<xsl:for-each select="$contents_nodes//mnx:examples/mnx:example">
|
|
15863
|
+
<fo:bookmark internal-destination="{@id}">
|
|
15864
|
+
<!-- <fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title> -->
|
|
15865
|
+
<fo:bookmark-title><xsl:apply-templates mode="bookmark_clean"/></fo:bookmark-title>
|
|
15866
|
+
</fo:bookmark>
|
|
15867
|
+
</xsl:for-each>
|
|
15868
|
+
</fo:bookmark>
|
|
15869
|
+
</xsl:if>
|
|
15870
|
+
</xsl:template> <!-- insertExampleBookmarks -->
|
|
15704
15871
|
<!-- End Bookmarks -->
|
|
15705
15872
|
|
|
15706
15873
|
<!-- ============================ -->
|
|
@@ -16741,6 +16908,10 @@
|
|
|
16741
16908
|
<fo:block break-after="page"/>
|
|
16742
16909
|
</xsl:template>
|
|
16743
16910
|
|
|
16911
|
+
<xsl:template match="mn:pagebreak[ancestor::mn:table]" priority="2">
|
|
16912
|
+
<fo:block break-after="page"/>
|
|
16913
|
+
</xsl:template>
|
|
16914
|
+
|
|
16744
16915
|
<xsl:variable name="font_main_root_style">
|
|
16745
16916
|
<root-style xsl:use-attribute-sets="root-style">
|
|
16746
16917
|
</root-style>
|