metanorma-ogc 2.4.6 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -8
- data/lib/isodoc/ogc/html/htmlstyle.css +8 -0
- data/lib/isodoc/ogc/i18n.rb +7 -2
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +3 -2
- data/lib/isodoc/ogc/ogc.best-practice.xsl +3 -2
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +3 -2
- data/lib/isodoc/ogc/ogc.community-practice.xsl +3 -2
- data/lib/isodoc/ogc/ogc.community-standard.xsl +3 -2
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +3 -2
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +3 -2
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +3 -2
- data/lib/isodoc/ogc/ogc.other.xsl +3 -2
- data/lib/isodoc/ogc/ogc.policy.xsl +3 -2
- data/lib/isodoc/ogc/ogc.reference-model.xsl +3 -2
- data/lib/isodoc/ogc/ogc.release-notes.xsl +3 -2
- data/lib/isodoc/ogc/ogc.standard.xsl +3 -2
- data/lib/isodoc/ogc/ogc.test-suite.xsl +3 -2
- data/lib/isodoc/ogc/ogc.user-guide.xsl +3 -2
- data/lib/isodoc/ogc/ogc.white-paper.xsl +3 -2
- data/lib/isodoc/ogc/xref.rb +2 -2
- data/lib/metanorma/ogc/basicdoc.rng +26 -17
- data/lib/metanorma/ogc/biblio.rng +13 -0
- data/lib/metanorma/ogc/isodoc.rng +11 -1
- data/lib/metanorma/ogc/validate.rb +2 -2
- data/lib/metanorma/ogc/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: 707c020fdfe78a1f9bd1391a96f72213b61310d7f881e0eb0748c18753a3c0c0
|
4
|
+
data.tar.gz: fc72827826ba4e0cdda5f20a775b50c3e3bfdab4fe7f7c67427ad803121d0cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e2c1a71d1e604926c83f4b877ec8f4e007d7a23a896fd1eede6d2358ece404e7e0137eddaa8169fdd64b93fbe7cf7a56fb00b0f8101c835fccc469b6ca21c52
|
7
|
+
data.tar.gz: b3315494ea475ebcdff95e5cde7cc8326a8436b825a2d21db0e493df41373bfe19793a7d56e24c909227b359e92d0e506a1a08835cc33d176bb138d23ede2aa2
|
data/Gemfile
CHANGED
@@ -4,12 +4,6 @@ Encoding.default_internal = Encoding::UTF_8
|
|
4
4
|
source "https://rubygems.org"
|
5
5
|
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
6
6
|
|
7
|
-
group :development, :test do
|
8
|
-
gem "rspec"
|
9
|
-
end
|
10
|
-
|
11
|
-
if File.exist? "Gemfile.devel"
|
12
|
-
eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
|
13
|
-
end
|
14
|
-
|
15
7
|
gemspec
|
8
|
+
|
9
|
+
eval_gemfile("Gemfile.devel") rescue nil
|
@@ -132,6 +132,14 @@ a.FootnoteRef, span.FootnoteRef {
|
|
132
132
|
color: red;
|
133
133
|
text-decoration: line-through; }
|
134
134
|
|
135
|
+
ruby {
|
136
|
+
ruby-position: over;
|
137
|
+
-webkit-ruby-position: before; }
|
138
|
+
|
139
|
+
ruby ruby {
|
140
|
+
ruby-position: under;
|
141
|
+
-webkit-ruby-position: after; }
|
142
|
+
|
135
143
|
/* code highlighting with line numbers */
|
136
144
|
table.rouge-line-table td.rouge-gutter {
|
137
145
|
-moz-user-select: none;
|
data/lib/isodoc/ogc/i18n.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
module Ogc
|
3
3
|
class I18n < IsoDoc::I18n
|
4
|
+
def load_file(fname)
|
5
|
+
f = File.join(File.dirname(__FILE__), fname)
|
6
|
+
File.exist?(f) ? YAML.load_file(f) : {}
|
7
|
+
end
|
8
|
+
|
4
9
|
def load_yaml1(lang, script)
|
5
|
-
y =
|
6
|
-
super.deep_merge(y)
|
10
|
+
y = load_file("i18n-#{yaml_lang(lang, script)}.yaml")
|
11
|
+
y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y)
|
7
12
|
end
|
8
13
|
end
|
9
14
|
end
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -10905,6 +10905,7 @@
|
|
10905
10905
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10906
10906
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10907
10907
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10908
|
+
|
10908
10909
|
<fo:list-item>
|
10909
10910
|
<fo:list-item-label end-indent="label-end()">
|
10910
10911
|
<fo:block role="SKIP">
|
@@ -11108,10 +11109,10 @@
|
|
11108
11109
|
|
11109
11110
|
<xsl:variable name="toc_level">
|
11110
11111
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
11111
|
-
<xsl:variable name="
|
11112
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
11112
11113
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
11113
11114
|
<xsl:choose>
|
11114
|
-
<xsl:when test="$
|
11115
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11115
11116
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
11116
11117
|
<xsl:otherwise><!-- default value -->
|
11117
11118
|
2
|
@@ -9956,6 +9956,7 @@
|
|
9956
9956
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
9957
9957
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
9958
9958
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
9959
|
+
|
9959
9960
|
<fo:list-item>
|
9960
9961
|
<fo:list-item-label end-indent="label-end()">
|
9961
9962
|
<fo:block role="SKIP">
|
@@ -10159,10 +10160,10 @@
|
|
10159
10160
|
|
10160
10161
|
<xsl:variable name="toc_level">
|
10161
10162
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
10162
|
-
<xsl:variable name="
|
10163
|
+
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
|
10163
10164
|
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
10164
10165
|
<xsl:choose>
|
10165
|
-
<xsl:when test="$
|
10166
|
+
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
10166
10167
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
10167
10168
|
<xsl:otherwise><!-- default value -->
|
10168
10169
|
3
|
data/lib/isodoc/ogc/xref.rb
CHANGED
@@ -80,9 +80,9 @@ module IsoDoc
|
|
80
80
|
@anchors[ref["id"]] = { xref: "#{@anchors[ref['id']][:xref]} (draft)" }
|
81
81
|
end
|
82
82
|
|
83
|
-
def sequential_permission_body(id, block, label, klass, model)
|
83
|
+
def sequential_permission_body(id, block, label, klass, model, container: false)
|
84
84
|
@anchors[block["id"]] = model.postprocess_anchor_struct(
|
85
|
-
block, anchor_struct(id, nil,
|
85
|
+
block, anchor_struct(id, container ? block : nil,
|
86
86
|
label, klass, block["unnumbered"])
|
87
87
|
)
|
88
88
|
model.permission_parts(block, id, label, klass).each do |n|
|
@@ -715,27 +715,36 @@
|
|
715
715
|
</define>
|
716
716
|
<define name="ruby">
|
717
717
|
<element name="ruby">
|
718
|
-
<
|
719
|
-
<
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
718
|
+
<choice>
|
719
|
+
<ref name="ruby_pronunciation"/>
|
720
|
+
<ref name="ruby_annotation"/>
|
721
|
+
</choice>
|
722
|
+
<choice>
|
723
|
+
<text/>
|
724
|
+
<ref name="ruby"/>
|
725
|
+
</choice>
|
725
726
|
</element>
|
726
727
|
</define>
|
727
|
-
<define name="
|
728
|
-
<element name="
|
729
|
-
<
|
730
|
-
|
731
|
-
|
728
|
+
<define name="ruby_pronunciation">
|
729
|
+
<element name="pronunciation">
|
730
|
+
<attribute name="value"/>
|
731
|
+
<optional>
|
732
|
+
<attribute name="script"/>
|
733
|
+
</optional>
|
734
|
+
<optional>
|
735
|
+
<attribute name="lang"/>
|
736
|
+
</optional>
|
732
737
|
</element>
|
733
738
|
</define>
|
734
|
-
<define name="
|
735
|
-
<element name="
|
736
|
-
<
|
737
|
-
|
738
|
-
|
739
|
+
<define name="ruby_annotation">
|
740
|
+
<element name="annotation">
|
741
|
+
<attribute name="value"/>
|
742
|
+
<optional>
|
743
|
+
<attribute name="script"/>
|
744
|
+
</optional>
|
745
|
+
<optional>
|
746
|
+
<attribute name="lang"/>
|
747
|
+
</optional>
|
739
748
|
</element>
|
740
749
|
</define>
|
741
750
|
<define name="br">
|
@@ -374,6 +374,16 @@
|
|
374
374
|
<ref name="image"/>
|
375
375
|
</element>
|
376
376
|
</define>
|
377
|
+
<define name="depiction">
|
378
|
+
<element name="depiction">
|
379
|
+
<optional>
|
380
|
+
<attribute name="scope"/>
|
381
|
+
</optional>
|
382
|
+
<zeroOrMore>
|
383
|
+
<ref name="image"/>
|
384
|
+
</zeroOrMore>
|
385
|
+
</element>
|
386
|
+
</define>
|
377
387
|
<define name="NameWithVariants">
|
378
388
|
<element name="primary">
|
379
389
|
<ref name="LocalizedString"/>
|
@@ -760,6 +770,9 @@
|
|
760
770
|
<optional>
|
761
771
|
<ref name="validity"/>
|
762
772
|
</optional>
|
773
|
+
<optional>
|
774
|
+
<ref name="depiction"/>
|
775
|
+
</optional>
|
763
776
|
</define>
|
764
777
|
<define name="ReducedBibliographicItem">
|
765
778
|
<optional>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v1.2.
|
20
|
+
<!-- VERSION v1.2.9 -->
|
21
21
|
<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">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -1958,6 +1958,16 @@
|
|
1958
1958
|
<data type="boolean"/>
|
1959
1959
|
</attribute>
|
1960
1960
|
</optional>
|
1961
|
+
<optional>
|
1962
|
+
<attribute name="type">
|
1963
|
+
<choice>
|
1964
|
+
<value>letter</value>
|
1965
|
+
<value>symbol</value>
|
1966
|
+
<value>formula</value>
|
1967
|
+
<value>equation</value>
|
1968
|
+
</choice>
|
1969
|
+
</attribute>
|
1970
|
+
</optional>
|
1961
1971
|
<element name="name">
|
1962
1972
|
<oneOrMore>
|
1963
1973
|
<choice>
|
@@ -25,7 +25,7 @@ module Metanorma
|
|
25
25
|
@doctype == "engineering-report" and return
|
26
26
|
stage = xmldoc&.at("//bibdata/status/stage")&.text
|
27
27
|
%w(draft swg-draft oab-review public-rfc tc-vote work-item-draft
|
28
|
-
approved deprecated retired rescinded).include? stage or
|
28
|
+
approved deprecated retired rescinded legacy).include? stage or
|
29
29
|
@log.add("Document Attributes", nil,
|
30
30
|
"#{stage} is not a recognised status")
|
31
31
|
stage_type_validate(stage, @doctype)
|
@@ -40,7 +40,7 @@ module Metanorma
|
|
40
40
|
when "best-practice", "community-practice"
|
41
41
|
%w(draft swg-draft work-item-draft).include?(stage)
|
42
42
|
else %w(swg-draft oab-review public-rfc tc-vote
|
43
|
-
work-item-draft deprecated rescinded).include?(stage)
|
43
|
+
work-item-draft deprecated rescinded legacy).include?(stage)
|
44
44
|
end
|
45
45
|
err and @log.add("Document Attributes", nil,
|
46
46
|
"#{stage} is not an allowed status for #{doctype}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|