metanorma-ogc 2.6.10 → 2.6.12
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/ogc/ogc.abstract-specification-topic.xsl +189 -23
- data/lib/isodoc/ogc/ogc.best-practice.xsl +189 -23
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +189 -23
- data/lib/isodoc/ogc/ogc.community-practice.xsl +189 -23
- data/lib/isodoc/ogc/ogc.community-standard.xsl +189 -23
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +189 -23
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +189 -23
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +189 -23
- data/lib/isodoc/ogc/ogc.other.xsl +189 -23
- data/lib/isodoc/ogc/ogc.policy.xsl +189 -23
- data/lib/isodoc/ogc/ogc.reference-model.xsl +189 -23
- data/lib/isodoc/ogc/ogc.release-notes.xsl +189 -23
- data/lib/isodoc/ogc/ogc.standard.xsl +189 -23
- data/lib/isodoc/ogc/ogc.test-suite.xsl +189 -23
- data/lib/isodoc/ogc/ogc.user-guide.xsl +189 -23
- data/lib/isodoc/ogc/ogc.white-paper.xsl +181 -15
- data/lib/isodoc/ogc/presentation_xml_convert.rb +15 -3
- data/lib/metanorma/ogc/biblio.rng +5 -3
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -2026,6 +2026,9 @@
|
|
2026
2026
|
|
2027
2027
|
</xsl:attribute-set>
|
2028
2028
|
|
2029
|
+
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
2030
|
+
</xsl:attribute-set>
|
2031
|
+
|
2029
2032
|
<xsl:attribute-set name="definition-style">
|
2030
2033
|
|
2031
2034
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
@@ -4306,7 +4309,9 @@
|
|
4306
4309
|
<xsl:with-param name="element">
|
4307
4310
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
|
4308
4311
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
4312
|
+
|
4309
4313
|
<xsl:copy-of select="$current_fn_number_text"/>
|
4314
|
+
|
4310
4315
|
</fo:inline>
|
4311
4316
|
</fo:basic-link>
|
4312
4317
|
</xsl:with-param>
|
@@ -4325,8 +4330,7 @@
|
|
4325
4330
|
|
4326
4331
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
4327
4332
|
|
4328
|
-
<
|
4329
|
-
|
4333
|
+
<xsl:variable name="fn_block">
|
4330
4334
|
<xsl:call-template name="refine_fn-body-style"/>
|
4331
4335
|
|
4332
4336
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
@@ -4334,9 +4338,15 @@
|
|
4334
4338
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
4335
4339
|
|
4336
4340
|
<xsl:value-of select="$current_fn_number_text"/>
|
4341
|
+
|
4337
4342
|
</fo:inline>
|
4338
4343
|
<xsl:apply-templates/>
|
4339
|
-
</
|
4344
|
+
</xsl:variable>
|
4345
|
+
|
4346
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
4347
|
+
<xsl:copy-of select="$fn_block"/>
|
4348
|
+
</fo:block>
|
4349
|
+
|
4340
4350
|
</fo:block-container>
|
4341
4351
|
</fo:footnote-body>
|
4342
4352
|
</fo:footnote>
|
@@ -6119,9 +6129,14 @@
|
|
6119
6129
|
|
6120
6130
|
<xsl:variable name="simple-table">
|
6121
6131
|
|
6132
|
+
<xsl:variable name="table_without_semantic_elements">
|
6133
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
6134
|
+
</xsl:variable>
|
6135
|
+
|
6122
6136
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
6123
6137
|
<xsl:variable name="table_without_br">
|
6124
|
-
<xsl:apply-templates mode="table-without-br"/>
|
6138
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
6139
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
6125
6140
|
</xsl:variable>
|
6126
6141
|
|
6127
6142
|
<!-- Step 1. colspan processing -->
|
@@ -10384,14 +10399,17 @@
|
|
10384
10399
|
</fo:block>
|
10385
10400
|
</xsl:template>
|
10386
10401
|
|
10387
|
-
<xsl:template match="*[local-name() = 'domain']">
|
10402
|
+
<!-- <xsl:template match="*[local-name() = 'domain']"> -->
|
10388
10403
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
10389
10404
|
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
10390
10405
|
<xsl:text> </xsl:text> -->
|
10391
|
-
<xsl:if test="not(@hidden = 'true')">
|
10406
|
+
<!-- <xsl:if test="not(@hidden = 'true')">
|
10392
10407
|
<xsl:apply-templates/>
|
10393
10408
|
</xsl:if>
|
10394
|
-
</xsl:template>
|
10409
|
+
</xsl:template> -->
|
10410
|
+
|
10411
|
+
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
10412
|
+
<xsl:template match="*[local-name() = 'domain']"/>
|
10395
10413
|
|
10396
10414
|
<xsl:template match="*[local-name() = 'admitted']">
|
10397
10415
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
@@ -10406,9 +10424,11 @@
|
|
10406
10424
|
</xsl:template>
|
10407
10425
|
|
10408
10426
|
<xsl:template name="setStyle_preferred">
|
10409
|
-
|
10410
|
-
|
10411
|
-
|
10427
|
+
|
10428
|
+
<xsl:if test="*[local-name() = 'strong']">
|
10429
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10430
|
+
</xsl:if>
|
10431
|
+
|
10412
10432
|
</xsl:template>
|
10413
10433
|
|
10414
10434
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -10418,6 +10438,17 @@
|
|
10418
10438
|
</xsl:template>
|
10419
10439
|
<!-- End Preferred, admitted, deprecated -->
|
10420
10440
|
|
10441
|
+
<xsl:template match="*[local-name() = 'fmt-related']">
|
10442
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
10443
|
+
<xsl:apply-templates/>
|
10444
|
+
</fo:block>
|
10445
|
+
</xsl:template>
|
10446
|
+
<xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
|
10447
|
+
<fo:block>
|
10448
|
+
<xsl:apply-templates/>
|
10449
|
+
</fo:block>
|
10450
|
+
</xsl:template>
|
10451
|
+
|
10421
10452
|
<!-- ========== -->
|
10422
10453
|
<!-- definition -->
|
10423
10454
|
<!-- ========== -->
|
@@ -11322,6 +11353,7 @@
|
|
11322
11353
|
|
11323
11354
|
<!-- Normative references -->
|
11324
11355
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
11356
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11325
11357
|
|
11326
11358
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11327
11359
|
|
@@ -12045,7 +12077,8 @@
|
|
12045
12077
|
<!-- add @id - first element with @id plus '_element_name' -->
|
12046
12078
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
12047
12079
|
<xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
|
12048
|
-
<xsl:
|
12080
|
+
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
|
12081
|
+
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
12049
12082
|
</xsl:if>
|
12050
12083
|
</xsl:template>
|
12051
12084
|
|
@@ -12102,6 +12135,31 @@
|
|
12102
12135
|
<xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
12103
12136
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
12104
12137
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
12138
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
12139
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
|
12140
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
|
12141
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
|
12142
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
12143
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
|
12144
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
|
12145
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
|
12146
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
|
12147
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
|
12148
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
|
12149
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
|
12150
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
|
12151
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
|
12152
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
|
12153
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
|
12154
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
|
12155
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
|
12156
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
|
12157
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
|
12158
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
|
12159
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
|
12160
|
+
|
12161
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
12162
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
|
12105
12163
|
|
12106
12164
|
<xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
|
12107
12165
|
<xsl:copy>
|
@@ -12134,13 +12192,115 @@
|
|
12134
12192
|
|
12135
12193
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
12136
12194
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
12137
|
-
<xsl:
|
12195
|
+
<xsl:choose>
|
12196
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
12197
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12198
|
+
</xsl:when>
|
12199
|
+
<xsl:otherwise>
|
12200
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
12201
|
+
<xsl:copy-of select="@*"/>
|
12202
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12203
|
+
</xsl:element>
|
12204
|
+
</xsl:otherwise>
|
12205
|
+
</xsl:choose>
|
12206
|
+
</xsl:template>
|
12207
|
+
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
12208
|
+
<xsl:choose>
|
12209
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
12210
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12211
|
+
</xsl:when>
|
12212
|
+
<xsl:otherwise>
|
12213
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
12214
|
+
<xsl:copy-of select="@*"/>
|
12215
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12216
|
+
</xsl:element>
|
12217
|
+
</xsl:otherwise>
|
12218
|
+
</xsl:choose>
|
12219
|
+
</xsl:template>
|
12220
|
+
|
12221
|
+
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
12222
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12223
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12224
|
+
</xsl:template>
|
12225
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
|
12226
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
12138
12227
|
<xsl:copy-of select="@*"/>
|
12139
12228
|
<xsl:apply-templates mode="update_xml_step1"/>
|
12140
12229
|
</xsl:element>
|
12141
12230
|
</xsl:template>
|
12142
|
-
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
12143
|
-
<xsl:
|
12231
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12232
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12233
|
+
</xsl:template>
|
12234
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
|
12235
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
12236
|
+
<xsl:copy-of select="@*"/>
|
12237
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12238
|
+
</xsl:element>
|
12239
|
+
</xsl:template>
|
12240
|
+
|
12241
|
+
<xsl:template match="*[local-name() = 'fmt-admitted']"/>
|
12242
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12243
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12244
|
+
</xsl:template>
|
12245
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
|
12246
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
12247
|
+
<xsl:copy-of select="@*"/>
|
12248
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12249
|
+
</xsl:element>
|
12250
|
+
</xsl:template>
|
12251
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12252
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12253
|
+
</xsl:template>
|
12254
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
|
12255
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
12256
|
+
<xsl:copy-of select="@*"/>
|
12257
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12258
|
+
</xsl:element>
|
12259
|
+
</xsl:template>
|
12260
|
+
|
12261
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates']"/>
|
12262
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12263
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12264
|
+
</xsl:template>
|
12265
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
|
12266
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
12267
|
+
<xsl:copy-of select="@*"/>
|
12268
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12269
|
+
</xsl:element>
|
12270
|
+
</xsl:template>
|
12271
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12272
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12273
|
+
</xsl:template>
|
12274
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
|
12275
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
12276
|
+
<xsl:copy-of select="@*"/>
|
12277
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12278
|
+
</xsl:element>
|
12279
|
+
</xsl:template>
|
12280
|
+
|
12281
|
+
<xsl:template match="*[local-name() = 'fmt-definition']"/>
|
12282
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
|
12283
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12284
|
+
<xsl:copy-of select="@*"/>
|
12285
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12286
|
+
</xsl:element>
|
12287
|
+
</xsl:template>
|
12288
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
|
12289
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12290
|
+
<xsl:copy-of select="@*"/>
|
12291
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12292
|
+
</xsl:element>
|
12293
|
+
</xsl:template>
|
12294
|
+
|
12295
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']"/>
|
12296
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
|
12297
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12298
|
+
<xsl:copy-of select="@*"/>
|
12299
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12300
|
+
</xsl:element>
|
12301
|
+
</xsl:template>
|
12302
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
|
12303
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12144
12304
|
<xsl:copy-of select="@*"/>
|
12145
12305
|
<xsl:apply-templates mode="update_xml_pres"/>
|
12146
12306
|
</xsl:element>
|
@@ -12153,6 +12313,9 @@
|
|
12153
12313
|
<xsl:apply-templates mode="update_xml_pres"/>
|
12154
12314
|
</xsl:template>
|
12155
12315
|
|
12316
|
+
<xsl:template match="*[local-name() = 'semx']">
|
12317
|
+
<xsl:apply-templates/>
|
12318
|
+
</xsl:template>
|
12156
12319
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
12157
12320
|
<xsl:apply-templates mode="update_xml_step1"/>
|
12158
12321
|
</xsl:template>
|
@@ -13277,7 +13440,7 @@
|
|
13277
13440
|
</xsl:template>
|
13278
13441
|
|
13279
13442
|
<xsl:template name="namespaceCheck">
|
13280
|
-
<xsl:variable name="documentNS" select="namespace-uri(/*)
|
13443
|
+
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
13281
13444
|
<xsl:variable name="XSLNS">
|
13282
13445
|
|
13283
13446
|
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
@@ -13367,6 +13530,9 @@
|
|
13367
13530
|
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
|
13368
13531
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13369
13532
|
</xsl:when>
|
13533
|
+
<xsl:when test="string-length($bibdata_updated) != ''">
|
13534
|
+
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13535
|
+
</xsl:when>
|
13370
13536
|
<xsl:when test="$formatted = 'true'">
|
13371
13537
|
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13372
13538
|
</xsl:when>
|
@@ -145,7 +145,8 @@ module IsoDoc
|
|
145
145
|
%i(arabic alphabet roman alphabet_upper roman_upper)[(idx - 1) % 5]
|
146
146
|
end
|
147
147
|
|
148
|
-
|
148
|
+
# KILL
|
149
|
+
def termsource1xx(elem)
|
149
150
|
while elem&.next_element&.name == "termsource"
|
150
151
|
elem << "; #{to_xml(elem.next_element.remove.children)}"
|
151
152
|
end
|
@@ -153,6 +154,11 @@ module IsoDoc
|
|
153
154
|
"#{to_xml(elem.children).strip}]")
|
154
155
|
end
|
155
156
|
|
157
|
+
def termsource_label(elem, sources)
|
158
|
+
elem.replace(l10n("[<strong>#{@i18n.source}:</strong> " \
|
159
|
+
"#{sources}]"))
|
160
|
+
end
|
161
|
+
|
156
162
|
def bibliography_bibitem_number_skip(bibitem)
|
157
163
|
implicit_reference(bibitem) ||
|
158
164
|
bibitem.at(ns(".//docidentifier[@type = 'metanorma-ordinal']")) ||
|
@@ -181,13 +187,19 @@ module IsoDoc
|
|
181
187
|
end
|
182
188
|
|
183
189
|
def deprecates(elem)
|
184
|
-
elem
|
190
|
+
elem.xpath(ns(".//semx[@element = 'deprecates']")).each do |s|
|
191
|
+
s.next = " <span class='DeprecatedLabel'>#{@i18n.deprecated}</span>"
|
192
|
+
end
|
185
193
|
end
|
186
194
|
|
187
195
|
def admits(elem)
|
188
|
-
elem
|
196
|
+
elem.xpath(ns(".//semx[@element = 'admitted']")).each do |s|
|
197
|
+
s.next = " <span class='AdmittedLabel'>#{@i18n.admitted}</span>"
|
198
|
+
end
|
189
199
|
end
|
190
200
|
|
201
|
+
#def designation_boldface(desgn); end
|
202
|
+
|
191
203
|
def source_label(elem)
|
192
204
|
labelled_ancestor(elem) and return
|
193
205
|
#lbl = "<span class='fmt-element-name'>#{lower2cap @i18n.sourcecode}</span>"
|
@@ -947,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
|
|
947
947
|
typically cited as "personal communication")</a:documentation>
|
948
948
|
<value>conversation</value>
|
949
949
|
<a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
|
950
|
+
<value>collection</value>
|
951
|
+
<a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
|
950
952
|
<value>misc</value>
|
951
953
|
<a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
|
952
954
|
</choice>
|
@@ -1277,17 +1279,17 @@ for which this claim of validity is made, if applicable</a:documentation>
|
|
1277
1279
|
</define>
|
1278
1280
|
<define name="validityBegins">
|
1279
1281
|
<element name="validityBegins">
|
1280
|
-
<ref name="
|
1282
|
+
<ref name="ISO8601Date"/>
|
1281
1283
|
</element>
|
1282
1284
|
</define>
|
1283
1285
|
<define name="validityEnds">
|
1284
1286
|
<element name="validityEnds">
|
1285
|
-
<ref name="
|
1287
|
+
<ref name="ISO8601Date"/>
|
1286
1288
|
</element>
|
1287
1289
|
</define>
|
1288
1290
|
<define name="validityRevision">
|
1289
1291
|
<element name="revision">
|
1290
|
-
<ref name="
|
1292
|
+
<ref name="ISO8601Date"/>
|
1291
1293
|
</element>
|
1292
1294
|
</define>
|
1293
1295
|
<define name="TypedTitleString">
|
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.6.
|
4
|
+
version: 2.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|