metanorma-plateau 1.2.11 → 1.2.13
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/plateau/plateau.international-standard.xsl +146 -25
- data/lib/metanorma/plateau/basicdoc.rng +31 -6
- data/lib/metanorma/plateau/isodoc.rng +28 -3
- data/lib/metanorma/plateau/mathml3-common.rng +257 -0
- data/lib/metanorma/plateau/mathml3-content.rng +1544 -0
- data/lib/metanorma/plateau/mathml3-presentation.rng +2324 -0
- data/lib/metanorma/plateau/mathml3-strict-content.rng +205 -0
- data/lib/metanorma/plateau/mathml3.rng +23 -0
- data/lib/metanorma/plateau/metanorma-mathml.rng +45 -0
- data/lib/metanorma/plateau/reqt.rng +10 -2
- data/lib/metanorma/plateau/version.rb +1 -1
- data/metanorma-plateau.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: f7a044fed25ca6093efc99d82e98a9423206bed619118aeeac4956cb862b3e81
|
|
4
|
+
data.tar.gz: f49e5ac9dc079fe7bb0865481a7ec9e4b6790fd1ad651e89cf892e1d93445af2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf0629ec09885b45edd805e1c3cc4e3e5b1f713b3271375864249d2db87c1af8d69345749b8846f6e08d1178d38644ac4ead0fb12f7478247c58c847ba89839b
|
|
7
|
+
data.tar.gz: 77f137a0ba513c3efd6d01785a9122ee1e942e9713e9d1a6454d84d743e36aa8e5c51a8f9363763b461778f981adb01b41b7899620682ad31ca3b8a31ecb1496
|
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
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
<xsl:call-template name="refine_toc-style"/>
|
|
493
493
|
|
|
494
494
|
<xsl:if test="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true']">
|
|
495
|
-
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true'][@level <= $toc_level or @type='figure' or @type = 'table']">
|
|
495
|
+
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true'][@level <= $toc_level or @type='figure' or @type = 'table' or @type = 'example']">
|
|
496
496
|
<fo:block role="TOCI">
|
|
497
497
|
<xsl:choose>
|
|
498
498
|
<xsl:when test="$doctype = 'technical-report'">
|
|
@@ -2152,6 +2152,16 @@
|
|
|
2152
2152
|
</xsl:if>
|
|
2153
2153
|
</xsl:variable>
|
|
2154
2154
|
|
|
2155
|
+
<xsl:variable name="title-list-examples">
|
|
2156
|
+
<xsl:variable name="toc_example_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title"/>
|
|
2157
|
+
<xsl:value-of select="$toc_example_title"/>
|
|
2158
|
+
<xsl:if test="normalize-space($toc_example_title) = ''">
|
|
2159
|
+
<xsl:call-template name="getLocalizedString">
|
|
2160
|
+
<xsl:with-param name="key">toc_examples</xsl:with-param>
|
|
2161
|
+
</xsl:call-template>
|
|
2162
|
+
</xsl:if>
|
|
2163
|
+
</xsl:variable>
|
|
2164
|
+
|
|
2155
2165
|
<xsl:variable name="title-list-recommendations">
|
|
2156
2166
|
<xsl:variable name="toc_requirement_title" select="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='requirement']/mn:title"/>
|
|
2157
2167
|
<xsl:value-of select="$toc_requirement_title"/>
|
|
@@ -7680,6 +7690,12 @@
|
|
|
7680
7690
|
<style name="{$key}-left"><xsl:value-of select="$value"/></style>
|
|
7681
7691
|
<style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
|
|
7682
7692
|
</xsl:if>
|
|
7693
|
+
<xsl:if test="$key = 'page-break-inside' and $value = 'avoid'">
|
|
7694
|
+
<style name="keep-together.within-page">always</style>
|
|
7695
|
+
</xsl:if>
|
|
7696
|
+
<xsl:if test="$key = 'page-break-after' and $value = 'always'">
|
|
7697
|
+
<style name="break-after">page</style>
|
|
7698
|
+
</xsl:if>
|
|
7683
7699
|
</xsl:for-each>
|
|
7684
7700
|
</xsl:variable>
|
|
7685
7701
|
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
|
@@ -7723,6 +7739,11 @@
|
|
|
7723
7739
|
|
|
7724
7740
|
<fo:block role="SKIP">
|
|
7725
7741
|
|
|
7742
|
+
<xsl:variable name="styles">
|
|
7743
|
+
<styles><xsl:call-template name="setTableStyles"/></styles>
|
|
7744
|
+
</xsl:variable>
|
|
7745
|
+
<xsl:copy-of select="xalan:nodeset($styles)/styles/@break-after"/>
|
|
7746
|
+
|
|
7726
7747
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
7727
7748
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
7728
7749
|
</xsl:if>
|
|
@@ -9916,11 +9937,27 @@
|
|
|
9916
9937
|
<!-- ====== -->
|
|
9917
9938
|
<!-- ====== -->
|
|
9918
9939
|
|
|
9919
|
-
<xsl:attribute-set name="quote-style">
|
|
9940
|
+
<xsl:attribute-set name="quote-container-style">
|
|
9920
9941
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
|
9921
9942
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
|
9943
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
9944
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
9922
9945
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
9923
9946
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
9947
|
+
</xsl:attribute-set>
|
|
9948
|
+
|
|
9949
|
+
<xsl:template name="refine_quote-container-style">
|
|
9950
|
+
<xsl:if test="parent::mn:note">
|
|
9951
|
+
<xsl:if test="not(ancestor::mn:table)">
|
|
9952
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
|
9953
|
+
</xsl:if>
|
|
9954
|
+
</xsl:if>
|
|
9955
|
+
</xsl:template>
|
|
9956
|
+
|
|
9957
|
+
<xsl:attribute-set name="quote-style">
|
|
9958
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
9959
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
9960
|
+
|
|
9924
9961
|
</xsl:attribute-set> <!-- quote-style -->
|
|
9925
9962
|
|
|
9926
9963
|
<xsl:template name="refine_quote-style">
|
|
@@ -9928,6 +9965,7 @@
|
|
|
9928
9965
|
|
|
9929
9966
|
<xsl:attribute-set name="quote-source-style">
|
|
9930
9967
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
|
9968
|
+
<xsl:attribute name="margin-right">-12mm</xsl:attribute>
|
|
9931
9969
|
</xsl:attribute-set> <!-- quote-source-style -->
|
|
9932
9970
|
|
|
9933
9971
|
<xsl:template name="refine_quote-source-style">
|
|
@@ -9951,12 +9989,9 @@
|
|
|
9951
9989
|
|
|
9952
9990
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
9953
9991
|
|
|
9954
|
-
<xsl:
|
|
9955
|
-
<xsl:
|
|
9956
|
-
|
|
9957
|
-
</xsl:if>
|
|
9958
|
-
</xsl:if>
|
|
9959
|
-
<fo:block-container margin-left="0mm" role="SKIP">
|
|
9992
|
+
<fo:block-container xsl:use-attribute-sets="quote-container-style">
|
|
9993
|
+
<xsl:call-template name="refine_quote-container-style"/>
|
|
9994
|
+
|
|
9960
9995
|
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
|
9961
9996
|
|
|
9962
9997
|
<xsl:call-template name="refine_quote-style"/>
|
|
@@ -9968,14 +10003,16 @@
|
|
|
9968
10003
|
</fo:block-container>
|
|
9969
10004
|
</fo:block-container>
|
|
9970
10005
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
|
9971
|
-
<fo:block
|
|
9972
|
-
<xsl:
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
10006
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
10007
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
|
10008
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
|
10009
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
|
10010
|
+
<xsl:apply-templates select="mn:author"/>
|
|
10011
|
+
<xsl:apply-templates select="mn:fmt-source"/>
|
|
10012
|
+
<!-- added for https://github.com/metanorma/isodoc/issues/607 -->
|
|
10013
|
+
<xsl:apply-templates select="mn:attribution/mn:p/node()"/>
|
|
10014
|
+
</fo:block>
|
|
10015
|
+
</fo:block-container>
|
|
9979
10016
|
</xsl:if>
|
|
9980
10017
|
|
|
9981
10018
|
</fo:block-container>
|
|
@@ -13455,7 +13492,7 @@
|
|
|
13455
13492
|
<xsl:template name="refine_toc-pagenumber-style">
|
|
13456
13493
|
</xsl:template>
|
|
13457
13494
|
|
|
13458
|
-
<!-- List of Figures, Tables -->
|
|
13495
|
+
<!-- List of Figures, Tables, Examples -->
|
|
13459
13496
|
<xsl:attribute-set name="toc-listof-title-style">
|
|
13460
13497
|
</xsl:attribute-set>
|
|
13461
13498
|
|
|
@@ -13553,6 +13590,9 @@
|
|
|
13553
13590
|
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='figure']/mn:title) or normalize-space($always) = 'true'">
|
|
13554
13591
|
<xsl:call-template name="processFigures_Contents"/>
|
|
13555
13592
|
</xsl:if>
|
|
13593
|
+
<xsl:if test="(//mn:metanorma/mn:metanorma-extension/mn:toc[@type='example']/mn:title)">
|
|
13594
|
+
<xsl:call-template name="processExamples_Contents"/>
|
|
13595
|
+
</xsl:if>
|
|
13556
13596
|
</xsl:template>
|
|
13557
13597
|
|
|
13558
13598
|
<xsl:template name="processTables_Contents">
|
|
@@ -13599,7 +13639,29 @@
|
|
|
13599
13639
|
</mnx:figures>
|
|
13600
13640
|
</xsl:template>
|
|
13601
13641
|
|
|
13602
|
-
<xsl:template
|
|
13642
|
+
<xsl:template name="processExamples_Contents">
|
|
13643
|
+
<mnx:examples>
|
|
13644
|
+
<xsl:for-each select="//mn:example[@id and mn:fmt-name and not(@unnumbered = 'true') and normalize-space(@id) != '']">
|
|
13645
|
+
<xsl:choose>
|
|
13646
|
+
<xsl:when test="mn:fmt-name">
|
|
13647
|
+
<xsl:variable name="fmt_name">
|
|
13648
|
+
<xsl:apply-templates select="mn:fmt-name" mode="update_xml_step1"/>
|
|
13649
|
+
</xsl:variable>
|
|
13650
|
+
<mnx:example id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
|
13651
|
+
<xsl:copy-of select="$fmt_name"/>
|
|
13652
|
+
</mnx:example>
|
|
13653
|
+
</xsl:when>
|
|
13654
|
+
<xsl:otherwise>
|
|
13655
|
+
<mnx:example id="{@id}" alt-text="{mn:name}">
|
|
13656
|
+
<xsl:copy-of select="mn:name"/>
|
|
13657
|
+
</mnx:example>
|
|
13658
|
+
</xsl:otherwise>
|
|
13659
|
+
</xsl:choose>
|
|
13660
|
+
</xsl:for-each>
|
|
13661
|
+
</mnx:examples>
|
|
13662
|
+
</xsl:template>
|
|
13663
|
+
|
|
13664
|
+
<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">
|
|
13603
13665
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
13604
13666
|
<xsl:apply-templates mode="contents"/>
|
|
13605
13667
|
<xsl:text> </xsl:text>
|
|
@@ -13608,40 +13670,40 @@
|
|
|
13608
13670
|
|
|
13609
13671
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="contents"/>
|
|
13610
13672
|
|
|
13611
|
-
<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">
|
|
13673
|
+
<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">
|
|
13612
13674
|
<xsl:apply-templates mode="contents"/>
|
|
13613
13675
|
<xsl:text> </xsl:text>
|
|
13614
13676
|
</xsl:template>
|
|
13615
13677
|
|
|
13616
|
-
<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">
|
|
13678
|
+
<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">
|
|
13617
13679
|
<xsl:if test="not(following-sibling::*[1][self::mn:fmt-name])">
|
|
13618
13680
|
<xsl:apply-templates mode="bookmarks"/>
|
|
13619
13681
|
<xsl:text> </xsl:text>
|
|
13620
13682
|
</xsl:if>
|
|
13621
13683
|
</xsl:template>
|
|
13622
13684
|
|
|
13623
|
-
<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">
|
|
13685
|
+
<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">
|
|
13624
13686
|
<xsl:apply-templates mode="bookmarks"/>
|
|
13625
13687
|
<xsl:text> </xsl:text>
|
|
13626
13688
|
</xsl:template>
|
|
13627
13689
|
|
|
13628
|
-
<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">
|
|
13690
|
+
<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">
|
|
13629
13691
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
13630
13692
|
<xsl:value-of select="."/>
|
|
13631
13693
|
</xsl:if>
|
|
13632
13694
|
</xsl:template>
|
|
13633
13695
|
|
|
13634
|
-
<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">
|
|
13696
|
+
<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">
|
|
13635
13697
|
<xsl:value-of select="."/>
|
|
13636
13698
|
</xsl:template>
|
|
13637
13699
|
|
|
13638
|
-
<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">
|
|
13700
|
+
<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">
|
|
13639
13701
|
<xsl:if test="not(../following-sibling::*[1][self::mn:fmt-name])">
|
|
13640
13702
|
<xsl:value-of select="."/>
|
|
13641
13703
|
</xsl:if>
|
|
13642
13704
|
</xsl:template>
|
|
13643
13705
|
|
|
13644
|
-
<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">
|
|
13706
|
+
<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">
|
|
13645
13707
|
<xsl:value-of select="."/>
|
|
13646
13708
|
</xsl:template>
|
|
13647
13709
|
|
|
@@ -13874,6 +13936,11 @@
|
|
|
13874
13936
|
<xsl:with-param name="lang" select="@lang"/>
|
|
13875
13937
|
</xsl:call-template>
|
|
13876
13938
|
|
|
13939
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
13940
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
13941
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
13942
|
+
</xsl:call-template>
|
|
13943
|
+
|
|
13877
13944
|
</fo:bookmark>
|
|
13878
13945
|
|
|
13879
13946
|
</xsl:for-each>
|
|
@@ -13892,6 +13959,11 @@
|
|
|
13892
13959
|
<xsl:with-param name="lang" select="@lang"/>
|
|
13893
13960
|
</xsl:call-template>
|
|
13894
13961
|
|
|
13962
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
13963
|
+
<xsl:with-param name="contents" select="mnx:contents"/>
|
|
13964
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
13965
|
+
</xsl:call-template>
|
|
13966
|
+
|
|
13895
13967
|
</xsl:for-each>
|
|
13896
13968
|
</xsl:otherwise>
|
|
13897
13969
|
</xsl:choose>
|
|
@@ -13908,6 +13980,11 @@
|
|
|
13908
13980
|
<xsl:with-param name="lang" select="@lang"/>
|
|
13909
13981
|
</xsl:call-template>
|
|
13910
13982
|
|
|
13983
|
+
<xsl:call-template name="insertExampleBookmarks">
|
|
13984
|
+
<xsl:with-param name="contents" select="$contents_nodes/mnx:contents"/>
|
|
13985
|
+
<xsl:with-param name="lang" select="@lang"/>
|
|
13986
|
+
</xsl:call-template>
|
|
13987
|
+
|
|
13911
13988
|
</xsl:otherwise>
|
|
13912
13989
|
</xsl:choose>
|
|
13913
13990
|
|
|
@@ -13988,6 +14065,46 @@
|
|
|
13988
14065
|
</fo:bookmark>
|
|
13989
14066
|
</xsl:if>
|
|
13990
14067
|
</xsl:template> <!-- insertTableBookmarks -->
|
|
14068
|
+
|
|
14069
|
+
<xsl:template name="insertExampleBookmarks">
|
|
14070
|
+
<xsl:param name="contents"/>
|
|
14071
|
+
<xsl:param name="lang"/>
|
|
14072
|
+
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
|
14073
|
+
<xsl:if test="$contents_nodes/mnx:example">
|
|
14074
|
+
<fo:bookmark internal-destination="{$contents_nodes/mnx:example[1]/@id}" starting-state="hide">
|
|
14075
|
+
<fo:bookmark-title>
|
|
14076
|
+
<xsl:choose>
|
|
14077
|
+
<xsl:when test="$lang = 'fr'">Exemples</xsl:when>
|
|
14078
|
+
<xsl:otherwise>Examples</xsl:otherwise>
|
|
14079
|
+
</xsl:choose>
|
|
14080
|
+
</fo:bookmark-title>
|
|
14081
|
+
<xsl:for-each select="$contents_nodes/mnx:example">
|
|
14082
|
+
<fo:bookmark internal-destination="{@id}">
|
|
14083
|
+
<fo:bookmark-title>
|
|
14084
|
+
<xsl:value-of select="normalize-space(mnx:title)"/>
|
|
14085
|
+
</fo:bookmark-title>
|
|
14086
|
+
</fo:bookmark>
|
|
14087
|
+
</xsl:for-each>
|
|
14088
|
+
</fo:bookmark>
|
|
14089
|
+
</xsl:if>
|
|
14090
|
+
<xsl:if test="$contents_nodes//mnx:examples/mnx:example">
|
|
14091
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
|
14092
|
+
|
|
14093
|
+
<xsl:variable name="bookmark-title">
|
|
14094
|
+
<xsl:value-of select="$title-list-examples"/>
|
|
14095
|
+
</xsl:variable>
|
|
14096
|
+
|
|
14097
|
+
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
|
14098
|
+
|
|
14099
|
+
<xsl:for-each select="$contents_nodes//mnx:examples/mnx:example">
|
|
14100
|
+
<fo:bookmark internal-destination="{@id}">
|
|
14101
|
+
<!-- <fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title> -->
|
|
14102
|
+
<fo:bookmark-title><xsl:apply-templates mode="bookmark_clean"/></fo:bookmark-title>
|
|
14103
|
+
</fo:bookmark>
|
|
14104
|
+
</xsl:for-each>
|
|
14105
|
+
</fo:bookmark>
|
|
14106
|
+
</xsl:if>
|
|
14107
|
+
</xsl:template> <!-- insertExampleBookmarks -->
|
|
13991
14108
|
<!-- End Bookmarks -->
|
|
13992
14109
|
|
|
13993
14110
|
<!-- ============================ -->
|
|
@@ -15118,6 +15235,10 @@
|
|
|
15118
15235
|
<fo:block break-after="page"/>
|
|
15119
15236
|
</xsl:template>
|
|
15120
15237
|
|
|
15238
|
+
<xsl:template match="mn:pagebreak[ancestor::mn:table]" priority="2">
|
|
15239
|
+
<fo:block break-after="page"/>
|
|
15240
|
+
</xsl:template>
|
|
15241
|
+
|
|
15121
15242
|
<xsl:variable name="font_main_root_style">
|
|
15122
15243
|
<root-style xsl:use-attribute-sets="root-style">
|
|
15123
15244
|
</root-style>
|
|
@@ -1902,15 +1902,40 @@ or as the string "auto"</a:documentation>
|
|
|
1902
1902
|
<a:documentation>Mathematically formatted text</a:documentation>
|
|
1903
1903
|
<element name="stem">
|
|
1904
1904
|
<ref name="StemAttributes"/>
|
|
1905
|
-
<
|
|
1906
|
-
<
|
|
1905
|
+
<optional>
|
|
1906
|
+
<text>
|
|
1907
1907
|
<a:documentation>The content of the mathematically formatted text</a:documentation>
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1908
|
+
</text>
|
|
1909
|
+
</optional>
|
|
1910
|
+
<optional>
|
|
1911
|
+
<ref name="mathml"/>
|
|
1912
|
+
</optional>
|
|
1913
|
+
<optional>
|
|
1914
|
+
<ref name="asciimath"/>
|
|
1915
|
+
</optional>
|
|
1916
|
+
<optional>
|
|
1917
|
+
<ref name="latexmath"/>
|
|
1918
|
+
</optional>
|
|
1912
1919
|
</element>
|
|
1913
1920
|
</define>
|
|
1921
|
+
<define name="latexmath">
|
|
1922
|
+
<a:documentation>Encoding of LatexMath</a:documentation>
|
|
1923
|
+
<element name="latexmath">
|
|
1924
|
+
<text/>
|
|
1925
|
+
</element>
|
|
1926
|
+
</define>
|
|
1927
|
+
<define name="asciimath">
|
|
1928
|
+
<a:documentation>Encoding of AsciiMath</a:documentation>
|
|
1929
|
+
<element name="asciimath">
|
|
1930
|
+
<text/>
|
|
1931
|
+
</element>
|
|
1932
|
+
</define>
|
|
1933
|
+
<define name="mathml">
|
|
1934
|
+
<a:documentation>Encoding of MathML: the official W3C MathML 3.0 grammar (namespace
|
|
1935
|
+
http://www.w3.org/1998/Math/MathML), via the metanorma wrapper in
|
|
1936
|
+
grammars/mathml/. See grammars/mathml/README.adoc and basicdoc-models#35.</a:documentation>
|
|
1937
|
+
<externalRef href="metanorma-mathml.rng"/>
|
|
1938
|
+
</define>
|
|
1914
1939
|
<define name="StemAttributes">
|
|
1915
1940
|
<attribute name="type">
|
|
1916
1941
|
<a:documentation>The notation used to mathematically format the text</a:documentation>
|
|
@@ -213,6 +213,12 @@ Sources are currently only rendered in metanorma-plateau</a:documentation>
|
|
|
213
213
|
<define name="ExampleAttributes">
|
|
214
214
|
<ref name="NumberingAttributes"/>
|
|
215
215
|
<ref name="BlockAttributes"/>
|
|
216
|
+
<optional>
|
|
217
|
+
<attribute name="collapsible">
|
|
218
|
+
<a:documentation>Render the example as collapsible (HTML5 details/summary)</a:documentation>
|
|
219
|
+
<data type="boolean"/>
|
|
220
|
+
</attribute>
|
|
221
|
+
</optional>
|
|
216
222
|
</define>
|
|
217
223
|
<define name="ExampleBody">
|
|
218
224
|
<optional>
|
|
@@ -846,7 +852,7 @@ titlecase, or lowercase</a:documentation>
|
|
|
846
852
|
<a:documentation>Width of the figure block in rendering</a:documentation>
|
|
847
853
|
</attribute>
|
|
848
854
|
</optional>
|
|
849
|
-
<ref name="
|
|
855
|
+
<ref name="BlockAttributesCore"/>
|
|
850
856
|
</define>
|
|
851
857
|
<define name="SourceAttributes" combine="interleave">
|
|
852
858
|
<ref name="BlockAttributes"/>
|
|
@@ -1277,7 +1283,11 @@ That concept may be defined as a term within the current document, or it may be
|
|
|
1277
1283
|
<a:documentation>Class of input form</a:documentation>
|
|
1278
1284
|
</attribute>
|
|
1279
1285
|
</optional>
|
|
1280
|
-
<ref name="
|
|
1286
|
+
<ref name="BlockAttributesCore">
|
|
1287
|
+
<a:documentation>form declares its own class above, so it uses BlockAttributesCore to
|
|
1288
|
+
avoid duplicating the custom-class slot in BlockAttributes. Treated like
|
|
1289
|
+
figure. See metanorma/metanorma-standoc#1197</a:documentation>
|
|
1290
|
+
</ref>
|
|
1281
1291
|
<zeroOrMore>
|
|
1282
1292
|
<!-- Input form contents -->
|
|
1283
1293
|
<choice>
|
|
@@ -2762,7 +2772,11 @@ links within an SVG file, so that the SVG file can hyperlink to anchors within t
|
|
|
2762
2772
|
</oneOrMore>
|
|
2763
2773
|
</element>
|
|
2764
2774
|
</define>
|
|
2765
|
-
<define name="
|
|
2775
|
+
<define name="BlockAttributesCore">
|
|
2776
|
+
<a:documentation>Block attributes excluding the custom CSS class. Blocks that already carry
|
|
2777
|
+
their own `class` attribute (e.g. figure, via basicdoc FigureAttributes)
|
|
2778
|
+
include this directly, to avoid a duplicate-attribute collision with the
|
|
2779
|
+
`class` added in BlockAttributes. See metanorma/metanorma-standoc#1197</a:documentation>
|
|
2766
2780
|
<optional>
|
|
2767
2781
|
<attribute name="keep-with-next">
|
|
2768
2782
|
<a:documentation>Keep this block on the same page as the following block in paged media</a:documentation>
|
|
@@ -2794,6 +2808,17 @@ to span across both columns</a:documentation>
|
|
|
2794
2808
|
</attribute>
|
|
2795
2809
|
</optional>
|
|
2796
2810
|
</define>
|
|
2811
|
+
<define name="BlockAttributes">
|
|
2812
|
+
<a:documentation>Universal block attributes, including a custom CSS class (space-separated,
|
|
2813
|
+
appended additively to the block's built-in HTML class, HTML output only).
|
|
2814
|
+
See metanorma/metanorma-standoc#1197</a:documentation>
|
|
2815
|
+
<ref name="BlockAttributesCore"/>
|
|
2816
|
+
<optional>
|
|
2817
|
+
<attribute name="class">
|
|
2818
|
+
<a:documentation>Custom CSS class(es) for the block in HTML output</a:documentation>
|
|
2819
|
+
</attribute>
|
|
2820
|
+
</optional>
|
|
2821
|
+
</define>
|
|
2797
2822
|
<define name="DisplayDirective">
|
|
2798
2823
|
<a:documentation>Directive on how to render a block in Presentation XML </a:documentation>
|
|
2799
2824
|
<optional>
|