metanorma-ogc 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +27 -8
- data/README.adoc +3 -4
- data/lib/asciidoctor/ogc/boilerplate.xml +1 -1
- data/lib/asciidoctor/ogc/isodoc.rng +13 -0
- data/lib/isodoc/ogc/base_convert.rb +0 -1
- data/lib/isodoc/ogc/biblio.rb +1 -0
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +109 -26
- data/lib/isodoc/ogc/ogc.best-practice.xsl +109 -26
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +109 -26
- data/lib/isodoc/ogc/ogc.community-practice.xsl +109 -26
- data/lib/isodoc/ogc/ogc.community-standard.xsl +109 -26
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +109 -26
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +109 -26
- data/lib/isodoc/ogc/ogc.other.xsl +109 -26
- data/lib/isodoc/ogc/ogc.policy.xsl +109 -26
- data/lib/isodoc/ogc/ogc.reference-model.xsl +109 -26
- data/lib/isodoc/ogc/ogc.release-notes.xsl +109 -26
- data/lib/isodoc/ogc/ogc.standard.xsl +109 -26
- data/lib/isodoc/ogc/ogc.test-suite.xsl +109 -26
- data/lib/isodoc/ogc/ogc.user-guide.xsl +109 -26
- data/lib/isodoc/ogc/ogc.white-paper.xsl +107 -25
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -908,13 +908,22 @@
|
|
908
908
|
<title-part lang="en">
|
909
909
|
|
910
910
|
|
911
|
+
|
911
912
|
</title-part>
|
912
913
|
<title-part lang="fr">
|
913
914
|
|
914
915
|
|
916
|
+
|
915
917
|
</title-part>
|
916
918
|
<title-part lang="zh">第 # 部分:</title-part>
|
917
919
|
|
920
|
+
<title-subpart lang="en">
|
921
|
+
|
922
|
+
</title-subpart>
|
923
|
+
<title-subpart lang="fr">
|
924
|
+
|
925
|
+
</title-subpart>
|
926
|
+
|
918
927
|
<title-modified lang="en">modified</title-modified>
|
919
928
|
<title-modified lang="fr">modifiée</title-modified>
|
920
929
|
|
@@ -1449,7 +1458,9 @@
|
|
1449
1458
|
|
1450
1459
|
|
1451
1460
|
|
1452
|
-
|
1461
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1462
|
+
<fo:block> </fo:block>
|
1463
|
+
</xsl:if> -->
|
1453
1464
|
|
1454
1465
|
<!-- $namespace = 'iso' or -->
|
1455
1466
|
|
@@ -1621,6 +1632,7 @@
|
|
1621
1632
|
<xsl:if test="normalize-space() != ''">
|
1622
1633
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1623
1634
|
|
1635
|
+
|
1624
1636
|
<xsl:apply-templates/>
|
1625
1637
|
</fo:block>
|
1626
1638
|
</xsl:if>
|
@@ -1974,6 +1986,7 @@
|
|
1974
1986
|
|
1975
1987
|
|
1976
1988
|
|
1989
|
+
|
1977
1990
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
1978
1991
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
1979
1992
|
</xsl:if> -->
|
@@ -2069,7 +2082,8 @@
|
|
2069
2082
|
</xsl:attribute>
|
2070
2083
|
</xsl:if>
|
2071
2084
|
<xsl:call-template name="display-align"/>
|
2072
|
-
<fo:block>
|
2085
|
+
<fo:block>
|
2086
|
+
|
2073
2087
|
<xsl:apply-templates/>
|
2074
2088
|
</fo:block>
|
2075
2089
|
</fo:table-cell>
|
@@ -2297,7 +2311,11 @@
|
|
2297
2311
|
<xsl:apply-templates/>
|
2298
2312
|
</fo:inline>
|
2299
2313
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
2300
|
-
<fo:block-container
|
2314
|
+
<fo:block-container>
|
2315
|
+
|
2316
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2317
|
+
|
2318
|
+
|
2301
2319
|
<xsl:if test="parent::*[local-name() = 'note']">
|
2302
2320
|
<xsl:attribute name="margin-left">
|
2303
2321
|
<xsl:choose>
|
@@ -2307,8 +2325,11 @@
|
|
2307
2325
|
</xsl:attribute>
|
2308
2326
|
|
2309
2327
|
</xsl:if>
|
2310
|
-
<fo:block-container
|
2311
|
-
|
2328
|
+
<fo:block-container>
|
2329
|
+
|
2330
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2331
|
+
|
2332
|
+
|
2312
2333
|
<xsl:variable name="parent" select="local-name(..)"/>
|
2313
2334
|
|
2314
2335
|
<xsl:variable name="key_iso">
|
@@ -2322,9 +2343,12 @@
|
|
2322
2343
|
<fo:block margin-bottom="12pt" text-align="left">
|
2323
2344
|
|
2324
2345
|
<xsl:variable name="title-where">
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2346
|
+
|
2347
|
+
|
2348
|
+
<xsl:call-template name="getTitle">
|
2349
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
2350
|
+
</xsl:call-template>
|
2351
|
+
|
2328
2352
|
</xsl:variable>
|
2329
2353
|
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
2330
2354
|
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
@@ -2340,9 +2364,12 @@
|
|
2340
2364
|
|
2341
2365
|
|
2342
2366
|
<xsl:variable name="title-where">
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2367
|
+
|
2368
|
+
|
2369
|
+
<xsl:call-template name="getTitle">
|
2370
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
2371
|
+
</xsl:call-template>
|
2372
|
+
|
2346
2373
|
</xsl:variable>
|
2347
2374
|
<xsl:value-of select="$title-where"/>
|
2348
2375
|
</fo:block>
|
@@ -2353,9 +2380,12 @@
|
|
2353
2380
|
|
2354
2381
|
|
2355
2382
|
<xsl:variable name="title-key">
|
2356
|
-
|
2357
|
-
|
2358
|
-
|
2383
|
+
|
2384
|
+
|
2385
|
+
<xsl:call-template name="getTitle">
|
2386
|
+
<xsl:with-param name="name" select="'title-key'"/>
|
2387
|
+
</xsl:call-template>
|
2388
|
+
|
2359
2389
|
</xsl:variable>
|
2360
2390
|
<xsl:value-of select="$title-key"/>
|
2361
2391
|
</fo:block>
|
@@ -2929,7 +2959,18 @@
|
|
2929
2959
|
<xsl:with-param name="previousRow" select="$newRow"/>
|
2930
2960
|
</xsl:apply-templates>
|
2931
2961
|
</xsl:template><xsl:template name="getLang">
|
2932
|
-
<xsl:variable name="
|
2962
|
+
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
2963
|
+
<xsl:variable name="language">
|
2964
|
+
<xsl:choose>
|
2965
|
+
<xsl:when test="$language_current != ''">
|
2966
|
+
<xsl:value-of select="$language_current"/>
|
2967
|
+
</xsl:when>
|
2968
|
+
<xsl:otherwise>
|
2969
|
+
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
2970
|
+
</xsl:otherwise>
|
2971
|
+
</xsl:choose>
|
2972
|
+
</xsl:variable>
|
2973
|
+
|
2933
2974
|
<xsl:choose>
|
2934
2975
|
<xsl:when test="$language = 'English'">en</xsl:when>
|
2935
2976
|
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
@@ -2964,6 +3005,7 @@
|
|
2964
3005
|
<xsl:value-of select="substring($str, 2)"/>
|
2965
3006
|
</xsl:template><xsl:template match="mathml:math">
|
2966
3007
|
<fo:inline font-family="STIX Two Math"> <!-- -->
|
3008
|
+
|
2967
3009
|
<xsl:variable name="mathml">
|
2968
3010
|
<xsl:apply-templates select="." mode="mathml"/>
|
2969
3011
|
</xsl:variable>
|
@@ -3046,10 +3088,14 @@
|
|
3046
3088
|
</fo:inline>
|
3047
3089
|
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
3048
3090
|
<xsl:variable name="title-modified">
|
3049
|
-
|
3050
|
-
|
3051
|
-
|
3091
|
+
|
3092
|
+
|
3093
|
+
<xsl:call-template name="getTitle">
|
3094
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
3095
|
+
</xsl:call-template>
|
3096
|
+
|
3052
3097
|
</xsl:variable>
|
3098
|
+
|
3053
3099
|
<xsl:choose>
|
3054
3100
|
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
|
3055
3101
|
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
|
@@ -3799,9 +3845,14 @@
|
|
3799
3845
|
|
3800
3846
|
<fo:inline>
|
3801
3847
|
|
3802
|
-
|
3803
|
-
|
3804
|
-
|
3848
|
+
|
3849
|
+
|
3850
|
+
|
3851
|
+
<xsl:call-template name="getTitle">
|
3852
|
+
<xsl:with-param name="name" select="'title-source'"/>
|
3853
|
+
</xsl:call-template>
|
3854
|
+
|
3855
|
+
|
3805
3856
|
<xsl:text>: </xsl:text>
|
3806
3857
|
</fo:inline>
|
3807
3858
|
|
@@ -3957,9 +4008,12 @@
|
|
3957
4008
|
</fo:block>
|
3958
4009
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
3959
4010
|
<xsl:variable name="title-deprecated">
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
4011
|
+
|
4012
|
+
|
4013
|
+
<xsl:call-template name="getTitle">
|
4014
|
+
<xsl:with-param name="name" select="'title-deprecated'"/>
|
4015
|
+
</xsl:call-template>
|
4016
|
+
|
3963
4017
|
</xsl:variable>
|
3964
4018
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
3965
4019
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
@@ -4465,13 +4519,22 @@
|
|
4465
4519
|
</xsl:template><xsl:template name="split">
|
4466
4520
|
<xsl:param name="pText" select="."/>
|
4467
4521
|
<xsl:param name="sep" select="','"/>
|
4522
|
+
<xsl:param name="normalize-space" select="'true'"/>
|
4468
4523
|
<xsl:if test="string-length($pText) >0">
|
4469
4524
|
<item>
|
4470
|
-
<xsl:
|
4525
|
+
<xsl:choose>
|
4526
|
+
<xsl:when test="$normalize-space = 'true'">
|
4527
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
4528
|
+
</xsl:when>
|
4529
|
+
<xsl:otherwise>
|
4530
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
4531
|
+
</xsl:otherwise>
|
4532
|
+
</xsl:choose>
|
4471
4533
|
</item>
|
4472
4534
|
<xsl:call-template name="split">
|
4473
4535
|
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
4474
4536
|
<xsl:with-param name="sep" select="$sep"/>
|
4537
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
4475
4538
|
</xsl:call-template>
|
4476
4539
|
</xsl:if>
|
4477
4540
|
</xsl:template><xsl:template name="getDocumentId">
|
@@ -4537,4 +4600,23 @@
|
|
4537
4600
|
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
|
4538
4601
|
</xsl:call-template>
|
4539
4602
|
</xsl:if>
|
4603
|
+
</xsl:template><xsl:template name="repeat">
|
4604
|
+
<xsl:param name="char" select="'*'"/>
|
4605
|
+
<xsl:param name="count"/>
|
4606
|
+
<xsl:if test="$count > 0">
|
4607
|
+
<xsl:value-of select="$char"/>
|
4608
|
+
<xsl:call-template name="repeat">
|
4609
|
+
<xsl:with-param name="char" select="$char"/>
|
4610
|
+
<xsl:with-param name="count" select="$count - 1"/>
|
4611
|
+
</xsl:call-template>
|
4612
|
+
</xsl:if>
|
4613
|
+
</xsl:template><xsl:template name="getLocalizedString">
|
4614
|
+
<xsl:param name="key"/>
|
4615
|
+
|
4616
|
+
<xsl:variable name="curr_lang">
|
4617
|
+
<xsl:call-template name="getLang"/>
|
4618
|
+
</xsl:variable>
|
4619
|
+
|
4620
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
4621
|
+
|
4540
4622
|
</xsl:template></xsl:stylesheet>
|
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: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|