metanorma-iso 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Rakefile +2 -0
- data/lib/isodoc/iso/html/htmlstyle.scss +0 -1
- data/lib/isodoc/iso/html/isodoc.scss +0 -1
- data/lib/isodoc/iso/html/wordstyle.scss +0 -1
- data/lib/isodoc/iso/iso.amendment.xsl +32 -0
- data/lib/isodoc/iso/iso.international-standard.xsl +32 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1cf4345d777fb37031e719c6121a5f27fd23dc56ebacab1a099aa2c108a82d2
|
4
|
+
data.tar.gz: d571ce7dcd5a38ebc7e19460b7ab65e2f77499ab46a836d74857d7f6eb78f88d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ed62ccec92b596bb8063267750c04e1df0ffc6376d2339b5771b1780400c526041793d37a1cb115117dafb35e45d1f680244d1ce1bd975a010703ec9bbaff25
|
7
|
+
data.tar.gz: 97a5255d0a7ee3992dde8b88b005aa3aab743ed03f2b0983cb7c02bea1b010c988f28ad1f1bbf9086356ff32f2a6eb8fed164b65b20887a83fa58da2e49500d9
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -3996,6 +3996,7 @@
|
|
3996
3996
|
<fo:inline padding-right="2mm">
|
3997
3997
|
|
3998
3998
|
|
3999
|
+
|
3999
4000
|
<xsl:variable name="title-note">
|
4000
4001
|
<xsl:call-template name="getTitle">
|
4001
4002
|
<xsl:with-param name="name" select="'title-note'"/>
|
@@ -5079,4 +5080,35 @@
|
|
5079
5080
|
</xsl:if>
|
5080
5081
|
</xsl:template><xsl:template name="getDocumentId">
|
5081
5082
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
5083
|
+
</xsl:template><xsl:template name="namespaceCheck">
|
5084
|
+
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
|
5085
|
+
<xsl:variable name="XSLNS">
|
5086
|
+
|
5087
|
+
<xsl:value-of select="document('')//*/namespace::iso"/>
|
5088
|
+
|
5089
|
+
|
5090
|
+
|
5091
|
+
|
5092
|
+
|
5093
|
+
|
5094
|
+
|
5095
|
+
|
5096
|
+
|
5097
|
+
|
5098
|
+
|
5099
|
+
|
5100
|
+
</xsl:variable>
|
5101
|
+
<xsl:if test="$documentNS != $XSLNS">
|
5102
|
+
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
5103
|
+
</xsl:if>
|
5104
|
+
</xsl:template><xsl:template name="getLanguage">
|
5105
|
+
<xsl:param name="lang"/>
|
5106
|
+
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
5107
|
+
<xsl:choose>
|
5108
|
+
<xsl:when test="$language = 'en'">English</xsl:when>
|
5109
|
+
<xsl:when test="$language = 'fr'">French</xsl:when>
|
5110
|
+
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
5111
|
+
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
5112
|
+
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
5113
|
+
</xsl:choose>
|
5082
5114
|
</xsl:template></xsl:stylesheet>
|
@@ -3996,6 +3996,7 @@
|
|
3996
3996
|
<fo:inline padding-right="2mm">
|
3997
3997
|
|
3998
3998
|
|
3999
|
+
|
3999
4000
|
<xsl:variable name="title-note">
|
4000
4001
|
<xsl:call-template name="getTitle">
|
4001
4002
|
<xsl:with-param name="name" select="'title-note'"/>
|
@@ -5079,4 +5080,35 @@
|
|
5079
5080
|
</xsl:if>
|
5080
5081
|
</xsl:template><xsl:template name="getDocumentId">
|
5081
5082
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
5083
|
+
</xsl:template><xsl:template name="namespaceCheck">
|
5084
|
+
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
|
5085
|
+
<xsl:variable name="XSLNS">
|
5086
|
+
|
5087
|
+
<xsl:value-of select="document('')//*/namespace::iso"/>
|
5088
|
+
|
5089
|
+
|
5090
|
+
|
5091
|
+
|
5092
|
+
|
5093
|
+
|
5094
|
+
|
5095
|
+
|
5096
|
+
|
5097
|
+
|
5098
|
+
|
5099
|
+
|
5100
|
+
</xsl:variable>
|
5101
|
+
<xsl:if test="$documentNS != $XSLNS">
|
5102
|
+
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
5103
|
+
</xsl:if>
|
5104
|
+
</xsl:template><xsl:template name="getLanguage">
|
5105
|
+
<xsl:param name="lang"/>
|
5106
|
+
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
5107
|
+
<xsl:choose>
|
5108
|
+
<xsl:when test="$language = 'en'">English</xsl:when>
|
5109
|
+
<xsl:when test="$language = 'fr'">French</xsl:when>
|
5110
|
+
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
5111
|
+
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
5112
|
+
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
5113
|
+
</xsl:choose>
|
5082
5114
|
</xsl:template></xsl:stylesheet>
|
data/metanorma-iso.gemspec
CHANGED
@@ -37,6 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "mn2sts", "~> 1.2.0"
|
38
38
|
|
39
39
|
spec.add_development_dependency "byebug"
|
40
|
+
spec.add_development_dependency "sassc", "2.4.0"
|
40
41
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
41
42
|
spec.add_development_dependency "guard", "~> 2.14"
|
42
43
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sassc
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.4.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.4.0
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: equivalent-xml
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|