metanorma-m3aawg 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/m3aawg/isodoc.rng +12 -1
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +24 -8
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +24 -8
- data/lib/metanorma/m3aawg/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: 6773ce3d0cd71c057cf31bb0a343e5dc9ec84b45fb3e7f61b902912f8e073609
|
4
|
+
data.tar.gz: 60aeef5a018e51de3dc9d43e715854251b8440a02bf00c41f5864465151ec622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68520386d589ef7e34e796d5be63d4b8e78c3ca584e341b6e8454e1841c892d9d11dc818f14a313c6ec166e28b952791b46f9a57dc40b4b97f542b132a0d8058
|
7
|
+
data.tar.gz: ee807b364ad4bd90749f79b4b56dfcec44dd3f458a6db2adae8fe91310c34d4cf8f8b7e260199baeead9a7704c57abdc6492a0b1708c9d6a8cb8185bf65e85ec
|
@@ -2063,7 +2063,12 @@
|
|
2063
2063
|
<define name="verbaldefinition">
|
2064
2064
|
<element name="verbaldefinition">
|
2065
2065
|
<oneOrMore>
|
2066
|
-
<
|
2066
|
+
<choice>
|
2067
|
+
<ref name="paragraph"/>
|
2068
|
+
<ref name="dl"/>
|
2069
|
+
<ref name="ol"/>
|
2070
|
+
<ref name="ul"/>
|
2071
|
+
</choice>
|
2067
2072
|
</oneOrMore>
|
2068
2073
|
<zeroOrMore>
|
2069
2074
|
<ref name="termsource"/>
|
@@ -2163,6 +2168,12 @@
|
|
2163
2168
|
<value>modified</value>
|
2164
2169
|
</choice>
|
2165
2170
|
</attribute>
|
2171
|
+
<attribute name="type">
|
2172
|
+
<choice>
|
2173
|
+
<value>authoritative</value>
|
2174
|
+
<value>lineage</value>
|
2175
|
+
</choice>
|
2176
|
+
</attribute>
|
2166
2177
|
<ref name="origin"/>
|
2167
2178
|
<optional>
|
2168
2179
|
<ref name="modification"/>
|
@@ -2884,6 +2884,7 @@
|
|
2884
2884
|
<fo:table-cell>
|
2885
2885
|
|
2886
2886
|
<fo:block margin-top="6pt">
|
2887
|
+
<xsl:copy-of select="@id"/>
|
2887
2888
|
|
2888
2889
|
|
2889
2890
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -3726,10 +3727,12 @@
|
|
3726
3727
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3727
3728
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3728
3729
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3730
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3729
3731
|
<fo:block id="{@id}">
|
3730
3732
|
<xsl:apply-templates/>
|
3731
3733
|
</fo:block>
|
3732
3734
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3735
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3733
3736
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3734
3737
|
|
3735
3738
|
|
@@ -3737,7 +3740,9 @@
|
|
3737
3740
|
<xsl:apply-templates select="m3d:name" mode="presentation"/>
|
3738
3741
|
</fo:block>
|
3739
3742
|
|
3740
|
-
|
3743
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3744
|
+
|
3745
|
+
</xsl:if>
|
3741
3746
|
<xsl:apply-templates/>
|
3742
3747
|
</fo:block>
|
3743
3748
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -4711,7 +4716,8 @@
|
|
4711
4716
|
</fo:block>
|
4712
4717
|
</fo:table-cell>
|
4713
4718
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4714
|
-
<fo:block font-size="11pt"
|
4719
|
+
<fo:block font-size="11pt">
|
4720
|
+
|
4715
4721
|
<xsl:apply-templates/>
|
4716
4722
|
</fo:block>
|
4717
4723
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4827,13 +4833,15 @@
|
|
4827
4833
|
<!-- <xsl:apply-templates /> -->
|
4828
4834
|
<xsl:copy-of select="$termsource_text"/>
|
4829
4835
|
</xsl:when>
|
4830
|
-
<xsl:otherwise>
|
4836
|
+
<xsl:otherwise>
|
4837
|
+
|
4831
4838
|
|
4832
4839
|
<xsl:text>[</xsl:text>
|
4833
4840
|
|
4834
4841
|
<!-- <xsl:apply-templates /> -->
|
4835
4842
|
<xsl:copy-of select="$termsource_text"/>
|
4836
4843
|
|
4844
|
+
|
4837
4845
|
<xsl:text>]</xsl:text>
|
4838
4846
|
|
4839
4847
|
</xsl:otherwise>
|
@@ -4900,12 +4908,20 @@
|
|
4900
4908
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4901
4909
|
<xsl:text>— </xsl:text>
|
4902
4910
|
<xsl:apply-templates/>
|
4903
|
-
</xsl:template><xsl:
|
4911
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
4912
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
4913
|
+
<xsl:copy-of select="."/>
|
4914
|
+
</xsl:for-each>
|
4915
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
4916
|
+
<xsl:copy-of select="."/>
|
4917
|
+
</xsl:for-each>
|
4918
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4904
4919
|
|
4905
4920
|
<xsl:variable name="bibitemid">
|
4906
4921
|
<xsl:choose>
|
4907
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4908
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
4922
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
4923
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
4924
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4909
4925
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4910
4926
|
</xsl:choose>
|
4911
4927
|
</xsl:variable>
|
@@ -4997,10 +5013,10 @@
|
|
4997
5013
|
</xsl:choose>
|
4998
5014
|
</xsl:variable>
|
4999
5015
|
|
5000
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5016
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
5001
5017
|
|
5002
5018
|
<xsl:choose>
|
5003
|
-
<xsl:when test="$
|
5019
|
+
<xsl:when test="$lang = 'zh'">
|
5004
5020
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
5005
5021
|
</xsl:when>
|
5006
5022
|
<xsl:when test="../../@inline-header = 'true'">
|
@@ -2884,6 +2884,7 @@
|
|
2884
2884
|
<fo:table-cell>
|
2885
2885
|
|
2886
2886
|
<fo:block margin-top="6pt">
|
2887
|
+
<xsl:copy-of select="@id"/>
|
2887
2888
|
|
2888
2889
|
|
2889
2890
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -3726,10 +3727,12 @@
|
|
3726
3727
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3727
3728
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3728
3729
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3730
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3729
3731
|
<fo:block id="{@id}">
|
3730
3732
|
<xsl:apply-templates/>
|
3731
3733
|
</fo:block>
|
3732
3734
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3735
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3733
3736
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3734
3737
|
|
3735
3738
|
|
@@ -3737,7 +3740,9 @@
|
|
3737
3740
|
<xsl:apply-templates select="m3d:name" mode="presentation"/>
|
3738
3741
|
</fo:block>
|
3739
3742
|
|
3740
|
-
|
3743
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3744
|
+
|
3745
|
+
</xsl:if>
|
3741
3746
|
<xsl:apply-templates/>
|
3742
3747
|
</fo:block>
|
3743
3748
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -4711,7 +4716,8 @@
|
|
4711
4716
|
</fo:block>
|
4712
4717
|
</fo:table-cell>
|
4713
4718
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4714
|
-
<fo:block font-size="11pt"
|
4719
|
+
<fo:block font-size="11pt">
|
4720
|
+
|
4715
4721
|
<xsl:apply-templates/>
|
4716
4722
|
</fo:block>
|
4717
4723
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4827,13 +4833,15 @@
|
|
4827
4833
|
<!-- <xsl:apply-templates /> -->
|
4828
4834
|
<xsl:copy-of select="$termsource_text"/>
|
4829
4835
|
</xsl:when>
|
4830
|
-
<xsl:otherwise>
|
4836
|
+
<xsl:otherwise>
|
4837
|
+
|
4831
4838
|
|
4832
4839
|
<xsl:text>[</xsl:text>
|
4833
4840
|
|
4834
4841
|
<!-- <xsl:apply-templates /> -->
|
4835
4842
|
<xsl:copy-of select="$termsource_text"/>
|
4836
4843
|
|
4844
|
+
|
4837
4845
|
<xsl:text>]</xsl:text>
|
4838
4846
|
|
4839
4847
|
</xsl:otherwise>
|
@@ -4900,12 +4908,20 @@
|
|
4900
4908
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4901
4909
|
<xsl:text>— </xsl:text>
|
4902
4910
|
<xsl:apply-templates/>
|
4903
|
-
</xsl:template><xsl:
|
4911
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
4912
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
4913
|
+
<xsl:copy-of select="."/>
|
4914
|
+
</xsl:for-each>
|
4915
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
4916
|
+
<xsl:copy-of select="."/>
|
4917
|
+
</xsl:for-each>
|
4918
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4904
4919
|
|
4905
4920
|
<xsl:variable name="bibitemid">
|
4906
4921
|
<xsl:choose>
|
4907
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4908
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
4922
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
4923
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
4924
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4909
4925
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4910
4926
|
</xsl:choose>
|
4911
4927
|
</xsl:variable>
|
@@ -4997,10 +5013,10 @@
|
|
4997
5013
|
</xsl:choose>
|
4998
5014
|
</xsl:variable>
|
4999
5015
|
|
5000
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5016
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
5001
5017
|
|
5002
5018
|
<xsl:choose>
|
5003
|
-
<xsl:when test="$
|
5019
|
+
<xsl:when test="$lang = 'zh'">
|
5004
5020
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
5005
5021
|
</xsl:when>
|
5006
5022
|
<xsl:when test="../../@inline-header = 'true'">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-m3aawg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|