metanorma-iso 3.0.5 → 3.0.6

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: 4a2abb0538e4a003829a682164cccf063c9a9b069249e9edb4722f99d8c443fc
4
- data.tar.gz: 57a31c0c8b3553918f9575c277840ee254c7d6e8731420bc7a03449643003e6f
3
+ metadata.gz: fd0358f94bbae1d6d9701a3fc7e65a4e13023aa367d7b790816361544c44f4a4
4
+ data.tar.gz: f79b87d35cdebb5111e9d97b8ca8af7e4d7334c1aaaa3b13813f2b3813c373c3
5
5
  SHA512:
6
- metadata.gz: 3b8a911f86177ae812a0331e5a78b1b1e846a4c50c542642fd27517a43e92adcfeb9a3dcd28d5c42e76f14c73131cabbcf1c25eee9332d7a798b0d4ea30c05c0
7
- data.tar.gz: 22bb15fe291f927d8f8013268f997b7cf888febd3a6d1f3db89d0812bbb0dadbd14dc5553cea4f34c7529163e507ba3a22dc562590de2174fe83b65670e09b66
6
+ metadata.gz: b8c623bbbf2c8238d3cf712a21d8f7941968464cfa979947db054331d54b9185db422154f318efb3b339e7cabdc37824de0e2b1014a3b97267663b791fd2559c
7
+ data.tar.gz: d98155a8922bafdac24a604144b3f6436dc426aea949a4142425fc1df2e699aae57a58f29228af36a2699f72fb003e5640c2732508a352a103b42418119354a2
@@ -4167,9 +4167,7 @@
4167
4167
  </xsl:choose>
4168
4168
  </xsl:if>
4169
4169
 
4170
- <xsl:if test="@named_dest">
4171
- <fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
4172
- </xsl:if>
4170
+ <xsl:call-template name="setIDforNamedDestinationInline"/>
4173
4171
 
4174
4172
  <xsl:choose>
4175
4173
  <xsl:when test="$layoutVersion = '1951' and ((ancestor::iso:preface and $level = 1) or (parent::iso:introduction and $revision_date_num &lt; 19680101))">
@@ -4251,15 +4249,16 @@
4251
4249
  </xsl:choose>
4252
4250
  <xsl:apply-templates select="following-sibling::*[1][local-name() = 'variant-title'][@type = 'sub']" mode="subtitle"/>
4253
4251
 
4254
- <!-- becaise @id applied above -->
4255
- <xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989' or @type = 'floating-title' or @type = 'section-title'">
4252
+ <!-- because @id from preceding clause applied, see above -->
4253
+ <!-- <xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989' or
4254
+ @type = 'floating-title' or @type = 'section-title'">
4256
4255
  <xsl:if test="@named_dest">
4257
4256
  <fo:inline>
4258
4257
  <xsl:call-template name="setIDforNamedDestination"/>
4259
4258
  <xsl:value-of select="$zero_width_space"/>
4260
4259
  </fo:inline>
4261
4260
  </xsl:if>
4262
- </xsl:if>
4261
+ </xsl:if> -->
4263
4262
  </xsl:element>
4264
4263
 
4265
4264
  <xsl:if test="$element-name = 'fo:inline' and not(following-sibling::iso:p)">
@@ -18235,8 +18234,14 @@
18235
18234
  <xsl:choose>
18236
18235
  <xsl:when test="count(ancestor::*[local-name() = 'figure']) &gt; 1"/> <!-- prevent id 'a)' -->
18237
18236
  <xsl:when test="ancestor::*[local-name() = 'note'] or ancestor::*[local-name() = 'example'] or ancestor::*[local-name() = 'termnote'] or ancestor::*[local-name() = 'termexample']"/>
18238
- <xsl:when test="$caption_label = '' and parent::*[local-name() = 'foreword']">Foreword</xsl:when>
18239
- <xsl:when test="$caption_label = '' and parent::*[local-name() = 'introduction']">Introduction</xsl:when>
18237
+ <xsl:when test="$caption_label = '' and parent::*[local-name() = 'foreword']">
18238
+ <xsl:variable name="foreword_number"><xsl:number count="*[local-name() = 'foreword']" level="any"/></xsl:variable>
18239
+ <xsl:if test="$foreword_number = 1">Foreword</xsl:if>
18240
+ </xsl:when>
18241
+ <xsl:when test="$caption_label = '' and parent::*[local-name() = 'introduction']">
18242
+ <xsl:variable name="introduction_number"><xsl:number count="*[local-name() = 'introduction']" level="any"/></xsl:variable>
18243
+ <xsl:if test="$introduction_number = 1">Introduction</xsl:if>
18244
+ </xsl:when>
18240
18245
  <xsl:when test="$caption_label = ''"/>
18241
18246
  <xsl:when test="../@unnumbered = 'true'"/>
18242
18247
  <xsl:otherwise>
@@ -19882,6 +19887,12 @@
19882
19887
  </xsl:if>
19883
19888
  </xsl:template>
19884
19889
 
19890
+ <xsl:template name="setIDforNamedDestinationInline">
19891
+ <xsl:if test="@named_dest">
19892
+ <fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
19893
+ </xsl:if>
19894
+ </xsl:template>
19895
+
19885
19896
  <xsl:template name="setNamedDestination">
19886
19897
  <!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
19887
19898
  <xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
@@ -4167,9 +4167,7 @@
4167
4167
  </xsl:choose>
4168
4168
  </xsl:if>
4169
4169
 
4170
- <xsl:if test="@named_dest">
4171
- <fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
4172
- </xsl:if>
4170
+ <xsl:call-template name="setIDforNamedDestinationInline"/>
4173
4171
 
4174
4172
  <xsl:choose>
4175
4173
  <xsl:when test="$layoutVersion = '1951' and ((ancestor::iso:preface and $level = 1) or (parent::iso:introduction and $revision_date_num &lt; 19680101))">
@@ -4251,15 +4249,16 @@
4251
4249
  </xsl:choose>
4252
4250
  <xsl:apply-templates select="following-sibling::*[1][local-name() = 'variant-title'][@type = 'sub']" mode="subtitle"/>
4253
4251
 
4254
- <!-- becaise @id applied above -->
4255
- <xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989' or @type = 'floating-title' or @type = 'section-title'">
4252
+ <!-- because @id from preceding clause applied, see above -->
4253
+ <!-- <xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989' or
4254
+ @type = 'floating-title' or @type = 'section-title'">
4256
4255
  <xsl:if test="@named_dest">
4257
4256
  <fo:inline>
4258
4257
  <xsl:call-template name="setIDforNamedDestination"/>
4259
4258
  <xsl:value-of select="$zero_width_space"/>
4260
4259
  </fo:inline>
4261
4260
  </xsl:if>
4262
- </xsl:if>
4261
+ </xsl:if> -->
4263
4262
  </xsl:element>
4264
4263
 
4265
4264
  <xsl:if test="$element-name = 'fo:inline' and not(following-sibling::iso:p)">
@@ -18235,8 +18234,14 @@
18235
18234
  <xsl:choose>
18236
18235
  <xsl:when test="count(ancestor::*[local-name() = 'figure']) &gt; 1"/> <!-- prevent id 'a)' -->
18237
18236
  <xsl:when test="ancestor::*[local-name() = 'note'] or ancestor::*[local-name() = 'example'] or ancestor::*[local-name() = 'termnote'] or ancestor::*[local-name() = 'termexample']"/>
18238
- <xsl:when test="$caption_label = '' and parent::*[local-name() = 'foreword']">Foreword</xsl:when>
18239
- <xsl:when test="$caption_label = '' and parent::*[local-name() = 'introduction']">Introduction</xsl:when>
18237
+ <xsl:when test="$caption_label = '' and parent::*[local-name() = 'foreword']">
18238
+ <xsl:variable name="foreword_number"><xsl:number count="*[local-name() = 'foreword']" level="any"/></xsl:variable>
18239
+ <xsl:if test="$foreword_number = 1">Foreword</xsl:if>
18240
+ </xsl:when>
18241
+ <xsl:when test="$caption_label = '' and parent::*[local-name() = 'introduction']">
18242
+ <xsl:variable name="introduction_number"><xsl:number count="*[local-name() = 'introduction']" level="any"/></xsl:variable>
18243
+ <xsl:if test="$introduction_number = 1">Introduction</xsl:if>
18244
+ </xsl:when>
18240
18245
  <xsl:when test="$caption_label = ''"/>
18241
18246
  <xsl:when test="../@unnumbered = 'true'"/>
18242
18247
  <xsl:otherwise>
@@ -19882,6 +19887,12 @@
19882
19887
  </xsl:if>
19883
19888
  </xsl:template>
19884
19889
 
19890
+ <xsl:template name="setIDforNamedDestinationInline">
19891
+ <xsl:if test="@named_dest">
19892
+ <fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
19893
+ </xsl:if>
19894
+ </xsl:template>
19895
+
19885
19896
  <xsl:template name="setNamedDestination">
19886
19897
  <!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
19887
19898
  <xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iso
3
- VERSION = "3.0.5".freeze
3
+ VERSION = "3.0.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.