metanorma-cc 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/cc/front.rb +2 -31
- data/lib/isodoc/cc/csd.standard.xsl +187 -45
- data/lib/metanorma/cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b777189df0dcda0fc49be5e385efb30eba5cc182f5cd0461adf8bd5d05c2ed78
|
4
|
+
data.tar.gz: 698ee6cae298e5f62b5685f91f3e98065d1eddf60ef2c7c5ca0a839677219774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7f991613a144f45a42794374726472da11a6471b221cb99fa23f11cd07098620b33473c3f464bfce4950fcf52c90cb4034f15c7fd91c12d095bb7b00ab79869
|
7
|
+
data.tar.gz: 5d842773cad0f757cd80074a8a8cbf4620d634066ced880298f2d1e73198c96fc7b3f0d86b8eafb0eebd5f787d1b14d6a39d802d3482b23ffe8a5379bfd0d04f
|
data/lib/asciidoctor/cc/front.rb
CHANGED
@@ -4,26 +4,9 @@ require "fileutils"
|
|
4
4
|
|
5
5
|
module Asciidoctor
|
6
6
|
module CC
|
7
|
-
|
8
7
|
class Converter < Standoc::Converter
|
9
|
-
|
10
|
-
|
11
|
-
xml.contributor do |c|
|
12
|
-
c.role **{ type: "author" }
|
13
|
-
c.organization do |a|
|
14
|
-
a.name "CalConnect"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
personal_author(node, xml)
|
18
|
-
end
|
19
|
-
|
20
|
-
def metadata_publisher(node, xml)
|
21
|
-
xml.contributor do |c|
|
22
|
-
c.role **{ type: "publisher" }
|
23
|
-
c.organization do |a|
|
24
|
-
a.name "CalConnect"
|
25
|
-
end
|
26
|
-
end
|
8
|
+
def default_publisher
|
9
|
+
"CalConnect"
|
27
10
|
end
|
28
11
|
|
29
12
|
def metadata_committee(node, xml)
|
@@ -76,18 +59,6 @@ module Asciidoctor
|
|
76
59
|
end
|
77
60
|
d
|
78
61
|
end
|
79
|
-
|
80
|
-
def metadata_copyright(node, xml)
|
81
|
-
from = node.attr("copyright-year") || Date.today.year
|
82
|
-
xml.copyright do |c|
|
83
|
-
c.from from
|
84
|
-
c.owner do |owner|
|
85
|
-
owner.organization do |o|
|
86
|
-
o.name "CalConnect"
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
62
|
end
|
92
63
|
end
|
93
64
|
end
|
@@ -26,20 +26,8 @@
|
|
26
26
|
|
27
27
|
<xsl:variable name="contents">
|
28
28
|
<contents>
|
29
|
-
<xsl:
|
30
|
-
|
31
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:sections/csd:clause[1]" mode="contents"/> <!-- [@id = '_scope'] -->
|
32
|
-
|
33
|
-
<!-- Normative references -->
|
34
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[1]" mode="contents"/> <!-- [@id = '_normative_references'] -->
|
35
|
-
|
36
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:sections/*[position() > 1]" mode="contents"/> <!-- @id != '_scope' -->
|
37
|
-
|
38
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:annex" mode="contents"/>
|
39
|
-
|
40
|
-
<!-- Bibliography -->
|
41
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[position() > 1]" mode="contents"/> <!-- @id = '_bibliography' -->
|
42
|
-
|
29
|
+
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
30
|
+
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
43
31
|
</contents>
|
44
32
|
</xsl:variable>
|
45
33
|
|
@@ -261,14 +249,7 @@
|
|
261
249
|
</fo:list-item-label>
|
262
250
|
<fo:list-item-body start-indent="body-start()">
|
263
251
|
<fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
|
264
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
|
265
|
-
<!-- <xsl:if test="@section and @display-section = 'false'">
|
266
|
-
<xsl:value-of select="@section"/><xsl:text> </xsl:text>
|
267
|
-
</xsl:if>
|
268
|
-
<xsl:if test="@addon != ''">
|
269
|
-
<xsl:text>(</xsl:text><xsl:value-of select="@addon"/><xsl:text>)</xsl:text>
|
270
|
-
</xsl:if>
|
271
|
-
<xsl:text> </xsl:text><xsl:value-of select="text()"/> -->
|
252
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
|
272
253
|
<xsl:apply-templates/>
|
273
254
|
<fo:inline keep-together.within-line="always">
|
274
255
|
<fo:leader leader-pattern="dots"/>
|
@@ -283,8 +264,8 @@
|
|
283
264
|
</xsl:for-each>
|
284
265
|
</fo:block-container>
|
285
266
|
|
286
|
-
<!-- Foreword, Introduction -->
|
287
|
-
<xsl:
|
267
|
+
<!-- Foreword, Introduction -->
|
268
|
+
<xsl:call-template name="processPrefaceSectionsDefault"/>
|
288
269
|
|
289
270
|
</fo:flow>
|
290
271
|
</fo:page-sequence>
|
@@ -303,19 +284,7 @@
|
|
303
284
|
<xsl:value-of select="/csd:csd-standard/csd:bibdata/csd:title[@language = 'en']"/>
|
304
285
|
</fo:block>
|
305
286
|
<fo:block>
|
306
|
-
<xsl:
|
307
|
-
|
308
|
-
<!-- Normative references -->
|
309
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[1]"/>
|
310
|
-
|
311
|
-
<!-- Other Sections -->
|
312
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:sections/*[position() > 1]"/>
|
313
|
-
|
314
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:annex"/>
|
315
|
-
|
316
|
-
<!-- Bibliography -->
|
317
|
-
<xsl:apply-templates select="/csd:csd-standard/csd:bibliography/csd:references[position() > 1]"/>
|
318
|
-
|
287
|
+
<xsl:call-template name="processMainSectionsDefault"/>
|
319
288
|
</fo:block>
|
320
289
|
</fo:flow>
|
321
290
|
</fo:page-sequence>
|
@@ -662,7 +631,7 @@
|
|
662
631
|
|
663
632
|
|
664
633
|
<!-- <xsl:template match="csd:references[@id = '_bibliography']"> -->
|
665
|
-
<xsl:template match="csd:references[
|
634
|
+
<xsl:template match="csd:references[not(@normative='true')]">
|
666
635
|
<fo:block break-after="page"/>
|
667
636
|
<fo:block id="{@id}">
|
668
637
|
<xsl:apply-templates/>
|
@@ -672,7 +641,7 @@
|
|
672
641
|
|
673
642
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
674
643
|
<!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem"> -->
|
675
|
-
<xsl:template match="csd:references[
|
644
|
+
<xsl:template match="csd:references[not(@normative='true')]/csd:bibitem">
|
676
645
|
<fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm">
|
677
646
|
<fo:list-item>
|
678
647
|
<fo:list-item-label end-indent="label-end()">
|
@@ -707,10 +676,10 @@
|
|
707
676
|
</xsl:template>
|
708
677
|
|
709
678
|
<!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem" mode="contents"/> -->
|
710
|
-
<xsl:template match="csd:references[
|
679
|
+
<xsl:template match="csd:references[not(@normative='true')]/csd:bibitem" mode="contents"/>
|
711
680
|
|
712
681
|
<!-- <xsl:template match="csd:references[@id = '_bibliography']/csd:bibitem/csd:title"> -->
|
713
|
-
<xsl:template match="csd:references[
|
682
|
+
<xsl:template match="csd:references[not(@normative='true')]/csd:bibitem/csd:title">
|
714
683
|
<fo:inline font-style="italic">
|
715
684
|
<xsl:apply-templates/>
|
716
685
|
</fo:inline>
|
@@ -1006,6 +975,7 @@
|
|
1006
975
|
|
1007
976
|
<xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
1008
977
|
|
978
|
+
|
1009
979
|
</xsl:attribute-set><xsl:attribute-set name="example-name-style">
|
1010
980
|
|
1011
981
|
|
@@ -1024,6 +994,8 @@
|
|
1024
994
|
|
1025
995
|
|
1026
996
|
|
997
|
+
|
998
|
+
|
1027
999
|
|
1028
1000
|
|
1029
1001
|
</xsl:attribute-set><xsl:attribute-set name="example-p-style">
|
@@ -1040,6 +1012,8 @@
|
|
1040
1012
|
|
1041
1013
|
|
1042
1014
|
|
1015
|
+
|
1016
|
+
|
1043
1017
|
</xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
|
1044
1018
|
|
1045
1019
|
<xsl:attribute name="padding-right">10mm</xsl:attribute>
|
@@ -1063,6 +1037,7 @@
|
|
1063
1037
|
|
1064
1038
|
|
1065
1039
|
|
1040
|
+
|
1066
1041
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1067
1042
|
|
1068
1043
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
@@ -1200,7 +1175,7 @@
|
|
1200
1175
|
|
1201
1176
|
|
1202
1177
|
|
1203
|
-
|
1178
|
+
|
1204
1179
|
</xsl:attribute-set><xsl:attribute-set name="formula-style">
|
1205
1180
|
|
1206
1181
|
</xsl:attribute-set><xsl:attribute-set name="image-style">
|
@@ -1245,7 +1220,43 @@
|
|
1245
1220
|
|
1246
1221
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1247
1222
|
|
1248
|
-
</xsl:attribute-set><xsl:template
|
1223
|
+
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1224
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1225
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
1226
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
1227
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
1228
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
1229
|
+
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1230
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
1231
|
+
|
1232
|
+
<!-- Normative references -->
|
1233
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
|
1234
|
+
<!-- Terms and definitions -->
|
1235
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
|
1236
|
+
<!-- Another main sections -->
|
1237
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
|
1238
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
1239
|
+
<!-- Bibliography -->
|
1240
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
|
1241
|
+
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
1242
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
1243
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
1244
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
1245
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
1246
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
1247
|
+
</xsl:template><xsl:template name="processMainSectionsDefault">
|
1248
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
1249
|
+
|
1250
|
+
<!-- Normative references -->
|
1251
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
1252
|
+
<!-- Terms and definitions -->
|
1253
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
|
1254
|
+
<!-- Another main sections -->
|
1255
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
|
1256
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
1257
|
+
<!-- Bibliography -->
|
1258
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
1259
|
+
</xsl:template><xsl:template match="text()">
|
1249
1260
|
<xsl:value-of select="."/>
|
1250
1261
|
</xsl:template><xsl:template match="*[local-name()='br']">
|
1251
1262
|
<xsl:value-of select="$linebreak"/>
|
@@ -1324,6 +1335,7 @@
|
|
1324
1335
|
|
1325
1336
|
|
1326
1337
|
|
1338
|
+
|
1327
1339
|
<fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
|
1328
1340
|
|
1329
1341
|
|
@@ -1338,6 +1350,7 @@
|
|
1338
1350
|
|
1339
1351
|
|
1340
1352
|
|
1353
|
+
|
1341
1354
|
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1342
1355
|
<xsl:choose>
|
1343
1356
|
<xsl:when test=". = 1 or . = 0">
|
@@ -1588,6 +1601,15 @@
|
|
1588
1601
|
</fo:table-row>
|
1589
1602
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
1590
1603
|
<fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
|
1604
|
+
<xsl:attribute name="text-align">
|
1605
|
+
<xsl:choose>
|
1606
|
+
<xsl:when test="@align">
|
1607
|
+
<xsl:value-of select="@align"/>
|
1608
|
+
</xsl:when>
|
1609
|
+
<xsl:otherwise>center</xsl:otherwise>
|
1610
|
+
</xsl:choose>
|
1611
|
+
</xsl:attribute>
|
1612
|
+
|
1591
1613
|
|
1592
1614
|
|
1593
1615
|
|
@@ -1612,6 +1634,14 @@
|
|
1612
1634
|
</fo:table-cell>
|
1613
1635
|
</xsl:template><xsl:template match="*[local-name()='td']">
|
1614
1636
|
<fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
|
1637
|
+
<xsl:attribute name="text-align">
|
1638
|
+
<xsl:choose>
|
1639
|
+
<xsl:when test="@align">
|
1640
|
+
<xsl:value-of select="@align"/>
|
1641
|
+
</xsl:when>
|
1642
|
+
<xsl:otherwise>left</xsl:otherwise>
|
1643
|
+
</xsl:choose>
|
1644
|
+
</xsl:attribute>
|
1615
1645
|
|
1616
1646
|
|
1617
1647
|
|
@@ -2804,6 +2834,117 @@
|
|
2804
2834
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
2805
2835
|
<xsl:apply-templates/>
|
2806
2836
|
</fo:block>
|
2837
|
+
</xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
2838
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
2839
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
2840
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
|
2841
|
+
<xsl:variable name="simple-table">
|
2842
|
+
<xsl:call-template name="getSimpleTable"/>
|
2843
|
+
</xsl:variable>
|
2844
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
2845
|
+
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
2846
|
+
<fo:table-column column-width="35mm"/>
|
2847
|
+
<fo:table-column column-width="115mm"/>
|
2848
|
+
</xsl:if>
|
2849
|
+
<xsl:apply-templates mode="requirement"/>
|
2850
|
+
</fo:table>
|
2851
|
+
<!-- fn processing -->
|
2852
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
2853
|
+
<xsl:for-each select="*[local-name() = 'tbody']">
|
2854
|
+
<fo:block font-size="90%" border-bottom="1.pt solid black">
|
2855
|
+
<xsl:call-template name="fn_display"/>
|
2856
|
+
</fo:block>
|
2857
|
+
</xsl:for-each>
|
2858
|
+
</xsl:if>
|
2859
|
+
</fo:block-container>
|
2860
|
+
</fo:block-container>
|
2861
|
+
</xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
|
2862
|
+
<fo:table-header>
|
2863
|
+
<xsl:apply-templates mode="requirement"/>
|
2864
|
+
</fo:table-header>
|
2865
|
+
</xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
|
2866
|
+
<fo:table-body>
|
2867
|
+
<xsl:apply-templates mode="requirement"/>
|
2868
|
+
</fo:table-body>
|
2869
|
+
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
2870
|
+
<fo:table-row>
|
2871
|
+
<xsl:apply-templates mode="requirement"/>
|
2872
|
+
</fo:table-row>
|
2873
|
+
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
2874
|
+
<fo:table-cell text-align="{@align}">
|
2875
|
+
<xsl:attribute name="text-align">
|
2876
|
+
<xsl:choose>
|
2877
|
+
<xsl:when test="@align">
|
2878
|
+
<xsl:value-of select="@align"/>
|
2879
|
+
</xsl:when>
|
2880
|
+
<xsl:otherwise>center</xsl:otherwise>
|
2881
|
+
</xsl:choose>
|
2882
|
+
</xsl:attribute>
|
2883
|
+
<xsl:if test="@colspan">
|
2884
|
+
<xsl:attribute name="number-columns-spanned">
|
2885
|
+
<xsl:value-of select="@colspan"/>
|
2886
|
+
</xsl:attribute>
|
2887
|
+
</xsl:if>
|
2888
|
+
<xsl:if test="@rowspan">
|
2889
|
+
<xsl:attribute name="number-rows-spanned">
|
2890
|
+
<xsl:value-of select="@rowspan"/>
|
2891
|
+
</xsl:attribute>
|
2892
|
+
</xsl:if>
|
2893
|
+
|
2894
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
2895
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
2896
|
+
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
2897
|
+
</xsl:if>
|
2898
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
2899
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
2900
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
2901
|
+
</xsl:if>
|
2902
|
+
|
2903
|
+
<fo:block>
|
2904
|
+
<xsl:apply-templates/>
|
2905
|
+
</fo:block>
|
2906
|
+
</fo:table-cell>
|
2907
|
+
</xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
|
2908
|
+
<fo:table-cell text-align="{@align}">
|
2909
|
+
<xsl:attribute name="text-align">
|
2910
|
+
<xsl:choose>
|
2911
|
+
<xsl:when test="@align">
|
2912
|
+
<xsl:value-of select="@align"/>
|
2913
|
+
</xsl:when>
|
2914
|
+
<xsl:otherwise>left</xsl:otherwise>
|
2915
|
+
</xsl:choose>
|
2916
|
+
</xsl:attribute>
|
2917
|
+
<xsl:if test="@colspan">
|
2918
|
+
<xsl:attribute name="number-columns-spanned">
|
2919
|
+
<xsl:value-of select="@colspan"/>
|
2920
|
+
</xsl:attribute>
|
2921
|
+
</xsl:if>
|
2922
|
+
<xsl:if test="@rowspan">
|
2923
|
+
<xsl:attribute name="number-rows-spanned">
|
2924
|
+
<xsl:value-of select="@rowspan"/>
|
2925
|
+
</xsl:attribute>
|
2926
|
+
</xsl:if>
|
2927
|
+
|
2928
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
2929
|
+
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
2930
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
2931
|
+
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
|
2932
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
2933
|
+
</xsl:if>
|
2934
|
+
</xsl:if>
|
2935
|
+
|
2936
|
+
<fo:block>
|
2937
|
+
<xsl:apply-templates/>
|
2938
|
+
</fo:block>
|
2939
|
+
</fo:table-cell>
|
2940
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
2941
|
+
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
|
2942
|
+
<xsl:apply-templates/>
|
2943
|
+
</fo:block>
|
2944
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
2945
|
+
<fo:block margin-bottom="10pt">
|
2946
|
+
<xsl:apply-templates/>
|
2947
|
+
</fo:block>
|
2807
2948
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
2808
2949
|
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
2809
2950
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -3090,7 +3231,7 @@
|
|
3090
3231
|
<fo:block id="{@id}">
|
3091
3232
|
<xsl:apply-templates/>
|
3092
3233
|
</fo:block>
|
3093
|
-
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@
|
3234
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
3094
3235
|
|
3095
3236
|
<fo:block id="{@id}">
|
3096
3237
|
<xsl:apply-templates/>
|
@@ -3342,7 +3483,8 @@
|
|
3342
3483
|
|
3343
3484
|
|
3344
3485
|
|
3345
|
-
|
3486
|
+
|
3487
|
+
|
3346
3488
|
</xsl:variable>
|
3347
3489
|
<xsl:if test="$documentNS != $XSLNS">
|
3348
3490
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
data/lib/metanorma/cc/version.rb
CHANGED
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: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|