metanorma-ogc 2.8.5 → 2.8.7
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/ogc.abstract-specification-topic.xsl +297 -271
- data/lib/isodoc/ogc/ogc.best-practice.xsl +297 -271
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +297 -271
- data/lib/isodoc/ogc/ogc.community-practice.xsl +297 -271
- data/lib/isodoc/ogc/ogc.community-standard.xsl +297 -271
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +297 -271
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +297 -271
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +297 -271
- data/lib/isodoc/ogc/ogc.other.xsl +297 -271
- data/lib/isodoc/ogc/ogc.policy.xsl +297 -271
- data/lib/isodoc/ogc/ogc.reference-model.xsl +297 -271
- data/lib/isodoc/ogc/ogc.release-notes.xsl +297 -271
- data/lib/isodoc/ogc/ogc.standard.xsl +297 -271
- data/lib/isodoc/ogc/ogc.test-suite.xsl +297 -271
- data/lib/isodoc/ogc/ogc.user-guide.xsl +297 -271
- data/lib/isodoc/ogc/ogc.white-paper.xsl +148 -122
- data/lib/metanorma/ogc/biblio.rng +1 -1
- data/lib/metanorma/ogc/converter.rb +5 -5
- data/lib/metanorma/ogc/isodoc.rng +35 -10
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +1 -1
- metadata +6 -6
|
@@ -179,6 +179,8 @@
|
|
|
179
179
|
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
180
180
|
</xsl:attribute>
|
|
181
181
|
|
|
182
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
183
|
+
|
|
182
184
|
<xsl:call-template name="insertHeaderFooter"/>
|
|
183
185
|
<fo:flow flow-name="xsl-region-body">
|
|
184
186
|
|
|
@@ -216,6 +218,8 @@
|
|
|
216
218
|
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
217
219
|
</xsl:if>
|
|
218
220
|
|
|
221
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
222
|
+
|
|
219
223
|
<xsl:call-template name="insertHeaderFooter"/>
|
|
220
224
|
|
|
221
225
|
<fo:flow flow-name="xsl-region-body">
|
|
@@ -242,81 +246,92 @@
|
|
|
242
246
|
|
|
243
247
|
<xsl:template name="cover-page">
|
|
244
248
|
<!-- Cover Page -->
|
|
245
|
-
<
|
|
246
|
-
<xsl:
|
|
247
|
-
|
|
249
|
+
<xsl:choose>
|
|
250
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
|
251
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
|
252
|
+
</xsl:when>
|
|
253
|
+
<xsl:otherwise>
|
|
254
|
+
<fo:page-sequence master-reference="document" force-page-count="no-force">
|
|
248
255
|
|
|
249
|
-
|
|
250
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
251
|
-
<fo:block font-size="36pt" background-color="{$color}" color="white" margin-left="2.5mm" padding-top="1mm" padding-left="1mm" role="H1">
|
|
252
|
-
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title/node()"/>
|
|
253
|
-
</fo:block>
|
|
254
|
-
</fo:block-container>
|
|
255
|
-
</fo:block-container>
|
|
256
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
256
257
|
|
|
257
|
-
|
|
258
|
-
<xsl:text>Additional context, inspirational quote, etc. fits into this subheading area</xsl:text>
|
|
259
|
-
</fo:block> -->
|
|
258
|
+
<xsl:call-template name="insertHeaderFooter"/>
|
|
260
259
|
|
|
261
|
-
|
|
262
|
-
<fo:block margin-top="6pt">Submission Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'received']/mn:on"/></fo:block>
|
|
263
|
-
<fo:block margin-top="6pt">Approval Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'issued']/mn:on"/></fo:block>
|
|
264
|
-
<fo:block margin-top="6pt">Publication Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'published']/mn:on"/></fo:block>
|
|
265
|
-
<fo:block margin-top="6pt">External identifier of this OGC® document: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'ogc-external']"/></fo:block>
|
|
266
|
-
<fo:block margin-top="6pt">Internal reference number of this OGC® document: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docnumber"/></fo:block>
|
|
260
|
+
<fo:flow flow-name="xsl-region-body">
|
|
267
261
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
262
|
+
<fo:block-container margin-left="-12mm" margin-right="-9mm">
|
|
263
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
264
|
+
<fo:block font-size="36pt" background-color="{$color}" color="white" margin-left="2.5mm" padding-top="1mm" padding-left="1mm" role="H1">
|
|
265
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title/node()"/>
|
|
266
|
+
</fo:block>
|
|
267
|
+
</fo:block-container>
|
|
268
|
+
</fo:block-container>
|
|
272
269
|
|
|
273
|
-
|
|
270
|
+
<!-- <fo:block font-family="Lato" font-weight="300" font-size="14pt" font-style="italic" margin-top="6pt" color="rgb(21, 43, 77)">
|
|
271
|
+
<xsl:text>Additional context, inspirational quote, etc. fits into this subheading area</xsl:text>
|
|
272
|
+
</fo:block> -->
|
|
274
273
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
<
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
<fo:block text-align="right" font-size="10pt" margin-top="12pt" margin-bottom="24pt">
|
|
275
|
+
<fo:block margin-top="6pt">Submission Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'received']/mn:on"/></fo:block>
|
|
276
|
+
<fo:block margin-top="6pt">Approval Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'issued']/mn:on"/></fo:block>
|
|
277
|
+
<fo:block margin-top="6pt">Publication Date: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'published']/mn:on"/></fo:block>
|
|
278
|
+
<fo:block margin-top="6pt">External identifier of this OGC® document: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'ogc-external']"/></fo:block>
|
|
279
|
+
<fo:block margin-top="6pt">Internal reference number of this OGC® document: <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docnumber"/></fo:block>
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
</xsl:for-each>
|
|
286
|
-
</xsl:variable>
|
|
287
|
-
<xsl:if test="normalize-space($editors) != ''">
|
|
288
|
-
<fo:block margin-top="6pt">
|
|
289
|
-
<!-- Editor: -->
|
|
290
|
-
<xsl:call-template name="getLocalizedString">
|
|
291
|
-
<xsl:with-param name="key">editor_full</xsl:with-param>
|
|
292
|
-
</xsl:call-template><xsl:text>: </xsl:text><xsl:value-of select="$editors"/>
|
|
293
|
-
</fo:block>
|
|
294
|
-
</xsl:if>
|
|
295
|
-
</fo:block>
|
|
281
|
+
<xsl:variable name="url" select="/mn:metanorma/mn:bibdata/mn:uri"/>
|
|
282
|
+
<xsl:if test="normalize-space($url) != ''">
|
|
283
|
+
<fo:block margin-top="6pt">URL for this OGC® document: <xsl:value-of select="$url"/></fo:block>
|
|
284
|
+
</xsl:if>
|
|
296
285
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
</
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
286
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:edition[normalize-space(@language) = '']"/>
|
|
287
|
+
|
|
288
|
+
<fo:block margin-top="6pt"><xsl:text>Category: </xsl:text>
|
|
289
|
+
<xsl:call-template name="capitalizeWords">
|
|
290
|
+
<xsl:with-param name="str" select="/mn:metanorma/mn:bibdata/mn:ext/mn:doctype"/>
|
|
291
|
+
</xsl:call-template>
|
|
292
|
+
</fo:block>
|
|
293
|
+
|
|
294
|
+
<xsl:variable name="editors">
|
|
295
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type='editor']/mn:person/mn:name/mn:completename">
|
|
296
|
+
<xsl:value-of select="."/>
|
|
297
|
+
<xsl:if test="position() != last()">, </xsl:if>
|
|
298
|
+
</xsl:for-each>
|
|
310
299
|
</xsl:variable>
|
|
311
|
-
<xsl:
|
|
300
|
+
<xsl:if test="normalize-space($editors) != ''">
|
|
301
|
+
<fo:block margin-top="6pt">
|
|
302
|
+
<!-- Editor: -->
|
|
303
|
+
<xsl:call-template name="getLocalizedString">
|
|
304
|
+
<xsl:with-param name="key">editor_full</xsl:with-param>
|
|
305
|
+
</xsl:call-template><xsl:text>: </xsl:text><xsl:value-of select="$editors"/>
|
|
306
|
+
</fo:block>
|
|
307
|
+
</xsl:if>
|
|
312
308
|
</fo:block>
|
|
313
|
-
</fo:block-container>
|
|
314
|
-
</fo:block-container>
|
|
315
309
|
|
|
316
|
-
|
|
310
|
+
<!-- absolute-position="fixed" left="20mm" top="91mm" width="175mm" -->
|
|
311
|
+
<fo:block-container font-size="9pt" margin-left="-5mm" margin-right="-5mm">
|
|
312
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
313
|
+
<fo:block margin-top="8pt">
|
|
314
|
+
<xsl:variable name="copyright_statement">
|
|
315
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:copyright-statement" mode="update_xml_step1"/>
|
|
316
|
+
</xsl:variable>
|
|
317
|
+
<xsl:apply-templates select="xalan:nodeset($copyright_statement)/*"/>
|
|
318
|
+
</fo:block>
|
|
319
|
+
<fo:block margin-top="8pt"> </fo:block>
|
|
320
|
+
<fo:block margin-top="8pt">
|
|
321
|
+
<xsl:variable name="legal_statement">
|
|
322
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement" mode="update_xml_step1"/>
|
|
323
|
+
</xsl:variable>
|
|
324
|
+
<xsl:apply-templates select="xalan:nodeset($legal_statement)/*"/>
|
|
325
|
+
</fo:block>
|
|
326
|
+
</fo:block-container>
|
|
327
|
+
</fo:block-container>
|
|
328
|
+
|
|
329
|
+
<xsl:call-template name="insertLogo"/>
|
|
317
330
|
|
|
318
|
-
|
|
319
|
-
|
|
331
|
+
</fo:flow>
|
|
332
|
+
</fo:page-sequence>
|
|
333
|
+
</xsl:otherwise>
|
|
334
|
+
</xsl:choose>
|
|
320
335
|
<!-- End Cover Page -->
|
|
321
336
|
</xsl:template> <!-- END: cover-page -->
|
|
322
337
|
|
|
@@ -717,15 +732,19 @@
|
|
|
717
732
|
</xsl:template>
|
|
718
733
|
|
|
719
734
|
<xsl:template name="insertHeaderFooter">
|
|
735
|
+
<xsl:call-template name="insertHeader"/>
|
|
736
|
+
<xsl:call-template name="insertFooter"/>
|
|
737
|
+
</xsl:template>
|
|
720
738
|
|
|
721
|
-
|
|
722
|
-
|
|
739
|
+
<xsl:template name="insertHeader">
|
|
723
740
|
<fo:static-content flow-name="header" role="artifact">
|
|
724
741
|
<fo:block-container height="16.5mm" background-color="{$color}">
|
|
725
742
|
<fo:block> </fo:block>
|
|
726
743
|
</fo:block-container>
|
|
727
744
|
</fo:static-content>
|
|
745
|
+
</xsl:template>
|
|
728
746
|
|
|
747
|
+
<xsl:template name="insertFooter">
|
|
729
748
|
<fo:static-content flow-name="footer" role="artifact">
|
|
730
749
|
<fo:block-container height="100%" display-align="after">
|
|
731
750
|
<fo:block-container height="23.5mm" background-color="{$color}" color="rgb(231, 230, 230)" display-align="after">
|
|
@@ -753,7 +772,6 @@
|
|
|
753
772
|
</fo:block-container>
|
|
754
773
|
</fo:block-container>
|
|
755
774
|
</fo:static-content>
|
|
756
|
-
|
|
757
775
|
</xsl:template>
|
|
758
776
|
|
|
759
777
|
<xsl:template name="insertLogo">
|
|
@@ -4145,90 +4163,84 @@
|
|
|
4145
4163
|
<xsl:template name="refine_term-style">
|
|
4146
4164
|
</xsl:template>
|
|
4147
4165
|
|
|
4148
|
-
<xsl:attribute-set name="term-
|
|
4166
|
+
<xsl:attribute-set name="term-number-style">
|
|
4149
4167
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4150
4168
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
4151
4169
|
</xsl:attribute-set> <!-- term-name-style -->
|
|
4152
4170
|
|
|
4153
|
-
<xsl:template name="refine_term-
|
|
4154
|
-
</xsl:template>
|
|
4155
|
-
|
|
4156
|
-
<xsl:attribute-set name="preferred-style">
|
|
4157
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
|
4158
|
-
|
|
4159
|
-
<xsl:template name="refine_preferred-style">
|
|
4171
|
+
<xsl:template name="refine_term-number-style">
|
|
4160
4172
|
</xsl:template>
|
|
4161
4173
|
|
|
4162
|
-
<xsl:attribute-set name="preferred-block-style">
|
|
4174
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
|
4163
4175
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
|
4164
4176
|
|
|
4165
|
-
<xsl:template name="
|
|
4177
|
+
<xsl:template name="refine_term-preferred-block-style">
|
|
4166
4178
|
</xsl:template>
|
|
4167
4179
|
|
|
4168
|
-
<xsl:attribute-set name="preferred-
|
|
4180
|
+
<xsl:attribute-set name="term-preferred-style">
|
|
4169
4181
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4170
4182
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
4171
4183
|
<xsl:attribute name="line-height">1</xsl:attribute>
|
|
4172
4184
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
|
4173
4185
|
|
|
4174
|
-
<xsl:template name="
|
|
4186
|
+
<xsl:template name="refine_term-preferred-style">
|
|
4175
4187
|
<xsl:if test="mn:strong">
|
|
4176
4188
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
4177
4189
|
</xsl:if>
|
|
4178
4190
|
</xsl:template>
|
|
4179
4191
|
|
|
4180
|
-
<xsl:attribute-set name="domain-style">
|
|
4181
|
-
</xsl:attribute-set> <!-- domain-style -->
|
|
4192
|
+
<xsl:attribute-set name="term-domain-style">
|
|
4193
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
|
4182
4194
|
|
|
4183
|
-
<xsl:template name="
|
|
4195
|
+
<xsl:template name="refine_term-domain-style">
|
|
4184
4196
|
</xsl:template>
|
|
4185
4197
|
|
|
4186
|
-
<xsl:attribute-set name="admitted-style">
|
|
4198
|
+
<xsl:attribute-set name="term-admitted-style">
|
|
4187
4199
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
4188
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
|
4200
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
|
4189
4201
|
|
|
4190
|
-
<xsl:template name="
|
|
4202
|
+
<xsl:template name="refine_term-admitted-style">
|
|
4191
4203
|
</xsl:template>
|
|
4192
4204
|
|
|
4193
|
-
<xsl:attribute-set name="deprecates-style">
|
|
4194
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
|
4205
|
+
<xsl:attribute-set name="term-deprecates-style">
|
|
4206
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
|
4195
4207
|
|
|
4196
|
-
<xsl:template name="
|
|
4208
|
+
<xsl:template name="refine_term-deprecates-style">
|
|
4197
4209
|
</xsl:template>
|
|
4198
4210
|
|
|
4199
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
|
4211
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
|
4200
4212
|
</xsl:attribute-set>
|
|
4201
4213
|
|
|
4202
|
-
<xsl:template name="
|
|
4214
|
+
<xsl:template name="refine_term-related-block-style">
|
|
4203
4215
|
</xsl:template>
|
|
4204
4216
|
|
|
4205
|
-
<xsl:attribute-set name="definition-style">
|
|
4217
|
+
<xsl:attribute-set name="term-definition-style">
|
|
4206
4218
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
|
4207
|
-
</xsl:attribute-set> <!-- definition-style -->
|
|
4219
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
|
4208
4220
|
|
|
4209
|
-
<xsl:template name="
|
|
4221
|
+
<xsl:template name="refine_term-definition-style">
|
|
4210
4222
|
</xsl:template>
|
|
4211
4223
|
|
|
4212
|
-
<xsl:attribute-set name="termsource-style">
|
|
4224
|
+
<xsl:attribute-set name="term-termsource-style">
|
|
4213
4225
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
4214
4226
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
4215
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
|
4227
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
|
4216
4228
|
|
|
4217
|
-
<xsl:template name="
|
|
4218
|
-
</xsl:template> <!--
|
|
4229
|
+
<xsl:template name="refine_term-termsource-style">
|
|
4230
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
|
4219
4231
|
|
|
4220
|
-
<xsl:attribute-set name="termsource-text-style">
|
|
4221
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
|
4232
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
|
4233
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
|
4222
4234
|
|
|
4223
|
-
<xsl:template name="
|
|
4235
|
+
<xsl:template name="refine_term-termsource-text-style">
|
|
4224
4236
|
</xsl:template>
|
|
4225
4237
|
|
|
4226
|
-
<xsl:attribute-set name="origin-style">
|
|
4238
|
+
<xsl:attribute-set name="term-origin-style">
|
|
4227
4239
|
<xsl:attribute name="color">blue</xsl:attribute>
|
|
4228
4240
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
4229
|
-
</xsl:attribute-set> <!-- origin-style -->
|
|
4241
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
|
4230
4242
|
|
|
4231
|
-
<xsl:template name="
|
|
4243
|
+
<xsl:template name="refine_term-origin-style">
|
|
4232
4244
|
</xsl:template>
|
|
4233
4245
|
|
|
4234
4246
|
<!-- ====== -->
|
|
@@ -4272,9 +4284,9 @@
|
|
|
4272
4284
|
<!-- modification -->
|
|
4273
4285
|
<!-- ====== -->
|
|
4274
4286
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
|
4275
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
|
4287
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
|
4276
4288
|
|
|
4277
|
-
<xsl:call-template name="
|
|
4289
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
|
4278
4290
|
|
|
4279
4291
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
|
4280
4292
|
<xsl:variable name="termsource_text">
|
|
@@ -4322,8 +4334,8 @@
|
|
|
4322
4334
|
|
|
4323
4335
|
<!-- text SOURCE: -->
|
|
4324
4336
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
|
4325
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
|
4326
|
-
<xsl:call-template name="
|
|
4337
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
|
4338
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
|
4327
4339
|
<xsl:value-of select="."/>
|
|
4328
4340
|
</fo:inline>
|
|
4329
4341
|
</xsl:template>
|
|
@@ -4335,8 +4347,8 @@
|
|
|
4335
4347
|
<xsl:if test="normalize-space(@citeas) = ''">
|
|
4336
4348
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
|
4337
4349
|
</xsl:if>
|
|
4338
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
|
4339
|
-
<xsl:call-template name="
|
|
4350
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
|
4351
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
|
4340
4352
|
<xsl:apply-templates/>
|
|
4341
4353
|
</fo:inline>
|
|
4342
4354
|
</fo:basic-link>
|
|
@@ -4389,14 +4401,14 @@
|
|
|
4389
4401
|
<xsl:variable name="levelTerm">
|
|
4390
4402
|
<xsl:call-template name="getLevelTermName"/>
|
|
4391
4403
|
</xsl:variable>
|
|
4392
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
4404
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
|
4393
4405
|
|
|
4394
|
-
<xsl:call-template name="
|
|
4406
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
|
4395
4407
|
|
|
4396
4408
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
|
4397
4409
|
|
|
4398
|
-
<fo:block xsl:use-attribute-sets="term-
|
|
4399
|
-
<xsl:call-template name="refine_term-
|
|
4410
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
|
4411
|
+
<xsl:call-template name="refine_term-number-style"/>
|
|
4400
4412
|
|
|
4401
4413
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
|
4402
4414
|
<xsl:call-template name="setIDforNamedDestination"/>
|
|
@@ -4406,8 +4418,8 @@
|
|
|
4406
4418
|
</fo:block>
|
|
4407
4419
|
</xsl:if>
|
|
4408
4420
|
|
|
4409
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
|
4410
|
-
<xsl:call-template name="
|
|
4421
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
|
4422
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
|
4411
4423
|
|
|
4412
4424
|
<xsl:apply-templates/>
|
|
4413
4425
|
</fo:block>
|
|
@@ -4427,15 +4439,15 @@
|
|
|
4427
4439
|
<xsl:template match="mn:domain"/>
|
|
4428
4440
|
|
|
4429
4441
|
<xsl:template match="mn:fmt-admitted">
|
|
4430
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
|
4431
|
-
<xsl:call-template name="
|
|
4442
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
|
4443
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
|
4432
4444
|
<xsl:apply-templates/>
|
|
4433
4445
|
</fo:block>
|
|
4434
4446
|
</xsl:template>
|
|
4435
4447
|
|
|
4436
4448
|
<xsl:template match="mn:fmt-deprecates">
|
|
4437
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
|
4438
|
-
<xsl:call-template name="
|
|
4449
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
|
4450
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
|
4439
4451
|
<xsl:apply-templates/>
|
|
4440
4452
|
</fo:block>
|
|
4441
4453
|
</xsl:template>
|
|
@@ -4448,8 +4460,8 @@
|
|
|
4448
4460
|
<!-- End Preferred, admitted, deprecated -->
|
|
4449
4461
|
|
|
4450
4462
|
<xsl:template match="mn:fmt-related">
|
|
4451
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
|
4452
|
-
<xsl:call-template name="
|
|
4463
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
|
4464
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
|
4453
4465
|
<xsl:apply-templates/>
|
|
4454
4466
|
</fo:block>
|
|
4455
4467
|
</xsl:template>
|
|
@@ -4463,8 +4475,8 @@
|
|
|
4463
4475
|
<!-- definition -->
|
|
4464
4476
|
<!-- ========== -->
|
|
4465
4477
|
<xsl:template match="mn:fmt-definition">
|
|
4466
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
|
4467
|
-
<xsl:call-template name="
|
|
4478
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
|
4479
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
|
4468
4480
|
<xsl:apply-templates/>
|
|
4469
4481
|
</fo:block>
|
|
4470
4482
|
</xsl:template>
|
|
@@ -14286,6 +14298,20 @@
|
|
|
14286
14298
|
</fo:block-container>
|
|
14287
14299
|
</xsl:template>
|
|
14288
14300
|
|
|
14301
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
|
14302
|
+
<xsl:template name="insertCoverPageFullImage">
|
|
14303
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
|
14304
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
|
14305
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
|
14306
|
+
<fo:flow flow-name="xsl-region-body">
|
|
14307
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
|
14308
|
+
<xsl:with-param name="number" select="position()"/>
|
|
14309
|
+
</xsl:call-template>
|
|
14310
|
+
</fo:flow>
|
|
14311
|
+
</fo:page-sequence>
|
|
14312
|
+
</xsl:for-each>
|
|
14313
|
+
</xsl:template>
|
|
14314
|
+
|
|
14289
14315
|
<xsl:template name="insertPageImage">
|
|
14290
14316
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
|
14291
14317
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
|
@@ -869,7 +869,7 @@ depending on whether the items exist as independent documents, or are parts of a
|
|
|
869
869
|
</zeroOrMore>
|
|
870
870
|
</element>
|
|
871
871
|
</define>
|
|
872
|
-
<define name="BibItemType"
|
|
872
|
+
<define name="BibItemType">
|
|
873
873
|
<a:documentation>Type of bibliographic item.
|
|
874
874
|
The value list complies with the types provided in ISO 690:2021.
|
|
875
875
|
NOTE: These values represent a strict superset to BibTeX
|
|
@@ -46,19 +46,19 @@ module Metanorma
|
|
|
46
46
|
|
|
47
47
|
def document_scheme(node)
|
|
48
48
|
if r = node.attr("document-scheme")
|
|
49
|
-
r == "2022" ? "
|
|
49
|
+
r == "2022" ? "2022" : "2018"
|
|
50
50
|
elsif r = node.attr("published-date")
|
|
51
51
|
published_date_scheme(r)
|
|
52
52
|
elsif r = node.attr("copyright-year")
|
|
53
|
-
r.to_i >= 2022 ? "
|
|
54
|
-
else "
|
|
53
|
+
r.to_i >= 2022 ? "2022" : "2018"
|
|
54
|
+
else "2022"
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def published_date_scheme(date_str)
|
|
59
59
|
published_date = parse_flexible_date(date_str) or return nil
|
|
60
60
|
cutoff_date = Date.new(2021, 11, 8)
|
|
61
|
-
published_date >= cutoff_date ? "
|
|
61
|
+
published_date >= cutoff_date ? "2022" : "2018"
|
|
62
62
|
rescue Date::Error, ArgumentError
|
|
63
63
|
nil
|
|
64
64
|
end
|
|
@@ -132,7 +132,7 @@ module Metanorma
|
|
|
132
132
|
|
|
133
133
|
def update_colors(node)
|
|
134
134
|
c = OGC_COLORS.dup
|
|
135
|
-
if document_scheme(node) == "
|
|
135
|
+
if document_scheme(node) == "2022"
|
|
136
136
|
c[:"secondary-shade-1"] = "rgb(0, 177, 255)"
|
|
137
137
|
c[:"secondary-shade-2"] = "rgb(0, 177, 255)"
|
|
138
138
|
end
|
|
@@ -311,17 +311,28 @@ and is intended to be referenced by a callout within the source code</a:document
|
|
|
311
311
|
</ref>
|
|
312
312
|
</optional>
|
|
313
313
|
<choice>
|
|
314
|
-
<a:documentation>Content of the figure</a:documentation>
|
|
315
|
-
<ref name="image"
|
|
314
|
+
<a:documentation>Content of the figure </a:documentation>
|
|
315
|
+
<ref name="image">
|
|
316
|
+
<a:documentation>by default the content of a figure is a media file</a:documentation>
|
|
317
|
+
</ref>
|
|
316
318
|
<ref name="video"/>
|
|
317
319
|
<ref name="audio"/>
|
|
318
|
-
<ref name="pre"
|
|
320
|
+
<ref name="pre">
|
|
321
|
+
<a:documentation>figures can contain ASCII art</a:documentation>
|
|
322
|
+
</ref>
|
|
319
323
|
<oneOrMore>
|
|
320
|
-
<ref name="paragraph-with-footnote"
|
|
324
|
+
<ref name="paragraph-with-footnote">
|
|
325
|
+
<a:documentation>figures can contain discursive art</a:documentation>
|
|
326
|
+
</ref>
|
|
321
327
|
</oneOrMore>
|
|
322
328
|
<zeroOrMore>
|
|
323
|
-
<ref name="figure"
|
|
329
|
+
<ref name="figure">
|
|
330
|
+
<a:documentation>subfigures, nested directly within a figure</a:documentation>
|
|
331
|
+
</ref>
|
|
324
332
|
</zeroOrMore>
|
|
333
|
+
<ref name="table">
|
|
334
|
+
<a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
|
|
335
|
+
</ref>
|
|
325
336
|
</choice>
|
|
326
337
|
<zeroOrMore>
|
|
327
338
|
<ref name="fn">
|
|
@@ -354,17 +365,28 @@ and is intended to be referenced by a callout within the source code</a:document
|
|
|
354
365
|
</ref>
|
|
355
366
|
</optional>
|
|
356
367
|
<choice>
|
|
357
|
-
<a:documentation>Content of the figure</a:documentation>
|
|
358
|
-
<ref name="image-no-id"
|
|
368
|
+
<a:documentation>Content of the figure </a:documentation>
|
|
369
|
+
<ref name="image-no-id">
|
|
370
|
+
<a:documentation>by default the content of a figure is a media file</a:documentation>
|
|
371
|
+
</ref>
|
|
359
372
|
<ref name="video-no-id"/>
|
|
360
373
|
<ref name="audio-no-id"/>
|
|
361
|
-
<ref name="pre-no-id"
|
|
374
|
+
<ref name="pre-no-id">
|
|
375
|
+
<a:documentation>figures can contain ASCII art</a:documentation>
|
|
376
|
+
</ref>
|
|
362
377
|
<oneOrMore>
|
|
363
|
-
<ref name="paragraph-with-footnote-no-id"
|
|
378
|
+
<ref name="paragraph-with-footnote-no-id">
|
|
379
|
+
<a:documentation>figures can contain discursive art</a:documentation>
|
|
380
|
+
</ref>
|
|
364
381
|
</oneOrMore>
|
|
365
382
|
<zeroOrMore>
|
|
366
|
-
<ref name="figure-no-id"
|
|
383
|
+
<ref name="figure-no-id">
|
|
384
|
+
<a:documentation>subfigures, nested directly within a figure</a:documentation>
|
|
385
|
+
</ref>
|
|
367
386
|
</zeroOrMore>
|
|
387
|
+
<ref name="table-no-id">
|
|
388
|
+
<a:documentation>Table is understood in this context to be a tabular arrangement of subfigures</a:documentation>
|
|
389
|
+
</ref>
|
|
368
390
|
</choice>
|
|
369
391
|
<zeroOrMore>
|
|
370
392
|
<ref name="fn">
|
|
@@ -876,6 +898,9 @@ titlecase, or lowercase</a:documentation>
|
|
|
876
898
|
<data type="boolean"/>
|
|
877
899
|
</attribute>
|
|
878
900
|
</optional>
|
|
901
|
+
<ref name="LocalizedStringAttributes">
|
|
902
|
+
<a:documentation>Specify language of bibitem, can be used to render it with language-specific bibliographic style</a:documentation>
|
|
903
|
+
</ref>
|
|
879
904
|
<ref name="ReducedBibliographicItem"/>
|
|
880
905
|
</element>
|
|
881
906
|
</define>
|
data/metanorma-ogc.gemspec
CHANGED
|
@@ -40,5 +40,5 @@ spec.add_development_dependency "rubocop-performance"
|
|
|
40
40
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
|
41
41
|
spec.add_development_dependency "timecop", "~> 0.9"
|
|
42
42
|
spec.add_development_dependency "webmock"
|
|
43
|
-
spec.add_development_dependency "canon"
|
|
43
|
+
spec.add_development_dependency "canon", "= 0.1.3"
|
|
44
44
|
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.8.
|
|
4
|
+
version: 2.8.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-10-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: iso-639
|
|
@@ -210,16 +210,16 @@ dependencies:
|
|
|
210
210
|
name: canon
|
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
|
212
212
|
requirements:
|
|
213
|
-
- -
|
|
213
|
+
- - '='
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
|
-
version:
|
|
215
|
+
version: 0.1.3
|
|
216
216
|
type: :development
|
|
217
217
|
prerelease: false
|
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
|
219
219
|
requirements:
|
|
220
|
-
- -
|
|
220
|
+
- - '='
|
|
221
221
|
- !ruby/object:Gem::Version
|
|
222
|
-
version:
|
|
222
|
+
version: 0.1.3
|
|
223
223
|
description: 'Metanorma for the Open Geospatial Consortium.
|
|
224
224
|
|
|
225
225
|
'
|