metanorma-ogc 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,6 +49,7 @@
49
49
  <xsl:variable name="color_dl_dt">rgb(215,243,255)</xsl:variable>
50
50
  <xsl:variable name="color_dl_dd">rgb(242,251,255)</xsl:variable>
51
51
  <xsl:variable name="color_blue">rgb(33, 55, 92)</xsl:variable>
52
+ <xsl:variable name="color_background_blue">rgb(33,60,107)</xsl:variable>
52
53
 
53
54
  <xsl:variable name="toc_recommendations_">
54
55
  <xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
@@ -192,6 +193,10 @@
192
193
 
193
194
  <fo:flow flow-name="xsl-region-body" color="white">
194
195
 
196
+ <xsl:variable name="curr_lang" select="/ogc:ogc-standard/ogc:bibdata/ogc:language[@current = 'true']"/>
197
+ <xsl:variable name="stage" select="/ogc:ogc-standard/ogc:bibdata/ogc:status/ogc:stage[@language = $curr_lang] | /ogc:ogc-standard/ogc:bibdata/ogc:status/ogc:stage[not(@language)]"/>
198
+ <xsl:variable name="isLegacy" select="normalize-space($stage = 'deprecated' or $stage = 'legacy' or $stage = 'retired' or $stage = 'rescinded')"/>
199
+
195
200
  <!-- background image -->
196
201
  <fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0">
197
202
  <fo:block>
@@ -267,7 +272,7 @@
267
272
  <fo:block margin-top="4pt"> </fo:block>
268
273
  </fo:block-container>
269
274
  <fo:block color="{$color_design}">
270
- <fo:block font-size="17pt" margin-bottom="14pt">
275
+ <fo:block font-size="17pt">
271
276
  <xsl:call-template name="addLetterSpacing">
272
277
  <xsl:with-param name="text" select="java:toUpperCase(java:java.lang.String.new($doctype))"/>
273
278
  </xsl:call-template>
@@ -291,13 +296,31 @@
291
296
  <xsl:with-param name="letter-spacing" select="0.25"/>
292
297
  </xsl:call-template>
293
298
  </fo:block>
294
- <fo:block font-size="12pt" font-weight="bold">
295
- <xsl:variable name="curr_lang" select="/ogc:ogc-standard/ogc:bibdata/ogc:language[@current = 'true']"/>
296
- <xsl:variable name="stage" select="java:toUpperCase(java:java.lang.String.new(/ogc:ogc-standard/ogc:bibdata/ogc:status/ogc:stage[@language = $curr_lang]))"/>
297
- <xsl:call-template name="addLetterSpacing">
298
- <xsl:with-param name="text" select="$stage"/>
299
- </xsl:call-template>
300
- </fo:block>
299
+ <xsl:variable name="stage_uc" select="java:toUpperCase(java:java.lang.String.new($stage))"/>
300
+
301
+ <xsl:choose>
302
+ <xsl:when test="$isLegacy = 'true'">
303
+ <fo:block-container font-size="17pt" background-color="{$color_background_blue}" margin-left="-2.5mm" height="11.5mm" width="56mm" display-align="center" margin-top="0.5mm">
304
+ <fo:block-container margin-left="2.5mm">
305
+ <fo:block-container margin-left="0mm">
306
+ <fo:block margin-top="1mm">
307
+ <xsl:call-template name="addLetterSpacing">
308
+ <xsl:with-param name="text" select="$stage_uc"/>
309
+ </xsl:call-template>
310
+ </fo:block>
311
+ </fo:block-container>
312
+ </fo:block-container>
313
+ </fo:block-container>
314
+ </xsl:when>
315
+ <xsl:otherwise>
316
+ <fo:block font-size="12pt" font-weight="bold" margin-top="14pt">
317
+ <xsl:call-template name="addLetterSpacing">
318
+ <xsl:with-param name="text" select="$stage_uc"/>
319
+ </xsl:call-template>
320
+ </fo:block>
321
+ </xsl:otherwise>
322
+ </xsl:choose>
323
+
301
324
  </fo:block>
302
325
  </fo:block-container>
303
326
  </fo:block-container>
@@ -389,7 +412,24 @@
389
412
  </fo:block>
390
413
  </fo:block>
391
414
 
392
- <xsl:apply-templates select="/ogc:ogc-standard/ogc:boilerplate/ogc:legal-statement"/>
415
+ <xsl:choose>
416
+ <xsl:when test="$isLegacy = 'true'">
417
+ <fo:block-container margin-left="-7mm" color="{$color_design}" background-color="{$color_background_blue}" width="202mm">
418
+ <fo:block-container margin-left="2.5mm" margin-right="1mm" padding-top="0.5mm" padding-bottom="0.5mm">
419
+ <fo:block-container margin-left="0mm" margin-right="0mm">
420
+ <fo:block>
421
+ <xsl:apply-templates select="/ogc:ogc-standard/ogc:boilerplate/ogc:legal-statement">
422
+ <xsl:with-param name="isLegacy" select="$isLegacy"/>
423
+ </xsl:apply-templates>
424
+ </fo:block>
425
+ </fo:block-container>
426
+ </fo:block-container>
427
+ </fo:block-container>
428
+ </xsl:when>
429
+ <xsl:otherwise>
430
+ <xsl:apply-templates select="/ogc:ogc-standard/ogc:boilerplate/ogc:legal-statement"/>
431
+ </xsl:otherwise>
432
+ </xsl:choose>
393
433
 
394
434
  </fo:block-container>
395
435
 
@@ -3429,7 +3469,13 @@
3429
3469
  </xsl:template> <!-- license-statement/p -->
3430
3470
 
3431
3471
  <xsl:template match="*[local-name()='legal-statement']">
3472
+ <xsl:param name="isLegacy">false</xsl:param>
3432
3473
  <fo:block xsl:use-attribute-sets="legal-statement-style">
3474
+
3475
+ <xsl:if test="$isLegacy = 'true'">
3476
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
3477
+ </xsl:if>
3478
+
3433
3479
  <xsl:apply-templates/>
3434
3480
  </fo:block>
3435
3481
  </xsl:template> <!-- legal-statement -->
@@ -5718,13 +5764,14 @@
5718
5764
  <!-- ================= -->
5719
5765
  <!-- Added,deleted text -->
5720
5766
  <!-- ================= -->
5721
- <xsl:template match="*[local-name()='add']" name="tag_add">
5767
+ <xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
5722
5768
  <xsl:param name="skip">true</xsl:param>
5723
5769
  <xsl:param name="block">false</xsl:param>
5724
5770
  <xsl:param name="type"/>
5725
5771
  <xsl:param name="text-align"/>
5726
5772
  <xsl:choose>
5727
- <xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start -->
5773
+ <xsl:when test="starts-with(., $ace_tag) or local-name() = 'change-open-tag' or local-name() = 'change-close-tag'"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
5774
+ <change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
5728
5775
  <xsl:choose>
5729
5776
  <xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab']) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
5730
5777
  <xsl:otherwise>
@@ -5732,12 +5779,32 @@
5732
5779
  <xsl:call-template name="insertTag">
5733
5780
  <xsl:with-param name="type">
5734
5781
  <xsl:choose>
5782
+ <xsl:when test="local-name() = 'change-open-tag'">start</xsl:when>
5783
+ <xsl:when test="local-name() = 'change-close-tag'">end</xsl:when>
5735
5784
  <xsl:when test="$type = ''"><xsl:value-of select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end --></xsl:when>
5736
5785
  <xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
5737
5786
  </xsl:choose>
5738
5787
  </xsl:with-param>
5739
- <xsl:with-param name="kind" select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
5740
- <xsl:with-param name="value" select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
5788
+ <xsl:with-param name="kind">
5789
+ <xsl:choose>
5790
+ <xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
5791
+ <xsl:value-of select="text()"/>
5792
+ </xsl:when>
5793
+ <xsl:otherwise>
5794
+ <xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
5795
+ </xsl:otherwise>
5796
+ </xsl:choose>
5797
+ </xsl:with-param>
5798
+ <xsl:with-param name="value">
5799
+ <xsl:choose>
5800
+ <xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
5801
+ <xsl:value-of select="*[local-name() = 'sub']"/>
5802
+ </xsl:when>
5803
+ <xsl:otherwise>
5804
+ <xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
5805
+ </xsl:otherwise>
5806
+ </xsl:choose>
5807
+ </xsl:with-param>
5741
5808
  </xsl:call-template>
5742
5809
  </xsl:variable>
5743
5810
  <xsl:choose>
@@ -7949,11 +8016,17 @@
7949
8016
  </xsl:when>
7950
8017
  <xsl:otherwise>
7951
8018
 
8019
+ <xsl:variable name="image_class" select="ancestor::*[local-name() = 'image']/@class"/>
8020
+ <xsl:variable name="ancestor_table_cell" select="normalize-space(ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])"/>
8021
+
7952
8022
  <xsl:variable name="element">
7953
8023
  <xsl:choose>
7954
8024
  <xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
7955
8025
  <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
7956
8026
  </xsl:when>
8027
+ <xsl:when test="not(ancestor::*[local-name() = 'figure'])">
8028
+ <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
8029
+ </xsl:when>
7957
8030
  <xsl:otherwise>
7958
8031
  <fo:block xsl:use-attribute-sets="image-style">
7959
8032
  <xsl:if test="ancestor::*[local-name() = 'dt']">
@@ -7969,10 +8042,24 @@
7969
8042
  <xsl:copy-of select="@*"/>
7970
8043
  <!-- <fo:block xsl:use-attribute-sets="image-style"> -->
7971
8044
  <fo:instream-foreign-object fox:alt-text="{$alt-text}">
7972
- <xsl:if test="$isGenerateTableIF = 'false'">
7973
- <xsl:attribute name="width">100%</xsl:attribute>
7974
- </xsl:if>
7975
- <xsl:attribute name="content-height">100%</xsl:attribute>
8045
+
8046
+ <xsl:choose>
8047
+ <xsl:when test="$image_class = 'corrigenda-tag'">
8048
+ <xsl:attribute name="fox:alt-text">CorrigendaTag</xsl:attribute>
8049
+ <xsl:attribute name="baseline-shift">-10%</xsl:attribute>
8050
+ <xsl:if test="$ancestor_table_cell = 'true'">
8051
+ <xsl:attribute name="baseline-shift">-25%</xsl:attribute>
8052
+ </xsl:if>
8053
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
8054
+ </xsl:when>
8055
+ <xsl:otherwise>
8056
+ <xsl:if test="$isGenerateTableIF = 'false'">
8057
+ <xsl:attribute name="width">100%</xsl:attribute>
8058
+ </xsl:if>
8059
+ <xsl:attribute name="content-height">100%</xsl:attribute>
8060
+ </xsl:otherwise>
8061
+ </xsl:choose>
8062
+
7976
8063
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
7977
8064
  <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
7978
8065
  <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
@@ -10226,13 +10313,19 @@
10226
10313
  <fo:block id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
10227
10314
  </xsl:when>
10228
10315
  <!-- if there isn't element with id 'from', then create 'bookmark' here -->
10229
- <xsl:when test="not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
10316
+ <xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
10317
+ <fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
10318
+ </xsl:when>
10319
+ <xsl:when test="not(//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
10230
10320
  <fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
10231
10321
  </xsl:when>
10232
10322
  </xsl:choose>
10233
10323
 
10234
10324
  </xsl:template>
10235
10325
 
10326
+ <!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
10327
+ <xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
10328
+
10236
10329
  <xsl:template match="*[local-name() = 'name']/text()">
10237
10330
  <!-- 0xA0 to space replacement -->
10238
10331
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -11835,7 +11928,7 @@
11835
11928
 
11836
11929
  <xsl:template name="printEdition">
11837
11930
  <xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
11838
- <xsl:text> </xsl:text>
11931
+
11839
11932
  <xsl:choose>
11840
11933
  <xsl:when test="$edition_i18n != ''">
11841
11934
  <!-- Example: <edition language="fr">deuxième édition</edition> -->
@@ -2501,7 +2501,9 @@
2501
2501
  </xsl:template> <!-- license-statement/p -->
2502
2502
 
2503
2503
  <xsl:template match="*[local-name()='legal-statement']">
2504
+ <xsl:param name="isLegacy">false</xsl:param>
2504
2505
  <fo:block xsl:use-attribute-sets="legal-statement-style">
2506
+
2505
2507
  <xsl:apply-templates/>
2506
2508
  </fo:block>
2507
2509
  </xsl:template> <!-- legal-statement -->
@@ -4794,13 +4796,14 @@
4794
4796
  <!-- ================= -->
4795
4797
  <!-- Added,deleted text -->
4796
4798
  <!-- ================= -->
4797
- <xsl:template match="*[local-name()='add']" name="tag_add">
4799
+ <xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
4798
4800
  <xsl:param name="skip">true</xsl:param>
4799
4801
  <xsl:param name="block">false</xsl:param>
4800
4802
  <xsl:param name="type"/>
4801
4803
  <xsl:param name="text-align"/>
4802
4804
  <xsl:choose>
4803
- <xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start -->
4805
+ <xsl:when test="starts-with(., $ace_tag) or local-name() = 'change-open-tag' or local-name() = 'change-close-tag'"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
4806
+ <change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
4804
4807
  <xsl:choose>
4805
4808
  <xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab']) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
4806
4809
  <xsl:otherwise>
@@ -4808,12 +4811,32 @@
4808
4811
  <xsl:call-template name="insertTag">
4809
4812
  <xsl:with-param name="type">
4810
4813
  <xsl:choose>
4814
+ <xsl:when test="local-name() = 'change-open-tag'">start</xsl:when>
4815
+ <xsl:when test="local-name() = 'change-close-tag'">end</xsl:when>
4811
4816
  <xsl:when test="$type = ''"><xsl:value-of select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end --></xsl:when>
4812
4817
  <xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
4813
4818
  </xsl:choose>
4814
4819
  </xsl:with-param>
4815
- <xsl:with-param name="kind" select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
4816
- <xsl:with-param name="value" select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
4820
+ <xsl:with-param name="kind">
4821
+ <xsl:choose>
4822
+ <xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
4823
+ <xsl:value-of select="text()"/>
4824
+ </xsl:when>
4825
+ <xsl:otherwise>
4826
+ <xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
4827
+ </xsl:otherwise>
4828
+ </xsl:choose>
4829
+ </xsl:with-param>
4830
+ <xsl:with-param name="value">
4831
+ <xsl:choose>
4832
+ <xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
4833
+ <xsl:value-of select="*[local-name() = 'sub']"/>
4834
+ </xsl:when>
4835
+ <xsl:otherwise>
4836
+ <xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
4837
+ </xsl:otherwise>
4838
+ </xsl:choose>
4839
+ </xsl:with-param>
4817
4840
  </xsl:call-template>
4818
4841
  </xsl:variable>
4819
4842
  <xsl:choose>
@@ -7019,11 +7042,17 @@
7019
7042
  </xsl:when>
7020
7043
  <xsl:otherwise>
7021
7044
 
7045
+ <xsl:variable name="image_class" select="ancestor::*[local-name() = 'image']/@class"/>
7046
+ <xsl:variable name="ancestor_table_cell" select="normalize-space(ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])"/>
7047
+
7022
7048
  <xsl:variable name="element">
7023
7049
  <xsl:choose>
7024
7050
  <xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
7025
7051
  <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
7026
7052
  </xsl:when>
7053
+ <xsl:when test="not(ancestor::*[local-name() = 'figure'])">
7054
+ <fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
7055
+ </xsl:when>
7027
7056
  <xsl:otherwise>
7028
7057
  <fo:block xsl:use-attribute-sets="image-style">
7029
7058
  <xsl:if test="ancestor::*[local-name() = 'dt']">
@@ -7039,10 +7068,24 @@
7039
7068
  <xsl:copy-of select="@*"/>
7040
7069
  <!-- <fo:block xsl:use-attribute-sets="image-style"> -->
7041
7070
  <fo:instream-foreign-object fox:alt-text="{$alt-text}">
7042
- <xsl:if test="$isGenerateTableIF = 'false'">
7043
- <xsl:attribute name="width">100%</xsl:attribute>
7044
- </xsl:if>
7045
- <xsl:attribute name="content-height">100%</xsl:attribute>
7071
+
7072
+ <xsl:choose>
7073
+ <xsl:when test="$image_class = 'corrigenda-tag'">
7074
+ <xsl:attribute name="fox:alt-text">CorrigendaTag</xsl:attribute>
7075
+ <xsl:attribute name="baseline-shift">-10%</xsl:attribute>
7076
+ <xsl:if test="$ancestor_table_cell = 'true'">
7077
+ <xsl:attribute name="baseline-shift">-25%</xsl:attribute>
7078
+ </xsl:if>
7079
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
7080
+ </xsl:when>
7081
+ <xsl:otherwise>
7082
+ <xsl:if test="$isGenerateTableIF = 'false'">
7083
+ <xsl:attribute name="width">100%</xsl:attribute>
7084
+ </xsl:if>
7085
+ <xsl:attribute name="content-height">100%</xsl:attribute>
7086
+ </xsl:otherwise>
7087
+ </xsl:choose>
7088
+
7046
7089
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
7047
7090
  <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
7048
7091
  <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
@@ -9277,13 +9320,19 @@
9277
9320
  <fo:block id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
9278
9321
  </xsl:when>
9279
9322
  <!-- if there isn't element with id 'from', then create 'bookmark' here -->
9280
- <xsl:when test="not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
9323
+ <xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
9324
+ <fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
9325
+ </xsl:when>
9326
+ <xsl:when test="not(//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
9281
9327
  <fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
9282
9328
  </xsl:when>
9283
9329
  </xsl:choose>
9284
9330
 
9285
9331
  </xsl:template>
9286
9332
 
9333
+ <!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
9334
+ <xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
9335
+
9287
9336
  <xsl:template match="*[local-name() = 'name']/text()">
9288
9337
  <!-- 0xA0 to space replacement -->
9289
9338
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -10886,7 +10935,7 @@
10886
10935
 
10887
10936
  <xsl:template name="printEdition">
10888
10937
  <xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
10889
- <xsl:text> </xsl:text>
10938
+
10890
10939
  <xsl:choose>
10891
10940
  <xsl:when test="$edition_i18n != ''">
10892
10941
  <!-- Example: <edition language="fr">deuxième édition</edition> -->
@@ -244,6 +244,9 @@
244
244
  <data type="ID"/>
245
245
  </attribute>
246
246
  <attribute name="reviewer"/>
247
+ <optional>
248
+ <attribute name="type"/>
249
+ </optional>
247
250
  <optional>
248
251
  <attribute name="date">
249
252
  <data type="dateTime"/>
@@ -20,7 +20,35 @@ Use of this document is subject to the license agreement at https://www.ogc.org/
20
20
 
21
21
  == legal-statement
22
22
  {% if doctype == "Standard" or doctype == "Community Standard" or doctype == "Abstract Specification" %}
23
- {% if stage == "Approved" or stage == "Withdrawn" %}
23
+ {% if stage == "Deprecated" %}
24
+
25
+ === Notice
26
+ This Standard has been deprecated by the OGC and is no longer supported. A newer version exists and is recommended for use. This document is available on a royalty free, non-discriminatory basis.
27
+
28
+ Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
29
+
30
+ {% elsif stage == "Legacy" %}
31
+
32
+ === Notice
33
+ This Standard has been deprecated to Legacy status and is no longer supported. This Standard is still suitable for use, but newer Standards offer the same or improved functions and capabilities. This document is available on a royalty free, non-discriminatory basis.
34
+
35
+ Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
36
+
37
+ {% elsif stage == "Rescinded" %}
38
+
39
+ === Notice
40
+ This Standard has been rescinded and is no longer an OGC Standard nor is it suitable for use. Rescinded Standards are not published on any public OGC resources.
41
+
42
+ Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
43
+
44
+ {% elsif stage == "Retired" %}
45
+
46
+ === Notice
47
+ This Standard has been retired by the OGC and is no longer supported nor recommended for use. This document is available on a royalty free, non-discriminatory basis.
48
+
49
+ Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
50
+
51
+ {% elsif stage == "Approved" or stage == "Withdrawn" %}
24
52
 
25
53
  === Notice
26
54
  This document is an OGC Member approved international standard. This document is available on a royalty free, non-discriminatory basis. Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.2.12 -->
20
+ <!-- VERSION v1.3.0 -->
21
21
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -146,6 +146,9 @@
146
146
  <data type="boolean"/>
147
147
  </attribute>
148
148
  </optional>
149
+ <optional>
150
+ <attribute name="style"/>
151
+ </optional>
149
152
  <oneOrMore>
150
153
  <ref name="PureTextElement"/>
151
154
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.5.0".freeze
3
+ VERSION = "2.5.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639