metanorma-ribose 2.5.9 → 2.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2ce34357fcbe779b956860fb3d3da2ebca0f0a709520854f213f7bfd156f771
4
- data.tar.gz: dc2499f9ac4065e5587d87cdbd23213de19be6520bcf256eaf1b389225f156dd
3
+ metadata.gz: 7c0913b63262cf54ab97d9df21a8301977c72c61697987cbce07bfcd4bf9ea4d
4
+ data.tar.gz: 459c655d58228535c36415a72e2ca3a8ca72b22675e4f453c1384bfcd5afaf1d
5
5
  SHA512:
6
- metadata.gz: 2ec6784ba3c09413d4fa57fd359e1a65831a80092d79728c8a1a25eb678e92b118334ae3d0bc72d80da8f9b437a4d6b5ead1e8c915dcb368c9449d66da616256
7
- data.tar.gz: a22da98d2becdb55928d9fbd7fd12516e4f74cf41c44dfc8971ce49a2262fe37c45a11a2651080ada49604e42222931d51dff3fb819d79317873d1d6e36697e3
6
+ metadata.gz: 6d5a1b64ddcd0a08b09f54cb9c1cfbcba0d1c900090b26b1c515437fbc9cdf29aff62e6380fb8d74b72249f8c393d17c690066f1a65bd345facdb767aeb94f5f
7
+ data.tar.gz: e08442b6d1356098c4b7a5cf02491ea1824935d375e225449d11a3beb25f4a28be43e106dbcc12b3a93679890bc61959aa28ee44d19a8ccc2ea3a2566907246c
@@ -1324,8 +1324,21 @@
1324
1324
 
1325
1325
  <!-- <xsl:strip-space elements="ribose:xref"/> -->
1326
1326
 
1327
- <xsl:variable name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
1328
- <xsl:variable name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
1327
+ <xsl:variable name="namespace_full_">
1328
+ <xsl:choose>
1329
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
1330
+ <xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/iso -->
1331
+ </xsl:choose>
1332
+ </xsl:variable>
1333
+ <xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
1334
+
1335
+ <xsl:variable name="root_element_">
1336
+ <xsl:choose>
1337
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
1338
+ <xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: iso-standard -->
1339
+ </xsl:choose>
1340
+ </xsl:variable>
1341
+ <xsl:variable name="root_element" select="normalize-space($root_element_)"/>
1329
1342
 
1330
1343
  <xsl:variable name="document_scheme" select="normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
1331
1344
 
@@ -6244,6 +6257,12 @@
6244
6257
  </xsl:if>
6245
6258
  </xsl:template>
6246
6259
 
6260
+ <xsl:template match="*[local-name()='strike']">
6261
+ <fo:inline text-decoration="line-through">
6262
+ <xsl:apply-templates/>
6263
+ </fo:inline>
6264
+ </xsl:template>
6265
+
6247
6266
  <xsl:template match="*[local-name() = 'pagebreak']">
6248
6267
  <fo:block break-after="page"/>
6249
6268
  <fo:block> </fo:block>
@@ -267,11 +267,11 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
267
267
  <a:documentation>An identifier of the person according to an international identifier scheme</a:documentation>
268
268
  </ref>
269
269
  </zeroOrMore>
270
- <zeroOrMore>
270
+ <optional>
271
271
  <ref name="contact">
272
272
  <a:documentation>Contact information for the person, including URI, address, phone number, and email</a:documentation>
273
273
  </ref>
274
- </zeroOrMore>
274
+ </optional>
275
275
  </element>
276
276
  </define>
277
277
  <define name="fullname">
@@ -454,11 +454,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
454
454
  <a:documentation>An identifier of the organization according to an international identifier scheme</a:documentation>
455
455
  </ref>
456
456
  </zeroOrMore>
457
- <zeroOrMore>
457
+ <optional>
458
458
  <ref name="contact">
459
459
  <a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
460
460
  </ref>
461
- </zeroOrMore>
461
+ </optional>
462
462
  <optional>
463
463
  <ref name="logo">
464
464
  <a:documentation>A logo for the organization</a:documentation>
@@ -540,12 +540,18 @@ real names (if the person is named with a pseudonym or user name); previous lega
540
540
  <!-- TODO may change -->
541
541
  <define name="contact">
542
542
  <a:documentation>Contact information for a person or organization</a:documentation>
543
- <choice>
543
+ <zeroOrMore>
544
544
  <ref name="address"/>
545
+ </zeroOrMore>
546
+ <zeroOrMore>
545
547
  <ref name="phone"/>
548
+ </zeroOrMore>
549
+ <zeroOrMore>
546
550
  <ref name="email"/>
551
+ </zeroOrMore>
552
+ <zeroOrMore>
547
553
  <ref name="uri"/>
548
- </choice>
554
+ </zeroOrMore>
549
555
  </define>
550
556
  <define name="phone">
551
557
  <a:documentation>The phone number associated with a person or organization</a:documentation>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.5.9".freeze
3
+ VERSION = "2.5.10".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.9
4
+ version: 2.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-23 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -239,7 +239,7 @@ homepage: https://github.com/metanorma/metanorma-ribose
239
239
  licenses:
240
240
  - BSD-2-Clause
241
241
  metadata: {}
242
- post_install_message:
242
+ post_install_message:
243
243
  rdoc_options: []
244
244
  require_paths:
245
245
  - lib
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  version: '0'
256
256
  requirements: []
257
257
  rubygems_version: 3.3.27
258
- signing_key:
258
+ signing_key:
259
259
  specification_version: 4
260
260
  summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
261
261
  test_files: []