metanorma-ogc 2.8.8 → 2.8.10

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: 329d53d7eebb925fa310162c7934f469c633e15960b614932c8137005f59528b
4
- data.tar.gz: 49b5a035108197c19e38ed797a9b141686892451a66580abe1a0b122e10af307
3
+ metadata.gz: aaa5b1592ee3a1c1cfea9476cf4d132d3d9c045f8de9df6d17e67afd8d34987a
4
+ data.tar.gz: 51be47d1b3e92d8f55904f0b717afb6c711911681fe7c46793a81b33d9b6087f
5
5
  SHA512:
6
- metadata.gz: a3204db665fcf5d3ca0cc30d2063ac1e7bb816286558dd8617263779ec7fdd873d74d759966d91ea7adb3c30f72de63bd4b080acee72cf61844a764969e52c24
7
- data.tar.gz: 3caa57b3f66c1419ac1b56a9e1563ae80b6ef3c58cc33ed174e35186d5e79d6a36cc46431d36490c731de897e31bf42db9c1b59bc0e3de2eea5252acbfa6cf7d
6
+ metadata.gz: ebd82d4067ab75d0ad2be7d694f236fe723e0ce4480c7c3c5ffc1343a873d00bfab0b33e57837f955e95acb1b5cd66094bde7dde3905e0d02f5bb52900893d9a
7
+ data.tar.gz: 10d495fc06fe3ecff03ee346a66e334478cc11d07c227bb0b9fc4912a43d9a62f6432310ed9ad88302cfca8d78917edce55604e2c92e624876874eadc017d24e
@@ -22,7 +22,8 @@ module IsoDoc
22
22
 
23
23
  def bibrenderer(options = {})
24
24
  ::Relaton::Render::Ogc::General.new(options
25
- .merge(language: @lang, script: @script, i18nhash: @i18n.get))
25
+ .merge(language: @lang, script: @script, i18nhash: @i18n.get,
26
+ config: @relatonrenderconfig))
26
27
  end
27
28
 
28
29
  def fileloc(loc)
@@ -36,14 +36,18 @@ module IsoDoc
36
36
  }.freeze
37
37
 
38
38
  class Metadata < IsoDoc::Metadata
39
- def initialize(lang, script, locale, i18n)
40
- super
41
- here = File.dirname(__FILE__)
42
- set(:logo_old,
43
- File.expand_path(File.join(here, "html", "logo.png")))
44
- set(:logo_new,
45
- File.expand_path(File.join(here, "html",
46
- "logo.2021.svg")))
39
+ def logo_old
40
+ File.expand_path(File.join(File.dirname(__FILE__), "html", "logo.png"))
41
+ end
42
+
43
+ def logo_new
44
+ File.expand_path(File.join(File.dirname(__FILE__), "html",
45
+ "logo.2021.svg"))
46
+ end
47
+
48
+ def images(_isoxml, _out)
49
+ set(:logo_old, logo_old)
50
+ set(:logo_new, logo_new)
47
51
  end
48
52
 
49
53
  def title(isoxml, _out)
@@ -156,7 +160,7 @@ module IsoDoc
156
160
  rescue StandardError
157
161
  old = false
158
162
  end
159
- set(:logo_word, old ? get[:logo_old] : get[:logo_new])
163
+ set(:logo_word, old ? logo_old : logo_new)
160
164
  end
161
165
 
162
166
  def presentation(xml, _out)
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225
 
@@ -3098,7 +3098,7 @@
3098
3098
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
3099
3099
  <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
3100
3100
 
3101
- <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3101
+ <xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() &gt; 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
3102
3102
 
3103
3103
  <xsl:variable name="parent" select="local-name(..)"/>
3104
3104
 
@@ -12071,10 +12071,10 @@
12071
12071
  <!-- END Admonition -->
12072
12072
  <!-- ================ -->
12073
12073
 
12074
- <xsl:attribute-set name="references-non-normative-title-style">
12074
+ <xsl:attribute-set name="bibliography-title-style">
12075
12075
  </xsl:attribute-set>
12076
12076
 
12077
- <xsl:template name="refine_references-non-normative-title-style">
12077
+ <xsl:template name="refine_bibliography-title-style">
12078
12078
  </xsl:template>
12079
12079
 
12080
12080
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14115,6 +14115,7 @@
14115
14115
  <!-- ===================================== -->
14116
14116
 
14117
14117
  <xsl:attribute-set name="annex-title-style">
14118
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14118
14119
  </xsl:attribute-set> <!-- annex-title-style -->
14119
14120
 
14120
14121
  <xsl:template name="refine_annex-title-style">
@@ -14194,14 +14195,31 @@
14194
14195
  <xsl:if test="$level &gt;= 5">
14195
14196
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14196
14197
  </xsl:if>
14198
+
14199
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
14200
+ <xsl:variable name="annex_title_styles">
14201
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
14202
+ </xsl:variable>
14203
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
14204
+ </xsl:if>
14205
+
14206
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
14207
+ <xsl:variable name="bibliography_title_styles">
14208
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
14209
+ </xsl:variable>
14210
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
14211
+ </xsl:if>
14197
14212
  <!-- $namespace = 'ogc' -->
14198
14213
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14199
14214
  </xsl:template> <!-- refine_title-style -->
14200
14215
 
14201
14216
  <xsl:template name="processPrefaceSectionsDefault">
14217
+ <xsl:param name="num"/>
14202
14218
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14203
14219
  <xsl:sort select="@displayorder" data-type="number"/>
14204
- <xsl:apply-templates select="."/>
14220
+ <xsl:apply-templates select=".">
14221
+ <xsl:with-param name="num" select="$num"/>
14222
+ </xsl:apply-templates>
14205
14223
  </xsl:for-each>
14206
14224
  </xsl:template>
14207
14225