metanorma-plateau 1.2.10 → 1.2.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/plateau/plateau.international-standard.xsl +41 -1
- data/lib/metanorma/plateau/basicdoc.rng +9 -0
- data/lib/metanorma/plateau/biblio.rng +8 -12
- data/lib/metanorma/plateau/isodoc.rng +32 -6
- data/lib/metanorma/plateau/reqt.rng +9 -1
- data/lib/metanorma/plateau/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: 52ca79d91f14e92be72cae549b490bb0dca33189218a5cd5976d402fd0f7da0c
|
|
4
|
+
data.tar.gz: 16119b5d4f52aa08b614ff6d875bbcf801eebf9860bfda5e8a4ed22b1480a1a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7173bd6285f91673616a3523223e584adc5c8088352c167a71ca0f71e3b03ca61741978f6c2cd3db478793e5eca560aa3a34ab691160fe3de6d0db250eec6ebe
|
|
7
|
+
data.tar.gz: 19517e840ca8144fea7f1f5e0204af2b2497ce33aaafc766b60367ca2ddc0f66c4b4eb0d591a79eee0c8ad55656ba539debc349d3ba1007869fcbff836c9c588
|
|
@@ -3049,6 +3049,14 @@
|
|
|
3049
3049
|
|
|
3050
3050
|
<xsl:template match="@semx-id | @anchor" mode="update_xml_step1"/>
|
|
3051
3051
|
|
|
3052
|
+
<xsl:template match="mn:pagebreak" mode="update_xml_step1">
|
|
3053
|
+
<xsl:copy>
|
|
3054
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
3055
|
+
<xsl:attribute name="from_source_xml">true</xsl:attribute>
|
|
3056
|
+
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
|
3057
|
+
</xsl:copy>
|
|
3058
|
+
</xsl:template>
|
|
3059
|
+
|
|
3052
3060
|
<!-- END: update new Presentation XML -->
|
|
3053
3061
|
|
|
3054
3062
|
<!-- =========================================================================== -->
|
|
@@ -3086,6 +3094,7 @@
|
|
|
3086
3094
|
<xsl:for-each select="ancestor-or-self::*[ancestor::mn:preface or ancestor::mn:sections or ancestor-or-self::mn:annex]">
|
|
3087
3095
|
<xsl:if test="following-sibling::*">false</xsl:if>
|
|
3088
3096
|
</xsl:for-each>
|
|
3097
|
+
<xsl:if test="@from_source_xml = 'true'">false</xsl:if>
|
|
3089
3098
|
</xsl:variable>
|
|
3090
3099
|
|
|
3091
3100
|
<xsl:if test="contains($isLast, 'false')">
|
|
@@ -4081,6 +4090,7 @@
|
|
|
4081
4090
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
|
4082
4091
|
|
|
4083
4092
|
<xsl:template name="refine_sourcecode-style">
|
|
4093
|
+
<xsl:call-template name="setKeepAttributes"/>
|
|
4084
4094
|
</xsl:template> <!-- refine_sourcecode-style -->
|
|
4085
4095
|
|
|
4086
4096
|
<xsl:attribute-set name="sourcecode-number-style">
|
|
@@ -4835,10 +4845,38 @@
|
|
|
4835
4845
|
<xsl:template name="refine_strike-style">
|
|
4836
4846
|
</xsl:template>
|
|
4837
4847
|
|
|
4848
|
+
<xsl:attribute-set name="hr-block-style">
|
|
4849
|
+
<xsl:attribute name="font-size">1pt</xsl:attribute>
|
|
4850
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
4851
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
4852
|
+
<xsl:attribute name="padding-top">-2pt</xsl:attribute>
|
|
4853
|
+
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
|
4854
|
+
</xsl:attribute-set>
|
|
4855
|
+
|
|
4856
|
+
<xsl:template name="refine_hr-block-style">
|
|
4857
|
+
</xsl:template>
|
|
4858
|
+
|
|
4859
|
+
<xsl:attribute-set name="hr-style">
|
|
4860
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
4861
|
+
<xsl:attribute name="leader-length">100%</xsl:attribute>
|
|
4862
|
+
</xsl:attribute-set>
|
|
4863
|
+
|
|
4864
|
+
<xsl:template name="refine_hr-style">
|
|
4865
|
+
</xsl:template>
|
|
4866
|
+
|
|
4838
4867
|
<xsl:template match="mn:br">
|
|
4839
4868
|
<xsl:value-of select="$linebreak"/>
|
|
4840
4869
|
</xsl:template>
|
|
4841
4870
|
|
|
4871
|
+
<xsl:template match="mn:hr">
|
|
4872
|
+
<fo:block xsl:use-attribute-sets="hr-block-style">
|
|
4873
|
+
<xsl:call-template name="refine_hr-block-style"/>
|
|
4874
|
+
<fo:leader xsl:use-attribute-sets="hr-style">
|
|
4875
|
+
<xsl:call-template name="refine_hr-style"/>
|
|
4876
|
+
</fo:leader>
|
|
4877
|
+
</fo:block>
|
|
4878
|
+
</xsl:template>
|
|
4879
|
+
|
|
4842
4880
|
<xsl:template match="mn:em">
|
|
4843
4881
|
<fo:inline xsl:use-attribute-sets="em-style">
|
|
4844
4882
|
<xsl:call-template name="refine_em_style"/>
|
|
@@ -6067,6 +6105,7 @@
|
|
|
6067
6105
|
text line 1
|
|
6068
6106
|
text line 2
|
|
6069
6107
|
-->
|
|
6108
|
+
<xsl:variable name="example_display_in"><!-- don't change here, only for override xsl --></xsl:variable> <!-- block or inline -->
|
|
6070
6109
|
<xsl:template match="mn:example" name="example">
|
|
6071
6110
|
<xsl:call-template name="setNamedDestination"/>
|
|
6072
6111
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
@@ -6076,7 +6115,8 @@
|
|
|
6076
6115
|
<xsl:call-template name="refine_example-style"/>
|
|
6077
6116
|
|
|
6078
6117
|
<xsl:variable name="fo_element">
|
|
6079
|
-
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
6118
|
+
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
6119
|
+
<xsl:if test="normalize-space($example_display_in) != ''"><xsl:value-of select="$example_display_in"/></xsl:if>block
|
|
6080
6120
|
</xsl:variable>
|
|
6081
6121
|
|
|
6082
6122
|
<fo:block-container margin-left="0mm" role="SKIP">
|
|
@@ -187,6 +187,15 @@ Applicable to modify and delete</a:documentation>
|
|
|
187
187
|
<a:documentation>Optional caption of this block</a:documentation>
|
|
188
188
|
</attribute>
|
|
189
189
|
</optional>
|
|
190
|
+
<optional>
|
|
191
|
+
<attribute name="position">
|
|
192
|
+
<a:documentation>For an "add" change, whether the change is added before or after the location</a:documentation>
|
|
193
|
+
<choice>
|
|
194
|
+
<value>before</value>
|
|
195
|
+
<value>after</value>
|
|
196
|
+
</choice>
|
|
197
|
+
</attribute>
|
|
198
|
+
</optional>
|
|
190
199
|
<optional>
|
|
191
200
|
<element name="location">
|
|
192
201
|
<a:documentation>The location(s) in the original document which have undergone the change described in this block</a:documentation>
|
|
@@ -1142,11 +1142,11 @@ NOTE: This should preferably be encoded as a URI or short identifier, rather th
|
|
|
1142
1142
|
<a:documentation>Information about how long the current description of the bibliographic item is valid for</a:documentation>
|
|
1143
1143
|
</ref>
|
|
1144
1144
|
</optional>
|
|
1145
|
-
<
|
|
1145
|
+
<zeroOrMore>
|
|
1146
1146
|
<ref name="depiction">
|
|
1147
1147
|
<a:documentation>Depiction of the bibliographic item, typically an image</a:documentation>
|
|
1148
1148
|
</ref>
|
|
1149
|
-
</
|
|
1149
|
+
</zeroOrMore>
|
|
1150
1150
|
</define>
|
|
1151
1151
|
<define name="ReducedBibliographicItem">
|
|
1152
1152
|
<a:documentation>Reduced description of a bibliographic resource, without mandatory title and docidentifier, used for document relations
|
|
@@ -2015,15 +2015,11 @@ provided that it is not the entire bibliographic item that is so related</a:docu
|
|
|
2015
2015
|
<a:documentation>A version of the bibliographic item (within an edition). Can be used for drafts</a:documentation>
|
|
2016
2016
|
<element name="version">
|
|
2017
2017
|
<optional>
|
|
2018
|
-
<
|
|
2019
|
-
<a:documentation>
|
|
2020
|
-
</
|
|
2021
|
-
</optional>
|
|
2022
|
-
<optional>
|
|
2023
|
-
<ref name="draft">
|
|
2024
|
-
<a:documentation>The identifier for the current draft of the bibliographic item</a:documentation>
|
|
2025
|
-
</ref>
|
|
2018
|
+
<attribute name="type">
|
|
2019
|
+
<a:documentation>Versioning scheme, in case of multiple versioning schemes</a:documentation>
|
|
2020
|
+
</attribute>
|
|
2026
2021
|
</optional>
|
|
2022
|
+
<text/>
|
|
2027
2023
|
</element>
|
|
2028
2024
|
</define>
|
|
2029
2025
|
<define name="vedition">
|
|
@@ -2063,13 +2059,13 @@ provided that it is not the entire bibliographic item that is so related</a:docu
|
|
|
2063
2059
|
<ref name="LocalizedString"/>
|
|
2064
2060
|
</element>
|
|
2065
2061
|
</optional>
|
|
2066
|
-
<
|
|
2062
|
+
<zeroOrMore>
|
|
2067
2063
|
<element name="taxon">
|
|
2068
2064
|
<a:documentation>The keywords as a hierarchical taxonomy. For example, the sequence of `taxon` elements
|
|
2069
2065
|
`pump`, `centrifugal pump`, `line shaft pump` represents a taxonomic classification</a:documentation>
|
|
2070
2066
|
<ref name="LocalizedString"/>
|
|
2071
2067
|
</element>
|
|
2072
|
-
</
|
|
2068
|
+
</zeroOrMore>
|
|
2073
2069
|
<zeroOrMore>
|
|
2074
2070
|
<ref name="vocabid">
|
|
2075
2071
|
<a:documentation>Identifiers for the keyword as a controlled vocabulary</a:documentation>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<!-- VERSION v2.1.
|
|
3
|
+
<!-- VERSION v2.1.6 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
|
@@ -164,6 +164,9 @@ Sources are currently only rendered in metanorma-plateau</a:documentation>
|
|
|
164
164
|
</choice>
|
|
165
165
|
</attribute>
|
|
166
166
|
</optional>
|
|
167
|
+
<optional>
|
|
168
|
+
<ref name="DisplayDirective"/>
|
|
169
|
+
</optional>
|
|
167
170
|
</define>
|
|
168
171
|
<define name="DlAttributes">
|
|
169
172
|
<ref name="BlockAttributes"/>
|
|
@@ -814,6 +817,9 @@ titlecase, or lowercase</a:documentation>
|
|
|
814
817
|
</define>
|
|
815
818
|
<define name="UlAttributes" combine="interleave">
|
|
816
819
|
<ref name="BlockAttributes"/>
|
|
820
|
+
<optional>
|
|
821
|
+
<ref name="DisplayDirective"/>
|
|
822
|
+
</optional>
|
|
817
823
|
</define>
|
|
818
824
|
<define name="TableAttributes" combine="interleave">
|
|
819
825
|
<optional>
|
|
@@ -1968,7 +1974,7 @@ used in document amendments</a:documentation>
|
|
|
1968
1974
|
<a:documentation>Zero or more examples of how the term is to be used</a:documentation>
|
|
1969
1975
|
</ref>
|
|
1970
1976
|
</zeroOrMore>
|
|
1971
|
-
<ref name="
|
|
1977
|
+
<ref name="TermSources">
|
|
1972
1978
|
<a:documentation>Bibliographic references for the managed term</a:documentation>
|
|
1973
1979
|
</ref>
|
|
1974
1980
|
</element>
|
|
@@ -2077,7 +2083,7 @@ used in document amendments</a:documentation>
|
|
|
2077
2083
|
<a:documentation>Information about how the designation is to be used</a:documentation>
|
|
2078
2084
|
</ref>
|
|
2079
2085
|
</optional>
|
|
2080
|
-
<ref name="
|
|
2086
|
+
<ref name="TermSources">
|
|
2081
2087
|
<a:documentation>Bibliographic references for this designation of the managed term</a:documentation>
|
|
2082
2088
|
</ref>
|
|
2083
2089
|
</define>
|
|
@@ -2348,7 +2354,7 @@ used in document amendments</a:documentation>
|
|
|
2348
2354
|
<ref name="formula"/>
|
|
2349
2355
|
</choice>
|
|
2350
2356
|
</oneOrMore>
|
|
2351
|
-
<ref name="
|
|
2357
|
+
<ref name="TermSources">
|
|
2352
2358
|
<a:documentation>Bibliographic references for this designation of the managed term</a:documentation>
|
|
2353
2359
|
</ref>
|
|
2354
2360
|
</element>
|
|
@@ -2365,7 +2371,7 @@ used in document amendments</a:documentation>
|
|
|
2365
2371
|
<ref name="formula"/>
|
|
2366
2372
|
</choice>
|
|
2367
2373
|
</oneOrMore>
|
|
2368
|
-
<ref name="
|
|
2374
|
+
<ref name="TermSources">
|
|
2369
2375
|
<a:documentation>Bibliographic references for this designation of the managed term</a:documentation>
|
|
2370
2376
|
</ref>
|
|
2371
2377
|
</element>
|
|
@@ -2788,6 +2794,26 @@ to span across both columns</a:documentation>
|
|
|
2788
2794
|
</attribute>
|
|
2789
2795
|
</optional>
|
|
2790
2796
|
</define>
|
|
2797
|
+
<define name="DisplayDirective">
|
|
2798
|
+
<a:documentation>Directive on how to render a block in Presentation XML </a:documentation>
|
|
2799
|
+
<optional>
|
|
2800
|
+
<attribute name="display">
|
|
2801
|
+
<a:documentation>Display style for block.
|
|
2802
|
+
If the block is `ol` or `ul` and dispay is `table`,
|
|
2803
|
+
the list is to be rendered as a table, with a column for each nested level, and a row for each terminal sublist</a:documentation>
|
|
2804
|
+
</attribute>
|
|
2805
|
+
</optional>
|
|
2806
|
+
<optional>
|
|
2807
|
+
<attribute name="display-directives">
|
|
2808
|
+
<a:documentation>display-directives is a key-value set of attributes, guiding how the rendering of the block should happen.
|
|
2809
|
+
The key-value set is comma-delimited, and encoded as `key1='value1',key2='value'`,
|
|
2810
|
+
as with stem//mn/@data-metanorma-numberformat
|
|
2811
|
+
* If the block is `ol` or `ul` and dispay is `table`, display-directives can have the value `colgroup='col1,col2,...coln'`,
|
|
2812
|
+
where each col value is a percentage width of the column in the output table (with no % suffix).
|
|
2813
|
+
e.g. `colgroup='50,33.3,16.7'` </a:documentation>
|
|
2814
|
+
</attribute>
|
|
2815
|
+
</optional>
|
|
2816
|
+
</define>
|
|
2791
2817
|
<define name="ReferencesAttributes">
|
|
2792
2818
|
<optional>
|
|
2793
2819
|
<attribute name="obligation">
|
|
@@ -2800,7 +2826,7 @@ Normative References contents contain normative references, but as a clause in t
|
|
|
2800
2826
|
<data type="boolean"/>
|
|
2801
2827
|
</attribute>
|
|
2802
2828
|
</define>
|
|
2803
|
-
<define name="
|
|
2829
|
+
<define name="TermSources">
|
|
2804
2830
|
<zeroOrMore>
|
|
2805
2831
|
<ref name="termsource"/>
|
|
2806
2832
|
</zeroOrMore>
|
|
@@ -47,7 +47,15 @@ the tag name of the top level containers</a:documentation>
|
|
|
47
47
|
</optional>
|
|
48
48
|
<optional>
|
|
49
49
|
<attribute name="model">
|
|
50
|
-
<a:documentation>Model of requirements realised by this requirement, e.g. "ogc" for Modspec
|
|
50
|
+
<a:documentation>Model of requirements realised by this requirement, e.g. "ogc" for Modspec.
|
|
51
|
+
Current legal values: ogc, default</a:documentation>
|
|
52
|
+
</attribute>
|
|
53
|
+
</optional>
|
|
54
|
+
<optional>
|
|
55
|
+
<attribute name="render">
|
|
56
|
+
<a:documentation>Rendering of requirements realised by this requirement. Current legal values:
|
|
57
|
+
default:: default, inline
|
|
58
|
+
ogc:: default</a:documentation>
|
|
51
59
|
</attribute>
|
|
52
60
|
</optional>
|
|
53
61
|
<optional>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plateau
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-jis
|