metanorma-iso 3.4.6 → 3.4.8
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/.rubocop.yml +13 -1
- data/lib/isodoc/iso/html/style-human.css +0 -4
- data/lib/isodoc/iso/html/style-human.scss +0 -2
- data/lib/isodoc/iso/html/style-iso.css +0 -2
- data/lib/isodoc/iso/html/style-iso.scss +0 -2
- data/lib/isodoc/iso/iso.amendment.xsl +542 -74
- data/lib/isodoc/iso/iso.international-standard.xsl +542 -74
- data/lib/isodoc/iso/presentation_origin.rb +2 -6
- data/lib/isodoc/iso/presentation_xml_convert.rb +5 -1
- data/lib/isodoc/iso/word_cleanup.rb +1 -2
- data/lib/isodoc/iso/word_convert.rb +11 -0
- data/lib/metanorma/iso/basicdoc.rng +31 -6
- data/lib/metanorma/iso/cleanup_biblio.rb +53 -14
- data/lib/metanorma/iso/isodoc.rng +22 -3
- data/lib/metanorma/iso/mathml3-common.rng +257 -0
- data/lib/metanorma/iso/mathml3-content.rng +1544 -0
- data/lib/metanorma/iso/mathml3-presentation.rng +2324 -0
- data/lib/metanorma/iso/mathml3-strict-content.rng +205 -0
- data/lib/metanorma/iso/mathml3.rng +23 -0
- data/lib/metanorma/iso/metanorma-mathml.rng +45 -0
- data/lib/metanorma/iso/publisher_identity.rb +36 -0
- data/lib/metanorma/iso/reqt.rng +10 -2
- data/lib/metanorma/iso/validate_section.rb +1 -5
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/metanorma-iso.rb +1 -0
- data/metanorma-iso.gemspec +1 -1
- metadata +9 -2
|
@@ -11,21 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
<xsl:variable name="debug">false</xsl:variable>
|
|
13
13
|
|
|
14
|
-
<xsl:variable name="revision_date" select="normalize-space((//mn:metanorma)[1]/mn:bibdata/mn:version/mn:revision-date)"/>
|
|
15
|
-
<xsl:variable name="revision_date_num" select="number(translate($revision_date,'-',''))"/>
|
|
16
|
-
|
|
17
|
-
<!-- TO DO: move inside 'variables' -->
|
|
18
|
-
<xsl:variable name="layoutVersion_">
|
|
19
|
-
<xsl:choose>
|
|
20
|
-
<xsl:when test="$document_scheme = ''">2024</xsl:when>
|
|
21
|
-
<xsl:when test="$document_scheme = '1951' or $document_scheme = '1972' or $document_scheme = '1979' or $document_scheme = '1987' or $document_scheme = '1989' or $document_scheme = '2012' or $document_scheme = '2013' or $document_scheme = '2024'"><xsl:value-of select="$document_scheme"/></xsl:when>
|
|
22
|
-
<xsl:otherwise>default</xsl:otherwise>
|
|
23
|
-
</xsl:choose>
|
|
24
|
-
</xsl:variable>
|
|
25
|
-
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
|
26
|
-
|
|
27
|
-
<xsl:variable name="doctype" select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:doctype"/>
|
|
28
|
-
|
|
29
14
|
<xsl:variable name="variables_">
|
|
30
15
|
<xsl:for-each select="//mn:metanorma">
|
|
31
16
|
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
@@ -38,6 +23,21 @@
|
|
|
38
23
|
<mnx:doc num="{$num}">
|
|
39
24
|
<!-- <mnx:variables> -->
|
|
40
25
|
|
|
26
|
+
<!---examples: 2013, 2024 -->
|
|
27
|
+
<xsl:variable name="document_scheme" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:document-scheme)"/>
|
|
28
|
+
|
|
29
|
+
<xsl:variable name="layoutVersion_">
|
|
30
|
+
<xsl:choose>
|
|
31
|
+
<xsl:when test="$document_scheme = ''">2024</xsl:when>
|
|
32
|
+
<xsl:when test="$document_scheme = '1951' or $document_scheme = '1972' or $document_scheme = '1979' or $document_scheme = '1987' or $document_scheme = '1989' or $document_scheme = '2012' or $document_scheme = '2013' or $document_scheme = '2024'"><xsl:value-of select="$document_scheme"/></xsl:when>
|
|
33
|
+
<xsl:otherwise>default</xsl:otherwise>
|
|
34
|
+
</xsl:choose>
|
|
35
|
+
</xsl:variable>
|
|
36
|
+
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
|
37
|
+
<layoutVersion><xsl:value-of select="$layoutVersion"/></layoutVersion>
|
|
38
|
+
|
|
39
|
+
<isAuthorOrganizationAbbreviationISO><xsl:value-of select="normalize-space(/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'author']/mn:organization/mn:abbreviation = 'ISO')"/></isAuthorOrganizationAbbreviationISO>
|
|
40
|
+
|
|
41
41
|
<i18n_reference_number_abbrev><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">reference_number_abbrev</xsl:with-param></xsl:call-template></i18n_reference_number_abbrev>
|
|
42
42
|
<i18n_reference_number><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">reference_number</xsl:with-param></xsl:call-template></i18n_reference_number>
|
|
43
43
|
<i18n_descriptors><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Descriptor.pl</xsl:with-param></xsl:call-template></i18n_descriptors>
|
|
@@ -461,15 +461,6 @@
|
|
|
461
461
|
<revision_date><xsl:value-of select="$revision_date"/></revision_date>
|
|
462
462
|
<revision_date_num><xsl:value-of select="number(translate($revision_date,'-',''))"/></revision_date_num>
|
|
463
463
|
|
|
464
|
-
<xsl:variable name="layoutVersion_">
|
|
465
|
-
<xsl:choose>
|
|
466
|
-
<xsl:when test="$document_scheme = ''">2024</xsl:when>
|
|
467
|
-
<xsl:when test="$document_scheme = '1951' or $document_scheme = '1972' or $document_scheme = '1979' or $document_scheme = '1987' or $document_scheme = '1989' or $document_scheme = '2012' or $document_scheme = '2013' or $document_scheme = '2024'"><xsl:value-of select="$document_scheme"/></xsl:when>
|
|
468
|
-
<xsl:otherwise>default</xsl:otherwise>
|
|
469
|
-
</xsl:choose>
|
|
470
|
-
</xsl:variable>
|
|
471
|
-
<layoutVersion><xsl:value-of select="normalize-space($layoutVersion_)"/></layoutVersion>
|
|
472
|
-
|
|
473
464
|
<xsl:variable name="color_secondary_value" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-secondary)"/>
|
|
474
465
|
<color_secondary>
|
|
475
466
|
<xsl:choose>
|
|
@@ -485,6 +476,12 @@
|
|
|
485
476
|
</xsl:variable>
|
|
486
477
|
<xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
|
|
487
478
|
|
|
479
|
+
<xsl:template name="getVariable">
|
|
480
|
+
<xsl:param name="variable"/>
|
|
481
|
+
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
482
|
+
<xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
|
|
483
|
+
</xsl:template>
|
|
484
|
+
|
|
488
485
|
<xsl:variable name="COLUMN_GAP">8.5mm</xsl:variable>
|
|
489
486
|
|
|
490
487
|
<xsl:variable name="PROOF_TEXT">PROOF/ÉPREUVE</xsl:variable>
|
|
@@ -729,6 +726,9 @@
|
|
|
729
726
|
</fo:repeatable-page-master-alternatives>
|
|
730
727
|
</fo:page-sequence-master>
|
|
731
728
|
|
|
729
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = 1]/layoutVersion"/>
|
|
730
|
+
<xsl:variable name="doctype" select="$variables/mnx:doc[@num = 1]/doctype"/>
|
|
731
|
+
|
|
732
732
|
<!-- first page -->
|
|
733
733
|
<fo:simple-page-master master-name="preface_firstpage" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
|
734
734
|
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight2}mm" margin-right="{$marginLeftRight1}mm" column-count="{$layout_columns}" column-gap="{$COLUMN_GAP}"/>
|
|
@@ -934,30 +934,7 @@
|
|
|
934
934
|
<xsl:variable name="root-style">
|
|
935
935
|
<root-style xsl:use-attribute-sets="root-style">
|
|
936
936
|
|
|
937
|
-
<xsl:
|
|
938
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
939
|
-
<xsl:if test="$revision_date_num >= 19680101">
|
|
940
|
-
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
941
|
-
</xsl:if>
|
|
942
|
-
</xsl:if>
|
|
943
|
-
|
|
944
|
-
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979'">
|
|
945
|
-
<xsl:attribute name="font-family">Univers, Times New Roman, Cambria Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
|
946
|
-
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
|
947
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
948
|
-
<xsl:if test="$layout_columns = 2">
|
|
949
|
-
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
950
|
-
</xsl:if>
|
|
951
|
-
</xsl:if>
|
|
952
|
-
<xsl:if test="$layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
953
|
-
<xsl:attribute name="font-family">Arial, Times New Roman, Cambria Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
|
954
|
-
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
|
955
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
956
|
-
</xsl:if>
|
|
957
|
-
|
|
958
|
-
<xsl:if test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))">
|
|
959
|
-
<xsl:attribute name="font-size">8.5pt</xsl:attribute>
|
|
960
|
-
</xsl:if>
|
|
937
|
+
<!-- <xsl:call-template name="refinePageSequenceCommon"/> -->
|
|
961
938
|
|
|
962
939
|
<xsl:if test="$lang = 'zh'">
|
|
963
940
|
<!-- <xsl:attribute name="font-family">Source Han Sans, Times New Roman, Cambria Math</xsl:attribute> -->
|
|
@@ -969,10 +946,6 @@
|
|
|
969
946
|
<xsl:with-param name="root-style" select="$root-style"/>
|
|
970
947
|
</xsl:call-template>
|
|
971
948
|
|
|
972
|
-
<xsl:if test="$layoutVersion = '2024' and /mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'author']/mn:organization/mn:abbreviation = 'ISO'">
|
|
973
|
-
<xsl:attribute name="color">rgb(35,31,32)</xsl:attribute>
|
|
974
|
-
</xsl:if>
|
|
975
|
-
|
|
976
949
|
<xsl:if test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:linenumbers = 'true'">
|
|
977
950
|
<xsl:processing-instruction name="add_line_numbers">true</xsl:processing-instruction>
|
|
978
951
|
</xsl:if>
|
|
@@ -1021,6 +994,8 @@
|
|
|
1021
994
|
<xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma">
|
|
1022
995
|
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
1023
996
|
|
|
997
|
+
<xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/>
|
|
998
|
+
|
|
1024
999
|
<xsl:variable name="current_document">
|
|
1025
1000
|
<xsl:copy-of select="."/>
|
|
1026
1001
|
</xsl:variable>
|
|
@@ -1046,6 +1021,7 @@
|
|
|
1046
1021
|
</xsl:if>
|
|
1047
1022
|
|
|
1048
1023
|
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
1024
|
+
<xsl:variable name="doctype" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
1049
1025
|
<xsl:variable name="revision_date" select="$variables/mnx:doc[@num = $num]/revision_date"/>
|
|
1050
1026
|
<xsl:variable name="revision_date_num" select="$variables/mnx:doc[@num = $num]/revision_date_num"/>
|
|
1051
1027
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
@@ -1066,6 +1042,7 @@
|
|
|
1066
1042
|
<xsl:choose>
|
|
1067
1043
|
<xsl:when test="$layoutVersion = '1951'">
|
|
1068
1044
|
<fo:page-sequence master-reference="document{$document-master-reference_addon}" initial-page-number="auto" force-page-count="no-force">
|
|
1045
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1069
1046
|
|
|
1070
1047
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
1071
1048
|
|
|
@@ -1096,6 +1073,7 @@
|
|
|
1096
1073
|
|
|
1097
1074
|
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))">
|
|
1098
1075
|
<fo:page-sequence master-reference="preface-1987_TR" force-page-count="no-force" xsl:use-attribute-sets="page-sequence-preface">
|
|
1076
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1099
1077
|
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
1100
1078
|
|
|
1101
1079
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -1263,6 +1241,7 @@
|
|
|
1263
1241
|
<xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
1264
1242
|
|
|
1265
1243
|
<fo:page-sequence force-page-count="no-force" xsl:use-attribute-sets="page-sequence-preface">
|
|
1244
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1266
1245
|
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
1267
1246
|
|
|
1268
1247
|
<xsl:attribute name="master-reference">
|
|
@@ -1328,6 +1307,7 @@
|
|
|
1328
1307
|
|
|
1329
1308
|
<!-- BODY -->
|
|
1330
1309
|
<fo:page-sequence force-page-count="no-force" xsl:use-attribute-sets="page-sequence-main">
|
|
1310
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1331
1311
|
<xsl:call-template name="refine_page-sequence-main">
|
|
1332
1312
|
<xsl:with-param name="layoutVersion" select="$layoutVersion"/>
|
|
1333
1313
|
</xsl:call-template>
|
|
@@ -1505,6 +1485,9 @@
|
|
|
1505
1485
|
</xsl:template> <!-- END: / -->
|
|
1506
1486
|
|
|
1507
1487
|
<xsl:template name="printAddendumTitle">
|
|
1488
|
+
<xsl:variable name="doctype">
|
|
1489
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
1490
|
+
</xsl:variable>
|
|
1508
1491
|
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($doctype))"/>
|
|
1509
1492
|
<xsl:text> </xsl:text>
|
|
1510
1493
|
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number/@addendum"/>
|
|
@@ -1537,6 +1520,10 @@
|
|
|
1537
1520
|
<!-- <xsl:if test="$debug = 'true'"><xsl:message>START updated_xml_step_move_pagebreak</xsl:message></xsl:if>
|
|
1538
1521
|
<xsl:variable name="startTime1" select="java:getTime(java:java.util.Date.new())"/> -->
|
|
1539
1522
|
|
|
1523
|
+
<xsl:variable name="doctype">
|
|
1524
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
1525
|
+
</xsl:variable>
|
|
1526
|
+
|
|
1540
1527
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
|
1541
1528
|
<xsl:element name="{$root_element}" namespace="{$namespace_full}">
|
|
1542
1529
|
<xsl:call-template name="copyCommonElements"/>
|
|
@@ -1597,6 +1584,7 @@
|
|
|
1597
1584
|
<xsl:if test="$isGenerateTableIF = 'false'"> <!-- no need cover page for auto-layout algorithm -->
|
|
1598
1585
|
|
|
1599
1586
|
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
1587
|
+
<xsl:variable name="doctype" select="$variables/mnx:doc[@num = $num]/doctype"/>
|
|
1600
1588
|
<xsl:variable name="revision_date_num" select="$variables/mnx:doc[@num = $num]/revision_date_num"/>
|
|
1601
1589
|
<xsl:variable name="docnumber_with_prefix" select="$variables/mnx:doc[@num = $num]/docnumber_with_prefix"/>
|
|
1602
1590
|
<xsl:variable name="docidentifierISO" select="$variables/mnx:doc[@num = $num]/docidentifierISO"/>
|
|
@@ -1644,6 +1632,7 @@
|
|
|
1644
1632
|
|
|
1645
1633
|
<xsl:when test="$layoutVersion = '1951'">
|
|
1646
1634
|
<fo:page-sequence master-reference="cover-page_1951" force-page-count="no-force" initial-page-number="1">
|
|
1635
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1647
1636
|
<fo:static-content flow-name="cover-page-header" font-family="Times New Roman" font-size="8.5pt" font-weight="bold">
|
|
1648
1637
|
<xsl:if test="$revision_date_num < 19680101">
|
|
1649
1638
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
|
@@ -1738,6 +1727,7 @@
|
|
|
1738
1727
|
|
|
1739
1728
|
<xsl:when test="$layoutVersion = '1972' or ($layoutVersion = '1979' and not($doctype = 'addendum'))">
|
|
1740
1729
|
<fo:page-sequence master-reference="cover-page_1972" force-page-count="no-force" initial-page-number="1">
|
|
1730
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1741
1731
|
<fo:static-content flow-name="cover-page-footer" font-size="7pt">
|
|
1742
1732
|
<xsl:call-template name="insertSingleLine"/>
|
|
1743
1733
|
<fo:block font-size="11pt" font-weight="bold" text-align-last="justify" margin-right="1mm">
|
|
@@ -1876,6 +1866,7 @@
|
|
|
1876
1866
|
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))"><!-- see preface pages below --></xsl:when>
|
|
1877
1867
|
<xsl:when test="$layoutVersion = '1987'">
|
|
1878
1868
|
<fo:page-sequence master-reference="cover-page_1987" force-page-count="no-force" initial-page-number="1">
|
|
1869
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1879
1870
|
<fo:static-content flow-name="right-region">
|
|
1880
1871
|
<fo:block-container height="50%">
|
|
1881
1872
|
<fo:block-container margin-top="8mm" margin-left="2mm">
|
|
@@ -1960,6 +1951,7 @@
|
|
|
1960
1951
|
|
|
1961
1952
|
<xsl:when test="$layoutVersion = '2024'">
|
|
1962
1953
|
<fo:page-sequence master-reference="cover-page_2024" force-page-count="no-force" initial-page-number="1">
|
|
1954
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
1963
1955
|
<fo:flow flow-name="xsl-region-body">
|
|
1964
1956
|
<xsl:call-template name="insert_firstpage_id"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
1965
1957
|
|
|
@@ -2353,6 +2345,7 @@
|
|
|
2353
2345
|
|
|
2354
2346
|
<xsl:when test="$stage-abbreviation != ''">
|
|
2355
2347
|
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" initial-page-number="1">
|
|
2348
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
2356
2349
|
<fo:static-content flow-name="cover-page-footer" font-size="10pt">
|
|
2357
2350
|
<xsl:if test="$layoutVersion = '1989'">
|
|
2358
2351
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
@@ -2861,6 +2854,7 @@
|
|
|
2861
2854
|
|
|
2862
2855
|
<xsl:when test="$isPublished = 'true'">
|
|
2863
2856
|
<fo:page-sequence master-reference="cover-page-published" force-page-count="no-force" initial-page-number="1">
|
|
2857
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
2864
2858
|
<fo:static-content flow-name="cover-page-footer" font-size="10pt">
|
|
2865
2859
|
<xsl:call-template name="insertTripleLine"/>
|
|
2866
2860
|
<fo:table table-layout="fixed" width="100%" margin-bottom="3mm" role="SKIP">
|
|
@@ -2962,6 +2956,7 @@
|
|
|
2962
2956
|
</xsl:when> <!-- $isPublished = 'true' -->
|
|
2963
2957
|
<xsl:otherwise>
|
|
2964
2958
|
<fo:page-sequence master-reference="cover-page-nonpublished" force-page-count="no-force" initial-page-number="1">
|
|
2959
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
2965
2960
|
<fo:static-content flow-name="cover-page-header" font-size="10pt">
|
|
2966
2961
|
<fo:block-container height="24mm" display-align="before">
|
|
2967
2962
|
<fo:block padding-top="12.5mm">
|
|
@@ -3070,9 +3065,17 @@
|
|
|
3070
3065
|
<xsl:template name="inner-cover-page">
|
|
3071
3066
|
<xsl:param name="num"/>
|
|
3072
3067
|
|
|
3068
|
+
<xsl:variable name="layoutVersion">
|
|
3069
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3070
|
+
</xsl:variable>
|
|
3071
|
+
<xsl:variable name="revision_date_num">
|
|
3072
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
3073
|
+
</xsl:variable>
|
|
3074
|
+
|
|
3073
3075
|
<xsl:if test="normalize-space(/mn:metanorma/mn:boilerplate/mn:copyright-statement) != ''">
|
|
3074
3076
|
|
|
3075
3077
|
<fo:page-sequence force-page-count="no-force" xsl:use-attribute-sets="page-sequence-preface">
|
|
3078
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
3076
3079
|
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
3077
3080
|
<!-- The first instance of a running page header should be tagged - later instances should be marked as Artifact. -->
|
|
3078
3081
|
<xsl:variable name="document-master-reference_addon" select="$variables/mnx:doc[@num = $num]/document-master-reference_addon"/>
|
|
@@ -3163,6 +3166,9 @@
|
|
|
3163
3166
|
<xsl:template match="mn:preface/mn:introduction" mode="update_xml_step1" priority="3">
|
|
3164
3167
|
<xsl:param name="num"/>
|
|
3165
3168
|
<xsl:param name="process">false</xsl:param>
|
|
3169
|
+
<xsl:variable name="layoutVersion">
|
|
3170
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3171
|
+
</xsl:variable>
|
|
3166
3172
|
<xsl:choose>
|
|
3167
3173
|
<xsl:when test="$layoutVersion = '1951'">
|
|
3168
3174
|
<xsl:if test="$process = 'true'">
|
|
@@ -3187,6 +3193,9 @@
|
|
|
3187
3193
|
<xsl:copy>
|
|
3188
3194
|
<xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
|
|
3189
3195
|
</xsl:copy>
|
|
3196
|
+
<xsl:variable name="layoutVersion">
|
|
3197
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3198
|
+
</xsl:variable>
|
|
3190
3199
|
<xsl:if test="$layoutVersion = '1951'">
|
|
3191
3200
|
<xsl:apply-templates select="../../mn:preface/mn:introduction" mode="update_xml_step1">
|
|
3192
3201
|
<xsl:with-param name="process">true</xsl:with-param>
|
|
@@ -3196,6 +3205,9 @@
|
|
|
3196
3205
|
|
|
3197
3206
|
<!-- transform NOTE to Note for smallcaps feature working -->
|
|
3198
3207
|
<xsl:template match="mn:note/mn:name/text() | mn:example/mn:name/text() | mn:note/mn:fmt-name/text() | mn:example/mn:fmt-name/text()" mode="update_xml_step1" priority="3">
|
|
3208
|
+
<xsl:variable name="layoutVersion">
|
|
3209
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3210
|
+
</xsl:variable>
|
|
3199
3211
|
<xsl:choose>
|
|
3200
3212
|
<xsl:when test="$layoutVersion = '1951'"> <!-- and $revision_date_num < 19680101 -->
|
|
3201
3213
|
<xsl:value-of select="substring(., 1, 1)"/>
|
|
@@ -3276,6 +3288,12 @@
|
|
|
3276
3288
|
<xsl:template name="insertLogoImage">
|
|
3277
3289
|
<xsl:param name="num"/>
|
|
3278
3290
|
<xsl:param name="content-height"/>
|
|
3291
|
+
<xsl:variable name="layoutVersion">
|
|
3292
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3293
|
+
</xsl:variable>
|
|
3294
|
+
<xsl:variable name="revision_date_num">
|
|
3295
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
3296
|
+
</xsl:variable>
|
|
3279
3297
|
<xsl:choose>
|
|
3280
3298
|
<xsl:when test="mn:logo/mn:image">
|
|
3281
3299
|
<xsl:apply-templates select="mn:logo/mn:image"/>
|
|
@@ -3481,6 +3499,9 @@
|
|
|
3481
3499
|
<xsl:call-template name="printEdition"/>
|
|
3482
3500
|
</xsl:if>
|
|
3483
3501
|
</xsl:variable>
|
|
3502
|
+
<xsl:variable name="layoutVersion">
|
|
3503
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3504
|
+
</xsl:variable>
|
|
3484
3505
|
<xsl:value-of select="$edition"/>
|
|
3485
3506
|
<xsl:variable name="date">
|
|
3486
3507
|
<xsl:choose>
|
|
@@ -3574,6 +3595,9 @@
|
|
|
3574
3595
|
<xsl:variable name="stagename_abbreviation" select="$variables/mnx:doc[@num = $num]/stagename_abbreviation"/>
|
|
3575
3596
|
<xsl:variable name="i18n_fast_track_procedure" select="$variables/mnx:doc[@num = $num]/i18n_fast_track_procedure"/>
|
|
3576
3597
|
<xsl:variable name="i18n_iso_cen_parallel" select="$variables/mnx:doc[@num = $num]/i18n_iso_cen_parallel"/>
|
|
3598
|
+
<xsl:variable name="layoutVersion">
|
|
3599
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3600
|
+
</xsl:variable>
|
|
3577
3601
|
<xsl:if test="$stage-abbreviation = 'NWIP' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD' or $stage-abbreviation = 'FCD' or $stage-abbreviation = 'DIS' or $stage-abbreviation = 'FDIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM' or $stagename_abbreviation = 'DIS' or $stagename_abbreviation = 'FDIS'">
|
|
3578
3602
|
<xsl:variable name="text">
|
|
3579
3603
|
<xsl:for-each select="/mn:metanorma/mn:preface/mn:note[@coverpage='true']/mn:p">
|
|
@@ -3650,6 +3674,12 @@
|
|
|
3650
3674
|
|
|
3651
3675
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="3">
|
|
3652
3676
|
<xsl:param name="num"/>
|
|
3677
|
+
<xsl:variable name="layoutVersion">
|
|
3678
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3679
|
+
</xsl:variable>
|
|
3680
|
+
<xsl:variable name="doctype">
|
|
3681
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
3682
|
+
</xsl:variable>
|
|
3653
3683
|
<xsl:choose>
|
|
3654
3684
|
<xsl:when test="$isGenerateTableIF = 'true'"/>
|
|
3655
3685
|
<xsl:when test="$toc_level = 0"/>
|
|
@@ -3851,6 +3881,9 @@
|
|
|
3851
3881
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']/mn:fmt-title" priority="3">
|
|
3852
3882
|
<xsl:param name="num"/>
|
|
3853
3883
|
<xsl:variable name="i18n_locality_page" select="$variables/mnx:doc[@num = $num]/i18n_locality_page"/>
|
|
3884
|
+
<xsl:variable name="layoutVersion">
|
|
3885
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3886
|
+
</xsl:variable>
|
|
3854
3887
|
<fo:block xsl:use-attribute-sets="toc-title-style">
|
|
3855
3888
|
<xsl:call-template name="refine_toc-title-style"/>
|
|
3856
3889
|
<xsl:if test="$layoutVersion = '2024'">
|
|
@@ -3930,6 +3963,9 @@
|
|
|
3930
3963
|
<!-- display titles -->
|
|
3931
3964
|
<!-- ==================== -->
|
|
3932
3965
|
<xsl:template match="mn:bibdata/mn:title[@type = 'title-intro']">
|
|
3966
|
+
<xsl:variable name="layoutVersion">
|
|
3967
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3968
|
+
</xsl:variable>
|
|
3933
3969
|
<xsl:choose>
|
|
3934
3970
|
<xsl:when test="$layoutVersion = '1951'">
|
|
3935
3971
|
<fo:block text-transform="uppercase"><xsl:apply-templates/></fo:block>
|
|
@@ -3943,6 +3979,12 @@
|
|
|
3943
3979
|
|
|
3944
3980
|
<xsl:template match="mn:bibdata/mn:title[@type = 'title-main']">
|
|
3945
3981
|
<xsl:param name="body">false</xsl:param>
|
|
3982
|
+
<xsl:variable name="layoutVersion">
|
|
3983
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
3984
|
+
</xsl:variable>
|
|
3985
|
+
<xsl:variable name="revision_date_num">
|
|
3986
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
3987
|
+
</xsl:variable>
|
|
3946
3988
|
<xsl:choose>
|
|
3947
3989
|
<xsl:when test="$layoutVersion = '1951'">
|
|
3948
3990
|
<fo:block text-transform="uppercase" font-weight="bold" margin-top="5mm">
|
|
@@ -3976,6 +4018,9 @@
|
|
|
3976
4018
|
<xsl:param name="isMainLang">false</xsl:param>
|
|
3977
4019
|
<xsl:variable name="part" select="$variables/mnx:doc[@num = $num]/part"/>
|
|
3978
4020
|
<!-- <xsl:variable name="i18n_locality_part" select="$variables/mnx:doc[@num = $num]/i18n_locality_part"/> -->
|
|
4021
|
+
<xsl:variable name="layoutVersion">
|
|
4022
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4023
|
+
</xsl:variable>
|
|
3979
4024
|
<xsl:choose>
|
|
3980
4025
|
<xsl:when test="$part != ''">
|
|
3981
4026
|
<!-- <xsl:text> — </xsl:text> -->
|
|
@@ -4062,6 +4107,9 @@
|
|
|
4062
4107
|
<xsl:param name="isMainBody">false</xsl:param>
|
|
4063
4108
|
<xsl:variable name="stage-abbreviation" select="$variables/mnx:doc[@num = $num]/stage-abbreviation"/>
|
|
4064
4109
|
<xsl:variable name="doctype_uppercased" select="$variables/mnx:doc[@num = $num]/doctype_uppercased"/>
|
|
4110
|
+
<xsl:variable name="doctype">
|
|
4111
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
4112
|
+
</xsl:variable>
|
|
4065
4113
|
<xsl:if test="$doctype = 'amendment'">
|
|
4066
4114
|
<fo:block margin-right="-5mm" margin-top="6pt" role="H1">
|
|
4067
4115
|
<xsl:if test="$isMainLang = 'true'">
|
|
@@ -4093,6 +4141,15 @@
|
|
|
4093
4141
|
</xsl:template>
|
|
4094
4142
|
|
|
4095
4143
|
<xsl:template match="mn:sections//mn:p[@class = 'zzSTDTitle1']" priority="4">
|
|
4144
|
+
<xsl:variable name="layoutVersion">
|
|
4145
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4146
|
+
</xsl:variable>
|
|
4147
|
+
<xsl:variable name="doctype">
|
|
4148
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
4149
|
+
</xsl:variable>
|
|
4150
|
+
<xsl:variable name="revision_date_num">
|
|
4151
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
4152
|
+
</xsl:variable>
|
|
4096
4153
|
<xsl:choose>
|
|
4097
4154
|
<xsl:when test="$layoutVersion = '1951'">
|
|
4098
4155
|
<fo:block font-size="13pt" font-weight="bold" text-align="center" margin-top="49mm" margin-bottom="20mm" text-transform="uppercase" line-height="1.1" role="P/Title">
|
|
@@ -4161,6 +4218,9 @@
|
|
|
4161
4218
|
|
|
4162
4219
|
<xsl:template match="mn:sections//mn:p[@class = 'zzSTDTitle1']/mn:span[@class = 'nonboldtitle']" priority="3">
|
|
4163
4220
|
<!-- Example: <span class="nonboldtitle">Part 1:</span> -->
|
|
4221
|
+
<xsl:variable name="layoutVersion">
|
|
4222
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4223
|
+
</xsl:variable>
|
|
4164
4224
|
<xsl:choose>
|
|
4165
4225
|
<xsl:when test="$layoutVersion = '1972' or $layoutVersion = '1979'">
|
|
4166
4226
|
<fo:inline font-weight="bold" role="SKIP">
|
|
@@ -4176,12 +4236,18 @@
|
|
|
4176
4236
|
</xsl:template>
|
|
4177
4237
|
|
|
4178
4238
|
<xsl:template match="mn:sections//mn:p[@class = 'zzSTDTitle2']" priority="4">
|
|
4239
|
+
<xsl:variable name="doctype">
|
|
4240
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
4241
|
+
</xsl:variable>
|
|
4179
4242
|
<!-- Example: <p class="zzSTDTitle2" displayorder="3">AMENDMENT 1: Mass fraction of extraneous matter, milled rice (nonglutinous), sample dividers and recommendations relating to storage and transport conditions</p> -->
|
|
4180
4243
|
<xsl:if test="$doctype = 'amendment'">
|
|
4181
4244
|
<fo:block font-size="18pt" margin-top="12pt" margin-bottom="20pt" margin-right="0mm" font-weight="normal" line-height="1.1" role="P/Title">
|
|
4245
|
+
<xsl:variable name="layoutVersion">
|
|
4246
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4247
|
+
</xsl:variable>
|
|
4182
4248
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
4183
|
-
|
|
4184
|
-
|
|
4249
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
4250
|
+
</xsl:if>
|
|
4185
4251
|
<!-- <xsl:if test="$layoutVersion = '2024'">
|
|
4186
4252
|
<xsl:attribute name="font-size">17.2pt</xsl:attribute>
|
|
4187
4253
|
</xsl:if> -->
|
|
@@ -4298,6 +4364,9 @@
|
|
|
4298
4364
|
|
|
4299
4365
|
<xsl:template match="mn:strong/text()" mode="contents_item">
|
|
4300
4366
|
<xsl:param name="element"/>
|
|
4367
|
+
<xsl:variable name="layoutVersion">
|
|
4368
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4369
|
+
</xsl:variable>
|
|
4301
4370
|
<xsl:choose>
|
|
4302
4371
|
<xsl:when test="$layoutVersion = '1987' and $element = 'annex' and not(../preceding-sibling::node())"> <!-- omit Annex -->
|
|
4303
4372
|
<xsl:value-of select="substring-after(., ' ')"/><xsl:text> </xsl:text>
|
|
@@ -4310,6 +4379,9 @@
|
|
|
4310
4379
|
|
|
4311
4380
|
<xsl:template match="mn:span[@class = 'obligation']/text()" mode="contents_item">
|
|
4312
4381
|
<xsl:param name="element"/>
|
|
4382
|
+
<xsl:variable name="layoutVersion">
|
|
4383
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4384
|
+
</xsl:variable>
|
|
4313
4385
|
<xsl:choose>
|
|
4314
4386
|
<xsl:when test="$layoutVersion = '1987' and $element = 'annex'"/>
|
|
4315
4387
|
<xsl:otherwise>
|
|
@@ -4334,6 +4406,9 @@
|
|
|
4334
4406
|
</fo:block> -->
|
|
4335
4407
|
|
|
4336
4408
|
<xsl:template match="mn:copyright-statement/mn:clause[1]/mn:fmt-title" priority="2">
|
|
4409
|
+
<xsl:variable name="layoutVersion">
|
|
4410
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4411
|
+
</xsl:variable>
|
|
4337
4412
|
<xsl:choose>
|
|
4338
4413
|
<xsl:when test="$layoutVersion = '1951'">
|
|
4339
4414
|
<fo:block><xsl:apply-templates/></fo:block> <!-- font-weight="bold" -->
|
|
@@ -4377,6 +4452,12 @@
|
|
|
4377
4452
|
</xsl:template>
|
|
4378
4453
|
|
|
4379
4454
|
<xsl:template match="mn:copyright-statement//mn:p" priority="2">
|
|
4455
|
+
<xsl:variable name="layoutVersion">
|
|
4456
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4457
|
+
</xsl:variable>
|
|
4458
|
+
<xsl:variable name="doctype">
|
|
4459
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
4460
|
+
</xsl:variable>
|
|
4380
4461
|
<xsl:choose>
|
|
4381
4462
|
<xsl:when test="$layoutVersion = '1951'">
|
|
4382
4463
|
<xsl:choose>
|
|
@@ -4451,6 +4532,16 @@
|
|
|
4451
4532
|
|
|
4452
4533
|
<xsl:variable name="title_styles"><styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template></styles></xsl:variable>
|
|
4453
4534
|
|
|
4535
|
+
<xsl:variable name="layoutVersion">
|
|
4536
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4537
|
+
</xsl:variable>
|
|
4538
|
+
<xsl:variable name="doctype">
|
|
4539
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
4540
|
+
</xsl:variable>
|
|
4541
|
+
<xsl:variable name="revision_date_num">
|
|
4542
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
4543
|
+
</xsl:variable>
|
|
4544
|
+
|
|
4454
4545
|
<xsl:choose>
|
|
4455
4546
|
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum')) and parent::mn:foreword"><!-- skip Foreword title --></xsl:when>
|
|
4456
4547
|
<xsl:when test="$doctype = 'amendment' and not(ancestor::mn:preface)">
|
|
@@ -4586,6 +4677,9 @@
|
|
|
4586
4677
|
|
|
4587
4678
|
<xsl:template match="mn:fmt-title[../@inline-header = 'true'][following-sibling::*[1][self::mn:p]]" priority="3">
|
|
4588
4679
|
<xsl:param name="without_number">false</xsl:param>
|
|
4680
|
+
<xsl:variable name="layoutVersion">
|
|
4681
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4682
|
+
</xsl:variable>
|
|
4589
4683
|
<xsl:choose>
|
|
4590
4684
|
<xsl:when test="($layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989') and $layout_columns != 1"/> <!-- don't show 'title' with inline-header='true' if next element is 'p' -->
|
|
4591
4685
|
<xsl:otherwise>
|
|
@@ -4600,6 +4694,9 @@
|
|
|
4600
4694
|
<!-- ====== -->
|
|
4601
4695
|
|
|
4602
4696
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure]" priority="2">
|
|
4697
|
+
<xsl:variable name="layoutVersion">
|
|
4698
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4699
|
+
</xsl:variable>
|
|
4603
4700
|
<xsl:choose>
|
|
4604
4701
|
<xsl:when test="($layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989') and self::mn:clause and count(node()) = 0 and following-sibling::*[1][self::mn:fmt-title and not(@id)]"/> <!-- @id will be added to title -->
|
|
4605
4702
|
<xsl:otherwise>
|
|
@@ -4636,6 +4733,10 @@
|
|
|
4636
4733
|
|
|
4637
4734
|
<xsl:copy-of select="$p_styles/styles/@*"/>
|
|
4638
4735
|
|
|
4736
|
+
<xsl:variable name="layoutVersion">
|
|
4737
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4738
|
+
</xsl:variable>
|
|
4739
|
+
|
|
4639
4740
|
<!-- put inline title in the first paragraph -->
|
|
4640
4741
|
<xsl:if test="($layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989') and $layout_columns != 1">
|
|
4641
4742
|
<!-- <xsl:if test="preceding-sibling::*[1]/@inline-header = 'true' and preceding-sibling::*[1][self::mn:title]"> -->
|
|
@@ -4723,6 +4824,9 @@
|
|
|
4723
4824
|
</xsl:template>
|
|
4724
4825
|
|
|
4725
4826
|
<xsl:template match="mn:note/mn:fmt-name/text()" priority="5">
|
|
4827
|
+
<xsl:variable name="layoutVersion">
|
|
4828
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4829
|
+
</xsl:variable>
|
|
4726
4830
|
<xsl:choose>
|
|
4727
4831
|
<xsl:when test="$layoutVersion = '1951' and not(translate(.,'0123456789','') = .)"> <!-- NOTE with number -->
|
|
4728
4832
|
<fo:inline padding-right="2mm" role="SKIP">
|
|
@@ -4742,6 +4846,9 @@
|
|
|
4742
4846
|
</xsl:template>
|
|
4743
4847
|
|
|
4744
4848
|
<xsl:template match="mn:example/mn:fmt-name/text()" priority="5">
|
|
4849
|
+
<xsl:variable name="layoutVersion">
|
|
4850
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4851
|
+
</xsl:variable>
|
|
4745
4852
|
<xsl:choose>
|
|
4746
4853
|
<xsl:when test="$layoutVersion = '1951'"> <!-- and $revision_date_num < 19610101 -->
|
|
4747
4854
|
<xsl:call-template name="smallcaps"/>
|
|
@@ -4752,6 +4859,9 @@
|
|
|
4752
4859
|
</xsl:template>
|
|
4753
4860
|
|
|
4754
4861
|
<xsl:template match="mn:figure/mn:fmt-name/text()" priority="5">
|
|
4862
|
+
<xsl:variable name="layoutVersion">
|
|
4863
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4864
|
+
</xsl:variable>
|
|
4755
4865
|
<xsl:choose>
|
|
4756
4866
|
<xsl:when test="$layoutVersion = '1951' and not(ancestor::mn:figure[1]/@unnumbered = 'true') and not(preceding-sibling::node())">
|
|
4757
4867
|
<xsl:choose>
|
|
@@ -4770,6 +4880,9 @@
|
|
|
4770
4880
|
</xsl:template>
|
|
4771
4881
|
|
|
4772
4882
|
<xsl:template match="mn:table/mn:fmt-name/text()" priority="5">
|
|
4883
|
+
<xsl:variable name="layoutVersion">
|
|
4884
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4885
|
+
</xsl:variable>
|
|
4773
4886
|
<xsl:choose>
|
|
4774
4887
|
<xsl:when test="$layoutVersion = '1951' and not(ancestor::mn:table[1]/@unnumbered = 'true') and not(preceding-sibling::node())">
|
|
4775
4888
|
<xsl:choose>
|
|
@@ -4814,6 +4927,13 @@
|
|
|
4814
4927
|
|
|
4815
4928
|
<xsl:call-template name="addTagElementT"/>
|
|
4816
4929
|
|
|
4930
|
+
<xsl:variable name="layoutVersion">
|
|
4931
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4932
|
+
</xsl:variable>
|
|
4933
|
+
<xsl:variable name="revision_date_num">
|
|
4934
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
4935
|
+
</xsl:variable>
|
|
4936
|
+
|
|
4817
4937
|
<xsl:if test="$layoutVersion = '1951' and $revision_date_num >= 19680101">
|
|
4818
4938
|
<xsl:attribute name="space-before">6pt</xsl:attribute>
|
|
4819
4939
|
<xsl:if test="self::mn:introduction">
|
|
@@ -4854,6 +4974,12 @@
|
|
|
4854
4974
|
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
4855
4975
|
</xsl:call-template>
|
|
4856
4976
|
</xsl:variable>
|
|
4977
|
+
<xsl:variable name="layoutVersion">
|
|
4978
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
4979
|
+
</xsl:variable>
|
|
4980
|
+
<xsl:variable name="revision_date_num">
|
|
4981
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
4982
|
+
</xsl:variable>
|
|
4857
4983
|
<xsl:choose>
|
|
4858
4984
|
<xsl:when test="$layoutVersion = '1951' and ($revision_date_num >= 19690101 or $level >= 2) and ancestor::*[self::mn:sections or self::mn:annex] and not(self::mn:introduction)">
|
|
4859
4985
|
|
|
@@ -4919,6 +5045,7 @@
|
|
|
4919
5045
|
<xsl:template match="mn:indexsect" mode="index">
|
|
4920
5046
|
<xsl:param name="num"/>
|
|
4921
5047
|
<fo:page-sequence master-reference="index" force-page-count="no-force">
|
|
5048
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
4922
5049
|
<!-- <xsl:variable name="header-title">
|
|
4923
5050
|
<xsl:choose>
|
|
4924
5051
|
<xsl:when test="./mn:title[1]/mn:tab">
|
|
@@ -4947,6 +5074,9 @@
|
|
|
4947
5074
|
</xsl:template>
|
|
4948
5075
|
|
|
4949
5076
|
<xsl:template match="mn:xref | mn:fmt-xref" priority="2">
|
|
5077
|
+
<xsl:variable name="layoutVersion">
|
|
5078
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
5079
|
+
</xsl:variable>
|
|
4950
5080
|
<xsl:call-template name="insert_basic_link">
|
|
4951
5081
|
<xsl:with-param name="element">
|
|
4952
5082
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
|
@@ -4987,6 +5117,9 @@
|
|
|
4987
5117
|
</xsl:template>
|
|
4988
5118
|
|
|
4989
5119
|
<xsl:template match="mn:sup[mn:fmt-xref[@type = 'footnote']]" priority="2">
|
|
5120
|
+
<xsl:variable name="layoutVersion">
|
|
5121
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
5122
|
+
</xsl:variable>
|
|
4990
5123
|
<fo:inline font-size="80%">
|
|
4991
5124
|
<xsl:choose>
|
|
4992
5125
|
<xsl:when test="$layoutVersion = '2024'">
|
|
@@ -5058,6 +5191,10 @@
|
|
|
5058
5191
|
<xsl:param name="is_header">true</xsl:param>
|
|
5059
5192
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
5060
5193
|
<xsl:param name="insert_header_first">true</xsl:param>
|
|
5194
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5195
|
+
<xsl:variable name="doctype">
|
|
5196
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
5197
|
+
</xsl:variable>
|
|
5061
5198
|
<xsl:call-template name="insertHeaderEven">
|
|
5062
5199
|
<xsl:with-param name="num" select="$num"/>
|
|
5063
5200
|
<xsl:with-param name="border_around_page" select="$border_around_page"/>
|
|
@@ -5081,6 +5218,10 @@
|
|
|
5081
5218
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5082
5219
|
<xsl:param name="is_footer">false</xsl:param>
|
|
5083
5220
|
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
5221
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5222
|
+
<xsl:variable name="revision_date_num">
|
|
5223
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5224
|
+
</xsl:variable>
|
|
5084
5225
|
<xsl:if test="($layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or ($layoutVersion = '1989' and $revision_date_num <= 19981231)) and $is_footer = 'true'">
|
|
5085
5226
|
<xsl:call-template name="insertFooterFirst1972_1998">
|
|
5086
5227
|
<xsl:with-param name="num" select="$num"/>
|
|
@@ -5098,18 +5239,26 @@
|
|
|
5098
5239
|
</xsl:call-template>
|
|
5099
5240
|
</xsl:template> <!-- END: insertFooter -->
|
|
5100
5241
|
|
|
5101
|
-
<xsl:
|
|
5242
|
+
<xsl:template name="get_font-size_header">
|
|
5243
|
+
<xsl:param name="layoutVersion"/>
|
|
5102
5244
|
<xsl:choose>
|
|
5103
5245
|
<xsl:when test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">11pt</xsl:when>
|
|
5104
5246
|
<xsl:otherwise>12pt</xsl:otherwise>
|
|
5105
5247
|
</xsl:choose>
|
|
5106
|
-
</xsl:
|
|
5248
|
+
</xsl:template>
|
|
5249
|
+
|
|
5107
5250
|
<xsl:template name="insertHeaderEven">
|
|
5108
5251
|
<xsl:param name="num"/>
|
|
5109
5252
|
<xsl:param name="is_header">true</xsl:param>
|
|
5110
5253
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
5111
5254
|
<xsl:param name="header_region_name">header-even</xsl:param>
|
|
5112
5255
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
5256
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5257
|
+
<xsl:variable name="font-size_header">
|
|
5258
|
+
<xsl:call-template name="get_font-size_header">
|
|
5259
|
+
<xsl:with-param name="layoutVersion" select="$layoutVersion"/>
|
|
5260
|
+
</xsl:call-template>
|
|
5261
|
+
</xsl:variable>
|
|
5113
5262
|
<fo:static-content flow-name="{$header_region_name}">
|
|
5114
5263
|
<xsl:choose>
|
|
5115
5264
|
<xsl:when test="$header_region_name = 'header-even'">
|
|
@@ -5161,6 +5310,12 @@
|
|
|
5161
5310
|
<xsl:variable name="stagename_localized_firstpage" select="$variables/mnx:doc[@num = $num]/stagename_localized_firstpage"/>
|
|
5162
5311
|
<xsl:variable name="stagename-header-firstpage" select="$variables/mnx:doc[@num = $num]/stagename-header-firstpage"/>
|
|
5163
5312
|
<xsl:variable name="stagename-header-firstpage-uppercased" select="$variables/mnx:doc[@num = $num]/stagename-header-firstpage-uppercased"/>
|
|
5313
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5314
|
+
<xsl:variable name="font-size_header">
|
|
5315
|
+
<xsl:call-template name="get_font-size_header">
|
|
5316
|
+
<xsl:with-param name="layoutVersion" select="$layoutVersion"/>
|
|
5317
|
+
</xsl:call-template>
|
|
5318
|
+
</xsl:variable>
|
|
5164
5319
|
<!-- The first instance of a running page header should be tagged - later instances should be marked as Artifact. -->
|
|
5165
5320
|
<fo:static-content flow-name="header-first" role="SKIP"> <!-- role="artifact" -->
|
|
5166
5321
|
<xsl:choose>
|
|
@@ -5250,6 +5405,12 @@
|
|
|
5250
5405
|
<xsl:param name="is_header">true</xsl:param>
|
|
5251
5406
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
5252
5407
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
5408
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5409
|
+
<xsl:variable name="font-size_header">
|
|
5410
|
+
<xsl:call-template name="get_font-size_header">
|
|
5411
|
+
<xsl:with-param name="layoutVersion" select="$layoutVersion"/>
|
|
5412
|
+
</xsl:call-template>
|
|
5413
|
+
</xsl:variable>
|
|
5253
5414
|
<fo:static-content flow-name="header-odd" role="artifact">
|
|
5254
5415
|
<xsl:if test="$layoutVersion = '1951' and $border_around_page = 'true'">
|
|
5255
5416
|
<!-- box around page -->
|
|
@@ -5290,6 +5451,15 @@
|
|
|
5290
5451
|
<xsl:param name="is_header"/>
|
|
5291
5452
|
<xsl:param name="odd_or_even"/>
|
|
5292
5453
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
5454
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5455
|
+
<xsl:variable name="revision_date_num">
|
|
5456
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5457
|
+
</xsl:variable>
|
|
5458
|
+
<xsl:variable name="font-size_header">
|
|
5459
|
+
<xsl:call-template name="get_font-size_header">
|
|
5460
|
+
<xsl:with-param name="layoutVersion" select="$layoutVersion"/>
|
|
5461
|
+
</xsl:call-template>
|
|
5462
|
+
</xsl:variable>
|
|
5293
5463
|
<fo:block-container font-size="{$font-size_header}" font-weight="bold" text-align="right" padding-top="12.5mm" line-height="1.1">
|
|
5294
5464
|
<xsl:call-template name="insertLayoutVersionAttributesTop">
|
|
5295
5465
|
<xsl:with-param name="num" select="$num"/>
|
|
@@ -5339,6 +5509,7 @@
|
|
|
5339
5509
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5340
5510
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
5341
5511
|
<xsl:variable name="stage-abbreviation" select="$variables/mnx:doc[@num = $num]/stage-abbreviation"/>
|
|
5512
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5342
5513
|
<fo:static-content flow-name="footer-preface-first_1972-1998" role="artifact">
|
|
5343
5514
|
<fo:block-container display-align="after" height="86mm">
|
|
5344
5515
|
|
|
@@ -5386,6 +5557,10 @@
|
|
|
5386
5557
|
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
5387
5558
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
5388
5559
|
<xsl:variable name="stage-abbreviation" select="$variables/mnx:doc[@num = $num]/stage-abbreviation"/>
|
|
5560
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5561
|
+
<xsl:variable name="revision_date_num">
|
|
5562
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5563
|
+
</xsl:variable>
|
|
5389
5564
|
<fo:static-content flow-name="footer-even" role="artifact">
|
|
5390
5565
|
<fo:block-container>
|
|
5391
5566
|
<xsl:choose>
|
|
@@ -5451,6 +5626,10 @@
|
|
|
5451
5626
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5452
5627
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
5453
5628
|
<xsl:variable name="stage-abbreviation" select="$variables/mnx:doc[@num = $num]/stage-abbreviation"/>
|
|
5629
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5630
|
+
<xsl:variable name="revision_date_num">
|
|
5631
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5632
|
+
</xsl:variable>
|
|
5454
5633
|
<fo:static-content flow-name="footer-odd" role="artifact">
|
|
5455
5634
|
<fo:block-container>
|
|
5456
5635
|
<xsl:choose>
|
|
@@ -5508,6 +5687,9 @@
|
|
|
5508
5687
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
5509
5688
|
<xsl:variable name="i18n_date_first_printing" select="$variables/mnx:doc[@num = $num]/i18n_date_first_printing"/>
|
|
5510
5689
|
<xsl:variable name="i18n_price" select="$variables/mnx:doc[@num = $num]/i18n_price"/>
|
|
5690
|
+
<xsl:variable name="revision_date_num">
|
|
5691
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5692
|
+
</xsl:variable>
|
|
5511
5693
|
<fo:block-container margin-left="-13mm" margin-right="-13mm">
|
|
5512
5694
|
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
5513
5695
|
<fo:table table-layout="fixed" width="100%" margin-bottom="5mm">
|
|
@@ -5604,6 +5786,10 @@
|
|
|
5604
5786
|
<xsl:template name="insertLayoutVersionAttributesTop">
|
|
5605
5787
|
<xsl:param name="num"/>
|
|
5606
5788
|
<xsl:param name="odd_or_even"/>
|
|
5789
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5790
|
+
<xsl:variable name="revision_date_num">
|
|
5791
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5792
|
+
</xsl:variable>
|
|
5607
5793
|
<xsl:if test="$layoutVersion = '1951'">
|
|
5608
5794
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
|
5609
5795
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
@@ -5658,6 +5844,9 @@
|
|
|
5658
5844
|
<xsl:template name="back-page">
|
|
5659
5845
|
<xsl:param name="num"/>
|
|
5660
5846
|
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5847
|
+
<xsl:variable name="doctype">
|
|
5848
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
5849
|
+
</xsl:variable>
|
|
5661
5850
|
<xsl:variable name="isPublished" select="$variables/mnx:doc[@num = $num]/isPublished"/>
|
|
5662
5851
|
<xsl:choose>
|
|
5663
5852
|
<xsl:when test="$isGenerateTableIF = 'true'"><!-- skip last page --></xsl:when>
|
|
@@ -5682,7 +5871,12 @@
|
|
|
5682
5871
|
<xsl:variable name="i18n_descriptors" select="$variables/mnx:doc[@num = $num]/i18n_descriptors"/>
|
|
5683
5872
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
5684
5873
|
<xsl:variable name="udc" select="$variables/mnx:doc[@num = $num]/udc"/>
|
|
5874
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
5875
|
+
<xsl:variable name="revision_date_num">
|
|
5876
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
5877
|
+
</xsl:variable>
|
|
5685
5878
|
<fo:page-sequence master-reference="back-page" force-page-count="no-force">
|
|
5879
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
5686
5880
|
<xsl:call-template name="insertHeaderEven"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
5687
5881
|
<fo:static-content flow-name="back-page-footer" font-size="10pt">
|
|
5688
5882
|
<fo:table table-layout="fixed" width="100%">
|
|
@@ -5803,6 +5997,7 @@
|
|
|
5803
5997
|
<xsl:variable name="substage" select="$variables/mnx:doc[@num = $num]/substage"/>
|
|
5804
5998
|
<xsl:variable name="copyrightTextLastPage2024" select="$variables/mnx:doc[@num = $num]/copyrightTextLastPage2024"/>
|
|
5805
5999
|
<fo:page-sequence master-reference="back-page_2024" force-page-count="no-force">
|
|
6000
|
+
<xsl:call-template name="refinePageSequenceCommon"/>
|
|
5806
6001
|
<fo:flow flow-name="xsl-region-body">
|
|
5807
6002
|
<xsl:variable name="fo_last_page">
|
|
5808
6003
|
<fo:table table-layout="fixed" width="100%" margin-bottom="-1mm">
|
|
@@ -6048,6 +6243,7 @@
|
|
|
6048
6243
|
|
|
6049
6244
|
<xsl:template name="insertSmallHorizontalLine">
|
|
6050
6245
|
<xsl:param name="num"/>
|
|
6246
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = $num]/layoutVersion"/>
|
|
6051
6247
|
<xsl:if test="($layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989')">
|
|
6052
6248
|
<!-- small horizontal line -->
|
|
6053
6249
|
<fo:block text-align="center" margin-top="12mm" keep-with-previous="always" role="SKIP">
|
|
@@ -6072,6 +6268,59 @@
|
|
|
6072
6268
|
<fo:block id="lastBlock{$num}" font-size="1pt" keep-with-previous="always" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:block>
|
|
6073
6269
|
</xsl:template>
|
|
6074
6270
|
|
|
6271
|
+
<xsl:template name="refinePageSequenceCommon">
|
|
6272
|
+
<xsl:variable name="layoutVersion">
|
|
6273
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
6274
|
+
</xsl:variable>
|
|
6275
|
+
<xsl:variable name="doctype">
|
|
6276
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
6277
|
+
</xsl:variable>
|
|
6278
|
+
<xsl:variable name="revision_date_num">
|
|
6279
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
6280
|
+
</xsl:variable>
|
|
6281
|
+
<xsl:variable name="isAuthorOrganizationAbbreviationISO">
|
|
6282
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">isAuthorOrganizationAbbreviationISO</xsl:with-param></xsl:call-template>
|
|
6283
|
+
</xsl:variable>
|
|
6284
|
+
|
|
6285
|
+
<xsl:variable name="style">
|
|
6286
|
+
<root-style>
|
|
6287
|
+
<xsl:if test="$layoutVersion = '1951'">
|
|
6288
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
6289
|
+
<xsl:if test="$revision_date_num >= 19680101">
|
|
6290
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
6291
|
+
</xsl:if>
|
|
6292
|
+
</xsl:if>
|
|
6293
|
+
|
|
6294
|
+
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979'">
|
|
6295
|
+
<xsl:attribute name="font-family">Univers, Times New Roman, Cambria Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
|
6296
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
|
6297
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
6298
|
+
<xsl:if test="$layout_columns = 2">
|
|
6299
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
6300
|
+
</xsl:if>
|
|
6301
|
+
</xsl:if>
|
|
6302
|
+
<xsl:if test="$layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
6303
|
+
<xsl:attribute name="font-family">Arial, Times New Roman, Cambria Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
|
6304
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
|
6305
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
6306
|
+
</xsl:if>
|
|
6307
|
+
|
|
6308
|
+
<xsl:if test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))">
|
|
6309
|
+
<xsl:attribute name="font-size">8.5pt</xsl:attribute>
|
|
6310
|
+
</xsl:if>
|
|
6311
|
+
|
|
6312
|
+
<xsl:if test="$layoutVersion = '2024' and $isAuthorOrganizationAbbreviationISO = 'true'">
|
|
6313
|
+
<xsl:attribute name="color">rgb(35,31,32)</xsl:attribute>
|
|
6314
|
+
</xsl:if>
|
|
6315
|
+
</root-style>
|
|
6316
|
+
</xsl:variable>
|
|
6317
|
+
|
|
6318
|
+
<xsl:call-template name="insertRootStyle">
|
|
6319
|
+
<xsl:with-param name="root-style" select="$style"/>
|
|
6320
|
+
</xsl:call-template>
|
|
6321
|
+
|
|
6322
|
+
</xsl:template>
|
|
6323
|
+
|
|
6075
6324
|
<!-- https://www.metanorma.org/ns/standoc -->
|
|
6076
6325
|
<xsl:variable name="namespace_full" select="namespace-uri(//mn:metanorma[1])"/>
|
|
6077
6326
|
|
|
@@ -6329,6 +6578,7 @@
|
|
|
6329
6578
|
<!-- marginLeftRight1 and marginLeftRight2 - is left or right margin depends on odd/even page,
|
|
6330
6579
|
for example, left margin on odd page and right margin on even page -->
|
|
6331
6580
|
<xsl:variable name="marginLeftRight1_">
|
|
6581
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = 1]/layoutVersion"/>
|
|
6332
6582
|
<xsl:choose>
|
|
6333
6583
|
<xsl:when test="$layoutVersion = '1951'">36</xsl:when>
|
|
6334
6584
|
<xsl:when test="$layoutVersion = '2024'">15.2</xsl:when>
|
|
@@ -6339,6 +6589,7 @@
|
|
|
6339
6589
|
<xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
|
|
6340
6590
|
|
|
6341
6591
|
<xsl:variable name="marginLeftRight2_">
|
|
6592
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = 1]/layoutVersion"/>
|
|
6342
6593
|
<xsl:choose>
|
|
6343
6594
|
<xsl:when test="$layoutVersion = '1951'">29</xsl:when>
|
|
6344
6595
|
<xsl:when test="$layoutVersion = '2024'">15.2</xsl:when>
|
|
@@ -6349,6 +6600,7 @@
|
|
|
6349
6600
|
<xsl:variable name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
|
|
6350
6601
|
|
|
6351
6602
|
<xsl:variable name="marginTop_">
|
|
6603
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = 1]/layoutVersion"/>
|
|
6352
6604
|
<xsl:choose>
|
|
6353
6605
|
<xsl:when test="$layoutVersion = '2024'">23.5</xsl:when>
|
|
6354
6606
|
<xsl:otherwise>27.4</xsl:otherwise>
|
|
@@ -6358,6 +6610,7 @@
|
|
|
6358
6610
|
<xsl:variable name="marginTop" select="normalize-space($marginTop_)"/>
|
|
6359
6611
|
|
|
6360
6612
|
<xsl:variable name="marginBottom_">
|
|
6613
|
+
<xsl:variable name="layoutVersion" select="$variables/mnx:doc[@num = 1]/layoutVersion"/>
|
|
6361
6614
|
<xsl:choose>
|
|
6362
6615
|
<xsl:when test="$layoutVersion = '1951'">25.5</xsl:when>
|
|
6363
6616
|
<xsl:when test="$layoutVersion = '2024'">19.5</xsl:when>
|
|
@@ -7884,6 +8137,9 @@
|
|
|
7884
8137
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
|
7885
8138
|
|
|
7886
8139
|
<xsl:template name="refine_copyright-statement-style">
|
|
8140
|
+
<xsl:variable name="layoutVersion">
|
|
8141
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
8142
|
+
</xsl:variable>
|
|
7887
8143
|
<xsl:if test="$layoutVersion = '1989'">
|
|
7888
8144
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
7889
8145
|
</xsl:if>
|
|
@@ -7898,6 +8154,9 @@
|
|
|
7898
8154
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
|
7899
8155
|
|
|
7900
8156
|
<xsl:template name="refine_copyright-statement-title-style">
|
|
8157
|
+
<xsl:variable name="layoutVersion">
|
|
8158
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
8159
|
+
</xsl:variable>
|
|
7901
8160
|
<xsl:if test="$layoutVersion = '1989'">
|
|
7902
8161
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
7903
8162
|
</xsl:if>
|
|
@@ -8093,6 +8352,9 @@
|
|
|
8093
8352
|
</xsl:attribute-set>
|
|
8094
8353
|
|
|
8095
8354
|
<xsl:template name="refine_link-style">
|
|
8355
|
+
<xsl:variable name="layoutVersion">
|
|
8356
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
8357
|
+
</xsl:variable>
|
|
8096
8358
|
<xsl:if test="(ancestor::mn:copyright-statement and contains(@target, 'mailto:')) or ($layoutVersion = '2024' and ancestor::mn:fmt-termsource)">
|
|
8097
8359
|
<xsl:attribute name="color">inherit</xsl:attribute>
|
|
8098
8360
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
|
@@ -9271,6 +9533,9 @@
|
|
|
9271
9533
|
</xsl:choose>
|
|
9272
9534
|
</xsl:variable>
|
|
9273
9535
|
<xsl:variable name="ratio_">
|
|
9536
|
+
<xsl:variable name="layoutVersion">
|
|
9537
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
9538
|
+
</xsl:variable>
|
|
9274
9539
|
<xsl:choose>
|
|
9275
9540
|
<xsl:when test="$layoutVersion = '1951'">0.9</xsl:when>
|
|
9276
9541
|
<xsl:when test="$layoutVersion = '2024'">0.8</xsl:when>
|
|
@@ -10168,6 +10433,9 @@
|
|
|
10168
10433
|
</xsl:attribute-set> <!-- termexample-style -->
|
|
10169
10434
|
|
|
10170
10435
|
<xsl:template name="refine_termexample-style">
|
|
10436
|
+
<xsl:variable name="layoutVersion">
|
|
10437
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10438
|
+
</xsl:variable>
|
|
10171
10439
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
10172
10440
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
10173
10441
|
</xsl:if>
|
|
@@ -10178,6 +10446,9 @@
|
|
|
10178
10446
|
</xsl:attribute-set> <!-- termexample-name-style -->
|
|
10179
10447
|
|
|
10180
10448
|
<xsl:template name="refine_termexample-name-style">
|
|
10449
|
+
<xsl:variable name="layoutVersion">
|
|
10450
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10451
|
+
</xsl:variable>
|
|
10181
10452
|
<xsl:if test="$layoutVersion = '2024' and translate(.,'0123456789','') = ."> <!-- EXAMPLE without number -->
|
|
10182
10453
|
<xsl:attribute name="padding-right">8mm</xsl:attribute>
|
|
10183
10454
|
</xsl:if>
|
|
@@ -10190,6 +10461,9 @@
|
|
|
10190
10461
|
</xsl:attribute-set> <!-- example-style -->
|
|
10191
10462
|
|
|
10192
10463
|
<xsl:template name="refine_example-style">
|
|
10464
|
+
<xsl:variable name="layoutVersion">
|
|
10465
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10466
|
+
</xsl:variable>
|
|
10193
10467
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
10194
10468
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
10195
10469
|
</xsl:if>
|
|
@@ -10210,6 +10484,9 @@
|
|
|
10210
10484
|
</xsl:attribute-set> <!-- example-name-style -->
|
|
10211
10485
|
|
|
10212
10486
|
<xsl:template name="refine_example-name-style">
|
|
10487
|
+
<xsl:variable name="layoutVersion">
|
|
10488
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10489
|
+
</xsl:variable>
|
|
10213
10490
|
<xsl:if test="$layoutVersion = '2024' and translate(.,'0123456789','') = ."> <!-- EXAMPLE without number -->
|
|
10214
10491
|
<xsl:attribute name="padding-right">8mm</xsl:attribute>
|
|
10215
10492
|
</xsl:if>
|
|
@@ -10296,6 +10573,12 @@
|
|
|
10296
10573
|
<xsl:variable name="fo_element">
|
|
10297
10574
|
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
10298
10575
|
<xsl:if test="normalize-space($example_display_in) != ''"><xsl:value-of select="$example_display_in"/></xsl:if>
|
|
10576
|
+
<xsl:variable name="layoutVersion">
|
|
10577
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10578
|
+
</xsl:variable>
|
|
10579
|
+
<xsl:variable name="revision_date_num">
|
|
10580
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
10581
|
+
</xsl:variable>
|
|
10299
10582
|
<xsl:choose>
|
|
10300
10583
|
<xsl:when test="$layoutVersion = '1951' and $revision_date_num < 19610101">list</xsl:when>
|
|
10301
10584
|
<xsl:otherwise>inline</xsl:otherwise>
|
|
@@ -10432,6 +10715,12 @@
|
|
|
10432
10715
|
|
|
10433
10716
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
10434
10717
|
<xsl:variable name="element">
|
|
10718
|
+
<xsl:variable name="layoutVersion">
|
|
10719
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10720
|
+
</xsl:variable>
|
|
10721
|
+
<xsl:variable name="revision_date_num">
|
|
10722
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
10723
|
+
</xsl:variable>
|
|
10435
10724
|
<xsl:choose>
|
|
10436
10725
|
<xsl:when test="$num = 1 and not(contains($fo_element, 'block'))">inline</xsl:when>
|
|
10437
10726
|
<xsl:otherwise>
|
|
@@ -10495,6 +10784,9 @@
|
|
|
10495
10784
|
|
|
10496
10785
|
<xsl:template name="refine_table-container-style">
|
|
10497
10786
|
<xsl:param name="margin-side"/>
|
|
10787
|
+
<xsl:variable name="layoutVersion">
|
|
10788
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10789
|
+
</xsl:variable>
|
|
10498
10790
|
<xsl:if test="not(mn:fmt-name)">
|
|
10499
10791
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
10500
10792
|
</xsl:if>
|
|
@@ -10521,6 +10813,9 @@
|
|
|
10521
10813
|
|
|
10522
10814
|
<xsl:template name="refine_table-style">
|
|
10523
10815
|
<xsl:param name="margin-side"/>
|
|
10816
|
+
<xsl:variable name="layoutVersion">
|
|
10817
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10818
|
+
</xsl:variable>
|
|
10524
10819
|
<xsl:if test="*[local-name()='thead']">
|
|
10525
10820
|
<xsl:attribute name="border-top"><xsl:value-of select="$table-border"/></xsl:attribute>
|
|
10526
10821
|
</xsl:if>
|
|
@@ -10559,6 +10854,9 @@
|
|
|
10559
10854
|
<xsl:if test="$continued = 'true'">
|
|
10560
10855
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
10561
10856
|
</xsl:if>
|
|
10857
|
+
<xsl:variable name="layoutVersion">
|
|
10858
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10859
|
+
</xsl:variable>
|
|
10562
10860
|
<xsl:if test="$continued = 'true'">
|
|
10563
10861
|
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
|
|
10564
10862
|
</xsl:if>
|
|
@@ -10679,6 +10977,9 @@
|
|
|
10679
10977
|
<xsl:if test="$lang = 'ar'">
|
|
10680
10978
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
10681
10979
|
</xsl:if>
|
|
10980
|
+
<xsl:variable name="layoutVersion">
|
|
10981
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
10982
|
+
</xsl:variable>
|
|
10682
10983
|
<xsl:if test="ancestor::mn:tfoot">
|
|
10683
10984
|
<xsl:attribute name="border">solid black 0</xsl:attribute>
|
|
10684
10985
|
</xsl:if>
|
|
@@ -10718,6 +11019,9 @@
|
|
|
10718
11019
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
10719
11020
|
|
|
10720
11021
|
<xsl:template name="refine_table-footer-cell-style">
|
|
11022
|
+
<xsl:variable name="layoutVersion">
|
|
11023
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
11024
|
+
</xsl:variable>
|
|
10721
11025
|
<xsl:if test="$layoutVersion = '2024'">
|
|
10722
11026
|
<xsl:attribute name="border-top"><xsl:value-of select="$table-border"/></xsl:attribute>
|
|
10723
11027
|
</xsl:if>
|
|
@@ -10742,6 +11046,9 @@
|
|
|
10742
11046
|
</xsl:attribute-set> <!-- table-fn-style -->
|
|
10743
11047
|
|
|
10744
11048
|
<xsl:template name="refine_table-fn-style">
|
|
11049
|
+
<xsl:variable name="layoutVersion">
|
|
11050
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
11051
|
+
</xsl:variable>
|
|
10745
11052
|
<xsl:if test="$layoutVersion = '2024'">
|
|
10746
11053
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
|
10747
11054
|
<xsl:if test="position() = last()">
|
|
@@ -10763,6 +11070,9 @@
|
|
|
10763
11070
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
|
10764
11071
|
|
|
10765
11072
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
|
11073
|
+
<xsl:variable name="layoutVersion">
|
|
11074
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
11075
|
+
</xsl:variable>
|
|
10766
11076
|
<xsl:if test="$layoutVersion = '2024'">
|
|
10767
11077
|
<xsl:attribute name="alignment-baseline">auto</xsl:attribute>
|
|
10768
11078
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
|
@@ -11038,6 +11348,9 @@
|
|
|
11038
11348
|
|
|
11039
11349
|
<!-- centered table when table name is centered (see table-name-style) -->
|
|
11040
11350
|
<fo:table table-layout="fixed" width="100%" xsl:use-attribute-sets="table-container-style" role="SKIP">
|
|
11351
|
+
<xsl:variable name="layoutVersion">
|
|
11352
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
11353
|
+
</xsl:variable>
|
|
11041
11354
|
<xsl:if test="$layoutVersion = '1951'">
|
|
11042
11355
|
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
|
11043
11356
|
</xsl:if>
|
|
@@ -12024,6 +12337,12 @@
|
|
|
12024
12337
|
<style name="{$key}-left"><xsl:value-of select="$value"/></style>
|
|
12025
12338
|
<style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
|
|
12026
12339
|
</xsl:if>
|
|
12340
|
+
<xsl:if test="$key = 'page-break-inside' and $value = 'avoid'">
|
|
12341
|
+
<style name="keep-together.within-page">always</style>
|
|
12342
|
+
</xsl:if>
|
|
12343
|
+
<xsl:if test="$key = 'page-break-after' and $value = 'always'">
|
|
12344
|
+
<style name="break-after">page</style>
|
|
12345
|
+
</xsl:if>
|
|
12027
12346
|
</xsl:for-each>
|
|
12028
12347
|
</xsl:variable>
|
|
12029
12348
|
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
|
@@ -12067,6 +12386,11 @@
|
|
|
12067
12386
|
|
|
12068
12387
|
<fo:block role="SKIP">
|
|
12069
12388
|
|
|
12389
|
+
<xsl:variable name="styles">
|
|
12390
|
+
<styles><xsl:call-template name="setTableStyles"/></styles>
|
|
12391
|
+
</xsl:variable>
|
|
12392
|
+
<xsl:copy-of select="xalan:nodeset($styles)/styles/@break-after"/>
|
|
12393
|
+
|
|
12070
12394
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
12071
12395
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
12072
12396
|
</xsl:if>
|
|
@@ -13058,6 +13382,9 @@
|
|
|
13058
13382
|
</xsl:attribute-set>
|
|
13059
13383
|
|
|
13060
13384
|
<xsl:template name="refine_dt-block-style">
|
|
13385
|
+
<xsl:variable name="layoutVersion">
|
|
13386
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
13387
|
+
</xsl:variable>
|
|
13061
13388
|
<xsl:if test="$layoutVersion = '2024'">
|
|
13062
13389
|
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
|
13063
13390
|
</xsl:if>
|
|
@@ -14003,6 +14330,12 @@
|
|
|
14003
14330
|
</xsl:attribute-set> <!-- note-style -->
|
|
14004
14331
|
|
|
14005
14332
|
<xsl:template name="refine_note-style">
|
|
14333
|
+
<xsl:variable name="layoutVersion">
|
|
14334
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14335
|
+
</xsl:variable>
|
|
14336
|
+
<xsl:variable name="doctype">
|
|
14337
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
14338
|
+
</xsl:variable>
|
|
14006
14339
|
<xsl:if test="$layoutVersion = '1951'">
|
|
14007
14340
|
<!-- <xsl:if test="$revision_date_num < 19680101"> -->
|
|
14008
14341
|
<xsl:attribute name="font-size">8.5pt</xsl:attribute>
|
|
@@ -14045,6 +14378,12 @@
|
|
|
14045
14378
|
|
|
14046
14379
|
<xsl:template name="refine_note-name-style">
|
|
14047
14380
|
<xsl:variable name="note_name" select="mn:fmt-name"/>
|
|
14381
|
+
<xsl:variable name="layoutVersion">
|
|
14382
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14383
|
+
</xsl:variable>
|
|
14384
|
+
<xsl:variable name="revision_date_num">
|
|
14385
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
14386
|
+
</xsl:variable>
|
|
14048
14387
|
<xsl:if test="$layoutVersion = '1951'">
|
|
14049
14388
|
<xsl:if test="$revision_date_num"> <!-- < 19610101 -->
|
|
14050
14389
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
|
@@ -14090,6 +14429,12 @@
|
|
|
14090
14429
|
</xsl:attribute-set> <!-- termnote-style -->
|
|
14091
14430
|
|
|
14092
14431
|
<xsl:template name="refine_termnote-style">
|
|
14432
|
+
<xsl:variable name="layoutVersion">
|
|
14433
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14434
|
+
</xsl:variable>
|
|
14435
|
+
<xsl:variable name="doctype">
|
|
14436
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
14437
|
+
</xsl:variable>
|
|
14093
14438
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
14094
14439
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
14095
14440
|
</xsl:if>
|
|
@@ -14163,6 +14508,9 @@
|
|
|
14163
14508
|
</xsl:template>
|
|
14164
14509
|
|
|
14165
14510
|
<xsl:template name="refine_note_block_style">
|
|
14511
|
+
<xsl:variable name="layoutVersion">
|
|
14512
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14513
|
+
</xsl:variable>
|
|
14166
14514
|
<xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1987'">
|
|
14167
14515
|
<xsl:if test="following-sibling::*[1][self::mn:note] and not(preceding-sibling::*[1][self::mn:note])">
|
|
14168
14516
|
<!-- NOTES -->
|
|
@@ -14246,6 +14594,9 @@
|
|
|
14246
14594
|
<!-- <xsl:if test="$namespace = 'iho' or $namespace = 'gb' or $namespace = 'm3d' or $namespace = 'unece-rec' or $namespace = 'unece' or $namespace = 'rsd'">
|
|
14247
14595
|
<xsl:text>:</xsl:text>
|
|
14248
14596
|
</xsl:if> -->
|
|
14597
|
+
<xsl:variable name="layoutVersion">
|
|
14598
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14599
|
+
</xsl:variable>
|
|
14249
14600
|
<xsl:if test="$layoutVersion = '1987' and . = translate(.,'1234567890','')"> <!-- NOTE without number -->
|
|
14250
14601
|
<xsl:text> — </xsl:text>
|
|
14251
14602
|
</xsl:if>
|
|
@@ -14309,21 +14660,41 @@
|
|
|
14309
14660
|
<!-- ====== -->
|
|
14310
14661
|
<!-- ====== -->
|
|
14311
14662
|
|
|
14312
|
-
<xsl:attribute-set name="quote-style">
|
|
14663
|
+
<xsl:attribute-set name="quote-container-style">
|
|
14313
14664
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
|
14314
14665
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
|
14315
|
-
<xsl:attribute name="
|
|
14316
|
-
|
|
14666
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14667
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
14668
|
+
</xsl:attribute-set>
|
|
14317
14669
|
|
|
14318
|
-
<xsl:template name="refine_quote-style">
|
|
14670
|
+
<xsl:template name="refine_quote-container-style">
|
|
14671
|
+
<xsl:if test="parent::mn:note">
|
|
14672
|
+
<xsl:if test="not(ancestor::mn:table)">
|
|
14673
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
|
14674
|
+
</xsl:if>
|
|
14675
|
+
</xsl:if>
|
|
14676
|
+
<xsl:variable name="doctype">
|
|
14677
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
14678
|
+
</xsl:variable>
|
|
14319
14679
|
<xsl:if test="$doctype = 'amendment' and (mn:note or mn:termnote)">
|
|
14320
14680
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
|
14321
14681
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
14322
14682
|
</xsl:if>
|
|
14683
|
+
</xsl:template>
|
|
14684
|
+
|
|
14685
|
+
<xsl:attribute-set name="quote-style">
|
|
14686
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
14687
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
14688
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
14689
|
+
|
|
14690
|
+
</xsl:attribute-set> <!-- quote-style -->
|
|
14691
|
+
|
|
14692
|
+
<xsl:template name="refine_quote-style">
|
|
14323
14693
|
</xsl:template> <!-- refine_quote-style -->
|
|
14324
14694
|
|
|
14325
14695
|
<xsl:attribute-set name="quote-source-style">
|
|
14326
14696
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
|
14697
|
+
<xsl:attribute name="margin-right">-12mm</xsl:attribute>
|
|
14327
14698
|
</xsl:attribute-set> <!-- quote-source-style -->
|
|
14328
14699
|
|
|
14329
14700
|
<xsl:template name="refine_quote-source-style">
|
|
@@ -14346,12 +14717,9 @@
|
|
|
14346
14717
|
|
|
14347
14718
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
14348
14719
|
|
|
14349
|
-
<xsl:
|
|
14350
|
-
<xsl:
|
|
14351
|
-
|
|
14352
|
-
</xsl:if>
|
|
14353
|
-
</xsl:if>
|
|
14354
|
-
<fo:block-container margin-left="0mm" role="SKIP">
|
|
14720
|
+
<fo:block-container xsl:use-attribute-sets="quote-container-style">
|
|
14721
|
+
<xsl:call-template name="refine_quote-container-style"/>
|
|
14722
|
+
|
|
14355
14723
|
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
|
14356
14724
|
|
|
14357
14725
|
<xsl:call-template name="refine_quote-style"/>
|
|
@@ -14363,14 +14731,16 @@
|
|
|
14363
14731
|
</fo:block-container>
|
|
14364
14732
|
</fo:block-container>
|
|
14365
14733
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
|
14366
|
-
<fo:block
|
|
14367
|
-
<xsl:
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14734
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
14735
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
|
14736
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
|
14737
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
|
14738
|
+
<xsl:apply-templates select="mn:author"/>
|
|
14739
|
+
<xsl:apply-templates select="mn:fmt-source"/>
|
|
14740
|
+
<!-- added for https://github.com/metanorma/isodoc/issues/607 -->
|
|
14741
|
+
<xsl:apply-templates select="mn:attribution/mn:p/node()"/>
|
|
14742
|
+
</fo:block>
|
|
14743
|
+
</fo:block-container>
|
|
14374
14744
|
</xsl:if>
|
|
14375
14745
|
|
|
14376
14746
|
</fo:block-container>
|
|
@@ -14424,6 +14794,9 @@
|
|
|
14424
14794
|
</xsl:attribute-set>
|
|
14425
14795
|
|
|
14426
14796
|
<xsl:template name="refine_figure-block-style">
|
|
14797
|
+
<xsl:variable name="layoutVersion">
|
|
14798
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
14799
|
+
</xsl:variable>
|
|
14427
14800
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
14428
14801
|
<xsl:if test="normalize-space(@width) != 'text-width'">
|
|
14429
14802
|
<xsl:attribute name="span">all</xsl:attribute>
|
|
@@ -16195,6 +16568,9 @@
|
|
|
16195
16568
|
<!-- Lists processing -->
|
|
16196
16569
|
<!-- ===================================== -->
|
|
16197
16570
|
<xsl:variable name="ul_labels_">
|
|
16571
|
+
<xsl:variable name="layoutVersion">
|
|
16572
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16573
|
+
</xsl:variable>
|
|
16198
16574
|
<xsl:choose>
|
|
16199
16575
|
<xsl:when test="$layoutVersion = '1951'">
|
|
16200
16576
|
<label>–</label> <!-- en dash -->
|
|
@@ -16268,6 +16644,9 @@
|
|
|
16268
16644
|
<xsl:if test="$type = 'roman'"> <!-- Example: (i) -->
|
|
16269
16645
|
</xsl:if>
|
|
16270
16646
|
<xsl:if test="$type = 'alphabet'">
|
|
16647
|
+
<xsl:variable name="layoutVersion">
|
|
16648
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16649
|
+
</xsl:variable>
|
|
16271
16650
|
<xsl:if test="$layoutVersion = '1951'">(</xsl:if> <!-- Example: (a) -->
|
|
16272
16651
|
</xsl:if>
|
|
16273
16652
|
</xsl:variable>
|
|
@@ -16298,6 +16677,9 @@
|
|
|
16298
16677
|
<xsl:value-of select="$style_suffix"/>
|
|
16299
16678
|
</xsl:if>
|
|
16300
16679
|
</xsl:variable>
|
|
16680
|
+
<xsl:variable name="layoutVersion">
|
|
16681
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16682
|
+
</xsl:variable>
|
|
16301
16683
|
<xsl:choose>
|
|
16302
16684
|
<xsl:when test="$layoutVersion = '1951' and $type = 'alphabet'">(<fo:inline font-style="italic"><xsl:value-of select="@label"/></fo:inline>)</xsl:when>
|
|
16303
16685
|
<xsl:otherwise>
|
|
@@ -16403,6 +16785,9 @@
|
|
|
16403
16785
|
</fo:block-container>
|
|
16404
16786
|
</xsl:when>
|
|
16405
16787
|
<xsl:otherwise>
|
|
16788
|
+
<xsl:variable name="layoutVersion">
|
|
16789
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16790
|
+
</xsl:variable>
|
|
16406
16791
|
<xsl:choose>
|
|
16407
16792
|
<xsl:when test="$layoutVersion = '1951' and self::mn:ul">
|
|
16408
16793
|
<fo:block-container margin-left="8mm">
|
|
@@ -16503,6 +16888,9 @@
|
|
|
16503
16888
|
</xsl:template>
|
|
16504
16889
|
|
|
16505
16890
|
<xsl:template name="refine_list-style_provisional-distance-between-starts">
|
|
16891
|
+
<xsl:variable name="layoutVersion">
|
|
16892
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16893
|
+
</xsl:variable>
|
|
16506
16894
|
<xsl:if test="$layoutVersion = '1951' and self::mn:ul">
|
|
16507
16895
|
<xsl:attribute name="provisional-distance-between-starts">5mm</xsl:attribute>
|
|
16508
16896
|
</xsl:if>
|
|
@@ -16581,6 +16969,9 @@
|
|
|
16581
16969
|
</xsl:attribute-set>
|
|
16582
16970
|
|
|
16583
16971
|
<xsl:template name="refine_footnote-separator-block-style">
|
|
16972
|
+
<xsl:variable name="layoutVersion">
|
|
16973
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16974
|
+
</xsl:variable>
|
|
16584
16975
|
<xsl:if test="$layoutVersion = '2024'">
|
|
16585
16976
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
16586
16977
|
</xsl:if>
|
|
@@ -16592,6 +16983,9 @@
|
|
|
16592
16983
|
</xsl:attribute-set>
|
|
16593
16984
|
|
|
16594
16985
|
<xsl:template name="refine_footnote-separator-leader-style">
|
|
16986
|
+
<xsl:variable name="layoutVersion">
|
|
16987
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
16988
|
+
</xsl:variable>
|
|
16595
16989
|
<xsl:if test="$layoutVersion = '2024'">
|
|
16596
16990
|
<xsl:attribute name="leader-length">51mm</xsl:attribute>
|
|
16597
16991
|
<xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
|
|
@@ -16649,6 +17043,12 @@
|
|
|
16649
17043
|
</xsl:attribute-set> <!-- fn-body-style" -->
|
|
16650
17044
|
|
|
16651
17045
|
<xsl:template name="refine_fn-body-style">
|
|
17046
|
+
<xsl:variable name="layoutVersion">
|
|
17047
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17048
|
+
</xsl:variable>
|
|
17049
|
+
<xsl:variable name="revision_date_num">
|
|
17050
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
17051
|
+
</xsl:variable>
|
|
16652
17052
|
<xsl:if test="$layoutVersion = '1951'">
|
|
16653
17053
|
<xsl:if test="$revision_date_num >= 19680101">
|
|
16654
17054
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
@@ -16708,6 +17108,9 @@
|
|
|
16708
17108
|
<xsl:variable name="current_fn_number" select="@reference"/>
|
|
16709
17109
|
|
|
16710
17110
|
<xsl:variable name="current_fn_number_text">
|
|
17111
|
+
<xsl:variable name="layoutVersion">
|
|
17112
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17113
|
+
</xsl:variable>
|
|
16711
17114
|
<xsl:choose>
|
|
16712
17115
|
<xsl:when test="$layoutVersion = '1951' and translate($current_fn_number, '0123456789', '') = ''">
|
|
16713
17116
|
<!-- replace number to asterisks -->
|
|
@@ -16732,6 +17135,9 @@
|
|
|
16732
17135
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
|
16733
17136
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
|
16734
17137
|
</xsl:if> -->
|
|
17138
|
+
<xsl:variable name="layoutVersion">
|
|
17139
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17140
|
+
</xsl:variable>
|
|
16735
17141
|
<xsl:if test="$layoutVersion = '2024'">
|
|
16736
17142
|
<xsl:attribute name="font-size">70%</xsl:attribute>
|
|
16737
17143
|
</xsl:if>
|
|
@@ -16985,6 +17391,9 @@
|
|
|
16985
17391
|
</xsl:attribute-set>
|
|
16986
17392
|
|
|
16987
17393
|
<xsl:template name="refine_bibliography-title-style">
|
|
17394
|
+
<xsl:variable name="layoutVersion">
|
|
17395
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17396
|
+
</xsl:variable>
|
|
16988
17397
|
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
16989
17398
|
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
16990
17399
|
<xsl:attribute name="span">all</xsl:attribute>
|
|
@@ -17001,6 +17410,9 @@
|
|
|
17001
17410
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
|
17002
17411
|
|
|
17003
17412
|
<xsl:template name="refine_bibitem-normative-style">
|
|
17413
|
+
<xsl:variable name="layoutVersion">
|
|
17414
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17415
|
+
</xsl:variable>
|
|
17004
17416
|
<xsl:if test="$layoutVersion = '2024'">
|
|
17005
17417
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
17006
17418
|
</xsl:if>
|
|
@@ -17038,6 +17450,9 @@
|
|
|
17038
17450
|
</xsl:attribute-set>
|
|
17039
17451
|
|
|
17040
17452
|
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
|
17453
|
+
<xsl:variable name="layoutVersion">
|
|
17454
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
17455
|
+
</xsl:variable>
|
|
17041
17456
|
<xsl:if test="$layoutVersion = '2024'">
|
|
17042
17457
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
17043
17458
|
</xsl:if>
|
|
@@ -17489,6 +17904,13 @@
|
|
|
17489
17904
|
<xsl:with-param name="num" select="$num"/>
|
|
17490
17905
|
</xsl:apply-templates>
|
|
17491
17906
|
</xsl:template>
|
|
17907
|
+
<xsl:template match="mn:indexsect"/>
|
|
17908
|
+
<xsl:template match="/" mode="index">
|
|
17909
|
+
<xsl:param name="num"/>
|
|
17910
|
+
<xsl:apply-templates mode="index">
|
|
17911
|
+
<xsl:with-param name="num" select="$num"/>
|
|
17912
|
+
</xsl:apply-templates>
|
|
17913
|
+
</xsl:template>
|
|
17492
17914
|
|
|
17493
17915
|
<xsl:template match="@*|node()" mode="index_add_id">
|
|
17494
17916
|
<xsl:param name="docid"/>
|
|
@@ -17918,6 +18340,12 @@
|
|
|
17918
18340
|
|
|
17919
18341
|
<xsl:template name="refine_toc-style">
|
|
17920
18342
|
<xsl:copy-of select="@id"/>
|
|
18343
|
+
<xsl:variable name="layoutVersion">
|
|
18344
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
18345
|
+
</xsl:variable>
|
|
18346
|
+
<xsl:variable name="revision_date_num">
|
|
18347
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
18348
|
+
</xsl:variable>
|
|
17921
18349
|
<xsl:if test="$layoutVersion = '1987'">
|
|
17922
18350
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
17923
18351
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
@@ -17960,6 +18388,9 @@
|
|
|
17960
18388
|
</xsl:attribute-set> <!-- END: toc-item-style -->
|
|
17961
18389
|
|
|
17962
18390
|
<xsl:template name="refine_toc-item-style">
|
|
18391
|
+
<xsl:variable name="layoutVersion">
|
|
18392
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
18393
|
+
</xsl:variable>
|
|
17963
18394
|
<xsl:if test="@level = 1">
|
|
17964
18395
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
|
17965
18396
|
</xsl:if>
|
|
@@ -19001,6 +19432,9 @@
|
|
|
19001
19432
|
</xsl:variable>
|
|
19002
19433
|
|
|
19003
19434
|
<xsl:variable name="padding">
|
|
19435
|
+
<xsl:variable name="layoutVersion">
|
|
19436
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
19437
|
+
</xsl:variable>
|
|
19004
19438
|
<xsl:choose>
|
|
19005
19439
|
<xsl:when test="$layoutVersion = '1951'">2</xsl:when>
|
|
19006
19440
|
<xsl:when test="$depth = 2">3</xsl:when>
|
|
@@ -19016,6 +19450,9 @@
|
|
|
19016
19450
|
</xsl:otherwise>
|
|
19017
19451
|
</xsl:choose>
|
|
19018
19452
|
</xsl:variable>
|
|
19453
|
+
<xsl:variable name="layoutVersion">
|
|
19454
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
19455
|
+
</xsl:variable>
|
|
19019
19456
|
<xsl:if test="$layoutVersion = '1951' and $depth = 1">.</xsl:if>
|
|
19020
19457
|
<xsl:choose>
|
|
19021
19458
|
<xsl:when test="$lang = 'zh'">
|
|
@@ -19321,6 +19758,9 @@
|
|
|
19321
19758
|
|
|
19322
19759
|
<xsl:template name="refine_annex-title-style">
|
|
19323
19760
|
<!-- <xsl:call-template name="setIDforNamedDestination"/> -->
|
|
19761
|
+
<xsl:variable name="layoutVersion">
|
|
19762
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
19763
|
+
</xsl:variable>
|
|
19324
19764
|
<xsl:if test="$layoutVersion = '2024'">
|
|
19325
19765
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
|
19326
19766
|
<!-- <xsl:attribute name="margin-bottom">52pt</xsl:attribute> -->
|
|
@@ -19345,6 +19785,12 @@
|
|
|
19345
19785
|
<xsl:template name="refine_p-style">
|
|
19346
19786
|
<xsl:param name="element-name"/>
|
|
19347
19787
|
<xsl:param name="margin"/>
|
|
19788
|
+
<xsl:variable name="layoutVersion">
|
|
19789
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
19790
|
+
</xsl:variable>
|
|
19791
|
+
<xsl:variable name="revision_date_num">
|
|
19792
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
19793
|
+
</xsl:variable>
|
|
19348
19794
|
<xsl:call-template name="setBlockAttributes">
|
|
19349
19795
|
<!-- <xsl:with-param name="text_align_default">justify</xsl:with-param> -->
|
|
19350
19796
|
<xsl:with-param name="skip_text_align_default">true</xsl:with-param>
|
|
@@ -19436,6 +19882,15 @@
|
|
|
19436
19882
|
<xsl:variable name="level">
|
|
19437
19883
|
<xsl:call-template name="getLevel"/>
|
|
19438
19884
|
</xsl:variable>
|
|
19885
|
+
<xsl:variable name="layoutVersion">
|
|
19886
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
19887
|
+
</xsl:variable>
|
|
19888
|
+
<xsl:variable name="doctype">
|
|
19889
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
19890
|
+
</xsl:variable>
|
|
19891
|
+
<xsl:variable name="revision_date_num">
|
|
19892
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">revision_date_num</xsl:with-param></xsl:call-template>
|
|
19893
|
+
</xsl:variable>
|
|
19439
19894
|
|
|
19440
19895
|
<xsl:if test="$level = 2">
|
|
19441
19896
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
@@ -19805,6 +20260,10 @@
|
|
|
19805
20260
|
<fo:block break-after="page"/>
|
|
19806
20261
|
</xsl:template>
|
|
19807
20262
|
|
|
20263
|
+
<xsl:template match="mn:pagebreak[ancestor::mn:table]" priority="2">
|
|
20264
|
+
<fo:block break-after="page"/>
|
|
20265
|
+
</xsl:template>
|
|
20266
|
+
|
|
19808
20267
|
<xsl:variable name="font_main_root_style">
|
|
19809
20268
|
<root-style xsl:use-attribute-sets="root-style">
|
|
19810
20269
|
</root-style>
|
|
@@ -20052,6 +20511,12 @@
|
|
|
20052
20511
|
</xsl:template> <!-- sections_element_style -->
|
|
20053
20512
|
|
|
20054
20513
|
<xsl:template match="//mn:metanorma/mn:preface/*" priority="2" name="preface_node"> <!-- /*/mn:preface/* -->
|
|
20514
|
+
<xsl:variable name="layoutVersion">
|
|
20515
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
20516
|
+
</xsl:variable>
|
|
20517
|
+
<xsl:variable name="doctype">
|
|
20518
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">doctype</xsl:with-param></xsl:call-template>
|
|
20519
|
+
</xsl:variable>
|
|
20055
20520
|
<xsl:choose>
|
|
20056
20521
|
<xsl:when test="$layoutVersion = '1951' and (self::mn:clause or self::mn:introduction)"/>
|
|
20057
20522
|
<xsl:when test="$layoutVersion = '1987' and $doctype = 'technical-report'"/>
|
|
@@ -20310,6 +20775,9 @@
|
|
|
20310
20775
|
|
|
20311
20776
|
<xsl:template name="printEdition">
|
|
20312
20777
|
<xsl:variable name="edition_i18n" select="normalize-space((//mn:metanorma)[1]/mn:bibdata/mn:edition[normalize-space(@language) != ''])"/>
|
|
20778
|
+
<xsl:variable name="layoutVersion">
|
|
20779
|
+
<xsl:call-template name="getVariable"><xsl:with-param name="variable">layoutVersion</xsl:with-param></xsl:call-template>
|
|
20780
|
+
</xsl:variable>
|
|
20313
20781
|
<xsl:if test="$layoutVersion != '1972' and $layoutVersion != '1979' and $layoutVersion != '2024'">
|
|
20314
20782
|
<xsl:text> </xsl:text>
|
|
20315
20783
|
</xsl:if>
|