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.
@@ -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
 
@@ -1868,7 +1868,7 @@
1868
1868
  <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
1869
1869
  <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>
1870
1870
 
1871
- <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">
1871
+ <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">
1872
1872
 
1873
1873
  <xsl:variable name="parent" select="local-name(..)"/>
1874
1874
 
@@ -10786,10 +10786,10 @@
10786
10786
  <!-- END Admonition -->
10787
10787
  <!-- ================ -->
10788
10788
 
10789
- <xsl:attribute-set name="references-non-normative-title-style">
10789
+ <xsl:attribute-set name="bibliography-title-style">
10790
10790
  </xsl:attribute-set>
10791
10791
 
10792
- <xsl:template name="refine_references-non-normative-title-style">
10792
+ <xsl:template name="refine_bibliography-title-style">
10793
10793
  </xsl:template>
10794
10794
 
10795
10795
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -12824,6 +12824,7 @@
12824
12824
  <!-- ===================================== -->
12825
12825
 
12826
12826
  <xsl:attribute-set name="annex-title-style">
12827
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
12827
12828
  </xsl:attribute-set> <!-- annex-title-style -->
12828
12829
 
12829
12830
  <xsl:template name="refine_annex-title-style">
@@ -12893,14 +12894,31 @@
12893
12894
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
12894
12895
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
12895
12896
  </xsl:if>
12897
+
12898
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
12899
+ <xsl:variable name="annex_title_styles">
12900
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
12901
+ </xsl:variable>
12902
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
12903
+ </xsl:if>
12904
+
12905
+ <xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
12906
+ <xsl:variable name="bibliography_title_styles">
12907
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
12908
+ </xsl:variable>
12909
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
12910
+ </xsl:if>
12896
12911
  <!-- 'ogc-white-paper' -->
12897
12912
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
12898
12913
  </xsl:template> <!-- refine_title-style -->
12899
12914
 
12900
12915
  <xsl:template name="processPrefaceSectionsDefault">
12916
+ <xsl:param name="num"/>
12901
12917
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
12902
12918
  <xsl:sort select="@displayorder" data-type="number"/>
12903
- <xsl:apply-templates select="."/>
12919
+ <xsl:apply-templates select=".">
12920
+ <xsl:with-param name="num" select="$num"/>
12921
+ </xsl:apply-templates>
12904
12922
  </xsl:for-each>
12905
12923
  </xsl:template>
12906
12924
 
@@ -73,15 +73,15 @@ module IsoDoc
73
73
 
74
74
  def bibrender_formattedref(formattedref, xml); end
75
75
 
76
- def norm_ref_entry_code(_ordinal, _idents, _ids, _standard, _datefn, _bib)
76
+ def norm_ref_entry_code(_ordinal, _idents, _standard, _datefn, _bib)
77
77
  ""
78
78
  end
79
79
 
80
80
  # if ids is just a number, only use that ([1] Non-Standard)
81
81
  # else, use both ordinal, as prefix, and ids
82
- def biblio_ref_entry_code(ordinal, ids, _id, standard, datefn, _bib)
82
+ def biblio_ref_entry_code(ordinal, ids, standard, datefn, _bib)
83
83
  standard and return "[#{ordinal}]<tab/>"
84
- ret = ids[:ordinal] || ids[:metanorma] || "[#{ordinal}]"
84
+ ret = ids[:ordinal] || ids[:content] || ids[:metanorma] || "[#{ordinal}]"
85
85
  prefix_bracketed_ref("#{ret}#{datefn}")
86
86
  end
87
87
 
@@ -466,11 +466,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
466
466
  <a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
467
467
  </ref>
468
468
  </optional>
469
- <optional>
469
+ <zeroOrMore>
470
470
  <ref name="logo">
471
471
  <a:documentation>A logo for the organization</a:documentation>
472
472
  </ref>
473
- </optional>
473
+ </zeroOrMore>
474
474
  </define>
475
475
  <define name="orgname">
476
476
  <element name="name">
@@ -502,6 +502,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
502
502
  </define>
503
503
  <define name="logo">
504
504
  <element name="logo">
505
+ <optional>
506
+ <attribute name="type">
507
+ <a:documentation>The type of logo</a:documentation>
508
+ </attribute>
509
+ </optional>
505
510
  <ref name="image-no-id"/>
506
511
  </element>
507
512
  </define>
@@ -513,6 +518,11 @@ Editorial and advisory groups are represented as consecutive subdivisions of the
513
518
  <a:documentation>Description of what is being depicted</a:documentation>
514
519
  </attribute>
515
520
  </optional>
521
+ <optional>
522
+ <attribute name="type">
523
+ <a:documentation>Description of what kind of depiction this</a:documentation>
524
+ </attribute>
525
+ </optional>
516
526
  <zeroOrMore>
517
527
  <ref name="image-no-id">
518
528
  <a:documentation>A visual depiction of the bibliographic item</a:documentation>
@@ -690,7 +700,7 @@ Examples include GRID, LEI, CrossRef, and Ringgold</a:documentation>
690
700
  <define name="CitationType">
691
701
  <attribute name="bibitemid">
692
702
  <a:documentation>Bibliographic item that the citation applies to, referenced as the anchor of a bibliographic description</a:documentation>
693
- <data type="IDREF"/>
703
+ <ref name="IdRefType"/>
694
704
  </attribute>
695
705
  <choice>
696
706
  <zeroOrMore>
@@ -1236,9 +1246,9 @@ Refer to `BibliographicItem` for definitions</a:documentation>
1236
1246
  <optional>
1237
1247
  <ref name="validity"/>
1238
1248
  </optional>
1239
- <optional>
1249
+ <zeroOrMore>
1240
1250
  <ref name="depiction"/>
1241
- </optional>
1251
+ </zeroOrMore>
1242
1252
  </define>
1243
1253
  <define name="btitle">
1244
1254
  <a:documentation>A title of a bibliographic item, associated with a type of title</a:documentation>
@@ -1296,17 +1306,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1296
1306
  </define>
1297
1307
  <define name="validityBegins">
1298
1308
  <element name="validityBegins">
1299
- <ref name="ISO8601Date"/>
1309
+ <ref name="ISO8601DateTime"/>
1300
1310
  </element>
1301
1311
  </define>
1302
1312
  <define name="validityEnds">
1303
1313
  <element name="validityEnds">
1304
- <ref name="ISO8601Date"/>
1314
+ <ref name="ISO8601DateTime"/>
1305
1315
  </element>
1306
1316
  </define>
1307
1317
  <define name="validityRevision">
1308
1318
  <element name="revision">
1309
- <ref name="ISO8601Date"/>
1319
+ <ref name="ISO8601DateTime"/>
1310
1320
  </element>
1311
1321
  </define>
1312
1322
  <define name="TypedTitleString">