metanorma-bipm 2.7.5 → 2.7.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efc4e1f60334ce17359cae16254bcc70af7cab4b4d4cb7851c04ff8e1c7d82d1
4
- data.tar.gz: f0fe8ed85a3a4c00a93c61cb4c13e0759f991e51c389a0421080e991d3e158e4
3
+ metadata.gz: 07c83f660d900dfe3cc97c6ed6a86c21232380ea523e5bce91bb04dfab3c3443
4
+ data.tar.gz: 75f8c0356896f8887c50db6c15ef4d648367a629655606489bdf06255a43bd3f
5
5
  SHA512:
6
- metadata.gz: 3f78ec9f000852f061674ba012148cd31f94f282daaf2803b8d6ad17126819c2b4f7b0e59c50504b2d997f622dfe3b4fe3399d459d99a535dcccbfb2c44e4f56
7
- data.tar.gz: 754d3a22bb6ef6fc22c08e36b207a2cfc7c2d09e9d521effdc3d87c8e926dc7df3a20c6b7767f435bed8e73ec118dcaa7c1c3bcdc80c2c1c8ccdb89155083e6b
6
+ metadata.gz: 9e01a981665cf4e4b277bdd5c9e233175bbe688de67d1855d7aaac35719b10f8a9bffbe829bad8c773b9ecdfd824c4edd781e660ead70cc1ae5398b790c9ccf2
7
+ data.tar.gz: d4931f41c73f104c35903bfc3f5563f42585ac407f0a636135ac38fd11e05a649b32b3aa9c2afde5674875a77d5a52dbf5872ec8afc46348cad819a6bace7294
@@ -409,6 +409,8 @@
409
409
 
410
410
  <xsl:call-template name="cover-page"/>
411
411
 
412
+ <xsl:call-template name="inner-cover-page"/>
413
+
412
414
  <xsl:choose>
413
415
  <xsl:when test="$root-element = 'metanorma-collection'">
414
416
 
@@ -597,6 +599,8 @@
597
599
  </xsl:otherwise>
598
600
  </xsl:choose>
599
601
 
602
+ <xsl:call-template name="back-page"/>
603
+
600
604
  </fo:root>
601
605
  </xsl:template>
602
606
 
@@ -1385,7 +1389,6 @@
1385
1389
  </xsl:when>
1386
1390
  <xsl:when test="$independentAppendix = ''">
1387
1391
  <xsl:call-template name="insertCoverPage"/>
1388
- <xsl:call-template name="insertInnerCoverPage"/>
1389
1392
  </xsl:when>
1390
1393
  <xsl:when test="$independentAppendix != ''">
1391
1394
  <xsl:call-template name="insertCoverPageAppendix"/>
@@ -1760,77 +1763,79 @@
1760
1763
  </fo:block-container>
1761
1764
  </xsl:template>
1762
1765
 
1763
- <xsl:template name="insertInnerCoverPage">
1764
-
1765
- <xsl:if test="(//mn:metanorma)[1]/mn:bibdata/mn:title[@type='title-cover']">
1766
+ <xsl:template name="inner-cover-page">
1767
+ <xsl:if test="$independentAppendix = ''">
1768
+ <xsl:if test="(//mn:metanorma)[1]/mn:bibdata/mn:title[@type='title-cover']">
1766
1769
 
1767
- <fo:page-sequence master-reference="title-page" format="1" initial-page-number="1" force-page-count="even">
1770
+ <fo:page-sequence master-reference="title-page" format="1" initial-page-number="1" force-page-count="even">
1768
1771
 
1769
- <xsl:call-template name="insertHeaderDraftWatermark"/>
1770
-
1771
- <fo:flow flow-name="xsl-region-body" font-family="Arial">
1772
+ <xsl:call-template name="insertHeaderDraftWatermark"/>
1772
1773
 
1773
- <xsl:variable name="languages">
1774
- <xsl:call-template name="getLanguages"/>
1775
- </xsl:variable>
1774
+ <fo:flow flow-name="xsl-region-body" font-family="Arial">
1775
+ <xsl:variable name="languages">
1776
+ <xsl:call-template name="getLanguages"/>
1777
+ </xsl:variable>
1776
1778
 
1777
- <xsl:variable name="titles">
1778
- <xsl:for-each select="(//mn:metanorma)[1]/mn:bibdata/mn:title">
1779
- <xsl:copy-of select="."/>
1780
- </xsl:for-each>
1781
- </xsl:variable>
1779
+ <xsl:variable name="titles">
1780
+ <xsl:for-each select="(//mn:metanorma)[1]/mn:bibdata/mn:title">
1781
+ <xsl:copy-of select="."/>
1782
+ </xsl:for-each>
1783
+ </xsl:variable>
1782
1784
 
1783
- <xsl:for-each select="xalan:nodeset($languages)/lang">
1784
- <xsl:variable name="curr_lang" select="."/>
1785
- <xsl:variable name="title" select="xalan:nodeset($titles)//mn:title[@language = $curr_lang and @type='title-cover']"/>
1786
- <xsl:choose>
1787
- <xsl:when test="position() = 1">
1788
- <fo:block-container font-size="12pt" font-weight="bold" width="55mm">
1789
- <fo:block>
1790
- <xsl:call-template name="add-letter-spacing">
1791
- <xsl:with-param name="text" select="$title"/>
1792
- <xsl:with-param name="letter-spacing" select="0.09"/>
1793
- </xsl:call-template>
1794
- </fo:block>
1795
- <fo:block font-size="10pt">
1796
- <fo:block margin-bottom="6pt"> </fo:block>
1797
- <fo:block margin-bottom="6pt"> </fo:block>
1798
- <fo:block margin-bottom="6pt"> </fo:block>
1799
- <fo:block margin-bottom="6pt" line-height="2.4"> </fo:block>
1800
- </fo:block>
1801
- </fo:block-container>
1802
- </xsl:when>
1803
- <xsl:otherwise>
1804
- <fo:block font-size="10pt" margin-bottom="3pt">
1805
- <xsl:variable name="lang_version">
1806
- <xsl:call-template name="getLangVersion">
1807
- <xsl:with-param name="lang" select="$curr_lang"/>
1808
- </xsl:call-template>
1809
- </xsl:variable>
1810
- <xsl:call-template name="add-letter-spacing">
1811
- <xsl:with-param name="text" select="normalize-space($lang_version)"/>
1812
- <xsl:with-param name="letter-spacing" select="0.09"/>
1813
- </xsl:call-template>
1814
- </fo:block>
1815
- <fo:block-container font-size="12pt" font-weight="bold" border-top="0.5pt solid black" padding-top="2mm" width="45mm">
1816
- <fo:block role="H1">
1785
+ <xsl:for-each select="xalan:nodeset($languages)/lang">
1786
+ <xsl:variable name="curr_lang" select="."/>
1787
+ <xsl:variable name="title" select="xalan:nodeset($titles)//mn:title[@language = $curr_lang and @type='title-cover']"/>
1788
+ <xsl:choose>
1789
+ <xsl:when test="position() = 1">
1790
+ <fo:block-container font-size="12pt" font-weight="bold" width="55mm">
1791
+ <fo:block>
1792
+ <xsl:call-template name="add-letter-spacing">
1793
+ <xsl:with-param name="text" select="$title"/>
1794
+ <xsl:with-param name="letter-spacing" select="0.09"/>
1795
+ </xsl:call-template>
1796
+ </fo:block>
1797
+ <fo:block font-size="10pt">
1798
+ <fo:block margin-bottom="6pt"> </fo:block>
1799
+ <fo:block margin-bottom="6pt"> </fo:block>
1800
+ <fo:block margin-bottom="6pt"> </fo:block>
1801
+ <fo:block margin-bottom="6pt" line-height="2.4"> </fo:block>
1802
+ </fo:block>
1803
+ </fo:block-container>
1804
+ </xsl:when>
1805
+ <xsl:otherwise>
1806
+ <fo:block font-size="10pt" margin-bottom="3pt">
1807
+ <xsl:variable name="lang_version">
1808
+ <xsl:call-template name="getLangVersion">
1809
+ <xsl:with-param name="lang" select="$curr_lang"/>
1810
+ </xsl:call-template>
1811
+ </xsl:variable>
1817
1812
  <xsl:call-template name="add-letter-spacing">
1818
- <xsl:with-param name="text" select="$title"/>
1813
+ <xsl:with-param name="text" select="normalize-space($lang_version)"/>
1819
1814
  <xsl:with-param name="letter-spacing" select="0.09"/>
1820
1815
  </xsl:call-template>
1821
1816
  </fo:block>
1822
- </fo:block-container>
1823
- </xsl:otherwise>
1824
-
1825
- </xsl:choose>
1826
- </xsl:for-each>
1817
+ <fo:block-container font-size="12pt" font-weight="bold" border-top="0.5pt solid black" padding-top="2mm" width="45mm">
1818
+ <fo:block role="H1">
1819
+ <xsl:call-template name="add-letter-spacing">
1820
+ <xsl:with-param name="text" select="$title"/>
1821
+ <xsl:with-param name="letter-spacing" select="0.09"/>
1822
+ </xsl:call-template>
1823
+ </fo:block>
1824
+ </fo:block-container>
1825
+ </xsl:otherwise>
1827
1826
 
1828
- </fo:flow>
1829
- </fo:page-sequence>
1827
+ </xsl:choose>
1828
+ </xsl:for-each>
1829
+ </fo:flow>
1830
+ </fo:page-sequence>
1831
+ </xsl:if>
1830
1832
  </xsl:if>
1831
- </xsl:template>
1833
+ </xsl:template> <!-- END: inner-cover-page -->
1832
1834
  <!-- End Cover Pages -->
1833
1835
 
1836
+ <xsl:template name="back-page">
1837
+ </xsl:template>
1838
+
1834
1839
  <xsl:template match="mn:metanorma/mn:bibdata/mn:title[@language = 'en']/text()" priority="3">
1835
1840
  <xsl:variable name="mep_text" select="'Mise en pratique'"/>
1836
1841
  <xsl:choose>
@@ -2273,7 +2278,7 @@
2273
2278
  </xsl:template>
2274
2279
 
2275
2280
  <xsl:template match="mn:feedback-statement//mn:p" priority="2">
2276
- <fo:block margin-top="6pt">
2281
+ <fo:block xsl:use-attribute-sets="feedback-statement-p-style">
2277
2282
  <xsl:variable name="p_num"><xsl:number/></xsl:variable>
2278
2283
  <xsl:if test="$p_num = 1">Édité par le </xsl:if>
2279
2284
  <xsl:apply-templates/>
@@ -5701,10 +5706,10 @@
5701
5706
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
5702
5707
 
5703
5708
  <xsl:template name="refine_feedback-statement-title-style">
5704
-
5705
5709
  </xsl:template>
5706
5710
 
5707
5711
  <xsl:attribute-set name="feedback-statement-p-style">
5712
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
5708
5713
  </xsl:attribute-set> <!-- feedback-statement-p-style -->
5709
5714
 
5710
5715
  <xsl:template name="refine_feedback-statement-p-style">
@@ -11558,15 +11563,22 @@
11558
11563
  </xsl:attribute-set> <!-- quote-style -->
11559
11564
 
11560
11565
  <xsl:template name="refine_quote-style">
11561
- </xsl:template>
11566
+ </xsl:template> <!-- refine_quote-style -->
11562
11567
 
11563
11568
  <xsl:attribute-set name="quote-source-style">
11564
11569
  <xsl:attribute name="text-align">right</xsl:attribute>
11565
- </xsl:attribute-set>
11570
+ </xsl:attribute-set> <!-- quote-source-style -->
11566
11571
 
11567
11572
  <xsl:template name="refine_quote-source-style">
11568
11573
  </xsl:template>
11569
11574
 
11575
+ <xsl:attribute-set name="source-style">
11576
+ </xsl:attribute-set> <!-- source-style -->
11577
+
11578
+ <xsl:template name="refine_source-style">
11579
+
11580
+ </xsl:template> <!-- refine_source-style -->
11581
+
11570
11582
  <!-- ====== -->
11571
11583
  <!-- quote -->
11572
11584
  <!-- source -->
@@ -11614,7 +11626,9 @@
11614
11626
  </xsl:if>
11615
11627
  <xsl:choose>
11616
11628
  <xsl:when test="not(parent::quote)">
11617
- <fo:block>
11629
+ <fo:block xsl:use-attribute-sets="source-style">
11630
+ <xsl:call-template name="refine_source-style"/>
11631
+
11618
11632
  <xsl:call-template name="insert_basic_link">
11619
11633
  <xsl:with-param name="element">
11620
11634
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -13743,7 +13757,7 @@
13743
13757
 
13744
13758
  <xsl:template name="refine_fn-reference-style">
13745
13759
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13746
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13760
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
13747
13761
  </xsl:template> <!-- refine_fn-reference-style -->
13748
13762
 
13749
13763
  <xsl:attribute-set name="fn-style">
@@ -13754,6 +13768,7 @@
13754
13768
  </xsl:template>
13755
13769
 
13756
13770
  <xsl:attribute-set name="fn-num-style">
13771
+ <xsl:attribute name="role">Reference</xsl:attribute>
13757
13772
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
13758
13773
  <xsl:attribute name="font-size">65%</xsl:attribute>
13759
13774
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -13830,33 +13845,16 @@
13830
13845
  <xsl:variable name="ref_id" select="@target"/>
13831
13846
 
13832
13847
  <xsl:variable name="footnote_inline">
13833
- <fo:inline role="Reference">
13848
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
13834
13849
 
13835
- <xsl:variable name="fn_styles">
13836
- <xsl:choose>
13837
- <xsl:when test="ancestor::mn:bibitem">
13838
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
13839
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
13840
- </fn_styles>
13841
- </xsl:when>
13842
- <xsl:otherwise>
13843
- <fn_styles xsl:use-attribute-sets="fn-num-style">
13844
- <xsl:call-template name="refine_fn-num-style"/>
13845
- </fn_styles>
13846
- </xsl:otherwise>
13847
- </xsl:choose>
13848
- </xsl:variable>
13849
-
13850
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
13851
- <xsl:copy-of select="."/>
13852
- </xsl:for-each>
13850
+ <xsl:call-template name="refine_fn-num-style"/>
13853
13851
 
13854
13852
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13855
13853
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
13856
13854
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
13857
13855
  </xsl:if> -->
13858
13856
 
13859
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13857
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
13860
13858
 
13861
13859
  <xsl:call-template name="insert_basic_link">
13862
13860
  <xsl:with-param name="element">
@@ -14165,30 +14163,6 @@
14165
14163
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
14166
14164
  </xsl:template>
14167
14165
 
14168
- <!-- footnote reference number for bibitem, in the text -->
14169
- <xsl:attribute-set name="bibitem-note-fn-style">
14170
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
14171
- <xsl:attribute name="font-size">65%</xsl:attribute>
14172
- <xsl:attribute name="vertical-align">super</xsl:attribute>
14173
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
14174
-
14175
- <xsl:template name="refine_bibitem-note-fn-style">
14176
- </xsl:template>
14177
-
14178
- <!-- footnote number on the page bottom -->
14179
- <xsl:attribute-set name="bibitem-note-fn-number-style">
14180
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
14181
- <xsl:attribute name="font-size">60%</xsl:attribute>
14182
- <xsl:attribute name="vertical-align">super</xsl:attribute>
14183
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
14184
-
14185
- <!-- footnote body (text) on the page bottom -->
14186
- <xsl:attribute-set name="bibitem-note-fn-body-style">
14187
- <xsl:attribute name="font-size">10pt</xsl:attribute>
14188
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
14189
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
14190
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
14191
-
14192
14166
  <xsl:attribute-set name="references-non-normative-style">
14193
14167
  <xsl:attribute name="line-height">120%</xsl:attribute>
14194
14168
  </xsl:attribute-set> <!-- references-non-normative-style -->
@@ -16596,6 +16570,17 @@
16596
16570
  </xsl:attribute-set>
16597
16571
 
16598
16572
  <xsl:template name="refine_clause-style">
16573
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
16574
+ <!-- <xsl:if test="$namespace = 'rsd'">
16575
+ <xsl:variable name="level">
16576
+ <xsl:call-template name="getLevel">
16577
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
16578
+ </xsl:call-template>
16579
+ </xsl:variable>
16580
+ <xsl:if test="$level &gt;= 4">
16581
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
16582
+ </xsl:if>
16583
+ </xsl:if> -->
16599
16584
  </xsl:template>
16600
16585
 
16601
16586
  <!-- main sections -->
@@ -409,6 +409,8 @@
409
409
 
410
410
  <xsl:call-template name="cover-page"/>
411
411
 
412
+ <xsl:call-template name="inner-cover-page"/>
413
+
412
414
  <xsl:choose>
413
415
  <xsl:when test="$root-element = 'metanorma-collection'">
414
416
 
@@ -597,6 +599,8 @@
597
599
  </xsl:otherwise>
598
600
  </xsl:choose>
599
601
 
602
+ <xsl:call-template name="back-page"/>
603
+
600
604
  </fo:root>
601
605
  </xsl:template>
602
606
 
@@ -1385,7 +1389,6 @@
1385
1389
  </xsl:when>
1386
1390
  <xsl:when test="$independentAppendix = ''">
1387
1391
  <xsl:call-template name="insertCoverPage"/>
1388
- <xsl:call-template name="insertInnerCoverPage"/>
1389
1392
  </xsl:when>
1390
1393
  <xsl:when test="$independentAppendix != ''">
1391
1394
  <xsl:call-template name="insertCoverPageAppendix"/>
@@ -1760,77 +1763,79 @@
1760
1763
  </fo:block-container>
1761
1764
  </xsl:template>
1762
1765
 
1763
- <xsl:template name="insertInnerCoverPage">
1764
-
1765
- <xsl:if test="(//mn:metanorma)[1]/mn:bibdata/mn:title[@type='title-cover']">
1766
+ <xsl:template name="inner-cover-page">
1767
+ <xsl:if test="$independentAppendix = ''">
1768
+ <xsl:if test="(//mn:metanorma)[1]/mn:bibdata/mn:title[@type='title-cover']">
1766
1769
 
1767
- <fo:page-sequence master-reference="title-page" format="1" initial-page-number="1" force-page-count="even">
1770
+ <fo:page-sequence master-reference="title-page" format="1" initial-page-number="1" force-page-count="even">
1768
1771
 
1769
- <xsl:call-template name="insertHeaderDraftWatermark"/>
1770
-
1771
- <fo:flow flow-name="xsl-region-body" font-family="Arial">
1772
+ <xsl:call-template name="insertHeaderDraftWatermark"/>
1772
1773
 
1773
- <xsl:variable name="languages">
1774
- <xsl:call-template name="getLanguages"/>
1775
- </xsl:variable>
1774
+ <fo:flow flow-name="xsl-region-body" font-family="Arial">
1775
+ <xsl:variable name="languages">
1776
+ <xsl:call-template name="getLanguages"/>
1777
+ </xsl:variable>
1776
1778
 
1777
- <xsl:variable name="titles">
1778
- <xsl:for-each select="(//mn:metanorma)[1]/mn:bibdata/mn:title">
1779
- <xsl:copy-of select="."/>
1780
- </xsl:for-each>
1781
- </xsl:variable>
1779
+ <xsl:variable name="titles">
1780
+ <xsl:for-each select="(//mn:metanorma)[1]/mn:bibdata/mn:title">
1781
+ <xsl:copy-of select="."/>
1782
+ </xsl:for-each>
1783
+ </xsl:variable>
1782
1784
 
1783
- <xsl:for-each select="xalan:nodeset($languages)/lang">
1784
- <xsl:variable name="curr_lang" select="."/>
1785
- <xsl:variable name="title" select="xalan:nodeset($titles)//mn:title[@language = $curr_lang and @type='title-cover']"/>
1786
- <xsl:choose>
1787
- <xsl:when test="position() = 1">
1788
- <fo:block-container font-size="12pt" font-weight="bold" width="55mm">
1789
- <fo:block>
1790
- <xsl:call-template name="add-letter-spacing">
1791
- <xsl:with-param name="text" select="$title"/>
1792
- <xsl:with-param name="letter-spacing" select="0.09"/>
1793
- </xsl:call-template>
1794
- </fo:block>
1795
- <fo:block font-size="10pt">
1796
- <fo:block margin-bottom="6pt"> </fo:block>
1797
- <fo:block margin-bottom="6pt"> </fo:block>
1798
- <fo:block margin-bottom="6pt"> </fo:block>
1799
- <fo:block margin-bottom="6pt" line-height="2.4"> </fo:block>
1800
- </fo:block>
1801
- </fo:block-container>
1802
- </xsl:when>
1803
- <xsl:otherwise>
1804
- <fo:block font-size="10pt" margin-bottom="3pt">
1805
- <xsl:variable name="lang_version">
1806
- <xsl:call-template name="getLangVersion">
1807
- <xsl:with-param name="lang" select="$curr_lang"/>
1808
- </xsl:call-template>
1809
- </xsl:variable>
1810
- <xsl:call-template name="add-letter-spacing">
1811
- <xsl:with-param name="text" select="normalize-space($lang_version)"/>
1812
- <xsl:with-param name="letter-spacing" select="0.09"/>
1813
- </xsl:call-template>
1814
- </fo:block>
1815
- <fo:block-container font-size="12pt" font-weight="bold" border-top="0.5pt solid black" padding-top="2mm" width="45mm">
1816
- <fo:block role="H1">
1785
+ <xsl:for-each select="xalan:nodeset($languages)/lang">
1786
+ <xsl:variable name="curr_lang" select="."/>
1787
+ <xsl:variable name="title" select="xalan:nodeset($titles)//mn:title[@language = $curr_lang and @type='title-cover']"/>
1788
+ <xsl:choose>
1789
+ <xsl:when test="position() = 1">
1790
+ <fo:block-container font-size="12pt" font-weight="bold" width="55mm">
1791
+ <fo:block>
1792
+ <xsl:call-template name="add-letter-spacing">
1793
+ <xsl:with-param name="text" select="$title"/>
1794
+ <xsl:with-param name="letter-spacing" select="0.09"/>
1795
+ </xsl:call-template>
1796
+ </fo:block>
1797
+ <fo:block font-size="10pt">
1798
+ <fo:block margin-bottom="6pt"> </fo:block>
1799
+ <fo:block margin-bottom="6pt"> </fo:block>
1800
+ <fo:block margin-bottom="6pt"> </fo:block>
1801
+ <fo:block margin-bottom="6pt" line-height="2.4"> </fo:block>
1802
+ </fo:block>
1803
+ </fo:block-container>
1804
+ </xsl:when>
1805
+ <xsl:otherwise>
1806
+ <fo:block font-size="10pt" margin-bottom="3pt">
1807
+ <xsl:variable name="lang_version">
1808
+ <xsl:call-template name="getLangVersion">
1809
+ <xsl:with-param name="lang" select="$curr_lang"/>
1810
+ </xsl:call-template>
1811
+ </xsl:variable>
1817
1812
  <xsl:call-template name="add-letter-spacing">
1818
- <xsl:with-param name="text" select="$title"/>
1813
+ <xsl:with-param name="text" select="normalize-space($lang_version)"/>
1819
1814
  <xsl:with-param name="letter-spacing" select="0.09"/>
1820
1815
  </xsl:call-template>
1821
1816
  </fo:block>
1822
- </fo:block-container>
1823
- </xsl:otherwise>
1824
-
1825
- </xsl:choose>
1826
- </xsl:for-each>
1817
+ <fo:block-container font-size="12pt" font-weight="bold" border-top="0.5pt solid black" padding-top="2mm" width="45mm">
1818
+ <fo:block role="H1">
1819
+ <xsl:call-template name="add-letter-spacing">
1820
+ <xsl:with-param name="text" select="$title"/>
1821
+ <xsl:with-param name="letter-spacing" select="0.09"/>
1822
+ </xsl:call-template>
1823
+ </fo:block>
1824
+ </fo:block-container>
1825
+ </xsl:otherwise>
1827
1826
 
1828
- </fo:flow>
1829
- </fo:page-sequence>
1827
+ </xsl:choose>
1828
+ </xsl:for-each>
1829
+ </fo:flow>
1830
+ </fo:page-sequence>
1831
+ </xsl:if>
1830
1832
  </xsl:if>
1831
- </xsl:template>
1833
+ </xsl:template> <!-- END: inner-cover-page -->
1832
1834
  <!-- End Cover Pages -->
1833
1835
 
1836
+ <xsl:template name="back-page">
1837
+ </xsl:template>
1838
+
1834
1839
  <xsl:template match="mn:metanorma/mn:bibdata/mn:title[@language = 'en']/text()" priority="3">
1835
1840
  <xsl:variable name="mep_text" select="'Mise en pratique'"/>
1836
1841
  <xsl:choose>
@@ -2273,7 +2278,7 @@
2273
2278
  </xsl:template>
2274
2279
 
2275
2280
  <xsl:template match="mn:feedback-statement//mn:p" priority="2">
2276
- <fo:block margin-top="6pt">
2281
+ <fo:block xsl:use-attribute-sets="feedback-statement-p-style">
2277
2282
  <xsl:variable name="p_num"><xsl:number/></xsl:variable>
2278
2283
  <xsl:if test="$p_num = 1">Édité par le </xsl:if>
2279
2284
  <xsl:apply-templates/>
@@ -5701,10 +5706,10 @@
5701
5706
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
5702
5707
 
5703
5708
  <xsl:template name="refine_feedback-statement-title-style">
5704
-
5705
5709
  </xsl:template>
5706
5710
 
5707
5711
  <xsl:attribute-set name="feedback-statement-p-style">
5712
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
5708
5713
  </xsl:attribute-set> <!-- feedback-statement-p-style -->
5709
5714
 
5710
5715
  <xsl:template name="refine_feedback-statement-p-style">
@@ -11558,15 +11563,22 @@
11558
11563
  </xsl:attribute-set> <!-- quote-style -->
11559
11564
 
11560
11565
  <xsl:template name="refine_quote-style">
11561
- </xsl:template>
11566
+ </xsl:template> <!-- refine_quote-style -->
11562
11567
 
11563
11568
  <xsl:attribute-set name="quote-source-style">
11564
11569
  <xsl:attribute name="text-align">right</xsl:attribute>
11565
- </xsl:attribute-set>
11570
+ </xsl:attribute-set> <!-- quote-source-style -->
11566
11571
 
11567
11572
  <xsl:template name="refine_quote-source-style">
11568
11573
  </xsl:template>
11569
11574
 
11575
+ <xsl:attribute-set name="source-style">
11576
+ </xsl:attribute-set> <!-- source-style -->
11577
+
11578
+ <xsl:template name="refine_source-style">
11579
+
11580
+ </xsl:template> <!-- refine_source-style -->
11581
+
11570
11582
  <!-- ====== -->
11571
11583
  <!-- quote -->
11572
11584
  <!-- source -->
@@ -11614,7 +11626,9 @@
11614
11626
  </xsl:if>
11615
11627
  <xsl:choose>
11616
11628
  <xsl:when test="not(parent::quote)">
11617
- <fo:block>
11629
+ <fo:block xsl:use-attribute-sets="source-style">
11630
+ <xsl:call-template name="refine_source-style"/>
11631
+
11618
11632
  <xsl:call-template name="insert_basic_link">
11619
11633
  <xsl:with-param name="element">
11620
11634
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -13743,7 +13757,7 @@
13743
13757
 
13744
13758
  <xsl:template name="refine_fn-reference-style">
13745
13759
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13746
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13760
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
13747
13761
  </xsl:template> <!-- refine_fn-reference-style -->
13748
13762
 
13749
13763
  <xsl:attribute-set name="fn-style">
@@ -13754,6 +13768,7 @@
13754
13768
  </xsl:template>
13755
13769
 
13756
13770
  <xsl:attribute-set name="fn-num-style">
13771
+ <xsl:attribute name="role">Reference</xsl:attribute>
13757
13772
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
13758
13773
  <xsl:attribute name="font-size">65%</xsl:attribute>
13759
13774
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -13830,33 +13845,16 @@
13830
13845
  <xsl:variable name="ref_id" select="@target"/>
13831
13846
 
13832
13847
  <xsl:variable name="footnote_inline">
13833
- <fo:inline role="Reference">
13848
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
13834
13849
 
13835
- <xsl:variable name="fn_styles">
13836
- <xsl:choose>
13837
- <xsl:when test="ancestor::mn:bibitem">
13838
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
13839
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
13840
- </fn_styles>
13841
- </xsl:when>
13842
- <xsl:otherwise>
13843
- <fn_styles xsl:use-attribute-sets="fn-num-style">
13844
- <xsl:call-template name="refine_fn-num-style"/>
13845
- </fn_styles>
13846
- </xsl:otherwise>
13847
- </xsl:choose>
13848
- </xsl:variable>
13849
-
13850
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
13851
- <xsl:copy-of select="."/>
13852
- </xsl:for-each>
13850
+ <xsl:call-template name="refine_fn-num-style"/>
13853
13851
 
13854
13852
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13855
13853
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
13856
13854
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
13857
13855
  </xsl:if> -->
13858
13856
 
13859
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13857
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
13860
13858
 
13861
13859
  <xsl:call-template name="insert_basic_link">
13862
13860
  <xsl:with-param name="element">
@@ -14165,30 +14163,6 @@
14165
14163
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
14166
14164
  </xsl:template>
14167
14165
 
14168
- <!-- footnote reference number for bibitem, in the text -->
14169
- <xsl:attribute-set name="bibitem-note-fn-style">
14170
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
14171
- <xsl:attribute name="font-size">65%</xsl:attribute>
14172
- <xsl:attribute name="vertical-align">super</xsl:attribute>
14173
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
14174
-
14175
- <xsl:template name="refine_bibitem-note-fn-style">
14176
- </xsl:template>
14177
-
14178
- <!-- footnote number on the page bottom -->
14179
- <xsl:attribute-set name="bibitem-note-fn-number-style">
14180
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
14181
- <xsl:attribute name="font-size">60%</xsl:attribute>
14182
- <xsl:attribute name="vertical-align">super</xsl:attribute>
14183
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
14184
-
14185
- <!-- footnote body (text) on the page bottom -->
14186
- <xsl:attribute-set name="bibitem-note-fn-body-style">
14187
- <xsl:attribute name="font-size">10pt</xsl:attribute>
14188
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
14189
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
14190
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
14191
-
14192
14166
  <xsl:attribute-set name="references-non-normative-style">
14193
14167
  <xsl:attribute name="line-height">120%</xsl:attribute>
14194
14168
  </xsl:attribute-set> <!-- references-non-normative-style -->
@@ -16596,6 +16570,17 @@
16596
16570
  </xsl:attribute-set>
16597
16571
 
16598
16572
  <xsl:template name="refine_clause-style">
16573
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
16574
+ <!-- <xsl:if test="$namespace = 'rsd'">
16575
+ <xsl:variable name="level">
16576
+ <xsl:call-template name="getLevel">
16577
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
16578
+ </xsl:call-template>
16579
+ </xsl:variable>
16580
+ <xsl:if test="$level &gt;= 4">
16581
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
16582
+ </xsl:if>
16583
+ </xsl:if> -->
16599
16584
  </xsl:template>
16600
16585
 
16601
16586
  <!-- main sections -->