metanorma-ogc 2.8.4 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/init.rb +5 -3
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +116 -113
- data/lib/isodoc/ogc/ogc.best-practice.xsl +116 -113
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +116 -113
- data/lib/isodoc/ogc/ogc.community-practice.xsl +116 -113
- data/lib/isodoc/ogc/ogc.community-standard.xsl +116 -113
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +116 -113
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +116 -113
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +116 -113
- data/lib/isodoc/ogc/ogc.other.xsl +116 -113
- data/lib/isodoc/ogc/ogc.policy.xsl +116 -113
- data/lib/isodoc/ogc/ogc.reference-model.xsl +116 -113
- data/lib/isodoc/ogc/ogc.release-notes.xsl +116 -113
- data/lib/isodoc/ogc/ogc.standard.xsl +116 -113
- data/lib/isodoc/ogc/ogc.test-suite.xsl +116 -113
- data/lib/isodoc/ogc/ogc.user-guide.xsl +116 -113
- data/lib/isodoc/ogc/ogc.white-paper.xsl +53 -53
- data/lib/isodoc/ogc/presentation_sections.rb +1 -1
- data/lib/metanorma/ogc/cleanup.rb +17 -1
- data/lib/metanorma/ogc/converter.rb +30 -99
- data/lib/metanorma/ogc/sections.rb +110 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -2
@@ -27,8 +27,8 @@
|
|
27
27
|
|
28
28
|
<xsl:variable name="layoutVersion_">
|
29
29
|
<xsl:choose>
|
30
|
-
<xsl:when test="$document_scheme = '' or $document_scheme = '
|
31
|
-
<xsl:otherwise>
|
30
|
+
<xsl:when test="$document_scheme = '' or $document_scheme = '2022'">2022</xsl:when>
|
31
|
+
<xsl:otherwise>2018</xsl:otherwise>
|
32
32
|
</xsl:choose>
|
33
33
|
</xsl:variable>
|
34
34
|
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
@@ -156,67 +156,70 @@
|
|
156
156
|
</xsl:variable>
|
157
157
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
|
-
<xsl:
|
160
|
-
<xsl:
|
161
|
-
|
162
|
-
<
|
163
|
-
|
164
|
-
<xsl:
|
165
|
-
|
166
|
-
<xsl:
|
167
|
-
|
168
|
-
<
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
<xsl:
|
175
|
-
|
176
|
-
<xsl:
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<xsl:
|
186
|
-
|
187
|
-
|
188
|
-
<xsl:
|
189
|
-
<xsl:
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<xsl:
|
203
|
-
|
204
|
-
|
205
|
-
<
|
206
|
-
|
207
|
-
|
208
|
-
<
|
209
|
-
|
210
|
-
|
211
|
-
|
159
|
+
<xsl:if test="//mn:metanorma/mn:metanorma-extension/mn:toc[@type='recommendation']/mn:title">
|
160
|
+
<xsl:for-each select="//mn:table[.//mn:p[@class = 'RecommendationTitle']]">
|
161
|
+
<xsl:variable name="table_id" select="@id"/>
|
162
|
+
<recommendation alt-text="{.//mn:p[@class = 'RecommendationTitle'][1]}">
|
163
|
+
<xsl:copy-of select="@id"/>
|
164
|
+
<xsl:variable name="title">
|
165
|
+
<xsl:apply-templates select=".//mn:p[@class = 'RecommendationTitle'][ancestor::mn:table[1][@id= $table_id]]/mn:fmt-name/node()"/>
|
166
|
+
<xsl:if test=".//mn:p[@class = 'RecommendationLabel'][ancestor::mn:table[1][@id= $table_id]]/node()">
|
167
|
+
<xsl:text>: </xsl:text>
|
168
|
+
<xsl:variable name="recommendationLabel">
|
169
|
+
<tt><xsl:copy-of select=".//mn:p[@class = 'RecommendationLabel'][ancestor::mn:table[1][@id= $table_id]]/mn:fmt-name/node()"/></tt>
|
170
|
+
</xsl:variable>
|
171
|
+
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
172
|
+
</xsl:if>
|
173
|
+
</xsl:variable>
|
174
|
+
<xsl:variable name="bookmark">
|
175
|
+
<xsl:value-of select="normalize-space(.//mn:p[@class = 'RecommendationTitle'][ancestor::mn:table[1][@id= $table_id]]/mn:fmt-name)"/>
|
176
|
+
<xsl:if test=".//mn:p[@class = 'RecommendationLabel'][ancestor::mn:table[1][@id= $table_id]]/node()">
|
177
|
+
<xsl:text>: </xsl:text>
|
178
|
+
<xsl:value-of select="normalize-space(.//mn:p[@class = 'RecommendationLabel'][ancestor::mn:table[1][@id= $table_id]]/mn:fmt-name)"/>
|
179
|
+
</xsl:if>
|
180
|
+
</xsl:variable>
|
181
|
+
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
182
|
+
<xsl:variable name="class" select="java:replaceAll(java:java.lang.String.new($bookmark), $regex_str, '$1')"/>
|
183
|
+
<xsl:variable name="num" select="java:replaceAll(java:java.lang.String.new($bookmark), $regex_str, '$2')"/>
|
184
|
+
<xsl:variable name="class_lc" select="java:toLowerCase(java:java.lang.String.new($class))"/>
|
185
|
+
<!-- <xsl:attribute name="class_str">
|
186
|
+
<xsl:value-of select="$class"/>
|
187
|
+
</xsl:attribute> -->
|
188
|
+
<xsl:attribute name="class">
|
189
|
+
<xsl:choose>
|
190
|
+
<xsl:when test="$class_lc = 'requirements class'">1</xsl:when>
|
191
|
+
<xsl:when test="$class_lc = 'requirement'">2</xsl:when>
|
192
|
+
<xsl:when test="$class_lc = 'recommendation'">3</xsl:when>
|
193
|
+
<xsl:when test="$class_lc = 'permission'">4</xsl:when>
|
194
|
+
<xsl:when test="$class_lc = 'conformance class'">5</xsl:when>
|
195
|
+
<xsl:when test="$class_lc = 'abstract test'">6</xsl:when>
|
196
|
+
<xsl:when test="$class_lc = 'requirement test'">7</xsl:when>
|
197
|
+
<xsl:when test="$class_lc = 'recommendation test'">8</xsl:when>
|
198
|
+
<xsl:when test="$class_lc = 'permission test'">9</xsl:when>
|
199
|
+
<xsl:otherwise>9999</xsl:otherwise>
|
200
|
+
</xsl:choose>
|
201
|
+
</xsl:attribute>
|
202
|
+
<xsl:attribute name="num">
|
203
|
+
<xsl:value-of select="$num"/>
|
204
|
+
</xsl:attribute>
|
205
|
+
<title>
|
206
|
+
<xsl:copy-of select="$title"/>
|
207
|
+
</title>
|
208
|
+
<bookmark>
|
209
|
+
<xsl:value-of select="$bookmark"/>
|
210
|
+
</bookmark>
|
211
|
+
</recommendation>
|
212
|
+
</xsl:for-each>
|
213
|
+
</xsl:if>
|
212
214
|
</xsl:variable>
|
213
|
-
<xsl:variable name="
|
215
|
+
<xsl:variable name="toc_recommendations__">
|
214
216
|
<xsl:for-each select="xalan:nodeset($toc_recommendations_)/*">
|
215
217
|
<xsl:sort select="@class" data-type="number"/>
|
216
218
|
<xsl:sort select="@num" data-type="number"/>
|
217
219
|
<xsl:copy-of select="."/>
|
218
220
|
</xsl:for-each>
|
219
221
|
</xsl:variable>
|
222
|
+
<xsl:variable name="toc_recommendations" select="xalan:nodeset($toc_recommendations__)"/>
|
220
223
|
|
221
224
|
<xsl:variable name="contents_">
|
222
225
|
<mnx:contents>
|
@@ -226,9 +229,9 @@
|
|
226
229
|
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
227
230
|
<xsl:apply-templates select="//mn:indexsect" mode="contents"/>
|
228
231
|
|
229
|
-
<xsl:call-template name="processTablesFigures_Contents"
|
230
|
-
|
231
|
-
</xsl:call-template>
|
232
|
+
<xsl:call-template name="processTablesFigures_Contents"/>
|
233
|
+
<!-- <xsl:with-param name="always">true</xsl:with-param>
|
234
|
+
</xsl:call-template> -->
|
232
235
|
</mnx:contents>
|
233
236
|
</xsl:variable>
|
234
237
|
<xsl:variable name="contents" select="xalan:nodeset($contents_)"/>
|
@@ -298,7 +301,7 @@
|
|
298
301
|
<xsl:call-template name="addBookmarks">
|
299
302
|
<xsl:with-param name="contents" select="$contents"/>
|
300
303
|
<xsl:with-param name="contents_addon">
|
301
|
-
<xsl:if test="$contents//mnx:tables/mnx:table or $contents//mnx:figures/mnx:figure or
|
304
|
+
<xsl:if test="$contents//mnx:tables/mnx:table or $contents//mnx:figures/mnx:figure or $toc_recommendations/*[normalize-space(@id) != '']">
|
302
305
|
<fo:bookmark internal-destination="empty_bookmark">
|
303
306
|
<fo:bookmark-title>—————</fo:bookmark-title>
|
304
307
|
</fo:bookmark>
|
@@ -336,12 +339,12 @@
|
|
336
339
|
</fo:bookmark>
|
337
340
|
</xsl:if>
|
338
341
|
|
339
|
-
<xsl:if test="
|
342
|
+
<xsl:if test="$toc_recommendations/*[normalize-space(@id) != '']">
|
340
343
|
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
341
344
|
<fo:bookmark-title>
|
342
345
|
<xsl:value-of select="$title-list-recommendations"/>
|
343
346
|
</fo:bookmark-title>
|
344
|
-
<xsl:for-each select="
|
347
|
+
<xsl:for-each select="$toc_recommendations/*[normalize-space(@id) != '']">
|
345
348
|
<fo:bookmark internal-destination="{@id}">
|
346
349
|
<fo:bookmark-title><xsl:value-of select="bookmark"/></fo:bookmark-title>
|
347
350
|
</fo:bookmark>
|
@@ -353,6 +356,8 @@
|
|
353
356
|
|
354
357
|
<xsl:call-template name="cover-page"/>
|
355
358
|
|
359
|
+
<xsl:call-template name="inner-cover-page"/>
|
360
|
+
|
356
361
|
<!-- Copyright, Content, Foreword, etc. pages -->
|
357
362
|
<fo:page-sequence master-reference="preface" initial-page-number="2" format="i" force-page-count="no-force">
|
358
363
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
@@ -527,6 +532,8 @@
|
|
527
532
|
|
528
533
|
</xsl:for-each>
|
529
534
|
|
535
|
+
<xsl:call-template name="back-page"/>
|
536
|
+
|
530
537
|
</fo:root>
|
531
538
|
|
532
539
|
</xsl:template>
|
@@ -781,6 +788,12 @@
|
|
781
788
|
</fo:page-sequence>
|
782
789
|
</xsl:template> <!-- END: cover-page -->
|
783
790
|
|
791
|
+
<xsl:template name="inner-cover-page">
|
792
|
+
</xsl:template>
|
793
|
+
|
794
|
+
<xsl:template name="back-page">
|
795
|
+
</xsl:template>
|
796
|
+
|
784
797
|
<xsl:template name="processPrefaceAndMainSectionsOGC_items">
|
785
798
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
786
799
|
|
@@ -967,12 +980,12 @@
|
|
967
980
|
</xsl:if>
|
968
981
|
|
969
982
|
<!-- List of Recommendations -->
|
970
|
-
<xsl:if test="
|
983
|
+
<xsl:if test="$toc_recommendations/*[normalize-space(@id) != '']">
|
971
984
|
<xsl:call-template name="insertListOf_Title">
|
972
985
|
<xsl:with-param name="title" select="$title-list-recommendations"/>
|
973
986
|
</xsl:call-template>
|
974
987
|
<fo:block-container line-height="130%" role="TOC">
|
975
|
-
<xsl:for-each select="
|
988
|
+
<xsl:for-each select="$toc_recommendations/*[normalize-space(@id) != '']">
|
976
989
|
<fo:block text-align-last="justify" margin-top="6pt" role="TOCI">
|
977
990
|
<fo:basic-link internal-destination="{@id}">
|
978
991
|
<xsl:call-template name="setAltText">
|
@@ -1624,6 +1637,17 @@
|
|
1624
1637
|
</xsl:template>
|
1625
1638
|
|
1626
1639
|
<xsl:template name="insertHeaderFooter">
|
1640
|
+
<xsl:param name="color" select="$color_text_title"/>
|
1641
|
+
<xsl:call-template name="insertHeader"/>
|
1642
|
+
<xsl:call-template name="insertFooter">
|
1643
|
+
<xsl:with-param name="color" select="$color"/>
|
1644
|
+
</xsl:call-template>
|
1645
|
+
</xsl:template>
|
1646
|
+
|
1647
|
+
<xsl:template name="insertHeader">
|
1648
|
+
</xsl:template>
|
1649
|
+
|
1650
|
+
<xsl:template name="insertFooter">
|
1627
1651
|
<xsl:param name="color" select="$color_text_title"/>
|
1628
1652
|
<fo:static-content flow-name="footer" role="artifact">
|
1629
1653
|
<fo:block-container font-size="8pt" color="{$color}" padding-top="6mm">
|
@@ -3581,7 +3605,6 @@
|
|
3581
3605
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3582
3606
|
|
3583
3607
|
<xsl:template name="refine_feedback-statement-title-style">
|
3584
|
-
|
3585
3608
|
</xsl:template>
|
3586
3609
|
|
3587
3610
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -9503,16 +9526,23 @@
|
|
9503
9526
|
</xsl:attribute-set> <!-- quote-style -->
|
9504
9527
|
|
9505
9528
|
<xsl:template name="refine_quote-style">
|
9506
|
-
</xsl:template>
|
9529
|
+
</xsl:template> <!-- refine_quote-style -->
|
9507
9530
|
|
9508
9531
|
<xsl:attribute-set name="quote-source-style">
|
9509
9532
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
9510
9533
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
9511
|
-
</xsl:attribute-set>
|
9534
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
9512
9535
|
|
9513
9536
|
<xsl:template name="refine_quote-source-style">
|
9514
9537
|
</xsl:template>
|
9515
9538
|
|
9539
|
+
<xsl:attribute-set name="source-style">
|
9540
|
+
</xsl:attribute-set> <!-- source-style -->
|
9541
|
+
|
9542
|
+
<xsl:template name="refine_source-style">
|
9543
|
+
|
9544
|
+
</xsl:template> <!-- refine_source-style -->
|
9545
|
+
|
9516
9546
|
<!-- ====== -->
|
9517
9547
|
<!-- quote -->
|
9518
9548
|
<!-- source -->
|
@@ -9560,7 +9590,9 @@
|
|
9560
9590
|
</xsl:if>
|
9561
9591
|
<xsl:choose>
|
9562
9592
|
<xsl:when test="not(parent::quote)">
|
9563
|
-
<fo:block>
|
9593
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
9594
|
+
<xsl:call-template name="refine_source-style"/>
|
9595
|
+
|
9564
9596
|
<xsl:call-template name="insert_basic_link">
|
9565
9597
|
<xsl:with-param name="element">
|
9566
9598
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -11680,7 +11712,7 @@
|
|
11680
11712
|
|
11681
11713
|
<xsl:template name="refine_fn-reference-style">
|
11682
11714
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11683
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
11715
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
11684
11716
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11685
11717
|
|
11686
11718
|
<xsl:attribute-set name="fn-style">
|
@@ -11691,6 +11723,7 @@
|
|
11691
11723
|
</xsl:template>
|
11692
11724
|
|
11693
11725
|
<xsl:attribute-set name="fn-num-style">
|
11726
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
11694
11727
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11695
11728
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
11696
11729
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -11767,33 +11800,16 @@
|
|
11767
11800
|
<xsl:variable name="ref_id" select="@target"/>
|
11768
11801
|
|
11769
11802
|
<xsl:variable name="footnote_inline">
|
11770
|
-
<fo:inline
|
11803
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
11771
11804
|
|
11772
|
-
<xsl:
|
11773
|
-
<xsl:choose>
|
11774
|
-
<xsl:when test="ancestor::mn:bibitem">
|
11775
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11776
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11777
|
-
</fn_styles>
|
11778
|
-
</xsl:when>
|
11779
|
-
<xsl:otherwise>
|
11780
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11781
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
11782
|
-
</fn_styles>
|
11783
|
-
</xsl:otherwise>
|
11784
|
-
</xsl:choose>
|
11785
|
-
</xsl:variable>
|
11786
|
-
|
11787
|
-
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
|
11788
|
-
<xsl:copy-of select="."/>
|
11789
|
-
</xsl:for-each>
|
11805
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11790
11806
|
|
11791
11807
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11792
11808
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11793
11809
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11794
11810
|
</xsl:if> -->
|
11795
11811
|
|
11796
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
11812
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
11797
11813
|
|
11798
11814
|
<xsl:call-template name="insert_basic_link">
|
11799
11815
|
<xsl:with-param name="element">
|
@@ -12109,30 +12125,6 @@
|
|
12109
12125
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12110
12126
|
</xsl:template>
|
12111
12127
|
|
12112
|
-
<!-- footnote reference number for bibitem, in the text -->
|
12113
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
12114
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
12115
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
12116
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
12117
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
12118
|
-
|
12119
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
12120
|
-
</xsl:template>
|
12121
|
-
|
12122
|
-
<!-- footnote number on the page bottom -->
|
12123
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
12124
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
12125
|
-
<xsl:attribute name="font-size">60%</xsl:attribute>
|
12126
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
12127
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
12128
|
-
|
12129
|
-
<!-- footnote body (text) on the page bottom -->
|
12130
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
12131
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
12132
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
12133
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
12134
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
12135
|
-
|
12136
12128
|
<xsl:attribute-set name="references-non-normative-style">
|
12137
12129
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
12138
12130
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
@@ -14467,6 +14459,17 @@
|
|
14467
14459
|
</xsl:attribute-set>
|
14468
14460
|
|
14469
14461
|
<xsl:template name="refine_clause-style">
|
14462
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
14463
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
14464
|
+
<xsl:variable name="level">
|
14465
|
+
<xsl:call-template name="getLevel">
|
14466
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
14467
|
+
</xsl:call-template>
|
14468
|
+
</xsl:variable>
|
14469
|
+
<xsl:if test="$level >= 4">
|
14470
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
14471
|
+
</xsl:if>
|
14472
|
+
</xsl:if> -->
|
14470
14473
|
</xsl:template>
|
14471
14474
|
|
14472
14475
|
<!-- main sections -->
|
@@ -148,6 +148,8 @@
|
|
148
148
|
|
149
149
|
<xsl:call-template name="cover-page"/>
|
150
150
|
|
151
|
+
<xsl:call-template name="inner-cover-page"/>
|
152
|
+
|
151
153
|
<xsl:variable name="updated_xml">
|
152
154
|
<xsl:call-template name="updateXML"/>
|
153
155
|
<!-- <xsl:copy-of select="."/> -->
|
@@ -177,6 +179,8 @@
|
|
177
179
|
<xsl:call-template name="getPageSequenceOrientation"/>
|
178
180
|
</xsl:attribute>
|
179
181
|
|
182
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
183
|
+
|
180
184
|
<xsl:call-template name="insertHeaderFooter"/>
|
181
185
|
<fo:flow flow-name="xsl-region-body">
|
182
186
|
|
@@ -214,6 +218,8 @@
|
|
214
218
|
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
215
219
|
</xsl:if>
|
216
220
|
|
221
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
222
|
+
|
217
223
|
<xsl:call-template name="insertHeaderFooter"/>
|
218
224
|
|
219
225
|
<fo:flow flow-name="xsl-region-body">
|
@@ -232,6 +238,8 @@
|
|
232
238
|
</xsl:for-each>
|
233
239
|
</xsl:for-each>
|
234
240
|
|
241
|
+
<xsl:call-template name="back-page"/>
|
242
|
+
|
235
243
|
</fo:root>
|
236
244
|
|
237
245
|
</xsl:template>
|
@@ -239,7 +247,11 @@
|
|
239
247
|
<xsl:template name="cover-page">
|
240
248
|
<!-- Cover Page -->
|
241
249
|
<fo:page-sequence master-reference="document" force-page-count="no-force">
|
250
|
+
|
251
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
252
|
+
|
242
253
|
<xsl:call-template name="insertHeaderFooter"/>
|
254
|
+
|
243
255
|
<fo:flow flow-name="xsl-region-body">
|
244
256
|
|
245
257
|
<fo:block-container margin-left="-12mm" margin-right="-9mm">
|
@@ -314,7 +326,13 @@
|
|
314
326
|
</fo:flow>
|
315
327
|
</fo:page-sequence>
|
316
328
|
<!-- End Cover Page -->
|
317
|
-
|
329
|
+
</xsl:template> <!-- END: cover-page -->
|
330
|
+
|
331
|
+
<xsl:template name="inner-cover-page">
|
332
|
+
</xsl:template>
|
333
|
+
|
334
|
+
<xsl:template name="back-page">
|
335
|
+
</xsl:template>
|
318
336
|
|
319
337
|
<xsl:template name="processPrefaceAndMainSectionsOGC_items">
|
320
338
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
@@ -707,15 +725,19 @@
|
|
707
725
|
</xsl:template>
|
708
726
|
|
709
727
|
<xsl:template name="insertHeaderFooter">
|
728
|
+
<xsl:call-template name="insertHeader"/>
|
729
|
+
<xsl:call-template name="insertFooter"/>
|
730
|
+
</xsl:template>
|
710
731
|
|
711
|
-
|
712
|
-
|
732
|
+
<xsl:template name="insertHeader">
|
713
733
|
<fo:static-content flow-name="header" role="artifact">
|
714
734
|
<fo:block-container height="16.5mm" background-color="{$color}">
|
715
735
|
<fo:block> </fo:block>
|
716
736
|
</fo:block-container>
|
717
737
|
</fo:static-content>
|
738
|
+
</xsl:template>
|
718
739
|
|
740
|
+
<xsl:template name="insertFooter">
|
719
741
|
<fo:static-content flow-name="footer" role="artifact">
|
720
742
|
<fo:block-container height="100%" display-align="after">
|
721
743
|
<fo:block-container height="23.5mm" background-color="{$color}" color="rgb(231, 230, 230)" display-align="after">
|
@@ -743,7 +765,6 @@
|
|
743
765
|
</fo:block-container>
|
744
766
|
</fo:block-container>
|
745
767
|
</fo:static-content>
|
746
|
-
|
747
768
|
</xsl:template>
|
748
769
|
|
749
770
|
<xsl:template name="insertLogo">
|
@@ -2413,7 +2434,6 @@
|
|
2413
2434
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
2414
2435
|
|
2415
2436
|
<xsl:template name="refine_feedback-statement-title-style">
|
2416
|
-
|
2417
2437
|
</xsl:template>
|
2418
2438
|
|
2419
2439
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -8297,16 +8317,23 @@
|
|
8297
8317
|
</xsl:attribute-set> <!-- quote-style -->
|
8298
8318
|
|
8299
8319
|
<xsl:template name="refine_quote-style">
|
8300
|
-
</xsl:template>
|
8320
|
+
</xsl:template> <!-- refine_quote-style -->
|
8301
8321
|
|
8302
8322
|
<xsl:attribute-set name="quote-source-style">
|
8303
8323
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
8304
8324
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
8305
|
-
</xsl:attribute-set>
|
8325
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
8306
8326
|
|
8307
8327
|
<xsl:template name="refine_quote-source-style">
|
8308
8328
|
</xsl:template>
|
8309
8329
|
|
8330
|
+
<xsl:attribute-set name="source-style">
|
8331
|
+
</xsl:attribute-set> <!-- source-style -->
|
8332
|
+
|
8333
|
+
<xsl:template name="refine_source-style">
|
8334
|
+
|
8335
|
+
</xsl:template> <!-- refine_source-style -->
|
8336
|
+
|
8310
8337
|
<!-- ====== -->
|
8311
8338
|
<!-- quote -->
|
8312
8339
|
<!-- source -->
|
@@ -8354,7 +8381,9 @@
|
|
8354
8381
|
</xsl:if>
|
8355
8382
|
<xsl:choose>
|
8356
8383
|
<xsl:when test="not(parent::quote)">
|
8357
|
-
<fo:block>
|
8384
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
8385
|
+
<xsl:call-template name="refine_source-style"/>
|
8386
|
+
|
8358
8387
|
<xsl:call-template name="insert_basic_link">
|
8359
8388
|
<xsl:with-param name="element">
|
8360
8389
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -10455,7 +10484,7 @@
|
|
10455
10484
|
|
10456
10485
|
<xsl:template name="refine_fn-reference-style">
|
10457
10486
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
10458
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
10487
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
10459
10488
|
</xsl:template> <!-- refine_fn-reference-style -->
|
10460
10489
|
|
10461
10490
|
<xsl:attribute-set name="fn-style">
|
@@ -10466,6 +10495,7 @@
|
|
10466
10495
|
</xsl:template>
|
10467
10496
|
|
10468
10497
|
<xsl:attribute-set name="fn-num-style">
|
10498
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
10469
10499
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10470
10500
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
10471
10501
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -10541,33 +10571,16 @@
|
|
10541
10571
|
<xsl:variable name="ref_id" select="@target"/>
|
10542
10572
|
|
10543
10573
|
<xsl:variable name="footnote_inline">
|
10544
|
-
<fo:inline
|
10574
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
10545
10575
|
|
10546
|
-
<xsl:
|
10547
|
-
<xsl:choose>
|
10548
|
-
<xsl:when test="ancestor::mn:bibitem">
|
10549
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
10550
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
10551
|
-
</fn_styles>
|
10552
|
-
</xsl:when>
|
10553
|
-
<xsl:otherwise>
|
10554
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
10555
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
10556
|
-
</fn_styles>
|
10557
|
-
</xsl:otherwise>
|
10558
|
-
</xsl:choose>
|
10559
|
-
</xsl:variable>
|
10560
|
-
|
10561
|
-
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
|
10562
|
-
<xsl:copy-of select="."/>
|
10563
|
-
</xsl:for-each>
|
10576
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
10564
10577
|
|
10565
10578
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
10566
10579
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
10567
10580
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
10568
10581
|
</xsl:if> -->
|
10569
10582
|
|
10570
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
10583
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
10571
10584
|
|
10572
10585
|
<xsl:call-template name="insert_basic_link">
|
10573
10586
|
<xsl:with-param name="element">
|
@@ -10880,30 +10893,6 @@
|
|
10880
10893
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
10881
10894
|
</xsl:template>
|
10882
10895
|
|
10883
|
-
<!-- footnote reference number for bibitem, in the text -->
|
10884
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
10885
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10886
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
10887
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10888
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
10889
|
-
|
10890
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
10891
|
-
</xsl:template>
|
10892
|
-
|
10893
|
-
<!-- footnote number on the page bottom -->
|
10894
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
10895
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
10896
|
-
<xsl:attribute name="font-size">60%</xsl:attribute>
|
10897
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10898
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
10899
|
-
|
10900
|
-
<!-- footnote body (text) on the page bottom -->
|
10901
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
10902
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
10903
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10904
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
10905
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
10906
|
-
|
10907
10896
|
<xsl:attribute-set name="references-non-normative-style">
|
10908
10897
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
10909
10898
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
@@ -13235,6 +13224,17 @@
|
|
13235
13224
|
</xsl:attribute-set>
|
13236
13225
|
|
13237
13226
|
<xsl:template name="refine_clause-style">
|
13227
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
13228
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
13229
|
+
<xsl:variable name="level">
|
13230
|
+
<xsl:call-template name="getLevel">
|
13231
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
13232
|
+
</xsl:call-template>
|
13233
|
+
</xsl:variable>
|
13234
|
+
<xsl:if test="$level >= 4">
|
13235
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
13236
|
+
</xsl:if>
|
13237
|
+
</xsl:if> -->
|
13238
13238
|
</xsl:template>
|
13239
13239
|
|
13240
13240
|
<!-- main sections -->
|
@@ -139,7 +139,7 @@ module IsoDoc
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def insert_submitting_orgs(docxml)
|
142
|
-
orgs = docxml.xpath(
|
142
|
+
orgs = docxml.xpath(submittingorgs_path)
|
143
143
|
.each_with_object([]) { |org, m| m << org.text }
|
144
144
|
orgs.empty? and return
|
145
145
|
if a = submit_orgs_append_pt(docxml)
|