metanorma-ogc 2.3.11 → 2.3.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1719,6 +1719,10 @@
1719
1719
  </xsl:attribute-set> <!-- formula-stem-number-style -->
1720
1720
  <!-- End Formula's styles -->
1721
1721
 
1722
+ <xsl:template name="refine_formula-stem-number-style">
1723
+
1724
+ </xsl:template>
1725
+
1722
1726
  <xsl:attribute-set name="image-style">
1723
1727
  <xsl:attribute name="text-align">center</xsl:attribute>
1724
1728
 
@@ -2223,13 +2227,13 @@
2223
2227
 
2224
2228
  <xsl:template name="processPrefaceSectionsDefault_Contents">
2225
2229
  <xsl:variable name="nodes_preface_">
2226
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2230
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
2227
2231
  <node id="{@id}"/>
2228
2232
  </xsl:for-each>
2229
2233
  </xsl:variable>
2230
2234
  <xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
2231
2235
 
2232
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2236
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
2233
2237
  <xsl:sort select="@displayorder" data-type="number"/>
2234
2238
 
2235
2239
  <!-- process Section's title -->
@@ -2263,12 +2267,12 @@
2263
2267
  <xsl:apply-templates select="." mode="contents"/>
2264
2268
  </xsl:for-each>
2265
2269
 
2266
- <xsl:for-each select="/*/*[local-name()='annex']">
2270
+ <!-- <xsl:for-each select="/*/*[local-name()='annex']">
2267
2271
  <xsl:sort select="@displayorder" data-type="number"/>
2268
2272
  <xsl:apply-templates select="." mode="contents"/>
2269
- </xsl:for-each>
2273
+ </xsl:for-each> -->
2270
2274
 
2271
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
2275
+ <xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
2272
2276
  <xsl:sort select="@displayorder" data-type="number"/>
2273
2277
  <xsl:apply-templates select="." mode="contents"/>
2274
2278
  </xsl:for-each>
@@ -2803,7 +2807,7 @@
2803
2807
  <xsl:param name="continued"/>
2804
2808
  <xsl:if test="normalize-space() != ''">
2805
2809
 
2806
- <fo:block xsl:use-attribute-sets="table-name-style">
2810
+ <fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
2807
2811
 
2808
2812
  <xsl:call-template name="refine_table-name-style">
2809
2813
  <xsl:with-param name="continued" select="$continued"/>
@@ -3188,8 +3192,8 @@
3188
3192
  <xsl:template name="table-header-title">
3189
3193
  <xsl:param name="cols-count"/>
3190
3194
  <!-- row for title -->
3191
- <fo:table-row>
3192
- <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
3195
+ <fo:table-row role="SKIP">
3196
+ <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
3193
3197
 
3194
3198
  <xsl:call-template name="refine_table-header-title-style"/>
3195
3199
 
@@ -3198,7 +3202,7 @@
3198
3202
  </xsl:apply-templates>
3199
3203
 
3200
3204
  <xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
3201
- <fo:block/>
3205
+ <fo:block role="SKIP"/>
3202
3206
  </xsl:if>
3203
3207
 
3204
3208
  </fo:table-cell>
@@ -3509,7 +3513,7 @@
3509
3513
 
3510
3514
  <xsl:call-template name="refine_table-header-cell-style"/>
3511
3515
 
3512
- <fo:block>
3516
+ <fo:block role="SKIP">
3513
3517
  <xsl:apply-templates/>
3514
3518
  </fo:block>
3515
3519
  </fo:table-cell>
@@ -3562,7 +3566,7 @@
3562
3566
  <xsl:attribute name="text-align">left</xsl:attribute>
3563
3567
  </xsl:if>
3564
3568
 
3565
- <fo:block>
3569
+ <fo:block role="SKIP">
3566
3570
 
3567
3571
  <xsl:if test="$isGenerateTableIF = 'true'">
3568
3572
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -4436,7 +4440,7 @@
4436
4440
  -->
4437
4441
  <fo:table-row>
4438
4442
  <fo:table-cell number-columns-spanned="2">
4439
- <fo:block>
4443
+ <fo:block role="SKIP">
4440
4444
  <xsl:call-template name="note"/>
4441
4445
  </fo:block>
4442
4446
  </fo:table-cell>
@@ -4501,7 +4505,7 @@
4501
4505
 
4502
4506
  <xsl:call-template name="refine_dt-cell-style"/>
4503
4507
 
4504
- <fo:block xsl:use-attribute-sets="dt-block-style">
4508
+ <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
4505
4509
  <xsl:copy-of select="@id"/>
4506
4510
 
4507
4511
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -4531,7 +4535,7 @@
4531
4535
 
4532
4536
  <xsl:call-template name="refine_dd-cell-style"/>
4533
4537
 
4534
- <fo:block>
4538
+ <fo:block role="SKIP">
4535
4539
 
4536
4540
  <xsl:if test="$isGenerateTableIF = 'true'">
4537
4541
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -4673,10 +4677,15 @@
4673
4677
  <!-- ========================= -->
4674
4678
  <xsl:template match="*[local-name()='em']">
4675
4679
  <fo:inline font-style="italic">
4680
+ <xsl:call-template name="refine_italic_style"/>
4676
4681
  <xsl:apply-templates/>
4677
4682
  </fo:inline>
4678
4683
  </xsl:template>
4679
4684
 
4685
+ <xsl:template name="refine_italic_style">
4686
+
4687
+ </xsl:template>
4688
+
4680
4689
  <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
4681
4690
  <xsl:param name="split_keep-within-line"/>
4682
4691
  <fo:inline font-weight="bold">
@@ -4904,11 +4913,41 @@
4904
4913
 
4905
4914
  <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
4906
4915
  <xsl:variable name="text" select="normalize-space(.)"/>
4907
- <fo:inline font-size="75%">
4916
+ <fo:inline font-size="75%" role="SKIP">
4908
4917
  <xsl:if test="string-length($text) &gt; 0">
4909
- <xsl:call-template name="recursiveSmallCaps">
4910
- <xsl:with-param name="text" select="$text"/>
4911
- </xsl:call-template>
4918
+ <xsl:variable name="smallCapsText">
4919
+ <xsl:call-template name="recursiveSmallCaps">
4920
+ <xsl:with-param name="text" select="$text"/>
4921
+ </xsl:call-template>
4922
+ </xsl:variable>
4923
+ <!-- merge neighboring fo:inline -->
4924
+ <xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
4925
+ <xsl:choose>
4926
+ <xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
4927
+ <xsl:when test="self::fo:inline and @font-size">
4928
+ <xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
4929
+ <!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
4930
+ <xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
4931
+ <xsl:variable name="next_text">
4932
+ <xsl:choose>
4933
+ <xsl:when test="$next_text_ = 0">99999999</xsl:when>
4934
+ <xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
4935
+ </xsl:choose>
4936
+ </xsl:variable>
4937
+ <!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
4938
+ <fo:inline>
4939
+ <xsl:copy-of select="@*"/>
4940
+ <xsl:copy-of select="./node()"/>
4941
+ <xsl:for-each select="following-sibling::node()[position() &lt; $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
4942
+ <xsl:copy-of select="./node()"/>
4943
+ </xsl:for-each>
4944
+ </fo:inline>
4945
+ </xsl:when>
4946
+ <xsl:otherwise>
4947
+ <xsl:copy-of select="."/>
4948
+ </xsl:otherwise>
4949
+ </xsl:choose>
4950
+ </xsl:for-each>
4912
4951
  </xsl:if>
4913
4952
  </fo:inline>
4914
4953
  </xsl:template>
@@ -4920,7 +4959,7 @@
4920
4959
  <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
4921
4960
  <xsl:choose>
4922
4961
  <xsl:when test="$char=$upperCase">
4923
- <fo:inline font-size="{100 div 0.75}%">
4962
+ <fo:inline font-size="{100 div 0.75}%" role="SKIP">
4924
4963
  <xsl:value-of select="$upperCase"/>
4925
4964
  </fo:inline>
4926
4965
  </xsl:when>
@@ -5082,6 +5121,10 @@
5082
5121
 
5083
5122
  <xsl:when test="not(contains($text, $separator))">
5084
5123
  <word>
5124
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
5125
+ <xsl:text>
5126
+  </xsl:text> <!-- to add distance between dt and dd -->
5127
+ </xsl:if>
5085
5128
  <xsl:call-template name="enclose_text_in_tags">
5086
5129
  <xsl:with-param name="text" select="normalize-space($text)"/>
5087
5130
  <xsl:with-param name="tags" select="$tags"/>
@@ -5090,6 +5133,10 @@
5090
5133
  </xsl:when>
5091
5134
  <xsl:otherwise>
5092
5135
  <word>
5136
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
5137
+ <xsl:text>
5138
+  </xsl:text> <!-- to add distance between dt and dd -->
5139
+ </xsl:if>
5093
5140
  <xsl:call-template name="enclose_text_in_tags">
5094
5141
  <xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
5095
5142
  <xsl:with-param name="tags" select="$tags"/>
@@ -5273,6 +5320,10 @@
5273
5320
  <xsl:template name="getSimpleTable">
5274
5321
  <xsl:param name="id"/>
5275
5322
 
5323
+ <!-- <test0>
5324
+ <xsl:copy-of select="."/>
5325
+ </test0> -->
5326
+
5276
5327
  <xsl:variable name="simple-table">
5277
5328
 
5278
5329
  <!-- Step 0. replace <br/> to <p>...</p> -->
@@ -6318,7 +6369,7 @@
6318
6369
  <fo:table-body>
6319
6370
  <fo:table-row>
6320
6371
  <fo:table-cell display-align="center">
6321
- <fo:block xsl:use-attribute-sets="formula-stem-block-style">
6372
+ <fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
6322
6373
 
6323
6374
  <xsl:call-template name="refine_formula-stem-block-style"/>
6324
6375
 
@@ -6326,7 +6377,10 @@
6326
6377
  </fo:block>
6327
6378
  </fo:table-cell>
6328
6379
  <fo:table-cell display-align="center">
6329
- <fo:block xsl:use-attribute-sets="formula-stem-number-style">
6380
+ <fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
6381
+
6382
+ <xsl:call-template name="refine_formula-stem-number-style"/>
6383
+
6330
6384
  <xsl:apply-templates select="../*[local-name() = 'name']"/>
6331
6385
  </fo:block>
6332
6386
  </fo:table-cell>
@@ -7836,7 +7890,7 @@
7836
7890
  <!-- second td with sourcecode -->
7837
7891
  <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
7838
7892
  <fo:table-cell>
7839
- <fo:block>
7893
+ <fo:block role="SKIP">
7840
7894
  <xsl:apply-templates/>
7841
7895
  </fo:block>
7842
7896
  </fo:table-cell>
@@ -8342,7 +8396,7 @@
8342
8396
 
8343
8397
  <xsl:call-template name="setTableCellAttributes"/>
8344
8398
 
8345
- <fo:block>
8399
+ <fo:block role="SKIP">
8346
8400
  <xsl:apply-templates/>
8347
8401
  </fo:block>
8348
8402
  </fo:table-cell>
@@ -8364,7 +8418,7 @@
8364
8418
 
8365
8419
  <xsl:call-template name="setTableCellAttributes"/>
8366
8420
 
8367
- <fo:block>
8421
+ <fo:block role="SKIP">
8368
8422
  <xsl:apply-templates/>
8369
8423
  </fo:block>
8370
8424
  </fo:table-cell>
@@ -9151,7 +9205,48 @@
9151
9205
  </xsl:choose>
9152
9206
  </xsl:when>
9153
9207
  <xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
9154
- <xsl:value-of select="@label"/>
9208
+
9209
+ <xsl:variable name="label">
9210
+
9211
+ <xsl:variable name="type" select="../@type"/>
9212
+
9213
+ <xsl:variable name="style_prefix_">
9214
+ <xsl:if test="$type = 'roman'">
9215
+ <!-- Example: (i) -->
9216
+ </xsl:if>
9217
+ </xsl:variable>
9218
+ <xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
9219
+
9220
+ <xsl:variable name="style_suffix_">
9221
+ <xsl:choose>
9222
+ <xsl:when test="$type = 'arabic'">
9223
+ )
9224
+ </xsl:when>
9225
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
9226
+ )
9227
+ </xsl:when>
9228
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
9229
+ )
9230
+ </xsl:when>
9231
+ <xsl:when test="$type = 'roman'">
9232
+ )
9233
+ </xsl:when>
9234
+ <xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
9235
+ </xsl:choose>
9236
+ </xsl:variable>
9237
+ <xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
9238
+
9239
+ <xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
9240
+ <xsl:value-of select="$style_prefix"/>
9241
+ </xsl:if>
9242
+ <xsl:value-of select="@label"/>
9243
+ <xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
9244
+ <xsl:value-of select="$style_suffix"/>
9245
+ </xsl:if>
9246
+ </xsl:variable>
9247
+
9248
+ <xsl:value-of select="normalize-space($label)"/>
9249
+
9155
9250
  </xsl:when>
9156
9251
  <xsl:otherwise> <!-- for ordered lists 'ol' -->
9157
9252
 
@@ -9344,7 +9439,7 @@
9344
9439
  <xsl:call-template name="refine_list-item-style"/>
9345
9440
 
9346
9441
  <fo:list-item-label end-indent="label-end()">
9347
- <fo:block xsl:use-attribute-sets="list-item-label-style">
9442
+ <fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
9348
9443
 
9349
9444
  <xsl:call-template name="refine_list-item-label-style"/>
9350
9445
 
@@ -9358,7 +9453,7 @@
9358
9453
  </fo:block>
9359
9454
  </fo:list-item-label>
9360
9455
  <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
9361
- <fo:block>
9456
+ <fo:block role="SKIP">
9362
9457
 
9363
9458
  <xsl:call-template name="refine_list-item-body-style"/>
9364
9459
 
@@ -9637,10 +9732,10 @@
9637
9732
  <fo:table-body>
9638
9733
  <fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
9639
9734
 
9640
- <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
9641
- <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
9642
- <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
9643
- <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
9735
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
9736
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
9737
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
9738
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
9644
9739
  </fo:table-row>
9645
9740
  <xsl:apply-templates/>
9646
9741
  </fo:table-body>
@@ -9655,7 +9750,7 @@
9655
9750
 
9656
9751
  <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
9657
9752
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
9658
- <fo:block><xsl:apply-templates/></fo:block>
9753
+ <fo:block role="SKIP"><xsl:apply-templates/></fo:block>
9659
9754
  </fo:table-cell>
9660
9755
  </xsl:template>
9661
9756
  <!-- ============ -->
@@ -9726,8 +9821,8 @@
9726
9821
  <fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
9727
9822
  <fo:list-item>
9728
9823
  <fo:list-item-label end-indent="label-end()">
9729
- <fo:block>
9730
- <fo:inline>
9824
+ <fo:block role="SKIP">
9825
+ <fo:inline role="SKIP">
9731
9826
 
9732
9827
  <xsl:apply-templates select="*[local-name() = 'biblio-tag']">
9733
9828
  <xsl:with-param name="biblio_tag_part">first</xsl:with-param>
@@ -9736,7 +9831,7 @@
9736
9831
  </fo:block>
9737
9832
  </fo:list-item-label>
9738
9833
  <fo:list-item-body start-indent="body-start()">
9739
- <fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style">
9834
+ <fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
9740
9835
  <xsl:call-template name="processBibitem">
9741
9836
  <xsl:with-param name="biblio_tag_part">last</xsl:with-param>
9742
9837
  </xsl:call-template>
@@ -9958,7 +10053,7 @@
9958
10053
  <xsl:for-each select="*[local-name() = 'tab']">
9959
10054
  <xsl:variable name="current_id" select="generate-id()"/>
9960
10055
  <fo:table-cell>
9961
- <fo:block line-height-shift-adjustment="disregard-shifts">
10056
+ <fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
9962
10057
  <xsl:call-template name="insert_basic_link">
9963
10058
  <xsl:with-param name="element">
9964
10059
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -9976,7 +10071,7 @@
9976
10071
  </xsl:for-each>
9977
10072
  <!-- last column - for page numbers -->
9978
10073
  <fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
9979
- <fo:block>
10074
+ <fo:block role="SKIP">
9980
10075
  <xsl:call-template name="insert_basic_link">
9981
10076
  <xsl:with-param name="element">
9982
10077
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -0,0 +1,73 @@
1
+ == copyright-statement
2
+ === Copyright notice
3
+
4
+ [align="center"]
5
+ Copyright © {{ docyear }} {{ copyright_holder }} +
6
+ To obtain additional rights of use, visit
7
+ https://www.ogc.org/legal[]
8
+
9
+ === Note
10
+ [align="left"]
11
+ Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. The Open Geospatial Consortium shall not be held responsible for identifying any or all such patent rights.
12
+
13
+ [align="left"]
14
+ Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the standard set forth in this document, and to provide supporting documentation.
15
+
16
+ == license-statement
17
+ === License Agreement
18
+
19
+ >Use of this document is subject to the license agreement at https://www.ogc.org/license[]
20
+
21
+ == legal-statement
22
+ {% if doctype == "Standard" or doctype == "Community Standard" or doctype == "Abstract Specification" %}
23
+ {% if stage == "Approved" or stage == "Withdrawn" %}
24
+
25
+ === Notice
26
+ 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.
27
+
28
+ {% else %}
29
+ === Notice for Drafts
30
+ This document is not an OGC Standard. This document is distributed for review and comment. This document is subject to change without notice and may not be referred to as an OGC Standard.
31
+
32
+ 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.
33
+ {% endif %}
34
+
35
+
36
+ {% elsif doctype == "Engineering Report" %}
37
+ === Notice
38
+ This document is not an OGC Standard. This document is an OGC Public Engineering Report created as a deliverable in an OGC Interoperability Initiative and is <em>not an official position</em> of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.
39
+
40
+ Further, any OGC Engineering Report should not be referenced as required or mandatory technology in procurements. However, the discussions in this document could very well lead to the definition of an OGC Standard.
41
+
42
+
43
+ {% elsif doctype == "Best Practice" %}
44
+ === Notice
45
+ This document defines an OGC Best Practice on a particular technology or approach related to an OGC standard. This document is _not_ an OGC Standard and may not be referred to as an OGC Standard. It is subject to change without notice. However, this document is an _official_ position of the OGC membership on this particular technology topic.
46
+
47
+ 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.
48
+
49
+ {% elsif doctype == "Release Notes" %}
50
+ === Notice
51
+ This document is not an OGC standard. This document provides release notes for an OGC standard. This document is subject to change without notice and may not be referred to as an OGC Standard.
52
+
53
+ 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.
54
+
55
+
56
+ {% else %}
57
+ === Notice
58
+ This document is not an OGC Standard. This document is an OGC {{ doctype }} and is therefore not an official position of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.
59
+
60
+ Further, an OGC {{ doctype }} should not be referenced as required or mandatory technology in procurements.
61
+
62
+ {% endif %}
63
+
64
+
65
+
66
+
67
+
68
+ == feedback-statement
69
+ {% if doctype == "Standard" %}
70
+ [[boilerplate-standard-feedback]]
71
+ === {blank}
72
+ Suggested additions, changes and comments on this document are welcome and encouraged. Such suggestions may be submitted using the online change request form on OGC web site: http://ogc.standardstracker.org/[]
73
+ {% endif %}
@@ -1,6 +1,10 @@
1
1
  module Metanorma
2
2
  module Ogc
3
3
  class Converter < Standoc::Converter
4
+ def boilerplate_file(_xmldoc)
5
+ File.join(@libdir, "boilerplate.adoc")
6
+ end
7
+
4
8
  def sections_cleanup(xml)
5
9
  super
6
10
  xml.xpath("//*[@inline-header]").each do |h|
@@ -30,6 +30,10 @@ module Metanorma
30
30
  "ogc"
31
31
  end
32
32
 
33
+ def boilerplate_file(_xmldoc)
34
+ File.join(@libdir, "boilerplate.adoc")
35
+ end
36
+
33
37
  def makexml(node)
34
38
  @draft = node.attributes.has_key?("draft")
35
39
  super
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.3.11".freeze
3
+ VERSION = "2.3.12".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.3.11
4
+ version: 2.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -280,7 +280,7 @@ files:
280
280
  - lib/metanorma/ogc/basicdoc.rng
281
281
  - lib/metanorma/ogc/biblio-standoc.rng
282
282
  - lib/metanorma/ogc/biblio.rng
283
- - lib/metanorma/ogc/boilerplate.xml
283
+ - lib/metanorma/ogc/boilerplate.adoc
284
284
  - lib/metanorma/ogc/cleanup.rb
285
285
  - lib/metanorma/ogc/converter.rb
286
286
  - lib/metanorma/ogc/front.rb
@@ -1,92 +0,0 @@
1
- <boilerplate>
2
- <copyright-statement>
3
- <clause>
4
- <title>Copyright notice</title>
5
-
6
- <p align="center">Copyright
7
- © {{ docyear }} {{ copyright_holder }}<br/>
8
- To obtain additional rights of use, visit
9
- <link target="https://www.ogc.org/legal">https://www.ogc.org/legal</link>
10
- </p>
11
- </clause>
12
- <clause>
13
- <title>Note</title>
14
- <p align="left">Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. The Open Geospatial Consortium shall not be held responsible for identifying any or all such patent rights.</p>
15
-
16
- <p align="left">Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the standard set forth in this document, and to provide supporting documentation.</p>
17
- </clause>
18
- </copyright-statement>
19
- <license-statement>
20
- <clause>
21
- <title>License Agreement</title>
22
-
23
- <p>Use of this document is subject to the license agreement at
24
- <link target="https://www.ogc.org/license">https://www.ogc.org/license</link></p>
25
- </clause>
26
- </license-statement>
27
-
28
- <legal-statement>
29
- {% if doctype == "Standard" or doctype == "Community Standard" or doctype == "Abstract Specification" %}
30
- {% if stage == "Approved" or stage == "Withdrawn" %}
31
- <clause>
32
- <title>Notice</title>
33
- <p>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.
34
- </p>
35
- </clause>
36
- {% else %}
37
- <clause>
38
- <title>Notice for Drafts</title>
39
- <p>This document is not an OGC Standard. This document is distributed for review and comment. This document is subject to change without notice and may not be referred to as an OGC Standard.</p>
40
-
41
- <p>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.</p>
42
- </clause>
43
- {% endif %}
44
-
45
-
46
- {% elsif doctype == "Engineering Report" %}
47
- <clause>
48
- <title>Notice</title>
49
- <p>This document is not an OGC Standard. This document is an OGC Public Engineering Report created as a deliverable in an OGC Interoperability Initiative and is <em>not an official position</em> of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.</p>
50
-
51
- <p>Further, any OGC Engineering Report should not be referenced as required or mandatory technology in procurements. However, the discussions in this document could very well lead to the definition of an OGC Standard.</p>
52
- </clause>
53
-
54
-
55
- {% elsif doctype == "Best Practice" %}
56
- <clause>
57
- <title>Notice</title>
58
- <p>This document defines an OGC Best Practice on a particular technology or approach related to an OGC standard. This document is <em>not</em> an OGC Standard and may not be referred to as an OGC Standard. It is subject to change without notice. However, this document is an <em>official</em> position of the OGC membership on this particular technology topic.</p>
59
-
60
- <p>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.</p>
61
- </clause>
62
-
63
- {% elsif doctype == "Release Notes" %}
64
- <clause>
65
- <title>Notice</title>
66
- <p>This document is not an OGC standard. This document provides release notes for an OGC standard. This document is subject to change without notice and may not be referred to as an OGC Standard.</p>
67
-
68
- <p>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.</p>
69
-
70
- </clause>
71
-
72
- {% else %}
73
- <clause>
74
- <title>Notice</title>
75
- <p>This document is not an OGC Standard. This document is an OGC {{ doctype }} and is therefore not an official position of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.</p>
76
- <p>Further, an OGC {{ doctype }} should not be referenced as required or mandatory technology in procurements.</p>
77
- </clause>
78
- {% endif %}
79
-
80
- </legal-statement>
81
-
82
-
83
-
84
-
85
- <feedback-statement>
86
- {% if doctype == "Standard" %}
87
- <clause id="boilerplate-standard-feedback">
88
- <p>Suggested additions, changes and comments on this document are welcome and encouraged. Such suggestions may be submitted using the online change request form on OGC web site: <link target="http://ogc.standardstracker.org/">http://ogc.standardstracker.org/</link></p>
89
- </clause>
90
- {% endif %}
91
- </feedback-statement>
92
- </boilerplate>