metanorma-ribose 2.7.3 → 2.7.4
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/ribose/html/htmlstyle.css +24 -30
- data/lib/isodoc/ribose/ribose.standard.xsl +241 -89
- data/lib/metanorma/ribose/isodoc.rng +26 -19
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma.yml +4 -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: 8c4cb0cfa512d21d60215aaddc28433aa82aca27b0b96c17284707e9115e4cff
|
4
|
+
data.tar.gz: b2ddf087d596cbbb85793e2f2bdd4c5529900dbfdd463662c509b32ca405092c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed16916f277c36593b6755ec6541b44041f0444126308bab2bce1f014a283a607a3ec378f709504eeb4d9776430562c29c4fe39cceb25180e09d933b4efb8015
|
7
|
+
data.tar.gz: e0840c816a8a940babff0100d620146fc371b1bf4a713324f304e070bb12b03af3bf927f867874bb5d4bb278c3690c28af75700f2f8d4c7700a52d1caa08084f
|
@@ -145,16 +145,6 @@ div.document-stage-band, div.document-type-band {
|
|
145
145
|
background-color: #333333;
|
146
146
|
}
|
147
147
|
|
148
|
-
a.FootnoteRef + a.FootnoteRef::before {
|
149
|
-
content: ", ";
|
150
|
-
vertical-align: super;
|
151
|
-
}
|
152
|
-
|
153
|
-
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
154
|
-
content: ", ";
|
155
|
-
vertical-align: super;
|
156
|
-
}
|
157
|
-
|
158
148
|
a.TableFootnoteRef, span.TableFootnoteRef,
|
159
149
|
a.FootnoteRef, span.FootnoteRef {
|
160
150
|
vertical-align: super;
|
@@ -483,10 +473,6 @@ main {
|
|
483
473
|
margin: 0 3em 0 6em;
|
484
474
|
}
|
485
475
|
|
486
|
-
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
487
|
-
font-family: {{bodyfont}};
|
488
|
-
font-weight: 400;
|
489
|
-
}
|
490
476
|
#toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
491
477
|
margin: 0;
|
492
478
|
padding: 0;
|
@@ -538,6 +524,10 @@ main {
|
|
538
524
|
color: black;
|
539
525
|
}
|
540
526
|
}
|
527
|
+
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
528
|
+
font-family: {{bodyfont}};
|
529
|
+
font-weight: 400;
|
530
|
+
}
|
541
531
|
@media screen and (max-width: 768px) {
|
542
532
|
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
543
533
|
padding: 0 1.5em;
|
@@ -632,7 +622,6 @@ main {
|
|
632
622
|
cursor: pointer;
|
633
623
|
padding: 10px 15px 10px 15px;
|
634
624
|
border-radius: 4px;
|
635
|
-
text-transform: uppercase;
|
636
625
|
}
|
637
626
|
#myBtn:hover {
|
638
627
|
opacity: 1;
|
@@ -642,6 +631,9 @@ main {
|
|
642
631
|
display: none;
|
643
632
|
}
|
644
633
|
}
|
634
|
+
#myBtn {
|
635
|
+
text-transform: uppercase;
|
636
|
+
}
|
645
637
|
#myBtn a.anchorjs-link:hover {
|
646
638
|
background: none;
|
647
639
|
color: #485094;
|
@@ -666,12 +658,6 @@ main {
|
|
666
658
|
margin: 0;
|
667
659
|
}
|
668
660
|
}
|
669
|
-
div.figure {
|
670
|
-
line-height: 1.6em;
|
671
|
-
padding: 1.5em;
|
672
|
-
margin: 2em 0 1em 0;
|
673
|
-
overflow: auto;
|
674
|
-
}
|
675
661
|
div.figure .FigureTitle, div.figure .figure-title {
|
676
662
|
font-weight: 700;
|
677
663
|
font-size: 1em;
|
@@ -684,6 +670,12 @@ div.figure > img, div.figure > svg {
|
|
684
670
|
max-width: 100%;
|
685
671
|
height: auto;
|
686
672
|
}
|
673
|
+
div.figure {
|
674
|
+
line-height: 1.6em;
|
675
|
+
padding: 1.5em;
|
676
|
+
margin: 2em 0 1em 0;
|
677
|
+
overflow: auto;
|
678
|
+
}
|
687
679
|
|
688
680
|
table div.figure {
|
689
681
|
padding: 0;
|
@@ -1028,6 +1020,13 @@ p.NormRef {
|
|
1028
1020
|
/*
|
1029
1021
|
3.6 Source Code + figures
|
1030
1022
|
*/
|
1023
|
+
.figure .SourceTitle,
|
1024
|
+
pre .SourceTitle,
|
1025
|
+
.pseudocode .SourceTitle {
|
1026
|
+
font-weight: 700;
|
1027
|
+
font-size: 1em;
|
1028
|
+
text-align: center;
|
1029
|
+
}
|
1031
1030
|
.figure,
|
1032
1031
|
pre,
|
1033
1032
|
.pseudocode {
|
@@ -1038,13 +1037,6 @@ pre,
|
|
1038
1037
|
margin: 2em 0 1em 0;
|
1039
1038
|
overflow: auto;
|
1040
1039
|
}
|
1041
|
-
.figure .SourceTitle,
|
1042
|
-
pre .SourceTitle,
|
1043
|
-
.pseudocode .SourceTitle {
|
1044
|
-
font-weight: 700;
|
1045
|
-
font-size: 1em;
|
1046
|
-
text-align: center;
|
1047
|
-
}
|
1048
1040
|
|
1049
1041
|
pre {
|
1050
1042
|
font-family: {{monospacefont}};
|
@@ -1108,12 +1100,14 @@ pre {
|
|
1108
1100
|
padding: 1.2em;
|
1109
1101
|
margin: 2em 0 1em 0;
|
1110
1102
|
text-align: left;
|
1111
|
-
color: #424242;
|
1112
|
-
padding-left: 2.7em;
|
1113
1103
|
}
|
1114
1104
|
.example p {
|
1115
1105
|
margin: 0;
|
1116
1106
|
}
|
1107
|
+
.example {
|
1108
|
+
color: #424242;
|
1109
|
+
padding-left: 2.7em;
|
1110
|
+
}
|
1117
1111
|
.example .example-title {
|
1118
1112
|
font-weight: 700;
|
1119
1113
|
text-transform: uppercase;
|
@@ -350,9 +350,13 @@
|
|
350
350
|
<xsl:variable name="toc_and_boilerplate">
|
351
351
|
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:clause[@type = 'toc']"/>
|
352
352
|
|
353
|
+
<!-- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:copyright-statement"/>
|
354
|
+
|
353
355
|
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
356
|
+
|
357
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/> -->
|
354
358
|
|
355
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate
|
359
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/*"/>
|
356
360
|
</xsl:variable>
|
357
361
|
|
358
362
|
<xsl:if test="normalize-space($toc_and_boilerplate) != ''">
|
@@ -388,9 +392,9 @@
|
|
388
392
|
<xsl:call-template name="insertHeaderFooter">
|
389
393
|
<xsl:with-param name="section">main</xsl:with-param>
|
390
394
|
</xsl:call-template>
|
391
|
-
<fo:flow flow-name="xsl-region-body">
|
395
|
+
<fo:flow flow-name="xsl-region-body" role="SKIP">
|
392
396
|
|
393
|
-
<fo:block line-height="130%">
|
397
|
+
<fo:block line-height="130%" role="SKIP">
|
394
398
|
|
395
399
|
<!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:abstract" />
|
396
400
|
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:foreword" />
|
@@ -410,6 +414,8 @@
|
|
410
414
|
</xsl:for-each>
|
411
415
|
</xsl:for-each>
|
412
416
|
|
417
|
+
<xsl:call-template name="back-page"/>
|
418
|
+
|
413
419
|
</fo:root>
|
414
420
|
</xsl:template>
|
415
421
|
|
@@ -500,9 +506,17 @@
|
|
500
506
|
<xsl:if test="string-length($title) > 80">
|
501
507
|
<xsl:attribute name="margin-right">-30mm</xsl:attribute>
|
502
508
|
</xsl:if>
|
503
|
-
|
504
|
-
|
505
|
-
|
509
|
+
|
510
|
+
<xsl:variable name="titles">
|
511
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and (@type = 'intro' or not(@type))]"/>
|
512
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and @type = 'main'][last()]"/>
|
513
|
+
</xsl:variable>
|
514
|
+
<xsl:for-each select="xalan:nodeset($titles)/mn:title">
|
515
|
+
<fo:block font-size="27pt" font-weight="bold" role="H1">
|
516
|
+
<xsl:apply-templates/><xsl:if test="position() != last()"><xsl:value-of select="$nonbreak_space_em_dash"/></xsl:if>
|
517
|
+
</fo:block>
|
518
|
+
</xsl:for-each>
|
519
|
+
|
506
520
|
<fo:block space-before="9pt" font-size="16.8pt" font-weight="600">
|
507
521
|
<xsl:value-of select="$docnumber_version"/>
|
508
522
|
</fo:block>
|
@@ -511,6 +525,9 @@
|
|
511
525
|
</fo:page-sequence>
|
512
526
|
</xsl:template> <!-- END: cover-page -->
|
513
527
|
|
528
|
+
<xsl:template name="back-page">
|
529
|
+
</xsl:template>
|
530
|
+
|
514
531
|
<xsl:template name="processPrefaceAndMainSectionsRibose_items">
|
515
532
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
516
533
|
|
@@ -598,12 +615,8 @@
|
|
598
615
|
</fo:block>
|
599
616
|
</xsl:template>
|
600
617
|
|
601
|
-
<xsl:template match="mn:title" mode="cover_page">
|
602
|
-
<xsl:apply-templates/>
|
603
|
-
</xsl:template>
|
604
|
-
|
605
618
|
<xsl:template match="mn:preface/mn:clause[@type = 'toc']" name="toc" priority="3">
|
606
|
-
<fo:block role="
|
619
|
+
<fo:block role="SKIP">
|
607
620
|
<xsl:apply-templates/>
|
608
621
|
|
609
622
|
<xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
|
@@ -611,7 +624,7 @@
|
|
611
624
|
<xsl:if test="$contents//mnx:item[@display = 'true']">
|
612
625
|
|
613
626
|
<fo:block-container xsl:use-attribute-sets="toc-style">
|
614
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
627
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
615
628
|
<xsl:for-each select="$contents//mnx:item[@display = 'true']">
|
616
629
|
<fo:block xsl:use-attribute-sets="toc-item-style">
|
617
630
|
|
@@ -744,18 +757,20 @@
|
|
744
757
|
<!-- ============================= -->
|
745
758
|
<!-- ============================= -->
|
746
759
|
|
760
|
+
<xsl:template match="mn:copyright-statement" priority="2"/>
|
761
|
+
|
762
|
+
<xsl:template match="mn:legal-statement" priority="2">
|
763
|
+
<xsl:apply-templates/>
|
764
|
+
</xsl:template>
|
765
|
+
|
747
766
|
<xsl:template match="mn:feedback-statement" priority="2">
|
748
|
-
<fo:block-container
|
767
|
+
<fo:block-container xsl:use-attribute-sets="feedback-statement-style">
|
749
768
|
<fo:block>
|
750
769
|
<xsl:apply-templates/>
|
751
770
|
</fo:block>
|
752
771
|
</fo:block-container>
|
753
772
|
</xsl:template>
|
754
773
|
|
755
|
-
<xsl:template match="mn:legal-statement" priority="2">
|
756
|
-
<xsl:apply-templates/>
|
757
|
-
</xsl:template>
|
758
|
-
|
759
774
|
<!-- ====== -->
|
760
775
|
<!-- title -->
|
761
776
|
<!-- ====== -->
|
@@ -843,20 +858,21 @@
|
|
843
858
|
|
844
859
|
<xsl:choose>
|
845
860
|
<xsl:when test="$level = 1">
|
846
|
-
<fo:block-container margin-left="-15mm">
|
847
|
-
<fo:block-container margin-left="0mm">
|
848
|
-
<fo:table width="100%" table-layout="fixed">
|
861
|
+
<fo:block-container margin-left="-15mm" role="SKIP">
|
862
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
863
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
849
864
|
<fo:table-column column-width="15mm"/>
|
850
865
|
<fo:table-column column-width="150mm"/>
|
851
|
-
<fo:table-body>
|
852
|
-
<fo:table-row>
|
853
|
-
<fo:table-cell text-align="left">
|
854
|
-
<fo:block>
|
866
|
+
<fo:table-body role="SKIP">
|
867
|
+
<fo:table-row role="SKIP">
|
868
|
+
<fo:table-cell text-align="left" role="SKIP">
|
869
|
+
<fo:block role="SKIP">
|
870
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
855
871
|
<xsl:call-template name="extractSection"/><!-- section number 1 2 3 ... -->
|
856
872
|
</fo:block>
|
857
873
|
</fo:table-cell>
|
858
|
-
<fo:table-cell>
|
859
|
-
<fo:block>
|
874
|
+
<fo:table-cell role="SKIP">
|
875
|
+
<fo:block role="SKIP">
|
860
876
|
<xsl:call-template name="extractTitle"/> <!-- section title -->
|
861
877
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
862
878
|
</fo:block>
|
@@ -868,6 +884,7 @@
|
|
868
884
|
</fo:block-container>
|
869
885
|
</xsl:when>
|
870
886
|
<xsl:otherwise>
|
887
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
871
888
|
<xsl:apply-templates/>
|
872
889
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
873
890
|
</xsl:otherwise>
|
@@ -889,7 +906,9 @@
|
|
889
906
|
</xsl:template> -->
|
890
907
|
|
891
908
|
<xsl:template match="mn:terms" priority="3">
|
892
|
-
<
|
909
|
+
<xsl:if test="not(ancestor::*[@type = 'terms'])">
|
910
|
+
<fo:block break-after="page"/>
|
911
|
+
</xsl:if>
|
893
912
|
<fo:block id="{@id}">
|
894
913
|
<xsl:apply-templates/>
|
895
914
|
</fo:block>
|
@@ -907,6 +926,8 @@
|
|
907
926
|
<xsl:otherwise>fo:block</xsl:otherwise>
|
908
927
|
</xsl:choose>
|
909
928
|
</xsl:variable>
|
929
|
+
|
930
|
+
<xsl:call-template name="setNamedDestination"/>
|
910
931
|
<xsl:element name="{$element-name}">
|
911
932
|
<xsl:attribute name="id">
|
912
933
|
<xsl:value-of select="@id"/>
|
@@ -944,11 +965,11 @@
|
|
944
965
|
</xsl:template>
|
945
966
|
|
946
967
|
<xsl:template match="mn:ul | mn:ol" mode="list" priority="2">
|
947
|
-
<fo:block-container>
|
948
|
-
<fo:block-container margin-left="0mm">
|
968
|
+
<fo:block-container role="SKIP">
|
969
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
949
970
|
<xsl:choose>
|
950
971
|
<xsl:when test="not(ancestor::mn:ul) and not(ancestor::mn:ol)">
|
951
|
-
<fo:block padding-bottom="12pt" padding-top="4pt">
|
972
|
+
<fo:block padding-bottom="12pt" padding-top="4pt" role="SKIP">
|
952
973
|
<xsl:call-template name="listProcessing"/>
|
953
974
|
</fo:block>
|
954
975
|
</xsl:when>
|
@@ -982,21 +1003,10 @@
|
|
982
1003
|
</xsl:template>
|
983
1004
|
|
984
1005
|
<xsl:template match="mn:fmt-preferred | mn:fmt-deprecates | mn:fmt-admitted" priority="2">
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
<xsl:variable name="font-size">
|
989
|
-
<xsl:choose>
|
990
|
-
<xsl:when test="$level >= 2">13pt</xsl:when>
|
991
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
992
|
-
</xsl:choose>
|
993
|
-
</xsl:variable>
|
994
|
-
<xsl:variable name="levelTerm">
|
995
|
-
<xsl:call-template name="getLevelTermName"/>
|
996
|
-
</xsl:variable>
|
997
|
-
<fo:block font-weight="bold" color="black" font-size="{$font-size}" keep-with-next="always" role="H{$levelTerm}"> <!-- 600 - semibold -->
|
1006
|
+
|
1007
|
+
<fo:block xsl:use-attribute-sets="preferred-style">
|
1008
|
+
<xsl:call-template name="refine_preferred-style"/>
|
998
1009
|
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
999
|
-
<xsl:attribute name="space-before">11mm</xsl:attribute>
|
1000
1010
|
<fo:inline padding-right="1mm">
|
1001
1011
|
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
1002
1012
|
</fo:inline>
|
@@ -1030,52 +1040,54 @@
|
|
1030
1040
|
</fo:inline>
|
1031
1041
|
</fo:block>
|
1032
1042
|
</fo:inline-container>
|
1033
|
-
|
1034
1043
|
</fo:block>
|
1035
1044
|
</xsl:template>
|
1036
1045
|
|
1037
1046
|
<xsl:template match="mn:references[not(@normative='true')]" priority="3">
|
1038
1047
|
<fo:block break-after="page"/>
|
1039
|
-
<fo:block id="{@id}">
|
1040
|
-
<fo:table width="100%" table-layout="fixed">
|
1048
|
+
<fo:block id="{@id}" role="SKIP">
|
1049
|
+
<fo:table width="100%" table-layout="fixed" role="Sect">
|
1041
1050
|
<fo:table-column column-width="100%"/>
|
1042
|
-
<fo:table-header>
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1048
|
-
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
|
1049
|
-
<xsl:attribute name="color">black</xsl:attribute>
|
1050
|
-
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1051
|
+
<fo:table-header role="SKIP">
|
1052
|
+
<!-- repeat table header on each page -->
|
1053
|
+
<fo:table-row role="SKIP">
|
1054
|
+
<fo:table-cell text-align="left" role="SKIP">
|
1055
|
+
<fo:block xsl:use-attribute-sets="references-non-normative-title-style"> <!-- Bibliography section title -->
|
1051
1056
|
<xsl:apply-templates select="mn:fmt-title/node()"/>
|
1052
1057
|
</fo:block>
|
1053
1058
|
</fo:table-cell>
|
1054
1059
|
</fo:table-row>
|
1055
1060
|
</fo:table-header>
|
1056
|
-
<fo:table-body>
|
1057
|
-
<fo:table-row>
|
1058
|
-
<fo:table-cell text-align="left">
|
1059
|
-
<fo:block>
|
1061
|
+
<fo:table-body role="SKIP">
|
1062
|
+
<fo:table-row role="SKIP">
|
1063
|
+
<fo:table-cell text-align="left" role="SKIP">
|
1064
|
+
<fo:block role="L">
|
1060
1065
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
1061
1066
|
</fo:block>
|
1062
1067
|
</fo:table-cell>
|
1063
1068
|
</fo:table-row>
|
1064
1069
|
</fo:table-body>
|
1065
1070
|
</fo:table>
|
1066
|
-
|
1067
1071
|
</fo:block>
|
1068
1072
|
</xsl:template>
|
1069
1073
|
|
1070
1074
|
<xsl:template match="*[self::mn:table or self::mn:figure or self::mn:sourcecode]/mn:fmt-name/node()[1][self::text()]" priority="2">
|
1075
|
+
<xsl:variable name="styles_">
|
1076
|
+
<xsl:choose>
|
1077
|
+
<xsl:when test="ancestor::mn:table"><styles xsl:use-attribute-sets="table-number-style"><xsl:call-template name="refine_table-number-style"/></styles></xsl:when>
|
1078
|
+
<xsl:when test="ancestor::mn:figure"><styles xsl:use-attribute-sets="figure-number-style"><xsl:call-template name="refine_figure-number-style"/></styles></xsl:when>
|
1079
|
+
<xsl:when test="ancestor::mn:sourcecode"><styles xsl:use-attribute-sets="sourcecode-number-style"><xsl:call-template name="refine_sourcecode-number-style"/></styles></xsl:when>
|
1080
|
+
</xsl:choose>
|
1081
|
+
</xsl:variable>
|
1082
|
+
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
1071
1083
|
<xsl:choose>
|
1072
1084
|
<xsl:when test="contains(., '—')">
|
1073
1085
|
<xsl:variable name="name_number" select="normalize-space(translate(substring-before(., '—'), ' ', ' '))"/>
|
1074
|
-
<fo:inline
|
1086
|
+
<fo:inline><xsl:copy-of select="$styles/styles/@*"/><xsl:value-of select="$name_number"/><xsl:text>:</xsl:text></fo:inline>
|
1075
1087
|
<xsl:value-of select="substring-after(., '—')"/>
|
1076
1088
|
</xsl:when>
|
1077
1089
|
<xsl:when test="starts-with(., 'Figure ') or starts-with(., 'Table ')">
|
1078
|
-
<fo:inline
|
1090
|
+
<fo:inline><xsl:copy-of select="$styles/styles/@*"/><xsl:value-of select="."/></fo:inline>
|
1079
1091
|
</xsl:when>
|
1080
1092
|
<xsl:otherwise>
|
1081
1093
|
<xsl:value-of select="."/>
|
@@ -1084,17 +1096,12 @@
|
|
1084
1096
|
</xsl:template>
|
1085
1097
|
|
1086
1098
|
<xsl:template match="mn:clause" priority="2">
|
1087
|
-
<xsl:
|
1088
|
-
<xsl:call-template name="
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
<xsl:if test="$level >= 4">
|
1094
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
1095
|
-
</xsl:if>
|
1096
|
-
<fo:block-container margin-left="0mm">
|
1097
|
-
<fo:block>
|
1099
|
+
<fo:block-container xsl:use-attribute-sets="clause-style">
|
1100
|
+
<xsl:call-template name="refine_clause-style"/>
|
1101
|
+
|
1102
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
1103
|
+
<xsl:call-template name="setNamedDestination"/>
|
1104
|
+
<fo:block role="SKIP">
|
1098
1105
|
<xsl:call-template name="setId"/>
|
1099
1106
|
<xsl:call-template name="addReviewHelper"/>
|
1100
1107
|
<xsl:apply-templates/>
|
@@ -1105,11 +1112,21 @@
|
|
1105
1112
|
|
1106
1113
|
<xsl:template name="insertHeaderFooter">
|
1107
1114
|
<xsl:param name="section"/>
|
1115
|
+
|
1116
|
+
<xsl:call-template name="insertHoneycomb">
|
1117
|
+
<xsl:with-param name="section" select="$section"/>
|
1118
|
+
</xsl:call-template>
|
1119
|
+
|
1120
|
+
<xsl:call-template name="insertFooter"/>
|
1121
|
+
</xsl:template>
|
1122
|
+
|
1123
|
+
<xsl:template name="insertHoneycomb">
|
1124
|
+
<xsl:param name="section"/>
|
1108
1125
|
<!-- LT - left top -->
|
1109
1126
|
<!-- RT - right top -->
|
1110
1127
|
<!-- LB - left bottom -->
|
1111
1128
|
<!-- RB - right bottom -->
|
1112
|
-
<xsl:variable name="width">170,26</xsl:variable>
|
1129
|
+
<!-- <xsl:variable name="width">170,26</xsl:variable> -->
|
1113
1130
|
<xsl:variable name="left_left">-28.02</xsl:variable>
|
1114
1131
|
<xsl:variable name="left_right">72</xsl:variable>
|
1115
1132
|
<xsl:variable name="top_top">-25.75</xsl:variable>
|
@@ -1201,19 +1218,36 @@
|
|
1201
1218
|
</fo:block>
|
1202
1219
|
</fo:block-container>
|
1203
1220
|
</fo:static-content>
|
1204
|
-
|
1205
|
-
<xsl:call-template name="insertFooter"/>
|
1206
1221
|
</xsl:template>
|
1207
1222
|
|
1208
1223
|
<xsl:template name="insertFooter">
|
1209
|
-
<xsl:param name="invert"/>
|
1224
|
+
<!-- <xsl:param name="invert"/> -->
|
1210
1225
|
<xsl:variable name="footerText">
|
1211
1226
|
<xsl:text>Ribose</xsl:text>
|
1212
1227
|
<xsl:text> </xsl:text>
|
1213
|
-
<xsl:call-template name="
|
1214
|
-
<xsl:with-param name="str"
|
1228
|
+
<xsl:call-template name="capitalizeWords">
|
1229
|
+
<xsl:with-param name="str">
|
1230
|
+
<xsl:choose>
|
1231
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:doctype-alias">
|
1232
|
+
<xsl:value-of select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:doctype-alias"/>
|
1233
|
+
</xsl:when>
|
1234
|
+
<xsl:otherwise>
|
1235
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:doctype"/>
|
1236
|
+
</xsl:otherwise>
|
1237
|
+
</xsl:choose>
|
1238
|
+
</xsl:with-param>
|
1215
1239
|
</xsl:call-template>
|
1216
1240
|
</xsl:variable>
|
1241
|
+
<xsl:call-template name="insertFooterOdd">
|
1242
|
+
<xsl:with-param name="footerText" select="$footerText"/>
|
1243
|
+
</xsl:call-template>
|
1244
|
+
<xsl:call-template name="insertFooterEven">
|
1245
|
+
<xsl:with-param name="footerText" select="$footerText"/>
|
1246
|
+
</xsl:call-template>
|
1247
|
+
</xsl:template>
|
1248
|
+
|
1249
|
+
<xsl:template name="insertFooterOdd">
|
1250
|
+
<xsl:param name="footerText"/>
|
1217
1251
|
<fo:static-content flow-name="footer-odd" role="artifact">
|
1218
1252
|
<fo:block-container font-size="8pt" height="100%" color="black">
|
1219
1253
|
<fo:block text-align-last="justify" margin-right="1mm">
|
@@ -1226,14 +1260,18 @@
|
|
1226
1260
|
</fo:block>
|
1227
1261
|
</fo:block-container>
|
1228
1262
|
</fo:static-content>
|
1263
|
+
</xsl:template>
|
1264
|
+
|
1265
|
+
<xsl:template name="insertFooterEven">
|
1266
|
+
<xsl:param name="footerText"/>
|
1229
1267
|
<fo:static-content flow-name="footer-even" role="artifact">
|
1230
1268
|
<fo:block-container font-size="8pt" height="100%" color="black">
|
1231
1269
|
<fo:block text-align-last="justify" margin-right="1mm">
|
1232
1270
|
<fo:inline padding-right="11mm"><fo:page-number/></fo:inline>
|
1233
1271
|
<fo:inline>
|
1234
|
-
<xsl:if test="$invert = 'true'">
|
1272
|
+
<!-- <xsl:if test="$invert = 'true'">
|
1235
1273
|
<xsl:attribute name="color">white</xsl:attribute>
|
1236
|
-
</xsl:if>
|
1274
|
+
</xsl:if> -->
|
1237
1275
|
<xsl:value-of select="$footerText"/>
|
1238
1276
|
</fo:inline>
|
1239
1277
|
<fo:inline keep-together.within-line="always">
|
@@ -1529,6 +1567,7 @@
|
|
1529
1567
|
<xsl:variable name="en_dash">–</xsl:variable>
|
1530
1568
|
<xsl:variable name="em_dash">—</xsl:variable>
|
1531
1569
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
1570
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
1532
1571
|
<xsl:variable name="cr"> </xsl:variable>
|
1533
1572
|
<xsl:variable name="lf">
|
1534
1573
|
</xsl:variable>
|
@@ -1614,11 +1653,12 @@
|
|
1614
1653
|
<xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
|
1615
1654
|
<xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable>
|
1616
1655
|
<xsl:attribute-set name="root-style">
|
1617
|
-
<xsl:attribute name="font-family">
|
1656
|
+
<xsl:attribute name="font-family">Open Sans, Source Sans 3, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
1618
1657
|
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
1619
1658
|
<xsl:attribute name="font-weight">300</xsl:attribute>
|
1620
1659
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1621
1660
|
<xsl:attribute name="color">rgb(88, 88, 90)</xsl:attribute>
|
1661
|
+
<xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
|
1622
1662
|
</xsl:attribute-set> <!-- root-style -->
|
1623
1663
|
|
1624
1664
|
<xsl:template name="insertRootStyle">
|
@@ -2073,6 +2113,7 @@
|
|
2073
2113
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
2074
2114
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
2075
2115
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2116
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2076
2117
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
2077
2118
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
2078
2119
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -2087,10 +2128,10 @@
|
|
2087
2128
|
|
2088
2129
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
2089
2130
|
|
2090
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
2131
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
2091
2132
|
<xsl:copy>
|
2092
2133
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
2093
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
2134
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
2094
2135
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
2095
2136
|
</xsl:copy>
|
2096
2137
|
</xsl:template>
|
@@ -2925,6 +2966,9 @@
|
|
2925
2966
|
</xsl:template>
|
2926
2967
|
|
2927
2968
|
<xsl:attribute-set name="feedback-statement-style">
|
2969
|
+
<xsl:attribute name="border">1pt solid black</xsl:attribute>
|
2970
|
+
<xsl:attribute name="padding">1mm</xsl:attribute>
|
2971
|
+
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
2928
2972
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
2929
2973
|
|
2930
2974
|
<xsl:template name="refine_feedback-statement-style">
|
@@ -3196,7 +3240,6 @@
|
|
3196
3240
|
<xsl:attribute name="role">Code</xsl:attribute>
|
3197
3241
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3198
3242
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3199
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3200
3243
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
3201
3244
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
3202
3245
|
|
@@ -3215,6 +3258,16 @@
|
|
3215
3258
|
</xsl:if>
|
3216
3259
|
</xsl:template> <!-- refine_sourcecode-style -->
|
3217
3260
|
|
3261
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
3262
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3263
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
3264
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
3265
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
3266
|
+
</xsl:attribute-set>
|
3267
|
+
|
3268
|
+
<xsl:template name="refine_sourcecode-number-style">
|
3269
|
+
</xsl:template>
|
3270
|
+
|
3218
3271
|
<xsl:attribute-set name="sourcecode-name-style">
|
3219
3272
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
3220
3273
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4621,6 +4674,32 @@
|
|
4621
4674
|
<xsl:template name="refine_term-name-style">
|
4622
4675
|
</xsl:template>
|
4623
4676
|
|
4677
|
+
<xsl:attribute-set name="preferred-style">
|
4678
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4679
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
4680
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4681
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
4682
|
+
|
4683
|
+
<xsl:template name="refine_preferred-style">
|
4684
|
+
<xsl:variable name="level">
|
4685
|
+
<xsl:call-template name="getLevel"/>
|
4686
|
+
</xsl:variable>
|
4687
|
+
<xsl:variable name="font-size">
|
4688
|
+
<xsl:choose>
|
4689
|
+
<xsl:when test="$level >= 2">13pt</xsl:when>
|
4690
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
4691
|
+
</xsl:choose>
|
4692
|
+
</xsl:variable>
|
4693
|
+
<xsl:variable name="levelTerm">
|
4694
|
+
<xsl:call-template name="getLevelTermName"/>
|
4695
|
+
</xsl:variable>
|
4696
|
+
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
4697
|
+
<xsl:attribute name="role">H<xsl:value-of select="$levelTerm"/></xsl:attribute>
|
4698
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
4699
|
+
<xsl:attribute name="space-before">11mm</xsl:attribute>
|
4700
|
+
</xsl:if>
|
4701
|
+
</xsl:template>
|
4702
|
+
|
4624
4703
|
<xsl:attribute-set name="preferred-block-style">
|
4625
4704
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
4626
4705
|
|
@@ -4981,6 +5060,7 @@
|
|
4981
5060
|
</xsl:template>
|
4982
5061
|
|
4983
5062
|
<xsl:attribute-set name="example-name-style">
|
5063
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4984
5064
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4985
5065
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4986
5066
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
@@ -5268,6 +5348,16 @@
|
|
5268
5348
|
<xsl:call-template name="setBordersTableArray"/>
|
5269
5349
|
</xsl:template> <!-- refine_table-style -->
|
5270
5350
|
|
5351
|
+
<xsl:attribute-set name="table-number-style">
|
5352
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5353
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
5354
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
5355
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
5356
|
+
</xsl:attribute-set>
|
5357
|
+
|
5358
|
+
<xsl:template name="refine_table-number-style">
|
5359
|
+
</xsl:template>
|
5360
|
+
|
5271
5361
|
<xsl:attribute-set name="table-name-style">
|
5272
5362
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
5273
5363
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -5722,7 +5812,7 @@
|
|
5722
5812
|
|
5723
5813
|
</fo:block>
|
5724
5814
|
|
5725
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5815
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5726
5816
|
<xsl:if test="$continued = 'true'">
|
5727
5817
|
|
5728
5818
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -8877,6 +8967,16 @@
|
|
8877
8967
|
<xsl:template name="refine_figure-style">
|
8878
8968
|
</xsl:template>
|
8879
8969
|
|
8970
|
+
<xsl:attribute-set name="figure-number-style">
|
8971
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8972
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
8973
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
8974
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
8975
|
+
</xsl:attribute-set>
|
8976
|
+
|
8977
|
+
<xsl:template name="refine_figure-number-style">
|
8978
|
+
</xsl:template>
|
8979
|
+
|
8880
8980
|
<xsl:attribute-set name="figure-name-style">
|
8881
8981
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8882
8982
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -11286,6 +11386,13 @@
|
|
11286
11386
|
<!-- ================ -->
|
11287
11387
|
|
11288
11388
|
<xsl:attribute-set name="references-non-normative-title-style">
|
11389
|
+
<xsl:attribute name="margin-left">-15mm</xsl:attribute>
|
11390
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
11391
|
+
<xsl:attribute name="font-size">22pt</xsl:attribute>
|
11392
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
11393
|
+
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
|
11394
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
11395
|
+
<xsl:attribute name="line-height">125%</xsl:attribute>
|
11289
11396
|
</xsl:attribute-set>
|
11290
11397
|
|
11291
11398
|
<xsl:template name="refine_references-non-normative-title-style">
|
@@ -11324,9 +11431,29 @@
|
|
11324
11431
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11325
11432
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
11326
11433
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
11434
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
11327
11435
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
11328
11436
|
|
11329
11437
|
<xsl:template name="refine_bibitem-non-normative-list-style">
|
11438
|
+
<xsl:variable name="last_bibitem_bibliotag">
|
11439
|
+
<xsl:apply-templates select="following-sibling::mn:bibitem[not(@hidden='true')][last()]/mn:biblio-tag">
|
11440
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11441
|
+
</xsl:apply-templates>
|
11442
|
+
<xsl:if test="not(following-sibling::mn:bibitem[not(@hidden='true')][last()]/mn:biblio-tag)">
|
11443
|
+
<xsl:apply-templates select="mn:biblio-tag">
|
11444
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11445
|
+
</xsl:apply-templates>
|
11446
|
+
</xsl:if>
|
11447
|
+
</xsl:variable>
|
11448
|
+
<xsl:variable name="last_bibitem_bibliotag_number_length" select="string-length(translate($last_bibitem_bibliotag, '[] ', ''))"/>
|
11449
|
+
<xsl:if test="$last_bibitem_bibliotag_number_length > 1">
|
11450
|
+
<xsl:attribute name="provisional-distance-between-starts">
|
11451
|
+
<xsl:choose>
|
11452
|
+
<xsl:when test="$last_bibitem_bibliotag_number_length = 2">9.2mm</xsl:when>
|
11453
|
+
<xsl:when test="$last_bibitem_bibliotag_number_length >= 3">11mm</xsl:when>
|
11454
|
+
</xsl:choose>
|
11455
|
+
</xsl:attribute>
|
11456
|
+
</xsl:if>
|
11330
11457
|
</xsl:template>
|
11331
11458
|
|
11332
11459
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
@@ -11447,11 +11574,12 @@
|
|
11447
11574
|
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11448
11575
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11449
11576
|
<xsl:call-template name="setNamedDestination"/>
|
11577
|
+
<!-- continue from <xsl:template match="mn:references[not(@normative='true')]" priority="3"> -->
|
11450
11578
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
11451
11579
|
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
11452
11580
|
<fo:list-item>
|
11453
11581
|
<fo:list-item-label end-indent="label-end()">
|
11454
|
-
<fo:block>
|
11582
|
+
<fo:block role="SKIP">
|
11455
11583
|
<xsl:apply-templates select="mn:biblio-tag">
|
11456
11584
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11457
11585
|
</xsl:apply-templates>
|
@@ -12106,6 +12234,7 @@
|
|
12106
12234
|
<xsl:attribute-set name="toc-style">
|
12107
12235
|
<xsl:attribute name="margin-left">32mm</xsl:attribute>
|
12108
12236
|
<xsl:attribute name="margin-right">-17mm</xsl:attribute>
|
12237
|
+
<xsl:attribute name="role">TOC</xsl:attribute>
|
12109
12238
|
</xsl:attribute-set>
|
12110
12239
|
|
12111
12240
|
<xsl:template name="refine_toc-style">
|
@@ -13740,13 +13869,32 @@
|
|
13740
13869
|
</xsl:choose>
|
13741
13870
|
</xsl:template>
|
13742
13871
|
|
13872
|
+
<xsl:attribute-set name="clause-style">
|
13873
|
+
|
13874
|
+
</xsl:attribute-set>
|
13875
|
+
|
13876
|
+
<xsl:template name="refine_clause-style">
|
13877
|
+
<xsl:variable name="level">
|
13878
|
+
<xsl:call-template name="getLevel">
|
13879
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
13880
|
+
</xsl:call-template>
|
13881
|
+
</xsl:variable>
|
13882
|
+
<xsl:if test="$level >= 4">
|
13883
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
13884
|
+
</xsl:if>
|
13885
|
+
</xsl:template>
|
13886
|
+
|
13743
13887
|
<!-- main sections -->
|
13744
13888
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
13889
|
+
<xsl:if test="@type = 'terms'">
|
13890
|
+
<fo:block break-after="page"/>
|
13891
|
+
</xsl:if>
|
13745
13892
|
<xsl:call-template name="setNamedDestination"/>
|
13746
|
-
<fo:block>
|
13893
|
+
<fo:block role="Sect">
|
13747
13894
|
<xsl:call-template name="setId"/>
|
13748
13895
|
|
13749
13896
|
<xsl:call-template name="sections_element_style"/>
|
13897
|
+
<xsl:call-template name="addTagElementT"/>
|
13750
13898
|
|
13751
13899
|
<xsl:call-template name="addReviewHelper"/>
|
13752
13900
|
|
@@ -13871,6 +14019,10 @@
|
|
13871
14019
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
13872
14020
|
</xsl:template>
|
13873
14021
|
|
14022
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
14023
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
14024
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14025
|
+
|
13874
14026
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
13875
14027
|
<xsl:template name="insert_basic_link">
|
13876
14028
|
<xsl:param name="element"/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.1.
|
3
|
+
<!-- VERSION v2.1.3 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -455,14 +455,7 @@ normative or informative references, some split references into sections organiz
|
|
455
455
|
</ref>
|
456
456
|
</zeroOrMore>
|
457
457
|
<zeroOrMore>
|
458
|
-
<ref name="
|
459
|
-
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
460
|
-
</ref>
|
461
|
-
<zeroOrMore>
|
462
|
-
<ref name="note">
|
463
|
-
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
464
|
-
</ref>
|
465
|
-
</zeroOrMore>
|
458
|
+
<ref name="ReferenceEntry"/>
|
466
459
|
</zeroOrMore>
|
467
460
|
<zeroOrMore>
|
468
461
|
<ref name="references">
|
@@ -604,18 +597,21 @@ gives an explicit page orientation</a:documentation>
|
|
604
597
|
</element>
|
605
598
|
</optional>
|
606
599
|
</define>
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
<attribute name="hiddenref">
|
613
|
-
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
600
|
+
<define name="FnAttributes">
|
601
|
+
<ref name="RequiredId"/>
|
602
|
+
<optional>
|
603
|
+
<attribute name="hiddenref">
|
604
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
614
605
|
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
615
|
-
|
606
|
+
<data type="boolean"/>
|
607
|
+
</attribute>
|
608
|
+
</optional>
|
609
|
+
<attribute name="reference">
|
610
|
+
<a:documentation>The number of the footnote, used to identify it visually</a:documentation>
|
616
611
|
</attribute>
|
617
|
-
</
|
618
|
-
</
|
612
|
+
</define>
|
613
|
+
</include>
|
614
|
+
<!-- end overrides -->
|
619
615
|
<define name="TdAttributes" combine="interleave">
|
620
616
|
<ref name="RequiredId"/>
|
621
617
|
<optional>
|
@@ -853,6 +849,17 @@ titlecase, or lowercase</a:documentation>
|
|
853
849
|
<value>informative</value>
|
854
850
|
</choice>
|
855
851
|
</define>
|
852
|
+
<define name="ReferenceEntry">
|
853
|
+
<a:documentation>Entry in bibliography</a:documentation>
|
854
|
+
<ref name="doc_bibitem">
|
855
|
+
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
856
|
+
</ref>
|
857
|
+
<zeroOrMore>
|
858
|
+
<ref name="note">
|
859
|
+
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
860
|
+
</ref>
|
861
|
+
</zeroOrMore>
|
862
|
+
</define>
|
856
863
|
<define name="doc_bibitem">
|
857
864
|
<a:documentation>Standardisation document representation of bibliographic entry</a:documentation>
|
858
865
|
<element name="bibitem">
|
data/metanorma.yml
CHANGED
@@ -51,7 +51,10 @@ webfont:
|
|
51
51
|
- "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600,600i&display=swap"
|
52
52
|
- "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,300;0,600;1,300;1,600&display=swap"
|
53
53
|
fonts_manifest:
|
54
|
-
|
54
|
+
Open Sans:
|
55
|
+
Open Sans Light:
|
56
|
+
Open Sans Semibold:
|
57
|
+
Source Sans 3:
|
55
58
|
STIX Two Math:
|
56
59
|
Source Serif Pro:
|
57
60
|
Source Code Pro:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.4
|
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-09-
|
11
|
+
date: 2025-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|