metanorma-csa 2.2.9 → 2.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/csa/csa.standard.xsl +153 -45
- data/lib/metanorma/csa/boilerplate.adoc +35 -0
- data/lib/metanorma/csa/isodoc.rng +18 -0
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma.yml +1 -0
- metadata +3 -3
- data/lib/metanorma/csa/boilerplate.xml +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0354818d41d11101f7b6c8887da47415bc21aa1ea6d09401ca2327123653042d'
|
4
|
+
data.tar.gz: ef4b3538d19b0dad0a4e690b6d54bccf94038afb4ccc7b4eb59a3e1ada381f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2b1c575115cc72dee940c2f299507562733521fa3ca4885de4cd493e3db6ef437a3d9975eed9264d693e0a3cbcf3b31fccc747900dad16d5d8f23c77e130e9
|
7
|
+
data.tar.gz: 320844b64ebad5514704255397a55f818ba32a80a63b402f4590ba8ac100a3d141930fbe1f8f0e69b67439bbe3df27da4b3841e78b32adc439dcccf437654ddf
|
@@ -1560,6 +1560,10 @@
|
|
1560
1560
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
1561
1561
|
<!-- End Formula's styles -->
|
1562
1562
|
|
1563
|
+
<xsl:template name="refine_formula-stem-number-style">
|
1564
|
+
|
1565
|
+
</xsl:template>
|
1566
|
+
|
1563
1567
|
<xsl:attribute-set name="image-style">
|
1564
1568
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1565
1569
|
|
@@ -2058,13 +2062,13 @@
|
|
2058
2062
|
|
2059
2063
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
2060
2064
|
<xsl:variable name="nodes_preface_">
|
2061
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2065
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2062
2066
|
<node id="{@id}"/>
|
2063
2067
|
</xsl:for-each>
|
2064
2068
|
</xsl:variable>
|
2065
2069
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
2066
2070
|
|
2067
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2071
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2068
2072
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2069
2073
|
|
2070
2074
|
<!-- process Section's title -->
|
@@ -2098,12 +2102,12 @@
|
|
2098
2102
|
<xsl:apply-templates select="." mode="contents"/>
|
2099
2103
|
</xsl:for-each>
|
2100
2104
|
|
2101
|
-
<xsl:for-each select="/*/*[local-name()='annex']">
|
2105
|
+
<!-- <xsl:for-each select="/*/*[local-name()='annex']">
|
2102
2106
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2103
2107
|
<xsl:apply-templates select="." mode="contents"/>
|
2104
|
-
</xsl:for-each>
|
2108
|
+
</xsl:for-each> -->
|
2105
2109
|
|
2106
|
-
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
2110
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
2107
2111
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2108
2112
|
<xsl:apply-templates select="." mode="contents"/>
|
2109
2113
|
</xsl:for-each>
|
@@ -2467,7 +2471,7 @@
|
|
2467
2471
|
</xsl:attribute>
|
2468
2472
|
</xsl:for-each>
|
2469
2473
|
|
2470
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2474
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2471
2475
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
2472
2476
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2473
2477
|
</xsl:if>
|
@@ -2511,7 +2515,7 @@
|
|
2511
2515
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
2512
2516
|
</xsl:when>
|
2513
2517
|
<xsl:otherwise>
|
2514
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2518
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2515
2519
|
</xsl:otherwise>
|
2516
2520
|
</xsl:choose>
|
2517
2521
|
|
@@ -2556,7 +2560,7 @@
|
|
2556
2560
|
<fo:table-row>
|
2557
2561
|
<fo:table-cell column-number="2">
|
2558
2562
|
<xsl:copy-of select="$table-preamble"/>
|
2559
|
-
<fo:block>
|
2563
|
+
<fo:block role="SKIP">
|
2560
2564
|
<xsl:call-template name="setTrackChangesStyles">
|
2561
2565
|
<xsl:with-param name="isAdded" select="$isAdded"/>
|
2562
2566
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
@@ -2599,7 +2603,7 @@
|
|
2599
2603
|
<xsl:param name="continued"/>
|
2600
2604
|
<xsl:if test="normalize-space() != ''">
|
2601
2605
|
|
2602
|
-
<fo:block xsl:use-attribute-sets="table-name-style">
|
2606
|
+
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
|
2603
2607
|
|
2604
2608
|
<xsl:call-template name="refine_table-name-style">
|
2605
2609
|
<xsl:with-param name="continued" select="$continued"/>
|
@@ -2984,8 +2988,8 @@
|
|
2984
2988
|
<xsl:template name="table-header-title">
|
2985
2989
|
<xsl:param name="cols-count"/>
|
2986
2990
|
<!-- row for title -->
|
2987
|
-
<fo:table-row>
|
2988
|
-
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
|
2991
|
+
<fo:table-row role="SKIP">
|
2992
|
+
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
|
2989
2993
|
|
2990
2994
|
<xsl:call-template name="refine_table-header-title-style"/>
|
2991
2995
|
|
@@ -2994,7 +2998,7 @@
|
|
2994
2998
|
</xsl:apply-templates>
|
2995
2999
|
|
2996
3000
|
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
2997
|
-
<fo:block/>
|
3001
|
+
<fo:block role="SKIP"/>
|
2998
3002
|
</xsl:if>
|
2999
3003
|
|
3000
3004
|
</fo:table-cell>
|
@@ -3029,7 +3033,7 @@
|
|
3029
3033
|
<xsl:param name="colwidths"/>
|
3030
3034
|
<xsl:param name="colgroup"/>
|
3031
3035
|
|
3032
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3036
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3033
3037
|
|
3034
3038
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3035
3039
|
|
@@ -3102,6 +3106,7 @@
|
|
3102
3106
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3103
3107
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3104
3108
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3109
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3105
3110
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3106
3111
|
|
3107
3112
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -3110,7 +3115,7 @@
|
|
3110
3115
|
|
3111
3116
|
<!-- horizontal row separator -->
|
3112
3117
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3113
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
3118
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3114
3119
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3115
3120
|
|
3116
3121
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -3304,7 +3309,7 @@
|
|
3304
3309
|
|
3305
3310
|
<xsl:call-template name="refine_table-header-cell-style"/>
|
3306
3311
|
|
3307
|
-
<fo:block>
|
3312
|
+
<fo:block role="SKIP">
|
3308
3313
|
<xsl:apply-templates/>
|
3309
3314
|
</fo:block>
|
3310
3315
|
</fo:table-cell>
|
@@ -3357,7 +3362,7 @@
|
|
3357
3362
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
3358
3363
|
</xsl:if>
|
3359
3364
|
|
3360
|
-
<fo:block>
|
3365
|
+
<fo:block role="SKIP">
|
3361
3366
|
|
3362
3367
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
3363
3368
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -3371,13 +3376,13 @@
|
|
3371
3376
|
</fo:table-cell>
|
3372
3377
|
</xsl:template> <!-- td -->
|
3373
3378
|
|
3374
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
3379
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
3375
3380
|
|
3376
3381
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
3377
3382
|
|
3378
3383
|
<xsl:call-template name="refine_table-note-style"/>
|
3379
3384
|
|
3380
|
-
<!-- Table's note name (NOTE, for example) -->
|
3385
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
3381
3386
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3382
3387
|
|
3383
3388
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -3391,7 +3396,7 @@
|
|
3391
3396
|
|
3392
3397
|
</xsl:template> <!-- table/note -->
|
3393
3398
|
|
3394
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
3399
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
3395
3400
|
<xsl:apply-templates/>
|
3396
3401
|
</xsl:template>
|
3397
3402
|
|
@@ -4220,7 +4225,7 @@
|
|
4220
4225
|
-->
|
4221
4226
|
<fo:table-row>
|
4222
4227
|
<fo:table-cell number-columns-spanned="2">
|
4223
|
-
<fo:block>
|
4228
|
+
<fo:block role="SKIP">
|
4224
4229
|
<xsl:call-template name="note"/>
|
4225
4230
|
</fo:block>
|
4226
4231
|
</fo:table-cell>
|
@@ -4285,7 +4290,7 @@
|
|
4285
4290
|
|
4286
4291
|
<xsl:call-template name="refine_dt-cell-style"/>
|
4287
4292
|
|
4288
|
-
<fo:block xsl:use-attribute-sets="dt-block-style">
|
4293
|
+
<fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
|
4289
4294
|
<xsl:copy-of select="@id"/>
|
4290
4295
|
|
4291
4296
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -4315,7 +4320,7 @@
|
|
4315
4320
|
|
4316
4321
|
<xsl:call-template name="refine_dd-cell-style"/>
|
4317
4322
|
|
4318
|
-
<fo:block>
|
4323
|
+
<fo:block role="SKIP">
|
4319
4324
|
|
4320
4325
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
4321
4326
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -4457,10 +4462,15 @@
|
|
4457
4462
|
<!-- ========================= -->
|
4458
4463
|
<xsl:template match="*[local-name()='em']">
|
4459
4464
|
<fo:inline font-style="italic">
|
4465
|
+
<xsl:call-template name="refine_italic_style"/>
|
4460
4466
|
<xsl:apply-templates/>
|
4461
4467
|
</fo:inline>
|
4462
4468
|
</xsl:template>
|
4463
4469
|
|
4470
|
+
<xsl:template name="refine_italic_style">
|
4471
|
+
|
4472
|
+
</xsl:template>
|
4473
|
+
|
4464
4474
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
4465
4475
|
<xsl:param name="split_keep-within-line"/>
|
4466
4476
|
<fo:inline font-weight="bold">
|
@@ -4685,11 +4695,41 @@
|
|
4685
4695
|
|
4686
4696
|
<xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
|
4687
4697
|
<xsl:variable name="text" select="normalize-space(.)"/>
|
4688
|
-
<fo:inline font-size="75%">
|
4698
|
+
<fo:inline font-size="75%" role="SKIP">
|
4689
4699
|
<xsl:if test="string-length($text) > 0">
|
4690
|
-
<xsl:
|
4691
|
-
<xsl:
|
4692
|
-
|
4700
|
+
<xsl:variable name="smallCapsText">
|
4701
|
+
<xsl:call-template name="recursiveSmallCaps">
|
4702
|
+
<xsl:with-param name="text" select="$text"/>
|
4703
|
+
</xsl:call-template>
|
4704
|
+
</xsl:variable>
|
4705
|
+
<!-- merge neighboring fo:inline -->
|
4706
|
+
<xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
|
4707
|
+
<xsl:choose>
|
4708
|
+
<xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
|
4709
|
+
<xsl:when test="self::fo:inline and @font-size">
|
4710
|
+
<xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
|
4711
|
+
<!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
|
4712
|
+
<xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
|
4713
|
+
<xsl:variable name="next_text">
|
4714
|
+
<xsl:choose>
|
4715
|
+
<xsl:when test="$next_text_ = 0">99999999</xsl:when>
|
4716
|
+
<xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
|
4717
|
+
</xsl:choose>
|
4718
|
+
</xsl:variable>
|
4719
|
+
<!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
|
4720
|
+
<fo:inline>
|
4721
|
+
<xsl:copy-of select="@*"/>
|
4722
|
+
<xsl:copy-of select="./node()"/>
|
4723
|
+
<xsl:for-each select="following-sibling::node()[position() < $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
|
4724
|
+
<xsl:copy-of select="./node()"/>
|
4725
|
+
</xsl:for-each>
|
4726
|
+
</fo:inline>
|
4727
|
+
</xsl:when>
|
4728
|
+
<xsl:otherwise>
|
4729
|
+
<xsl:copy-of select="."/>
|
4730
|
+
</xsl:otherwise>
|
4731
|
+
</xsl:choose>
|
4732
|
+
</xsl:for-each>
|
4693
4733
|
</xsl:if>
|
4694
4734
|
</fo:inline>
|
4695
4735
|
</xsl:template>
|
@@ -4701,7 +4741,7 @@
|
|
4701
4741
|
<xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
|
4702
4742
|
<xsl:choose>
|
4703
4743
|
<xsl:when test="$char=$upperCase">
|
4704
|
-
<fo:inline font-size="{100 div 0.75}%">
|
4744
|
+
<fo:inline font-size="{100 div 0.75}%" role="SKIP">
|
4705
4745
|
<xsl:value-of select="$upperCase"/>
|
4706
4746
|
</fo:inline>
|
4707
4747
|
</xsl:when>
|
@@ -4863,6 +4903,10 @@
|
|
4863
4903
|
|
4864
4904
|
<xsl:when test="not(contains($text, $separator))">
|
4865
4905
|
<word>
|
4906
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
4907
|
+
<xsl:text>
|
4908
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
4909
|
+
</xsl:if>
|
4866
4910
|
<xsl:call-template name="enclose_text_in_tags">
|
4867
4911
|
<xsl:with-param name="text" select="normalize-space($text)"/>
|
4868
4912
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -4871,6 +4915,10 @@
|
|
4871
4915
|
</xsl:when>
|
4872
4916
|
<xsl:otherwise>
|
4873
4917
|
<word>
|
4918
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
4919
|
+
<xsl:text>
|
4920
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
4921
|
+
</xsl:if>
|
4874
4922
|
<xsl:call-template name="enclose_text_in_tags">
|
4875
4923
|
<xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
|
4876
4924
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -4945,7 +4993,10 @@
|
|
4945
4993
|
</xsl:choose>
|
4946
4994
|
</xsl:variable>
|
4947
4995
|
|
4948
|
-
|
4996
|
+
<!-- replace sequence #x200B and space TO space -->
|
4997
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
|
4998
|
+
|
4999
|
+
<xsl:value-of select="$text10"/>
|
4949
5000
|
</xsl:template>
|
4950
5001
|
|
4951
5002
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -5051,6 +5102,10 @@
|
|
5051
5102
|
<xsl:template name="getSimpleTable">
|
5052
5103
|
<xsl:param name="id"/>
|
5053
5104
|
|
5105
|
+
<!-- <test0>
|
5106
|
+
<xsl:copy-of select="."/>
|
5107
|
+
</test0> -->
|
5108
|
+
|
5054
5109
|
<xsl:variable name="simple-table">
|
5055
5110
|
|
5056
5111
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
@@ -6034,7 +6089,7 @@
|
|
6034
6089
|
<xsl:call-template name="insert_basic_link">
|
6035
6090
|
<xsl:with-param name="element">
|
6036
6091
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
6037
|
-
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://'))">
|
6092
|
+
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[local-name() = 'table' or local-name() = 'dl'])">
|
6038
6093
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
6039
6094
|
</xsl:if>
|
6040
6095
|
<xsl:if test="parent::*[local-name() = 'add']">
|
@@ -6096,7 +6151,7 @@
|
|
6096
6151
|
<fo:table-body>
|
6097
6152
|
<fo:table-row>
|
6098
6153
|
<fo:table-cell display-align="center">
|
6099
|
-
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
|
6154
|
+
<fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
|
6100
6155
|
|
6101
6156
|
<xsl:call-template name="refine_formula-stem-block-style"/>
|
6102
6157
|
|
@@ -6104,7 +6159,10 @@
|
|
6104
6159
|
</fo:block>
|
6105
6160
|
</fo:table-cell>
|
6106
6161
|
<fo:table-cell display-align="center">
|
6107
|
-
<fo:block xsl:use-attribute-sets="formula-stem-number-style">
|
6162
|
+
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
6163
|
+
|
6164
|
+
<xsl:call-template name="refine_formula-stem-number-style"/>
|
6165
|
+
|
6108
6166
|
<xsl:apply-templates select="../*[local-name() = 'name']"/>
|
6109
6167
|
</fo:block>
|
6110
6168
|
</fo:table-cell>
|
@@ -7618,7 +7676,7 @@
|
|
7618
7676
|
<!-- second td with sourcecode -->
|
7619
7677
|
<xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
|
7620
7678
|
<fo:table-cell>
|
7621
|
-
<fo:block>
|
7679
|
+
<fo:block role="SKIP">
|
7622
7680
|
<xsl:apply-templates/>
|
7623
7681
|
</fo:block>
|
7624
7682
|
</fo:table-cell>
|
@@ -8105,7 +8163,7 @@
|
|
8105
8163
|
|
8106
8164
|
<xsl:call-template name="setTableCellAttributes"/>
|
8107
8165
|
|
8108
|
-
<fo:block>
|
8166
|
+
<fo:block role="SKIP">
|
8109
8167
|
<xsl:apply-templates/>
|
8110
8168
|
</fo:block>
|
8111
8169
|
</fo:table-cell>
|
@@ -8127,7 +8185,7 @@
|
|
8127
8185
|
|
8128
8186
|
<xsl:call-template name="setTableCellAttributes"/>
|
8129
8187
|
|
8130
|
-
<fo:block>
|
8188
|
+
<fo:block role="SKIP">
|
8131
8189
|
<xsl:apply-templates/>
|
8132
8190
|
</fo:block>
|
8133
8191
|
</fo:table-cell>
|
@@ -8322,6 +8380,12 @@
|
|
8322
8380
|
|
8323
8381
|
</xsl:template>
|
8324
8382
|
|
8383
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
8384
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
8385
|
+
<xsl:apply-templates/>
|
8386
|
+
</fo:inline>
|
8387
|
+
</xsl:template>
|
8388
|
+
|
8325
8389
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
8326
8390
|
<xsl:param name="fo_element">block</xsl:param>
|
8327
8391
|
|
@@ -8895,6 +8959,50 @@
|
|
8895
8959
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
8896
8960
|
</xsl:choose>
|
8897
8961
|
</xsl:when>
|
8962
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
8963
|
+
|
8964
|
+
<xsl:variable name="label">
|
8965
|
+
|
8966
|
+
<xsl:variable name="type" select="../@type"/>
|
8967
|
+
|
8968
|
+
<xsl:variable name="style_prefix_">
|
8969
|
+
<xsl:if test="$type = 'roman'">
|
8970
|
+
<!-- Example: (i) -->
|
8971
|
+
</xsl:if>
|
8972
|
+
</xsl:variable>
|
8973
|
+
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
8974
|
+
|
8975
|
+
<xsl:variable name="style_suffix_">
|
8976
|
+
<xsl:choose>
|
8977
|
+
<xsl:when test="$type = 'arabic'">
|
8978
|
+
)
|
8979
|
+
</xsl:when>
|
8980
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
8981
|
+
)
|
8982
|
+
</xsl:when>
|
8983
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
8984
|
+
)
|
8985
|
+
</xsl:when>
|
8986
|
+
<xsl:when test="$type = 'roman'">
|
8987
|
+
)
|
8988
|
+
</xsl:when>
|
8989
|
+
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
8990
|
+
</xsl:choose>
|
8991
|
+
</xsl:variable>
|
8992
|
+
<xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
|
8993
|
+
|
8994
|
+
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
|
8995
|
+
<xsl:value-of select="$style_prefix"/>
|
8996
|
+
</xsl:if>
|
8997
|
+
<xsl:value-of select="@label"/>
|
8998
|
+
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
|
8999
|
+
<xsl:value-of select="$style_suffix"/>
|
9000
|
+
</xsl:if>
|
9001
|
+
</xsl:variable>
|
9002
|
+
|
9003
|
+
<xsl:value-of select="normalize-space($label)"/>
|
9004
|
+
|
9005
|
+
</xsl:when>
|
8898
9006
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
8899
9007
|
|
8900
9008
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -8952,10 +9060,10 @@
|
|
8952
9060
|
<xsl:when test="$type = 'arabic'">
|
8953
9061
|
1)
|
8954
9062
|
</xsl:when>
|
8955
|
-
<xsl:when test="$type = 'alphabet'">
|
9063
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
8956
9064
|
a)
|
8957
9065
|
</xsl:when>
|
8958
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
9066
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
8959
9067
|
A)
|
8960
9068
|
</xsl:when>
|
8961
9069
|
<xsl:when test="$type = 'roman'">
|
@@ -9086,7 +9194,7 @@
|
|
9086
9194
|
<xsl:call-template name="refine_list-item-style"/>
|
9087
9195
|
|
9088
9196
|
<fo:list-item-label end-indent="label-end()">
|
9089
|
-
<fo:block xsl:use-attribute-sets="list-item-label-style">
|
9197
|
+
<fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
|
9090
9198
|
|
9091
9199
|
<xsl:call-template name="refine_list-item-label-style"/>
|
9092
9200
|
|
@@ -9100,7 +9208,7 @@
|
|
9100
9208
|
</fo:block>
|
9101
9209
|
</fo:list-item-label>
|
9102
9210
|
<fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
|
9103
|
-
<fo:block>
|
9211
|
+
<fo:block role="SKIP">
|
9104
9212
|
|
9105
9213
|
<xsl:call-template name="refine_list-item-body-style"/>
|
9106
9214
|
|
@@ -9379,10 +9487,10 @@
|
|
9379
9487
|
<fo:table-body>
|
9380
9488
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
9381
9489
|
|
9382
|
-
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
9383
|
-
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
9384
|
-
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
9385
|
-
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
9490
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
9491
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
9492
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
9493
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
|
9386
9494
|
</fo:table-row>
|
9387
9495
|
<xsl:apply-templates/>
|
9388
9496
|
</fo:table-body>
|
@@ -9397,7 +9505,7 @@
|
|
9397
9505
|
|
9398
9506
|
<xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
9399
9507
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
9400
|
-
<fo:block><xsl:apply-templates/></fo:block>
|
9508
|
+
<fo:block role="SKIP"><xsl:apply-templates/></fo:block>
|
9401
9509
|
</fo:table-cell>
|
9402
9510
|
</xsl:template>
|
9403
9511
|
<!-- ============ -->
|
@@ -9682,7 +9790,7 @@
|
|
9682
9790
|
<xsl:for-each select="*[local-name() = 'tab']">
|
9683
9791
|
<xsl:variable name="current_id" select="generate-id()"/>
|
9684
9792
|
<fo:table-cell>
|
9685
|
-
<fo:block line-height-shift-adjustment="disregard-shifts">
|
9793
|
+
<fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
|
9686
9794
|
<xsl:call-template name="insert_basic_link">
|
9687
9795
|
<xsl:with-param name="element">
|
9688
9796
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -9700,7 +9808,7 @@
|
|
9700
9808
|
</xsl:for-each>
|
9701
9809
|
<!-- last column - for page numbers -->
|
9702
9810
|
<fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
|
9703
|
-
<fo:block>
|
9811
|
+
<fo:block role="SKIP">
|
9704
9812
|
<xsl:call-template name="insert_basic_link">
|
9705
9813
|
<xsl:with-param name="element">
|
9706
9814
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -0,0 +1,35 @@
|
|
1
|
+
== copyright-statement
|
2
|
+
=== {blank}
|
3
|
+
© {{ docyear }} Cloud Security Alliance, LLC.
|
4
|
+
|
5
|
+
{% if unpublished %}
|
6
|
+
== license-statement
|
7
|
+
=== Warning for Drafts
|
8
|
+
|
9
|
+
This document is not a CSA Standard. It is distributed for review and
|
10
|
+
comment, and is subject to change without notice and may not be referred to as
|
11
|
+
a Standard. Recipients of this draft are invited to submit, with their
|
12
|
+
comments, notification of any relevant patent rights of which they are aware
|
13
|
+
and to provide supporting documentation.
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
== legal-statement
|
17
|
+
=== {blank}
|
18
|
+
All rights reserved. Unless otherwise specified, no part of this
|
19
|
+
publication may be reproduced or utilized otherwise in any form or by any
|
20
|
+
means, electronic or mechanical, including photocopying, or posting on the
|
21
|
+
internet or an intranet, without prior written permission. Permission can
|
22
|
+
be requested from the address below.
|
23
|
+
|
24
|
+
== feedback-statement
|
25
|
+
=== {blank}
|
26
|
+
Cloud Security Alliance
|
27
|
+
|
28
|
+
[align="left"]
|
29
|
+
2212 Queen Anne Ave N +
|
30
|
+
Seattle +
|
31
|
+
WA 98109 +
|
32
|
+
United States of America +
|
33
|
+
+
|
34
|
+
copyright@cloudsecurityalliance.com +
|
35
|
+
https://www.cloudsecurityalliance.com[www.cloudsecurityalliance.com]
|
@@ -1012,6 +1012,7 @@
|
|
1012
1012
|
<ref name="del"/>
|
1013
1013
|
<ref name="span"/>
|
1014
1014
|
<ref name="erefstack"/>
|
1015
|
+
<ref name="date_inline"/>
|
1015
1016
|
</choice>
|
1016
1017
|
</define>
|
1017
1018
|
<define name="add">
|
@@ -1053,6 +1054,23 @@
|
|
1053
1054
|
</oneOrMore>
|
1054
1055
|
</element>
|
1055
1056
|
</define>
|
1057
|
+
<define name="date_inline">
|
1058
|
+
<element name="date">
|
1059
|
+
<attribute name="value"/>
|
1060
|
+
<optional>
|
1061
|
+
<attribute name="format"/>
|
1062
|
+
</optional>
|
1063
|
+
<optional>
|
1064
|
+
<attribute name="language"/>
|
1065
|
+
</optional>
|
1066
|
+
<optional>
|
1067
|
+
<attribute name="script"/>
|
1068
|
+
</optional>
|
1069
|
+
<optional>
|
1070
|
+
<attribute name="locale"/>
|
1071
|
+
</optional>
|
1072
|
+
</element>
|
1073
|
+
</define>
|
1056
1074
|
<define name="concept">
|
1057
1075
|
<element name="concept">
|
1058
1076
|
<optional>
|
data/metanorma.yml
CHANGED
@@ -27,6 +27,7 @@ header: lib/isodoc/csa/html/header.html
|
|
27
27
|
wordcoverpage: lib/isodoc/csa/html/word_csa_titlepage.html
|
28
28
|
wordintropage: lib/isodoc/csa/html/word_csa_intro.html
|
29
29
|
wordstylesheet: lib/isodoc/csa/html/wordstyle.scss
|
30
|
+
boilerplate: lib/metanorma/csa/boilerplate.adoc
|
30
31
|
webfont:
|
31
32
|
- "https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700"
|
32
33
|
- "https://fonts.googleapis.com/css?family=Lato:400,400i,700,900"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -215,7 +215,7 @@ files:
|
|
215
215
|
- lib/metanorma/csa/basicdoc.rng
|
216
216
|
- lib/metanorma/csa/biblio-standoc.rng
|
217
217
|
- lib/metanorma/csa/biblio.rng
|
218
|
-
- lib/metanorma/csa/boilerplate.
|
218
|
+
- lib/metanorma/csa/boilerplate.adoc
|
219
219
|
- lib/metanorma/csa/converter.rb
|
220
220
|
- lib/metanorma/csa/csa.rng
|
221
221
|
- lib/metanorma/csa/isodoc.rng
|
@@ -1,48 +0,0 @@
|
|
1
|
-
<boilerplate>
|
2
|
-
<copyright-statement>
|
3
|
-
<clause>
|
4
|
-
<p>© {{ docyear }} Cloud Security Alliance, LLC.</p>
|
5
|
-
</clause>
|
6
|
-
</copyright-statement>
|
7
|
-
|
8
|
-
{% if unpublished %}
|
9
|
-
<license-statement>
|
10
|
-
<clause>
|
11
|
-
<title>Warning for Drafts</title>
|
12
|
-
|
13
|
-
<p>This document is not a CSA Standard. It is distributed for review and
|
14
|
-
comment, and is subject to change without notice and may not be referred to as
|
15
|
-
a Standard. Recipients of this draft are invited to submit, with their
|
16
|
-
comments, notification of any relevant patent rights of which they are aware
|
17
|
-
and to provide supporting documentation.
|
18
|
-
</p>
|
19
|
-
</clause>
|
20
|
-
</license-statement>
|
21
|
-
{% endif %}
|
22
|
-
|
23
|
-
<legal-statement>
|
24
|
-
<clause>
|
25
|
-
<p>All rights reserved. Unless otherwise specified, no part of this
|
26
|
-
publication may be reproduced or utilized otherwise in any form or by any
|
27
|
-
means, electronic or mechanical, including photocopying, or posting on the
|
28
|
-
internet or an intranet, without prior written permission. Permission can
|
29
|
-
be requested from the address below.
|
30
|
-
</p>
|
31
|
-
</clause>
|
32
|
-
</legal-statement>
|
33
|
-
|
34
|
-
<feedback-statement>
|
35
|
-
<clause>
|
36
|
-
<p>Cloud Security Alliance</p>
|
37
|
-
<p align="left">
|
38
|
-
2212 Queen Anne Ave N<br />
|
39
|
-
Seattle<br />
|
40
|
-
WA 98109<br />
|
41
|
-
United States of America<br />
|
42
|
-
<br />
|
43
|
-
<link target="mailto:copyright@cloudsecurityalliance.com">copyright@cloudsecurityalliance.com</link><br />
|
44
|
-
<link target="www.cloudsecurityalliance.com">www.cloudsecurityalliance.com</link>
|
45
|
-
</p>
|
46
|
-
</clause>
|
47
|
-
</feedback-statement>
|
48
|
-
</boilerplate>
|