metanorma-cc 2.1.12 → 2.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/cc/cc.standard.xsl +187 -53
- data/lib/isodoc/cc/html/htmlstyle.css +9 -0
- data/lib/isodoc/cc/html/wordstyle.css +150 -0
- data/lib/isodoc/cc/html/wordstyle.scss +144 -0
- data/lib/metanorma/cc/isodoc.rng +1 -1
- 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: 5000afa2946588d1bfb3cb0e985af9beef653134e773704f72b27944d98e0b83
|
4
|
+
data.tar.gz: 22cd057e8aa8c8ac6e50a11af2c8d959648461be50c5126cd96bf4d786b86086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c899b03f57744cb7cad336a38b28fd7c6f6f31e19191900c0647b91d76186c6baef984c917087d7a84141f7a3b559bad73d7fcb509a043379a3f9f5fff4e38
|
7
|
+
data.tar.gz: 05bf8c83d0b32183c5844ed482c2439a410af5a33f621f70c5514ebc5ad711a50ce01fabb87931bb5d629548ede68308162520cbe85cd99fd5b71cd352d38979
|
@@ -556,6 +556,8 @@
|
|
556
556
|
</fo:static-content>
|
557
557
|
</xsl:template>
|
558
558
|
|
559
|
+
<xsl:strip-space elements="csd:xref"/>
|
560
|
+
|
559
561
|
<!-- external parameters -->
|
560
562
|
|
561
563
|
<xsl:param name="svg_images"/> <!-- svg images array -->
|
@@ -1920,17 +1922,22 @@
|
|
1920
1922
|
</xsl:for-each>
|
1921
1923
|
</xsl:template>
|
1922
1924
|
|
1925
|
+
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
1923
1926
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
|
1924
1927
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
|
1925
1928
|
<xsl:template match="text()" name="text">
|
1926
1929
|
|
1927
|
-
<xsl:
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1930
|
+
<xsl:choose>
|
1931
|
+
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when>
|
1932
|
+
<xsl:otherwise>
|
1933
|
+
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_fo_inline_keep-together_within-line_open,'$1',$tag_fo_inline_keep-together_within-line_close))"/>
|
1934
|
+
<xsl:call-template name="replace_fo_inline_tags">
|
1935
|
+
<xsl:with-param name="tag_open" select="$tag_fo_inline_keep-together_within-line_open"/>
|
1936
|
+
<xsl:with-param name="tag_close" select="$tag_fo_inline_keep-together_within-line_close"/>
|
1937
|
+
<xsl:with-param name="text" select="$text"/>
|
1938
|
+
</xsl:call-template>
|
1939
|
+
</xsl:otherwise>
|
1940
|
+
</xsl:choose>
|
1934
1941
|
|
1935
1942
|
</xsl:template>
|
1936
1943
|
|
@@ -2303,7 +2310,7 @@
|
|
2303
2310
|
|
2304
2311
|
<!-- centered table when table name is centered (see table-name-style) -->
|
2305
2312
|
|
2306
|
-
<fo:table table-layout="fixed" width="100%">
|
2313
|
+
<fo:table table-layout="fixed" width="100%" xsl:use-attribute-sets="table-container-style">
|
2307
2314
|
<fo:table-column column-width="proportional-column-width(1)"/>
|
2308
2315
|
<fo:table-column column-width="{@width}"/>
|
2309
2316
|
<fo:table-column column-width="proportional-column-width(1)"/>
|
@@ -2956,7 +2963,7 @@
|
|
2956
2963
|
<xsl:template match="*[local-name()='tr']">
|
2957
2964
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
2958
2965
|
|
2959
|
-
<xsl:if test="*[local-name() = 'th']">
|
2966
|
+
<xsl:if test="count(*) = count(*[local-name() = 'th'])"> <!-- row contains 'th' only -->
|
2960
2967
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2961
2968
|
</xsl:if>
|
2962
2969
|
|
@@ -3915,7 +3922,8 @@
|
|
3915
3922
|
<xsl:copy-of select="node()"/>
|
3916
3923
|
</td>
|
3917
3924
|
<td>
|
3918
|
-
<xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]"/>
|
3925
|
+
<!-- <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]"/> -->
|
3926
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]" mode="dl_if"/>
|
3919
3927
|
<!-- get paragraphs from nested 'dl' -->
|
3920
3928
|
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'dl']" mode="dl_if_nested"/>
|
3921
3929
|
</td>
|
@@ -3923,6 +3931,53 @@
|
|
3923
3931
|
</xsl:template>
|
3924
3932
|
<xsl:template match="*[local-name()='dd']" mode="dl_if"/>
|
3925
3933
|
|
3934
|
+
<xsl:template match="*" mode="dl_if">
|
3935
|
+
<xsl:copy-of select="."/>
|
3936
|
+
</xsl:template>
|
3937
|
+
|
3938
|
+
<xsl:template match="*[local-name() = 'p']" mode="dl_if">
|
3939
|
+
<xsl:param name="indent"/>
|
3940
|
+
<p>
|
3941
|
+
<xsl:copy-of select="@*"/>
|
3942
|
+
<xsl:value-of select="$indent"/>
|
3943
|
+
<xsl:copy-of select="node()"/>
|
3944
|
+
</p>
|
3945
|
+
|
3946
|
+
</xsl:template>
|
3947
|
+
|
3948
|
+
<xsl:template match="*[local-name() = 'ul' or local-name() = 'ol']" mode="dl_if">
|
3949
|
+
<xsl:variable name="list_rendered_">
|
3950
|
+
<xsl:apply-templates select="."/>
|
3951
|
+
</xsl:variable>
|
3952
|
+
<xsl:variable name="list_rendered" select="xalan:nodeset($list_rendered_)"/>
|
3953
|
+
|
3954
|
+
<xsl:variable name="indent">
|
3955
|
+
<xsl:for-each select="($list_rendered//fo:block[not(.//fo:block)])[1]">
|
3956
|
+
<xsl:apply-templates select="ancestor::*[@provisional-distance-between-starts]/@provisional-distance-between-starts" mode="dl_if"/>
|
3957
|
+
</xsl:for-each>
|
3958
|
+
</xsl:variable>
|
3959
|
+
|
3960
|
+
<xsl:apply-templates mode="dl_if">
|
3961
|
+
<xsl:with-param name="indent" select="$indent"/>
|
3962
|
+
</xsl:apply-templates>
|
3963
|
+
</xsl:template>
|
3964
|
+
|
3965
|
+
<xsl:template match="*[local-name() = 'li']" mode="dl_if">
|
3966
|
+
<xsl:param name="indent"/>
|
3967
|
+
<xsl:apply-templates mode="dl_if">
|
3968
|
+
<xsl:with-param name="indent" select="$indent"/>
|
3969
|
+
</xsl:apply-templates>
|
3970
|
+
</xsl:template>
|
3971
|
+
|
3972
|
+
<xsl:template match="@provisional-distance-between-starts" mode="dl_if">
|
3973
|
+
<xsl:variable name="value" select="round(substring-before(.,'mm'))"/>
|
3974
|
+
<!-- emulate left indent for list item -->
|
3975
|
+
<xsl:call-template name="repeat">
|
3976
|
+
<xsl:with-param name="char" select="'x'"/>
|
3977
|
+
<xsl:with-param name="count" select="$value"/>
|
3978
|
+
</xsl:call-template>
|
3979
|
+
</xsl:template>
|
3980
|
+
|
3926
3981
|
<xsl:template match="*[local-name()='dl']" mode="dl_if_nested">
|
3927
3982
|
<xsl:for-each select="*[local-name() = 'dt']">
|
3928
3983
|
<p>
|
@@ -4319,6 +4374,7 @@
|
|
4319
4374
|
</word>
|
4320
4375
|
<xsl:call-template name="tokenize_with_tags">
|
4321
4376
|
<xsl:with-param name="text" select="substring-after($text, $separator)"/>
|
4377
|
+
<xsl:with-param name="tags" select="$tags"/>
|
4322
4378
|
</xsl:call-template>
|
4323
4379
|
</xsl:otherwise>
|
4324
4380
|
</xsl:choose>
|
@@ -4358,8 +4414,18 @@
|
|
4358
4414
|
|
4359
4415
|
<xsl:template name="add-zero-spaces-java">
|
4360
4416
|
<xsl:param name="text" select="."/>
|
4361
|
-
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space
|
4362
|
-
<xsl:
|
4417
|
+
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, arrow right -->
|
4418
|
+
<xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |→)','$1')"/>
|
4419
|
+
<!-- add zero-width space (#x200B) after characters: 'great than' -->
|
4420
|
+
<xsl:variable name="text2" select="java:replaceAll(java:java.lang.String.new($text1), '(\u003e)(?!\u003e)', '$1')"/><!-- negative lookahead: 'great than' not followed by 'great than' -->
|
4421
|
+
<!-- add zero-width space (#x200B) before characters: 'less than' -->
|
4422
|
+
<xsl:variable name="text3" select="java:replaceAll(java:java.lang.String.new($text2), '(?<!\u003c)(\u003c)', '$1')"/> <!-- (?<!\u003c)(\u003c) --> <!-- negative lookbehind: 'less than' not preceeded by 'less than' -->
|
4423
|
+
<!-- add zero-width space (#x200B) before character: { -->
|
4424
|
+
<xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(?<!\W)(\{)', '$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
|
4425
|
+
<!-- add zero-width space (#x200B) after character: , -->
|
4426
|
+
<xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(\,)(?!\d)', '$1')"/> <!-- negative lookahead: ',' not followed by digit -->
|
4427
|
+
|
4428
|
+
<xsl:value-of select="$text5"/>
|
4363
4429
|
</xsl:template>
|
4364
4430
|
|
4365
4431
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -4505,7 +4571,7 @@
|
|
4505
4571
|
</xsl:copy>
|
4506
4572
|
</xsl:template>
|
4507
4573
|
|
4508
|
-
<xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p'])]" mode="table-without-br">
|
4574
|
+
<xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode'])]" mode="table-without-br">
|
4509
4575
|
<xsl:copy>
|
4510
4576
|
<xsl:copy-of select="@*"/>
|
4511
4577
|
<p>
|
@@ -4553,6 +4619,28 @@
|
|
4553
4619
|
</xsl:for-each>
|
4554
4620
|
</xsl:template>
|
4555
4621
|
|
4622
|
+
<xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']" mode="table-without-br">
|
4623
|
+
<xsl:apply-templates mode="table-without-br"/>
|
4624
|
+
</xsl:template>
|
4625
|
+
|
4626
|
+
<xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']/text()[contains(., ' ') or contains(., ' ')]" mode="table-without-br">
|
4627
|
+
|
4628
|
+
<xsl:variable name="sep">###SOURCECODE_NEWLINE###</xsl:variable>
|
4629
|
+
<xsl:variable name="sourcecode_text" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', $sep)"/>
|
4630
|
+
<xsl:variable name="items">
|
4631
|
+
<xsl:call-template name="split">
|
4632
|
+
<xsl:with-param name="pText" select="$sourcecode_text"/>
|
4633
|
+
<xsl:with-param name="sep" select="$sep"/>
|
4634
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
4635
|
+
</xsl:call-template>
|
4636
|
+
</xsl:variable>
|
4637
|
+
<xsl:for-each select="xalan:nodeset($items)/*">
|
4638
|
+
<p>
|
4639
|
+
<sourcecode><xsl:copy-of select="node()"/></sourcecode>
|
4640
|
+
</p>
|
4641
|
+
</xsl:for-each>
|
4642
|
+
</xsl:template>
|
4643
|
+
|
4556
4644
|
<!-- remove redundant white spaces -->
|
4557
4645
|
<xsl:template match="text()[not(ancestor::*[local-name() = 'sourcecode'])]" mode="table-without-br">
|
4558
4646
|
<xsl:variable name="text" select="translate(.,'	 ','')"/>
|
@@ -4863,6 +4951,7 @@
|
|
4863
4951
|
<xsl:if test="ancestor::*[local-name() = 'sub']"><tag>sub</tag></xsl:if>
|
4864
4952
|
<xsl:if test="ancestor::*[local-name() = 'sup']"><tag>sup</tag></xsl:if>
|
4865
4953
|
<xsl:if test="ancestor::*[local-name() = 'tt']"><tag>tt</tag></xsl:if>
|
4954
|
+
<xsl:if test="ancestor::*[local-name() = 'sourcecode']"><tag>sourcecode</tag></xsl:if>
|
4866
4955
|
<xsl:if test="ancestor::*[local-name() = 'keep-together_within-line']"><tag>keep-together_within-line</tag></xsl:if>
|
4867
4956
|
</tags>
|
4868
4957
|
</xsl:template>
|
@@ -5346,6 +5435,12 @@
|
|
5346
5435
|
|
5347
5436
|
<fo:block-container margin-left="0mm">
|
5348
5437
|
|
5438
|
+
<!-- <xsl:if test="$namespace = 'iho'">
|
5439
|
+
<xsl:if test="ancestor::iho:td">
|
5440
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
5441
|
+
</xsl:if>
|
5442
|
+
</xsl:if> -->
|
5443
|
+
|
5349
5444
|
<fo:block>
|
5350
5445
|
|
5351
5446
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
@@ -6485,40 +6580,18 @@
|
|
6485
6580
|
<!-- =============== -->
|
6486
6581
|
<xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
6487
6582
|
|
6488
|
-
<
|
6489
|
-
|
6490
|
-
|
6491
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
6492
|
-
</xsl:if>
|
6493
|
-
|
6494
|
-
<xsl:if test="ancestor::*[local-name() = 'example']">
|
6495
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
6496
|
-
</xsl:if>
|
6497
|
-
|
6498
|
-
<xsl:copy-of select="@id"/>
|
6499
|
-
|
6500
|
-
<xsl:if test="parent::*[local-name() = 'note']">
|
6501
|
-
<xsl:attribute name="margin-left">
|
6502
|
-
<xsl:choose>
|
6503
|
-
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
6504
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
6505
|
-
</xsl:choose>
|
6506
|
-
</xsl:attribute>
|
6507
|
-
|
6508
|
-
</xsl:if>
|
6509
|
-
<fo:block-container margin-left="0mm">
|
6583
|
+
<xsl:variable name="sourcecode_attributes">
|
6584
|
+
<xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
|
6585
|
+
<xsl:variable name="_font-size">
|
6510
6586
|
|
6511
|
-
|
6512
|
-
<xsl:variable name="_font-size">
|
6587
|
+
10
|
6513
6588
|
|
6514
|
-
10
|
6515
6589
|
|
6590
|
+
<!-- 9 -->
|
6516
6591
|
|
6517
|
-
|
6518
|
-
|
6519
|
-
|
6520
|
-
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
6521
|
-
</xsl:if> -->
|
6592
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
6593
|
+
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
6594
|
+
</xsl:if> -->
|
6522
6595
|
|
6523
6596
|
</xsl:variable>
|
6524
6597
|
|
@@ -6533,14 +6606,60 @@
|
|
6533
6606
|
</xsl:choose>
|
6534
6607
|
</xsl:attribute>
|
6535
6608
|
</xsl:if>
|
6609
|
+
</xsl:element>
|
6610
|
+
</xsl:variable>
|
6536
6611
|
|
6612
|
+
<xsl:choose>
|
6613
|
+
<xsl:when test="$isGenerateTableIF = 'true' and (ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])">
|
6614
|
+
<xsl:for-each select="xalan:nodeset($sourcecode_attributes)/sourcecode_attributes/@*">
|
6615
|
+
<xsl:attribute name="{local-name()}">
|
6616
|
+
<xsl:value-of select="."/>
|
6617
|
+
</xsl:attribute>
|
6618
|
+
</xsl:for-each>
|
6537
6619
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
6538
|
-
</
|
6620
|
+
</xsl:when>
|
6539
6621
|
|
6540
|
-
|
6622
|
+
<xsl:otherwise>
|
6623
|
+
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
|
6541
6624
|
|
6542
|
-
|
6543
|
-
|
6625
|
+
<xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
|
6626
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
6627
|
+
</xsl:if>
|
6628
|
+
|
6629
|
+
<xsl:if test="ancestor::*[local-name() = 'example']">
|
6630
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
6631
|
+
</xsl:if>
|
6632
|
+
|
6633
|
+
<xsl:copy-of select="@id"/>
|
6634
|
+
|
6635
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
6636
|
+
<xsl:attribute name="margin-left">
|
6637
|
+
<xsl:choose>
|
6638
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
6639
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
6640
|
+
</xsl:choose>
|
6641
|
+
</xsl:attribute>
|
6642
|
+
|
6643
|
+
</xsl:if>
|
6644
|
+
<fo:block-container margin-left="0mm">
|
6645
|
+
|
6646
|
+
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
6647
|
+
|
6648
|
+
<xsl:for-each select="xalan:nodeset($sourcecode_attributes)/sourcecode_attributes/@*">
|
6649
|
+
<xsl:attribute name="{local-name()}">
|
6650
|
+
<xsl:value-of select="."/>
|
6651
|
+
</xsl:attribute>
|
6652
|
+
</xsl:for-each>
|
6653
|
+
|
6654
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
6655
|
+
</fo:block>
|
6656
|
+
|
6657
|
+
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
6658
|
+
|
6659
|
+
</fo:block-container>
|
6660
|
+
</fo:block-container>
|
6661
|
+
</xsl:otherwise>
|
6662
|
+
</xsl:choose>
|
6544
6663
|
</xsl:template>
|
6545
6664
|
|
6546
6665
|
<xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -8778,7 +8897,9 @@
|
|
8778
8897
|
<!-- ===================================== -->
|
8779
8898
|
<!-- Update xml -->
|
8780
8899
|
<!-- ===================================== -->
|
8900
|
+
<!-- =========================================================================== -->
|
8781
8901
|
<!-- STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
|
8902
|
+
<!-- =========================================================================== -->
|
8782
8903
|
<xsl:template match="@*|node()" mode="update_xml_step1">
|
8783
8904
|
<xsl:copy>
|
8784
8905
|
<xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
|
@@ -8870,10 +8991,15 @@
|
|
8870
8991
|
<xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
|
8871
8992
|
<xsl:apply-templates mode="update_xml_step1"/>
|
8872
8993
|
</xsl:template>
|
8873
|
-
|
8994
|
+
<!-- =========================================================================== -->
|
8874
8995
|
<!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
|
8996
|
+
<!-- =========================================================================== -->
|
8875
8997
|
|
8998
|
+
<!-- =========================================================================== -->
|
8876
8999
|
<!-- XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
|
9000
|
+
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
|
9001
|
+
<!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
|
9002
|
+
<!-- =========================================================================== -->
|
8877
9003
|
<!-- Example: <keep-together_within-line>ISO 10303-51</keep-together_within-line> -->
|
8878
9004
|
<xsl:template match="@*|node()" mode="update_xml_enclose_keep-together_within-line">
|
8879
9005
|
<xsl:copy>
|
@@ -8889,10 +9015,15 @@
|
|
8889
9015
|
<xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'link'][not(contains(.,' '))] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'] or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
8890
9016
|
|
8891
9017
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
8892
|
-
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
8893
9018
|
<xsl:variable name="tag_keep-together_within-line_open">###<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
|
8894
9019
|
<xsl:variable name="tag_keep-together_within-line_close">###/<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
|
8895
|
-
<xsl:variable name="
|
9020
|
+
<xsl:variable name="text__" select="java:replaceAll(java:java.lang.String.new(.), $regex_standard_reference, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
|
9021
|
+
<xsl:variable name="text_">
|
9022
|
+
<xsl:choose>
|
9023
|
+
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
|
9024
|
+
<xsl:otherwise><xsl:value-of select="$text__"/></xsl:otherwise>
|
9025
|
+
</xsl:choose>
|
9026
|
+
</xsl:variable>
|
8896
9027
|
<xsl:variable name="text"><text><xsl:call-template name="replace_text_tags">
|
8897
9028
|
<xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
|
8898
9029
|
<xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
|
@@ -8908,7 +9039,11 @@
|
|
8908
9039
|
</xsl:variable>
|
8909
9040
|
|
8910
9041
|
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
|
8911
|
-
|
9042
|
+
<!-- \S matches any non-whitespace character (equivalent to [^\r\n\t\f\v ]) -->
|
9043
|
+
<!-- <xsl:variable name="regex_solidus_units">((\b((\S{1,3}\/\S+)|(\S+\/\S{1,3}))\b)|(\/\S{1,3})\b)</xsl:variable> -->
|
9044
|
+
<!-- add < and > to \S -->
|
9045
|
+
<xsl:variable name="regex_S">[^\r\n\t\f\v \<>]</xsl:variable>
|
9046
|
+
<xsl:variable name="regex_solidus_units">((\b((<xsl:value-of select="$regex_S"/>{1,3}\/<xsl:value-of select="$regex_S"/>+)|(<xsl:value-of select="$regex_S"/>+\/<xsl:value-of select="$regex_S"/>{1,3}))\b)|(\/<xsl:value-of select="$regex_S"/>{1,3})\b)</xsl:variable>
|
8912
9047
|
<xsl:variable name="text3">
|
8913
9048
|
<text><xsl:for-each select="xalan:nodeset($text2)/text/node()">
|
8914
9049
|
<xsl:choose>
|
@@ -8972,9 +9107,8 @@
|
|
8972
9107
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
8973
9108
|
</xsl:choose>
|
8974
9109
|
</xsl:template>
|
8975
|
-
|
8976
9110
|
<!-- ===================================== -->
|
8977
|
-
<!--
|
9111
|
+
<!-- END XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
|
8978
9112
|
<!-- ===================================== -->
|
8979
9113
|
|
8980
9114
|
<!-- for correct rendering combining chars -->
|
@@ -647,6 +647,15 @@ nav #toc {
|
|
647
647
|
#toc .h3, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
|
648
648
|
padding-left: 50px; }
|
649
649
|
|
650
|
+
#toc .h4, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h4 {
|
651
|
+
padding-left: 70px; }
|
652
|
+
|
653
|
+
#toc .h5, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h5 {
|
654
|
+
padding-left: 90px; }
|
655
|
+
|
656
|
+
#toc .h6, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h6 {
|
657
|
+
padding-left: 110px; }
|
658
|
+
|
650
659
|
#toc .toc-active, #toc li:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
651
660
|
background: #1d1d1d;
|
652
661
|
box-shadow: inset -5px 0px 10px -5px #1d1d1d !important; }
|
@@ -683,6 +683,156 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
683
683
|
font-weight: bold;
|
684
684
|
mso-bidi-font-weight: normal; }
|
685
685
|
|
686
|
+
p.MsoToc4, li.MsoToc4, div.MsoToc4 {
|
687
|
+
mso-style-noshow: yes;
|
688
|
+
mso-style-priority: 39;
|
689
|
+
mso-style-unhide: no;
|
690
|
+
mso-style-name: "TOC 4";
|
691
|
+
mso-style-parent: "TOC 3";
|
692
|
+
mso-style-next: Normal;
|
693
|
+
margin-top: 0cm;
|
694
|
+
margin-right: 25.0pt;
|
695
|
+
margin-bottom: 0cm;
|
696
|
+
margin-left: 36.0pt;
|
697
|
+
margin-bottom: .0001pt;
|
698
|
+
text-indent: -36.0pt;
|
699
|
+
line-height: 12.0pt;
|
700
|
+
mso-pagination: widow-orphan;
|
701
|
+
mso-hyphenate: none;
|
702
|
+
tab-stops: 20.15pt 47.9pt right dotted 487.6pt;
|
703
|
+
font-size: 10.5pt;
|
704
|
+
font-family: {{bodyfont}};
|
705
|
+
mso-fareast-font-family: {{bodyfont}};
|
706
|
+
mso-bidi-font-family: {{bodyfont}};
|
707
|
+
mso-ansi-language: EN-GB;
|
708
|
+
font-weight: bold;
|
709
|
+
mso-bidi-font-weight: normal; }
|
710
|
+
|
711
|
+
p.MsoToc5, li.MsoToc5, div.MsoToc5 {
|
712
|
+
mso-style-noshow: yes;
|
713
|
+
mso-style-priority: 39;
|
714
|
+
mso-style-unhide: no;
|
715
|
+
mso-style-name: "TOC 5";
|
716
|
+
mso-style-parent: "TOC 4";
|
717
|
+
mso-style-next: Normal;
|
718
|
+
margin-top: 0cm;
|
719
|
+
margin-right: 25.0pt;
|
720
|
+
margin-bottom: 0cm;
|
721
|
+
margin-left: 36.0pt;
|
722
|
+
margin-bottom: .0001pt;
|
723
|
+
text-indent: -36.0pt;
|
724
|
+
line-height: 12.0pt;
|
725
|
+
mso-pagination: widow-orphan;
|
726
|
+
mso-hyphenate: none;
|
727
|
+
tab-stops: 20.15pt 47.9pt right dotted 487.6pt;
|
728
|
+
font-size: 10.5pt;
|
729
|
+
font-family: {{bodyfont}};
|
730
|
+
mso-fareast-font-family: {{bodyfont}};
|
731
|
+
mso-bidi-font-family: {{bodyfont}};
|
732
|
+
mso-ansi-language: EN-GB;
|
733
|
+
font-weight: bold;
|
734
|
+
mso-bidi-font-weight: normal; }
|
735
|
+
|
736
|
+
p.MsoToc6, li.MsoToc6, div.MsoToc6 {
|
737
|
+
mso-style-noshow: yes;
|
738
|
+
mso-style-priority: 39;
|
739
|
+
mso-style-unhide: no;
|
740
|
+
mso-style-name: "TOC 6";
|
741
|
+
mso-style-parent: "TOC 5";
|
742
|
+
mso-style-next: Normal;
|
743
|
+
margin-top: 0cm;
|
744
|
+
margin-right: 25.0pt;
|
745
|
+
margin-bottom: 0cm;
|
746
|
+
margin-left: 36.0pt;
|
747
|
+
margin-bottom: .0001pt;
|
748
|
+
text-indent: -36.0pt;
|
749
|
+
line-height: 12.0pt;
|
750
|
+
mso-pagination: widow-orphan;
|
751
|
+
mso-hyphenate: none;
|
752
|
+
tab-stops: 20.15pt 55.0pt right dotted 487.6pt;
|
753
|
+
font-size: 10.5pt;
|
754
|
+
font-family: {{bodyfont}};
|
755
|
+
mso-fareast-font-family: {{bodyfont}};
|
756
|
+
mso-bidi-font-family: {{bodyfont}};
|
757
|
+
mso-ansi-language: EN-GB;
|
758
|
+
font-weight: bold;
|
759
|
+
mso-bidi-font-weight: normal; }
|
760
|
+
|
761
|
+
p.MsoToc7, li.MsoToc7, div.MsoToc7 {
|
762
|
+
mso-style-noshow: yes;
|
763
|
+
mso-style-priority: 39;
|
764
|
+
mso-style-unhide: no;
|
765
|
+
mso-style-name: "TOC 7";
|
766
|
+
mso-style-parent: "TOC 6";
|
767
|
+
mso-style-next: Normal;
|
768
|
+
margin-top: 0cm;
|
769
|
+
margin-right: 25.0pt;
|
770
|
+
margin-bottom: 0cm;
|
771
|
+
margin-left: 36.0pt;
|
772
|
+
margin-bottom: .0001pt;
|
773
|
+
text-indent: -36.0pt;
|
774
|
+
line-height: 12.0pt;
|
775
|
+
mso-pagination: widow-orphan;
|
776
|
+
mso-hyphenate: none;
|
777
|
+
tab-stops: 20.15pt 62.7pt right dotted 487.6pt;
|
778
|
+
font-size: 10.5pt;
|
779
|
+
font-family: {{bodyfont}};
|
780
|
+
mso-fareast-font-family: {{bodyfont}};
|
781
|
+
mso-bidi-font-family: {{bodyfont}};
|
782
|
+
mso-ansi-language: EN-GB;
|
783
|
+
font-weight: bold;
|
784
|
+
mso-bidi-font-weight: normal; }
|
785
|
+
|
786
|
+
p.MsoToc8, li.MsoToc8, div.MsoToc8 {
|
787
|
+
mso-style-noshow: yes;
|
788
|
+
mso-style-priority: 39;
|
789
|
+
mso-style-unhide: no;
|
790
|
+
mso-style-name: "TOC 8";
|
791
|
+
mso-style-parent: "TOC 7";
|
792
|
+
mso-style-next: Normal;
|
793
|
+
margin-top: 0cm;
|
794
|
+
margin-right: 25.0pt;
|
795
|
+
margin-bottom: 0cm;
|
796
|
+
margin-left: 36.0pt;
|
797
|
+
margin-bottom: .0001pt;
|
798
|
+
text-indent: -36.0pt;
|
799
|
+
line-height: 12.0pt;
|
800
|
+
mso-pagination: widow-orphan;
|
801
|
+
mso-hyphenate: none;
|
802
|
+
tab-stops: 20.15pt 70.3pt right dotted 487.6pt;
|
803
|
+
font-size: 10.5pt;
|
804
|
+
font-family: {{bodyfont}};
|
805
|
+
mso-fareast-font-family: {{bodyfont}};
|
806
|
+
mso-bidi-font-family: {{bodyfont}};
|
807
|
+
mso-ansi-language: EN-GB;
|
808
|
+
font-weight: bold;
|
809
|
+
mso-bidi-font-weight: normal; }
|
810
|
+
|
811
|
+
p.MsoToc9, li.MsoToc9, div.MsoToc9 {
|
812
|
+
mso-style-noshow: yes;
|
813
|
+
mso-style-priority: 39;
|
814
|
+
mso-style-unhide: no;
|
815
|
+
mso-style-name: "TOC 9";
|
816
|
+
mso-style-parent: "TOC 8";
|
817
|
+
mso-style-next: Normal;
|
818
|
+
margin-top: 0cm;
|
819
|
+
margin-right: 25.0pt;
|
820
|
+
margin-bottom: 0cm;
|
821
|
+
margin-left: 36.0pt;
|
822
|
+
margin-bottom: .0001pt;
|
823
|
+
text-indent: -36.0pt;
|
824
|
+
line-height: 12.0pt;
|
825
|
+
mso-pagination: widow-orphan;
|
826
|
+
mso-hyphenate: none;
|
827
|
+
tab-stops: 20.15pt 78.0pt right dotted 487.6pt;
|
828
|
+
font-size: 10.5pt;
|
829
|
+
font-family: {{bodyfont}};
|
830
|
+
mso-fareast-font-family: {{bodyfont}};
|
831
|
+
mso-bidi-font-family: {{bodyfont}};
|
832
|
+
mso-ansi-language: EN-GB;
|
833
|
+
font-weight: bold;
|
834
|
+
mso-bidi-font-weight: normal; }
|
835
|
+
|
686
836
|
span.MsoFootnoteReference {
|
687
837
|
mso-style-name: "Footnote Reference";
|
688
838
|
mso-style-priority: 99;
|
@@ -642,6 +642,150 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
642
642
|
mso-ansi-language:EN-GB;
|
643
643
|
font-weight:bold;
|
644
644
|
mso-bidi-font-weight:normal;}
|
645
|
+
p.MsoToc4, li.MsoToc4, div.MsoToc4
|
646
|
+
{mso-style-noshow:yes;
|
647
|
+
mso-style-priority:39;
|
648
|
+
mso-style-unhide:no;
|
649
|
+
mso-style-name:"TOC 4";
|
650
|
+
mso-style-parent:"TOC 3";
|
651
|
+
mso-style-next:Normal;
|
652
|
+
margin-top:0cm;
|
653
|
+
margin-right:25.0pt;
|
654
|
+
margin-bottom:0cm;
|
655
|
+
margin-left:36.0pt;
|
656
|
+
margin-bottom:.0001pt;
|
657
|
+
text-indent:-36.0pt;
|
658
|
+
line-height:12.0pt;
|
659
|
+
mso-pagination:widow-orphan;
|
660
|
+
mso-hyphenate:none;
|
661
|
+
tab-stops:20.15pt 47.9pt right dotted 487.6pt;
|
662
|
+
font-size:10.5pt;
|
663
|
+
font-family:$bodyfont;
|
664
|
+
mso-fareast-font-family:$bodyfont;
|
665
|
+
mso-bidi-font-family:$bodyfont;
|
666
|
+
mso-ansi-language:EN-GB;
|
667
|
+
font-weight:bold;
|
668
|
+
mso-bidi-font-weight:normal;}
|
669
|
+
p.MsoToc5, li.MsoToc5, div.MsoToc5
|
670
|
+
{mso-style-noshow:yes;
|
671
|
+
mso-style-priority:39;
|
672
|
+
mso-style-unhide:no;
|
673
|
+
mso-style-name:"TOC 5";
|
674
|
+
mso-style-parent:"TOC 4";
|
675
|
+
mso-style-next:Normal;
|
676
|
+
margin-top:0cm;
|
677
|
+
margin-right:25.0pt;
|
678
|
+
margin-bottom:0cm;
|
679
|
+
margin-left:36.0pt;
|
680
|
+
margin-bottom:.0001pt;
|
681
|
+
text-indent:-36.0pt;
|
682
|
+
line-height:12.0pt;
|
683
|
+
mso-pagination:widow-orphan;
|
684
|
+
mso-hyphenate:none;
|
685
|
+
tab-stops:20.15pt 47.9pt right dotted 487.6pt;
|
686
|
+
font-size:10.5pt;
|
687
|
+
font-family:$bodyfont;
|
688
|
+
mso-fareast-font-family:$bodyfont;
|
689
|
+
mso-bidi-font-family:$bodyfont;
|
690
|
+
mso-ansi-language:EN-GB;
|
691
|
+
font-weight:bold;
|
692
|
+
mso-bidi-font-weight:normal;}
|
693
|
+
p.MsoToc6, li.MsoToc6, div.MsoToc6
|
694
|
+
{mso-style-noshow:yes;
|
695
|
+
mso-style-priority:39;
|
696
|
+
mso-style-unhide:no;
|
697
|
+
mso-style-name:"TOC 6";
|
698
|
+
mso-style-parent:"TOC 5";
|
699
|
+
mso-style-next:Normal;
|
700
|
+
margin-top:0cm;
|
701
|
+
margin-right:25.0pt;
|
702
|
+
margin-bottom:0cm;
|
703
|
+
margin-left:36.0pt;
|
704
|
+
margin-bottom:.0001pt;
|
705
|
+
text-indent:-36.0pt;
|
706
|
+
line-height:12.0pt;
|
707
|
+
mso-pagination:widow-orphan;
|
708
|
+
mso-hyphenate:none;
|
709
|
+
tab-stops:20.15pt 55.0pt right dotted 487.6pt;
|
710
|
+
font-size:10.5pt;
|
711
|
+
font-family:$bodyfont;
|
712
|
+
mso-fareast-font-family:$bodyfont;
|
713
|
+
mso-bidi-font-family:$bodyfont;
|
714
|
+
mso-ansi-language:EN-GB;
|
715
|
+
font-weight:bold;
|
716
|
+
mso-bidi-font-weight:normal;}
|
717
|
+
p.MsoToc7, li.MsoToc7, div.MsoToc7
|
718
|
+
{mso-style-noshow:yes;
|
719
|
+
mso-style-priority:39;
|
720
|
+
mso-style-unhide:no;
|
721
|
+
mso-style-name:"TOC 7";
|
722
|
+
mso-style-parent:"TOC 6";
|
723
|
+
mso-style-next:Normal;
|
724
|
+
margin-top:0cm;
|
725
|
+
margin-right:25.0pt;
|
726
|
+
margin-bottom:0cm;
|
727
|
+
margin-left:36.0pt;
|
728
|
+
margin-bottom:.0001pt;
|
729
|
+
text-indent:-36.0pt;
|
730
|
+
line-height:12.0pt;
|
731
|
+
mso-pagination:widow-orphan;
|
732
|
+
mso-hyphenate:none;
|
733
|
+
tab-stops:20.15pt 62.7pt right dotted 487.6pt;
|
734
|
+
font-size:10.5pt;
|
735
|
+
font-family:$bodyfont;
|
736
|
+
mso-fareast-font-family:$bodyfont;
|
737
|
+
mso-bidi-font-family:$bodyfont;
|
738
|
+
mso-ansi-language:EN-GB;
|
739
|
+
font-weight:bold;
|
740
|
+
mso-bidi-font-weight:normal;}
|
741
|
+
p.MsoToc8, li.MsoToc8, div.MsoToc8
|
742
|
+
{mso-style-noshow:yes;
|
743
|
+
mso-style-priority:39;
|
744
|
+
mso-style-unhide:no;
|
745
|
+
mso-style-name:"TOC 8";
|
746
|
+
mso-style-parent:"TOC 7";
|
747
|
+
mso-style-next:Normal;
|
748
|
+
margin-top:0cm;
|
749
|
+
margin-right:25.0pt;
|
750
|
+
margin-bottom:0cm;
|
751
|
+
margin-left:36.0pt;
|
752
|
+
margin-bottom:.0001pt;
|
753
|
+
text-indent:-36.0pt;
|
754
|
+
line-height:12.0pt;
|
755
|
+
mso-pagination:widow-orphan;
|
756
|
+
mso-hyphenate:none;
|
757
|
+
tab-stops:20.15pt 70.3pt right dotted 487.6pt;
|
758
|
+
font-size:10.5pt;
|
759
|
+
font-family:$bodyfont;
|
760
|
+
mso-fareast-font-family:$bodyfont;
|
761
|
+
mso-bidi-font-family:$bodyfont;
|
762
|
+
mso-ansi-language:EN-GB;
|
763
|
+
font-weight:bold;
|
764
|
+
mso-bidi-font-weight:normal;}
|
765
|
+
p.MsoToc9, li.MsoToc9, div.MsoToc9
|
766
|
+
{mso-style-noshow:yes;
|
767
|
+
mso-style-priority:39;
|
768
|
+
mso-style-unhide:no;
|
769
|
+
mso-style-name:"TOC 9";
|
770
|
+
mso-style-parent:"TOC 8";
|
771
|
+
mso-style-next:Normal;
|
772
|
+
margin-top:0cm;
|
773
|
+
margin-right:25.0pt;
|
774
|
+
margin-bottom:0cm;
|
775
|
+
margin-left:36.0pt;
|
776
|
+
margin-bottom:.0001pt;
|
777
|
+
text-indent:-36.0pt;
|
778
|
+
line-height:12.0pt;
|
779
|
+
mso-pagination:widow-orphan;
|
780
|
+
mso-hyphenate:none;
|
781
|
+
tab-stops:20.15pt 78.0pt right dotted 487.6pt;
|
782
|
+
font-size:10.5pt;
|
783
|
+
font-family:$bodyfont;
|
784
|
+
mso-fareast-font-family:$bodyfont;
|
785
|
+
mso-bidi-font-family:$bodyfont;
|
786
|
+
mso-ansi-language:EN-GB;
|
787
|
+
font-weight:bold;
|
788
|
+
mso-bidi-font-weight:normal;}
|
645
789
|
span.MsoFootnoteReference {
|
646
790
|
mso-style-name:"Footnote Reference";
|
647
791
|
mso-style-priority:99;
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
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: 2.1.
|
4
|
+
version: 2.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|