metanorma-cc 2.7.5 → 2.7.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/cc/cc.standard.xsl +144 -121
- data/lib/metanorma/cc/biblio.rng +1 -1
- data/lib/metanorma/cc/isodoc.rng +35 -10
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4662f3f4ff7fd19ca9150317a73031cbb093c447f03b567969e482f8833e7152
|
4
|
+
data.tar.gz: f0e2648e3d1687b5b5ceeba1dadbb10bf4114bd4fc9fc2d2e25c1fb2ef895620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf2d8066850d5520f259936ce4ddc650baec6d4c1284dfa021b647b4a1193e3c521b2650c8c7a9742d70de28aa159c9695a2c26c6ce863db852e40dfd7eff5f5
|
7
|
+
data.tar.gz: aa919eac7f006ab1afbb18734a1ab12c687161ee941c1b81072fca6615084430c9778f8296ecb1c7f258713ac92b00c7c779104d5d2377f3def87dda1963f90f
|
@@ -270,69 +270,76 @@
|
|
270
270
|
|
271
271
|
<xsl:template name="cover-page">
|
272
272
|
<!-- Cover Page -->
|
273
|
-
<
|
274
|
-
<xsl:
|
273
|
+
<xsl:choose>
|
274
|
+
<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'">
|
275
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
276
|
+
</xsl:when>
|
277
|
+
<xsl:otherwise>
|
278
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
279
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
275
280
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
281
|
+
<fo:static-content flow-name="cover-page-header" font-size="10pt">
|
282
|
+
<fo:block-container height="23.5mm" display-align="before">
|
283
|
+
<fo:block padding-top="12.5mm">
|
284
|
+
<xsl:value-of select="$copyright"/>
|
285
|
+
</fo:block>
|
286
|
+
</fo:block-container>
|
287
|
+
</fo:static-content>
|
283
288
|
|
284
|
-
|
289
|
+
<fo:flow flow-name="xsl-region-body">
|
285
290
|
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
</fo:block>
|
299
|
-
<fo:block font-size="24pt" font-weight="bold" text-align="center" role="H1">
|
300
|
-
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:title[@language = 'en']"/>
|
301
|
-
<xsl:value-of select="$linebreak"/>
|
302
|
-
</fo:block>
|
303
|
-
<fo:block> </fo:block>
|
304
|
-
<fo:block margin-bottom="12pt"> </fo:block>
|
305
|
-
<fo:block-container font-size="16pt" text-align="center" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
|
306
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
307
|
-
<fo:block padding-top="1mm">
|
308
|
-
<xsl:call-template name="capitalizeWords">
|
309
|
-
<!-- ex: final-draft -->
|
310
|
-
<xsl:with-param name="str" select="/mn:metanorma/mn:bibdata/mn:status/mn:stage"/>
|
311
|
-
</xsl:call-template>
|
312
|
-
<xsl:text> </xsl:text>
|
313
|
-
<xsl:call-template name="capitalizeWords">
|
314
|
-
<!-- ex: standard -->
|
315
|
-
<xsl:with-param name="str" select="/mn:metanorma/mn:bibdata/mn:ext/mn:doctype"/>
|
316
|
-
</xsl:call-template>
|
291
|
+
<fo:block text-align="right">
|
292
|
+
<!-- CC/FDS 18011:2018 -->
|
293
|
+
<fo:block font-size="14pt" font-weight="bold" margin-bottom="10pt">
|
294
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'csd']"/><xsl:text> </xsl:text>
|
295
|
+
</fo:block>
|
296
|
+
<fo:block margin-bottom="12pt">
|
297
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization/mn:name"/>
|
298
|
+
<xsl:text> TC </xsl:text>
|
299
|
+
<!-- <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/> -->
|
300
|
+
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization/mn:subdivision[@type = 'Technical committee']/mn:name"/>
|
301
|
+
<xsl:text> </xsl:text>
|
302
|
+
</fo:block>
|
317
303
|
</fo:block>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
<fo:block-container font-size="10pt" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
|
322
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
323
|
-
<fo:block text-align="center" font-weight="bold" padding-top="1mm" margin-bottom="6pt">Warning for drafts</fo:block>
|
324
|
-
<fo:block margin-left="2mm" margin-right="2mm">
|
325
|
-
<fo:block margin-bottom="6pt">This document is not a CalConnect Standard. It is distributed for review and comment, and is subject to change without notice and may not be referred to as a Standard. Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
|
326
|
-
<fo:block margin-bottom="10pt">Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
|
304
|
+
<fo:block font-size="24pt" font-weight="bold" text-align="center" role="H1">
|
305
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:title[@language = 'en']"/>
|
306
|
+
<xsl:value-of select="$linebreak"/>
|
327
307
|
</fo:block>
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
308
|
+
<fo:block> </fo:block>
|
309
|
+
<fo:block margin-bottom="12pt"> </fo:block>
|
310
|
+
<fo:block-container font-size="16pt" text-align="center" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
|
311
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
312
|
+
<fo:block padding-top="1mm">
|
313
|
+
<xsl:call-template name="capitalizeWords">
|
314
|
+
<!-- ex: final-draft -->
|
315
|
+
<xsl:with-param name="str" select="/mn:metanorma/mn:bibdata/mn:status/mn:stage"/>
|
316
|
+
</xsl:call-template>
|
317
|
+
<xsl:text> </xsl:text>
|
318
|
+
<xsl:call-template name="capitalizeWords">
|
319
|
+
<!-- ex: standard -->
|
320
|
+
<xsl:with-param name="str" select="/mn:metanorma/mn:bibdata/mn:ext/mn:doctype"/>
|
321
|
+
</xsl:call-template>
|
322
|
+
</fo:block>
|
323
|
+
</fo:block-container>
|
324
|
+
</fo:block-container>
|
325
|
+
<fo:block margin-bottom="10pt"> </fo:block>
|
326
|
+
<fo:block-container font-size="10pt" border="0.5pt solid black" margin-bottom="12pt" margin-left="-1mm" margin-right="-1mm">
|
327
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
328
|
+
<fo:block text-align="center" font-weight="bold" padding-top="1mm" margin-bottom="6pt">Warning for drafts</fo:block>
|
329
|
+
<fo:block margin-left="2mm" margin-right="2mm">
|
330
|
+
<fo:block margin-bottom="6pt">This document is not a CalConnect Standard. It is distributed for review and comment, and is subject to change without notice and may not be referred to as a Standard. Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
|
331
|
+
<fo:block margin-bottom="10pt">Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.</fo:block>
|
332
|
+
</fo:block>
|
333
|
+
</fo:block-container>
|
334
|
+
</fo:block-container>
|
335
|
+
<fo:block text-align="center">
|
336
|
+
<xsl:text>The Calendaring and Scheduling Consortium, Inc. </xsl:text>
|
337
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
|
338
|
+
</fo:block>
|
339
|
+
</fo:flow>
|
340
|
+
</fo:page-sequence>
|
341
|
+
</xsl:otherwise>
|
342
|
+
</xsl:choose>
|
336
343
|
</xsl:template> <!-- END: cover-page -->
|
337
344
|
|
338
345
|
<xsl:template name="inner-cover-page">
|
@@ -633,6 +640,11 @@
|
|
633
640
|
</xsl:template>
|
634
641
|
|
635
642
|
<xsl:template name="insertHeaderFooter">
|
643
|
+
<xsl:call-template name="insertHeader"/>
|
644
|
+
<xsl:call-template name="insertFooter"/>
|
645
|
+
</xsl:template>
|
646
|
+
|
647
|
+
<xsl:template name="insertHeader">
|
636
648
|
<fo:static-content flow-name="header-even" role="artifact">
|
637
649
|
<fo:block-container height="17mm" display-align="before">
|
638
650
|
<fo:block padding-top="12.5mm">
|
@@ -640,6 +652,16 @@
|
|
640
652
|
</fo:block>
|
641
653
|
</fo:block-container>
|
642
654
|
</fo:static-content>
|
655
|
+
<fo:static-content flow-name="header-odd" role="artifact">
|
656
|
+
<fo:block-container height="17mm" display-align="before">
|
657
|
+
<fo:block text-align="right" padding-top="12.5mm">
|
658
|
+
<xsl:value-of select="$header"/>
|
659
|
+
</fo:block>
|
660
|
+
</fo:block-container>
|
661
|
+
</fo:static-content>
|
662
|
+
</xsl:template>
|
663
|
+
|
664
|
+
<xsl:template name="insertFooter">
|
643
665
|
<fo:static-content flow-name="footer-even" role="artifact">
|
644
666
|
<fo:block-container font-size="10pt" height="100%" display-align="after">
|
645
667
|
<fo:table table-layout="fixed" width="100%">
|
@@ -658,13 +680,6 @@
|
|
658
680
|
</fo:table>
|
659
681
|
</fo:block-container>
|
660
682
|
</fo:static-content>
|
661
|
-
<fo:static-content flow-name="header-odd" role="artifact">
|
662
|
-
<fo:block-container height="17mm" display-align="before">
|
663
|
-
<fo:block text-align="right" padding-top="12.5mm">
|
664
|
-
<xsl:value-of select="$header"/>
|
665
|
-
</fo:block>
|
666
|
-
</fo:block-container>
|
667
|
-
</fo:static-content>
|
668
683
|
<fo:static-content flow-name="footer-odd" role="artifact">
|
669
684
|
<fo:block-container font-size="10pt" height="100%" display-align="after">
|
670
685
|
<fo:table table-layout="fixed" width="100%">
|
@@ -3941,87 +3956,81 @@
|
|
3941
3956
|
<xsl:template name="refine_term-style">
|
3942
3957
|
</xsl:template>
|
3943
3958
|
|
3944
|
-
<xsl:attribute-set name="term-
|
3959
|
+
<xsl:attribute-set name="term-number-style">
|
3945
3960
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3946
3961
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3947
3962
|
</xsl:attribute-set> <!-- term-name-style -->
|
3948
3963
|
|
3949
|
-
<xsl:template name="refine_term-
|
3964
|
+
<xsl:template name="refine_term-number-style">
|
3950
3965
|
</xsl:template>
|
3951
3966
|
|
3952
|
-
<xsl:attribute-set name="preferred-style">
|
3953
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
3954
|
-
|
3955
|
-
<xsl:template name="refine_preferred-style">
|
3956
|
-
</xsl:template>
|
3957
|
-
|
3958
|
-
<xsl:attribute-set name="preferred-block-style">
|
3967
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
3959
3968
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
3960
3969
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
3961
3970
|
|
3962
|
-
<xsl:template name="
|
3971
|
+
<xsl:template name="refine_term-preferred-block-style">
|
3963
3972
|
</xsl:template>
|
3964
3973
|
|
3965
|
-
<xsl:attribute-set name="preferred-
|
3974
|
+
<xsl:attribute-set name="term-preferred-style">
|
3966
3975
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3967
3976
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3968
3977
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
3969
3978
|
|
3970
|
-
<xsl:template name="
|
3979
|
+
<xsl:template name="refine_term-preferred-style">
|
3971
3980
|
<xsl:if test="mn:strong">
|
3972
3981
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
3973
3982
|
</xsl:if>
|
3974
3983
|
</xsl:template>
|
3975
3984
|
|
3976
|
-
<xsl:attribute-set name="domain-style">
|
3977
|
-
</xsl:attribute-set> <!-- domain-style -->
|
3985
|
+
<xsl:attribute-set name="term-domain-style">
|
3986
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
3978
3987
|
|
3979
|
-
<xsl:template name="
|
3988
|
+
<xsl:template name="refine_term-domain-style">
|
3980
3989
|
</xsl:template>
|
3981
3990
|
|
3982
|
-
<xsl:attribute-set name="admitted-style">
|
3983
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
3991
|
+
<xsl:attribute-set name="term-admitted-style">
|
3992
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
3984
3993
|
|
3985
|
-
<xsl:template name="
|
3994
|
+
<xsl:template name="refine_term-admitted-style">
|
3986
3995
|
</xsl:template>
|
3987
3996
|
|
3988
|
-
<xsl:attribute-set name="deprecates-style">
|
3989
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
3997
|
+
<xsl:attribute-set name="term-deprecates-style">
|
3998
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
3990
3999
|
|
3991
|
-
<xsl:template name="
|
4000
|
+
<xsl:template name="refine_term-deprecates-style">
|
3992
4001
|
</xsl:template>
|
3993
4002
|
|
3994
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4003
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
3995
4004
|
</xsl:attribute-set>
|
3996
4005
|
|
3997
|
-
<xsl:template name="
|
4006
|
+
<xsl:template name="refine_term-related-block-style">
|
3998
4007
|
</xsl:template>
|
3999
4008
|
|
4000
|
-
<xsl:attribute-set name="definition-style">
|
4009
|
+
<xsl:attribute-set name="term-definition-style">
|
4001
4010
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4002
|
-
</xsl:attribute-set> <!-- definition-style -->
|
4011
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
4003
4012
|
|
4004
|
-
<xsl:template name="
|
4013
|
+
<xsl:template name="refine_term-definition-style">
|
4005
4014
|
</xsl:template>
|
4006
4015
|
|
4007
|
-
<xsl:attribute-set name="termsource-style">
|
4016
|
+
<xsl:attribute-set name="term-termsource-style">
|
4008
4017
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4009
4018
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4010
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
4019
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
4011
4020
|
|
4012
|
-
<xsl:template name="
|
4013
|
-
</xsl:template> <!--
|
4021
|
+
<xsl:template name="refine_term-termsource-style">
|
4022
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
4014
4023
|
|
4015
|
-
<xsl:attribute-set name="termsource-text-style">
|
4016
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
4024
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
4025
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
4017
4026
|
|
4018
|
-
<xsl:template name="
|
4027
|
+
<xsl:template name="refine_term-termsource-text-style">
|
4019
4028
|
</xsl:template>
|
4020
4029
|
|
4021
|
-
<xsl:attribute-set name="origin-style">
|
4022
|
-
</xsl:attribute-set> <!-- origin-style -->
|
4030
|
+
<xsl:attribute-set name="term-origin-style">
|
4031
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
4023
4032
|
|
4024
|
-
<xsl:template name="
|
4033
|
+
<xsl:template name="refine_term-origin-style">
|
4025
4034
|
</xsl:template>
|
4026
4035
|
|
4027
4036
|
<!-- ====== -->
|
@@ -4065,9 +4074,9 @@
|
|
4065
4074
|
<!-- modification -->
|
4066
4075
|
<!-- ====== -->
|
4067
4076
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
4068
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
4077
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
4069
4078
|
|
4070
|
-
<xsl:call-template name="
|
4079
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
4071
4080
|
|
4072
4081
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4073
4082
|
<xsl:variable name="termsource_text">
|
@@ -4115,8 +4124,8 @@
|
|
4115
4124
|
|
4116
4125
|
<!-- text SOURCE: -->
|
4117
4126
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
4118
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4119
|
-
<xsl:call-template name="
|
4127
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
4128
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
4120
4129
|
<xsl:value-of select="."/>
|
4121
4130
|
</fo:inline>
|
4122
4131
|
</xsl:template>
|
@@ -4128,8 +4137,8 @@
|
|
4128
4137
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4129
4138
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4130
4139
|
</xsl:if>
|
4131
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
4132
|
-
<xsl:call-template name="
|
4140
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
4141
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
4133
4142
|
<xsl:apply-templates/>
|
4134
4143
|
</fo:inline>
|
4135
4144
|
</fo:basic-link>
|
@@ -4182,14 +4191,14 @@
|
|
4182
4191
|
<xsl:variable name="levelTerm">
|
4183
4192
|
<xsl:call-template name="getLevelTermName"/>
|
4184
4193
|
</xsl:variable>
|
4185
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
4194
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
4186
4195
|
|
4187
|
-
<xsl:call-template name="
|
4196
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
4188
4197
|
|
4189
4198
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
4190
4199
|
|
4191
|
-
<fo:block xsl:use-attribute-sets="term-
|
4192
|
-
<xsl:call-template name="refine_term-
|
4200
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
4201
|
+
<xsl:call-template name="refine_term-number-style"/>
|
4193
4202
|
|
4194
4203
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
4195
4204
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -4199,8 +4208,8 @@
|
|
4199
4208
|
</fo:block>
|
4200
4209
|
</xsl:if>
|
4201
4210
|
|
4202
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
4203
|
-
<xsl:call-template name="
|
4211
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
4212
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
4204
4213
|
|
4205
4214
|
<xsl:apply-templates/>
|
4206
4215
|
</fo:block>
|
@@ -4220,15 +4229,15 @@
|
|
4220
4229
|
<xsl:template match="mn:domain"/>
|
4221
4230
|
|
4222
4231
|
<xsl:template match="mn:fmt-admitted">
|
4223
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
4224
|
-
<xsl:call-template name="
|
4232
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
4233
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
4225
4234
|
<xsl:apply-templates/>
|
4226
4235
|
</fo:block>
|
4227
4236
|
</xsl:template>
|
4228
4237
|
|
4229
4238
|
<xsl:template match="mn:fmt-deprecates">
|
4230
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
4231
|
-
<xsl:call-template name="
|
4239
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
4240
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
4232
4241
|
<xsl:apply-templates/>
|
4233
4242
|
</fo:block>
|
4234
4243
|
</xsl:template>
|
@@ -4241,8 +4250,8 @@
|
|
4241
4250
|
<!-- End Preferred, admitted, deprecated -->
|
4242
4251
|
|
4243
4252
|
<xsl:template match="mn:fmt-related">
|
4244
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
4245
|
-
<xsl:call-template name="
|
4253
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
4254
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
4246
4255
|
<xsl:apply-templates/>
|
4247
4256
|
</fo:block>
|
4248
4257
|
</xsl:template>
|
@@ -4256,8 +4265,8 @@
|
|
4256
4265
|
<!-- definition -->
|
4257
4266
|
<!-- ========== -->
|
4258
4267
|
<xsl:template match="mn:fmt-definition">
|
4259
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
4260
|
-
<xsl:call-template name="
|
4268
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
4269
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
4261
4270
|
<xsl:apply-templates/>
|
4262
4271
|
</fo:block>
|
4263
4272
|
</xsl:template>
|
@@ -14058,6 +14067,20 @@
|
|
14058
14067
|
</fo:block-container>
|
14059
14068
|
</xsl:template>
|
14060
14069
|
|
14070
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
14071
|
+
<xsl:template name="insertCoverPageFullImage">
|
14072
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
14073
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
14074
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
14075
|
+
<fo:flow flow-name="xsl-region-body">
|
14076
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
14077
|
+
<xsl:with-param name="number" select="position()"/>
|
14078
|
+
</xsl:call-template>
|
14079
|
+
</fo:flow>
|
14080
|
+
</fo:page-sequence>
|
14081
|
+
</xsl:for-each>
|
14082
|
+
</xsl:template>
|
14083
|
+
|
14061
14084
|
<xsl:template name="insertPageImage">
|
14062
14085
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
14063
14086
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
data/lib/metanorma/cc/biblio.rng
CHANGED
@@ -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
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
@@ -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/lib/metanorma/cc/version.rb
CHANGED
data/metanorma-cc.gemspec
CHANGED
@@ -42,5 +42,5 @@ spec.add_development_dependency "rubocop-performance"
|
|
42
42
|
spec.add_development_dependency "sassc-embedded", "~> 1"
|
43
43
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
44
44
|
spec.add_development_dependency "timecop", "~> 0.9"
|
45
|
-
spec.add_development_dependency "canon"
|
45
|
+
spec.add_development_dependency "canon", "= 0.1.3"
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.6
|
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: metanorma-generic
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: canon
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.1.3
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - '='
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 0.1.3
|
195
195
|
description: |
|
196
196
|
metanorma-cc lets you write CalConnect standards in AsciiDoc syntax.
|
197
197
|
|