metanorma-iho 1.0.13 → 1.0.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7ee6cc2c4053df809afa29e68df0126fc4fe063c6e3456d77125c930d76cc1f
4
- data.tar.gz: 1cc4d342b63022f48ee17959db4dcab0de125a72aa0d1b5bc77f285c2194f6d4
3
+ metadata.gz: 7cdfebb993b782a2c17eaf34610fd07f8351425743814f3e57167d7991af5edf
4
+ data.tar.gz: cde48a080e752f287ce934c1fd8f9786b2cf03dc18e8083fcb310c9e5ca77945
5
5
  SHA512:
6
- metadata.gz: dd20b9873b57c704bd78957c00486f7c7a0d21baf37fec7aedaac4ebbb11246331f01fb119fc879d994f7bf97d0e267f9e9e48d6ce426bf01cf69578406000d9
7
- data.tar.gz: 64140a484a3e95b371e8f00163811c3160dd0bcc80395b8ae216caf870ff3b97455ac190a64a66e4fe2a151e957f26cd733f4d8bdcea3041e7970d95efe19b14
6
+ metadata.gz: b9018d84334f416d6e26d10ee6b447c37758e401803f76499c1d337bf1e6b26b76a824aeab8854bc3708be49f7778df72ca37375a31e3305f08eb6d594a2df2f
7
+ data.tar.gz: 5be59f0634e3fbcd8abf2b31c114f47554e6a7a4889a7308510c4852ef903b5b833019f617f3209e3fa0ffaec765a40e45db604f5ae3ee9f135cd3bd7f13b045
@@ -883,8 +883,21 @@
883
883
 
884
884
  <!-- <xsl:strip-space elements="iho:xref"/> -->
885
885
 
886
- <xsl:variable name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
887
- <xsl:variable name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
886
+ <xsl:variable name="namespace_full_">
887
+ <xsl:choose>
888
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
889
+ <xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/iso -->
890
+ </xsl:choose>
891
+ </xsl:variable>
892
+ <xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
893
+
894
+ <xsl:variable name="root_element_">
895
+ <xsl:choose>
896
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
897
+ <xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: iso-standard -->
898
+ </xsl:choose>
899
+ </xsl:variable>
900
+ <xsl:variable name="root_element" select="normalize-space($root_element_)"/>
888
901
 
889
902
  <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'])"/>
890
903
 
@@ -5715,6 +5728,12 @@
5715
5728
  </xsl:if>
5716
5729
  </xsl:template>
5717
5730
 
5731
+ <xsl:template match="*[local-name()='strike']">
5732
+ <fo:inline text-decoration="line-through">
5733
+ <xsl:apply-templates/>
5734
+ </fo:inline>
5735
+ </xsl:template>
5736
+
5718
5737
  <xsl:template match="*[local-name() = 'pagebreak']">
5719
5738
  <fo:block break-after="page"/>
5720
5739
  <fo:block> </fo:block>
@@ -883,8 +883,21 @@
883
883
 
884
884
  <!-- <xsl:strip-space elements="iho:xref"/> -->
885
885
 
886
- <xsl:variable name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
887
- <xsl:variable name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
886
+ <xsl:variable name="namespace_full_">
887
+ <xsl:choose>
888
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
889
+ <xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/iso -->
890
+ </xsl:choose>
891
+ </xsl:variable>
892
+ <xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
893
+
894
+ <xsl:variable name="root_element_">
895
+ <xsl:choose>
896
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
897
+ <xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: iso-standard -->
898
+ </xsl:choose>
899
+ </xsl:variable>
900
+ <xsl:variable name="root_element" select="normalize-space($root_element_)"/>
888
901
 
889
902
  <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'])"/>
890
903
 
@@ -5715,6 +5728,12 @@
5715
5728
  </xsl:if>
5716
5729
  </xsl:template>
5717
5730
 
5731
+ <xsl:template match="*[local-name()='strike']">
5732
+ <fo:inline text-decoration="line-through">
5733
+ <xsl:apply-templates/>
5734
+ </fo:inline>
5735
+ </xsl:template>
5736
+
5718
5737
  <xsl:template match="*[local-name() = 'pagebreak']">
5719
5738
  <fo:block break-after="page"/>
5720
5739
  <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 Iho
3
- VERSION = "1.0.13".freeze
3
+ VERSION = "1.0.14".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
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
@@ -245,7 +245,7 @@ homepage: https://github.com/metanorma/metanorma-iho
245
245
  licenses:
246
246
  - BSD-2-Clause
247
247
  metadata: {}
248
- post_install_message:
248
+ post_install_message:
249
249
  rdoc_options: []
250
250
  require_paths:
251
251
  - lib
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubygems_version: 3.3.27
264
- signing_key:
264
+ signing_key:
265
265
  specification_version: 4
266
266
  summary: metanorma-iho lets you write IHO in AsciiDoc.
267
267
  test_files: []