metanorma-bipm 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +44 -0
  3. data/README.adoc +44 -20
  4. data/lib/asciidoctor/bipm/bipm.rng +178 -20
  5. data/lib/asciidoctor/bipm/converter.rb +87 -14
  6. data/lib/asciidoctor/bipm/isodoc.rng +1 -43
  7. data/lib/isodoc/bipm/base_convert.rb +5 -0
  8. data/lib/isodoc/bipm/bipm.brochure.xsl +598 -194
  9. data/lib/isodoc/bipm/html/html_bipm_titlepage.html +21 -3
  10. data/lib/isodoc/bipm/html/htmlstyle.css +6 -2
  11. data/lib/isodoc/bipm/html/htmlstyle.scss +1 -1
  12. data/lib/isodoc/bipm/html/si-aspect/A_e.png +0 -0
  13. data/lib/isodoc/bipm/html/si-aspect/A_e_deltanu.png +0 -0
  14. data/lib/isodoc/bipm/html/si-aspect/K_k.png +0 -0
  15. data/lib/isodoc/bipm/html/si-aspect/K_k_deltanu_h.png +0 -0
  16. data/lib/isodoc/bipm/html/si-aspect/cd_Kcd.png +0 -0
  17. data/lib/isodoc/bipm/html/si-aspect/cd_Kcd_h_deltanu.png +0 -0
  18. data/lib/isodoc/bipm/html/si-aspect/full.png +0 -0
  19. data/lib/isodoc/bipm/html/si-aspect/kg_h.png +0 -0
  20. data/lib/isodoc/bipm/html/si-aspect/kg_h_c_deltanu.png +0 -0
  21. data/lib/isodoc/bipm/html/si-aspect/m_c.png +0 -0
  22. data/lib/isodoc/bipm/html/si-aspect/m_c_deltanu.png +0 -0
  23. data/lib/isodoc/bipm/html/si-aspect/mol_NA.png +0 -0
  24. data/lib/isodoc/bipm/html/si-aspect/s_deltanu.png +0 -0
  25. data/lib/isodoc/bipm/html_convert.rb +15 -0
  26. data/lib/isodoc/bipm/i18n-en.yaml +1 -0
  27. data/lib/isodoc/bipm/i18n-fr.yaml +1 -0
  28. data/lib/isodoc/bipm/metadata.rb +20 -4
  29. data/lib/isodoc/bipm/presentation_xml_convert.rb +88 -6
  30. data/lib/isodoc/bipm/xref.rb +131 -2
  31. data/lib/metanorma/bipm/version.rb +1 -1
  32. data/metanorma.yml +37 -0
  33. metadata +16 -5
  34. data/.github/workflows/macos.yml +0 -38
  35. data/.github/workflows/ubuntu.yml +0 -56
  36. data/.github/workflows/windows.yml +0 -40
@@ -1164,49 +1164,7 @@
1164
1164
  </define>
1165
1165
  <define name="annex">
1166
1166
  <element name="annex">
1167
- <optional>
1168
- <attribute name="id">
1169
- <data type="ID"/>
1170
- </attribute>
1171
- </optional>
1172
- <optional>
1173
- <attribute name="language"/>
1174
- </optional>
1175
- <optional>
1176
- <attribute name="script"/>
1177
- </optional>
1178
- <optional>
1179
- <attribute name="inline-header">
1180
- <data type="boolean"/>
1181
- </attribute>
1182
- </optional>
1183
- <attribute name="obligation">
1184
- <choice>
1185
- <value>normative</value>
1186
- <value>informative</value>
1187
- </choice>
1188
- </attribute>
1189
- <optional>
1190
- <ref name="section-title"/>
1191
- </optional>
1192
- <group>
1193
- <group>
1194
- <zeroOrMore>
1195
- <ref name="BasicBlock"/>
1196
- </zeroOrMore>
1197
- <zeroOrMore>
1198
- <ref name="note"/>
1199
- </zeroOrMore>
1200
- </group>
1201
- <zeroOrMore>
1202
- <choice>
1203
- <ref name="annex-subsection"/>
1204
- <ref name="terms"/>
1205
- <ref name="definitions"/>
1206
- <ref name="references"/>
1207
- </choice>
1208
- </zeroOrMore>
1209
- </group>
1167
+ <ref name="Annex-Section"/>
1210
1168
  </element>
1211
1169
  </define>
1212
1170
  <define name="terms">
@@ -6,6 +6,11 @@ module IsoDoc
6
6
  def configuration
7
7
  Metanorma::BIPM.configuration
8
8
  end
9
+
10
+ def ol_attrs(node)
11
+ super.merge(attr_code(type: ol_style((node["type"] || "arabic").to_sym),
12
+ start: node["start"]))
13
+ end
9
14
  end
10
15
  end
11
16
  end
@@ -89,7 +89,8 @@
89
89
 
90
90
  </xsl:variable>
91
91
 
92
- <xsl:variable name="independentAppendix" select="normalize-space(/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix)"/>
92
+ <!-- <xsl:variable name="independentAppendix" select="normalize-space(/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix)"/> -->
93
+ <xsl:variable name="independentAppendix" select="normalize-space(/bipm:bipm-standard/bipm:bibdata/bipm:title[@type = 'appendix'])"/>
93
94
 
94
95
 
95
96
  <xsl:template name="generateContents">
@@ -113,6 +114,15 @@
113
114
  <fo:region-end extent="48mm"/>
114
115
  </fo:simple-page-master>
115
116
 
117
+ <!-- Cover page -->
118
+ <fo:simple-page-master master-name="cover-page-appendix" page-width="{$pageWidth}" page-height="{$pageHeight}">
119
+ <fo:region-body margin-top="90mm" margin-bottom="40mm" margin-left="12.5mm" margin-right="53mm"/>
120
+ <fo:region-before extent="60mm"/>
121
+ <fo:region-after extent="40mm"/>
122
+ <fo:region-start extent="12.5mm"/>
123
+ <fo:region-end extent="53mm"/>
124
+ </fo:simple-page-master>
125
+
116
126
  <!-- Title page -->
117
127
  <fo:simple-page-master master-name="title-page" page-width="{$pageWidth}" page-height="{$pageHeight}">
118
128
  <fo:region-body margin-top="38mm" margin-bottom="25mm" margin-left="95mm" margin-right="12mm"/>
@@ -167,13 +177,13 @@
167
177
  </fo:page-sequence-master>
168
178
 
169
179
  <!-- Independent Appendix pages -->
170
- <fo:simple-page-master master-name="appendix" page-width="{$pageWidth}" page-height="{$pageHeight}">
180
+ <!-- <fo:simple-page-master master-name="appendix" page-width="{$pageWidth}" page-height="{$pageHeight}">
171
181
  <fo:region-body margin-top="25mm" margin-bottom="25mm" margin-left="25mm" margin-right="25mm"/>
172
182
  <fo:region-before region-name="header-appendix" extent="25mm"/>
173
183
  <fo:region-after region-name="footer-appendix" extent="25mm"/>
174
184
  <fo:region-start region-name="left-region" extent="25mm"/>
175
185
  <fo:region-end region-name="right-region" extent="25mm"/>
176
- </fo:simple-page-master>
186
+ </fo:simple-page-master> -->
177
187
 
178
188
 
179
189
  </fo:layout-master-set>
@@ -189,12 +199,14 @@
189
199
  <xsl:copy-of select="$contents"/>
190
200
  </contents> -->
191
201
 
192
-
202
+ <xsl:if test="$independentAppendix = ''">
193
203
  <xsl:call-template name="insertCoverPage"/>
194
-
195
- <xsl:if test="$independentAppendix = ''">
196
- <xsl:call-template name="insertInnerCoverPage"/>
197
- </xsl:if>
204
+ <xsl:call-template name="insertInnerCoverPage"/>
205
+ </xsl:if>
206
+
207
+ <xsl:if test="$independentAppendix != ''">
208
+ <xsl:call-template name="insertCoverPageAppendix"/>
209
+ </xsl:if>
198
210
 
199
211
 
200
212
  <xsl:choose>
@@ -271,32 +283,89 @@
271
283
  <!-- flat xml for fit notes at page sides -->
272
284
  <xsl:template match="@*|node()" mode="flatxml">
273
285
  <xsl:copy>
274
- <xsl:apply-templates select="@*|node()" mode="flatxml"/>
286
+ <xsl:if test="ancestor::bipm:quote">
287
+ <xsl:attribute name="parent-type">quote</xsl:attribute>
288
+ </xsl:if>
289
+ <xsl:apply-templates select="@*|node()" mode="flatxml"/>
275
290
  </xsl:copy>
276
- </xsl:template>
291
+ </xsl:template>
292
+
277
293
  <!-- flat clauses from 2nd level -->
278
- <xsl:template match="bipm:clause[not(parent::bipm:sections) and not(parent::bipm:annex) and not(parent::bipm:abstract) and not(ancestor::bipm:boilerplate)]" mode="flatxml">
294
+ <!-- <xsl:template match="bipm:clause[not(parent::bipm:sections) and not(parent::bipm:annex) and not(parent::bipm:abstract) and not(ancestor::bipm:boilerplate)]" mode="flatxml"> -->
295
+ <xsl:template match="bipm:clause[not(parent::bipm:sections) and not(parent::bipm:annex) and not(parent::bipm:preface) and not(ancestor::bipm:boilerplate)]" mode="flatxml">
279
296
  <xsl:copy>
280
297
  <xsl:apply-templates select="@*" mode="flatxml"/>
281
298
  </xsl:copy>
282
299
  <xsl:apply-templates mode="flatxml"/>
283
300
  </xsl:template>
284
- <xsl:template match="bipm:clause/*[count(following-sibling::*) = 1 and following-sibling::*[local-name() = 'note']]" mode="flatxml"> <!-- -->
301
+
302
+ <!-- move clause/note inside title, p, ul or ol -->
303
+ <xsl:template match="bipm:clause/*[local-name() != 'quote' and local-name() != 'note' and local-name() != 'clause'][last()]" mode="flatxml">
304
+ <xsl:copy>
305
+ <xsl:apply-templates select="@*|node()" mode="flatxml"/>
306
+ <!-- <xsl:copy-of select="following-sibling::*[local-name() = 'note']"/> -->
307
+ <xsl:for-each select="following-sibling::*[local-name() = 'note']">
308
+ <xsl:call-template name="change_note_kind"/>
309
+ </xsl:for-each>
310
+ </xsl:copy>
311
+ </xsl:template>
312
+
313
+ <!-- <xsl:template match="bipm:clause2/*[count(following-sibling::*) = 1 and following-sibling::*[local-name() = 'note']]" mode="flatxml">
285
314
  <xsl:copy>
286
315
  <xsl:apply-templates select="@*|node()" mode="flatxml"/>
287
316
  <xsl:copy-of select="following-sibling::*[local-name() = 'note']"/>
288
317
  </xsl:copy>
318
+ </xsl:template> -->
319
+
320
+ <!-- <xsl:template match="bipm:clause/bipm:note[count(following-sibling::*) = 0]" mode="flatxml"/> -->
321
+ <xsl:template match="bipm:clause/bipm:note[count(following-sibling::*[local-name() != 'clause' and local-name() != 'note']) = 0]" mode="flatxml" priority="2"/>
322
+
323
+
324
+ <xsl:template match="bipm:note" name="change_note_kind" mode="flatxml">
325
+ <xsl:variable name="element">
326
+ <xsl:choose>
327
+ <xsl:when test="ancestor::bipm:quote">note</xsl:when>
328
+ <xsl:when test="ancestor::bipm:preface and ancestor::bipm:table">note</xsl:when>
329
+ <xsl:otherwise>note_side</xsl:otherwise>
330
+ </xsl:choose>
331
+ </xsl:variable>
332
+ <!-- <xsl:copy> -->
333
+ <xsl:element name="{$element}" namespace="https://www.metanorma.org/ns/bipm">
334
+ <xsl:if test="ancestor::bipm:quote">
335
+ <xsl:attribute name="parent-type">quote</xsl:attribute>
336
+ </xsl:if>
337
+ <xsl:apply-templates select="@*|node()" mode="flatxml"/>
338
+ </xsl:element>
339
+ <!-- </xsl:copy> -->
340
+ </xsl:template>
341
+
342
+
343
+ <xsl:template match="bipm:fn[ancestor::bipm:quote]" mode="flatxml">
344
+ <xsl:element name="note_side" namespace="https://www.metanorma.org/ns/bipm">
345
+ <xsl:apply-templates mode="flatxml"/>
346
+ </xsl:element>
289
347
  </xsl:template>
290
- <xsl:template match="bipm:clause/bipm:note[count(following-sibling::*) = 0]" mode="flatxml"/>
348
+
349
+ <xsl:template match="bipm:fn[ancestor::bipm:quote]" mode="flatxml_list">
350
+ <xsl:element name="note_side" namespace="https://www.metanorma.org/ns/bipm">
351
+ <xsl:apply-templates mode="flatxml_list"/>
352
+ </xsl:element>
353
+ </xsl:template>
354
+
291
355
  <!-- envelope standalone note in p -->
292
356
  <!-- <p>
293
357
  <xsl:copy-of select="."/>
294
358
  </p>
295
359
  </xsl:template> -->
296
- <xsl:template match="bipm:preface/bipm:clause" mode="flatxml">
360
+ <xsl:template match="bipm:preface/bipm:clause[position() &gt; 1]" mode="flatxml">
297
361
  <xsl:copy-of select="."/>
298
362
  </xsl:template>
299
363
 
364
+ <xsl:template match="bipm:quote" mode="flatxml" priority="2">
365
+ <xsl:apply-templates mode="flatxml"/>
366
+ </xsl:template>
367
+
368
+
300
369
  <!-- flat lists -->
301
370
  <xsl:template match="bipm:ul | bipm:ol" mode="flatxml" priority="2">
302
371
  <!-- <xsl:copy>
@@ -338,12 +407,28 @@
338
407
  <xsl:attribute name="label">
339
408
  <xsl:call-template name="setListItemLabel"/>
340
409
  </xsl:attribute>
410
+ <xsl:if test="ancestor::bipm:quote">
411
+ <xsl:attribute name="parent-type">quote</xsl:attribute>
412
+ </xsl:if>
341
413
  <xsl:apply-templates mode="flatxml_list"/>
342
414
 
343
415
  <!-- move note for list (list level note) into first 'li' -->
344
416
  <!-- if current li is first -->
345
417
  <xsl:if test="not(preceding-sibling::*[local-name() = 'li'])">
346
- <xsl:copy-of select="following-sibling::bipm:li[last()]/following-sibling::*"/>
418
+ <!-- <xsl:copy-of select="following-sibling::bipm:li[last()]/following-sibling::*"/> -->
419
+
420
+
421
+ <xsl:for-each select="following-sibling::bipm:li[last()]/following-sibling::*">
422
+ <xsl:choose>
423
+ <xsl:when test="local-name() = 'note'">
424
+ <xsl:call-template name="change_note_kind"/>
425
+ </xsl:when>
426
+ <xsl:otherwise>
427
+ <xsl:copy-of select="."/>
428
+ </xsl:otherwise>
429
+ </xsl:choose>
430
+ </xsl:for-each>
431
+
347
432
  </xsl:if>
348
433
 
349
434
  <!-- move note for list (list level note) into latest 'li' -->
@@ -472,7 +557,9 @@
472
557
 
473
558
  <fo:block-container absolute-position="fixed" top="200mm" height="69mm" font-family="Times New Roman" text-align="center" display-align="after">
474
559
  <xsl:apply-templates select="bipm:boilerplate/bipm:feedback-statement"/>
475
- <!-- <fo:block margin-top="15mm">ISBN 978-92-822-2272-0</fo:block> -->
560
+ <fo:block margin-top="15mm">
561
+ <xsl:text>ISBN </xsl:text><xsl:value-of select="bipm:bibdata/bipm:docidentifier[@type='ISBN']"/>
562
+ </fo:block>
476
563
  </fo:block-container>
477
564
 
478
565
  </fo:flow>
@@ -483,7 +570,8 @@
483
570
  <xsl:call-template name="insertHeaderFooter"/>
484
571
  <fo:flow flow-name="xsl-region-body">
485
572
  <fo:block line-height="135%">
486
- <xsl:apply-templates select="bipm:preface/bipm:abstract"/>
573
+ <!-- <xsl:apply-templates select="bipm:preface/bipm:abstract" /> -->
574
+ <xsl:apply-templates select="bipm:preface/*[1]"/>
487
575
  </fo:block>
488
576
  </fo:flow>
489
577
  </fo:page-sequence>
@@ -537,7 +625,8 @@
537
625
  </fo:page-sequence>
538
626
 
539
627
 
540
- <xsl:apply-templates select="bipm:preface/*[not(local-name() = 'abstract')]" mode="sections"/> <!-- bipm:clause -->
628
+ <!-- <xsl:apply-templates select="bipm:preface/*[not(local-name() = 'abstract')]" mode="sections" /> --> <!-- bipm:clause -->
629
+ <xsl:apply-templates select="bipm:preface/*[position() &gt; 1]" mode="sections"/> <!-- bipm:clause -->
541
630
 
542
631
 
543
632
 
@@ -605,7 +694,9 @@
605
694
 
606
695
  </xsl:when>
607
696
  <xsl:otherwise> <!-- independentAppendix != '' -->
608
- <fo:page-sequence master-reference="appendix" initial-page-number="1" force-page-count="no-force">
697
+
698
+
699
+ <!-- <fo:page-sequence master-reference="appendix" initial-page-number="1" force-page-count="no-force">
609
700
  <xsl:call-template name="insertFootnoteSeparator"/>
610
701
  <xsl:call-template name="insertHeaderFooterAppendix"/>
611
702
  <fo:flow flow-name="xsl-region-body" font-family="Times New Roman">
@@ -628,8 +719,99 @@
628
719
  </fo:block>
629
720
 
630
721
  <fo:block id="theLastPage"/>
722
+ </fo:flow>
723
+ </fo:page-sequence> -->
724
+
725
+ <fo:page-sequence master-reference="document" force-page-count="no-force">
726
+
727
+ <fo:flow flow-name="xsl-region-body" font-family="Arial">
728
+
729
+ <fo:block-container font-size="12pt" font-weight="bold" border-top="1pt solid black" width="82mm" margin-top="2mm" padding-top="2mm">
730
+ <fo:block-container width="45mm">
731
+ <fo:block>
732
+ <xsl:value-of select="bipm:bibdata/bipm:contributor[bipm:role/@type='publisher']/bipm:organization/bipm:name"/>
733
+ </fo:block>
734
+ </fo:block-container>
735
+ </fo:block-container>
736
+
737
+ <fo:block-container font-size="12pt" line-height="130%">
738
+ <fo:block margin-bottom="10pt"> </fo:block>
739
+ <fo:block margin-bottom="10pt"> </fo:block>
740
+ <fo:block margin-bottom="10pt"> </fo:block>
741
+ <fo:block margin-bottom="10pt"> </fo:block>
742
+ <fo:block margin-bottom="10pt"> </fo:block>
743
+ <fo:block margin-bottom="10pt"> </fo:block>
744
+ <fo:block margin-bottom="10pt"> </fo:block>
745
+ <fo:block margin-bottom="10pt"> </fo:block>
746
+ <fo:block margin-bottom="10pt"> </fo:block>
747
+ </fo:block-container>
748
+
749
+ <fo:block-container font-size="18pt" font-weight="bold" text-align="center">
750
+ <fo:block>
751
+ <xsl:value-of select="//bipm:bipm-standard/bipm:bibdata/bipm:title[@language = $curr_lang and @type='appendix']"/>
752
+ </fo:block>
753
+ <fo:block> </fo:block>
754
+ <fo:block font-size="9pt">
755
+ <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:editorialgroup/bipm:committee"/>
756
+ </fo:block>
757
+ </fo:block-container>
758
+
759
+ <fo:block-container absolute-position="fixed" left="69.5mm" top="241mm" width="99mm">
760
+ <fo:block-container font-size="9pt" border-bottom="1pt solid black" width="68mm" text-align="center" margin-bottom="14pt">
761
+ <fo:block font-weight="bold" margin-bottom="2.5mm">
762
+ <fo:inline padding-right="10mm">
763
+ <xsl:apply-templates select="bipm:bibdata/bipm:edition">
764
+ <xsl:with-param name="font-size" select="'70%'"/>
765
+ <xsl:with-param name="baseline-shift" select="'45%'"/>
766
+ <xsl:with-param name="curr_lang" select="$curr_lang"/>
767
+ </xsl:apply-templates>
768
+ </fo:inline>
769
+ <xsl:value-of select="$copyrightYear"/>
770
+ </fo:block>
771
+ </fo:block-container>
772
+ <fo:block font-size="9pt" margin-left="-35mm">
773
+ <fo:block> </fo:block>
774
+ <fo:block> </fo:block>
775
+ <fo:block> </fo:block>
776
+ <fo:block text-align-last="justify">
777
+ <xsl:choose>
778
+ <xsl:when test="$lang = 'fr'">Annexe </xsl:when>
779
+ <xsl:otherwise>Appendix </xsl:otherwise>
780
+ </xsl:choose>
781
+ <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix"/>
782
+ <fo:inline keep-together.within-line="always">
783
+ <fo:leader leader-pattern="space"/>
784
+ <xsl:call-template name="printRevisionDate">
785
+ <xsl:with-param name="date" select="/bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:revision-date"/>
786
+ <xsl:with-param name="lang" select="$lang"/>
787
+ <xsl:with-param name="variant" select="'true'"/>
788
+ </xsl:call-template>
789
+ </fo:inline>
790
+ </fo:block>
791
+
792
+ </fo:block>
793
+ </fo:block-container>
794
+
795
+
631
796
  </fo:flow>
632
797
  </fo:page-sequence>
798
+
799
+
800
+ <xsl:apply-templates select="bipm:preface/*" mode="sections"/> <!-- bipm:clause -->
801
+
802
+ <!-- Document Pages -->
803
+
804
+ <xsl:apply-templates select="bipm:sections/*" mode="sections"/>
805
+
806
+ <!-- Normative references -->
807
+ <xsl:apply-templates select="bipm:bibliography/bipm:references[@normative='true']" mode="sections"/>
808
+
809
+ <xsl:apply-templates select="bipm:annex" mode="sections"/>
810
+
811
+
812
+ <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
813
+
814
+
633
815
  </xsl:otherwise>
634
816
  </xsl:choose>
635
817
 
@@ -644,147 +826,194 @@
644
826
 
645
827
  <fo:flow flow-name="xsl-region-body">
646
828
 
647
- <!-- background color -->
648
- <fo:block-container absolute-position="fixed" left="0" top="-1mm">
649
- <fo:block>
650
- <fo:instream-foreign-object content-height="{$pageHeight}" fox:alt-text="Background color">
651
- <svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="{$pageWidth}" height="{$pageHeight}">
652
- <rect width="{$pageWidth}" height="{$pageHeight}" style="fill:rgb(214,226,239);stroke-width:0"/>
653
- </svg>
654
- </fo:instream-foreign-object>
829
+ <xsl:call-template name="insertCoverPageCommon"/>
830
+
831
+ <fo:block-container height="100%" display-align="center" border="0pt solid black"><!-- -->
832
+ <fo:block font-family="WorkSans" font-size="50pt" line-height="115%">
833
+
834
+ <xsl:variable name="languages">
835
+ <xsl:call-template name="getLanguages"/>
836
+ </xsl:variable>
837
+ <xsl:variable name="editionFO">
838
+ <xsl:apply-templates select="(//bipm:bipm-standard)[1]/bipm:bibdata/bipm:edition">
839
+ <xsl:with-param name="curr_lang" select="xalan:nodeset($languages)/lang[1]"/>
840
+ </xsl:apply-templates>
841
+ </xsl:variable>
842
+
843
+ <xsl:variable name="titles">
844
+ <xsl:for-each select="(//bipm:bipm-standard)[1]/bipm:bibdata/bipm:title">
845
+ <xsl:copy-of select="."/>
846
+ </xsl:for-each>
847
+ </xsl:variable>
848
+
849
+ <xsl:for-each select="xalan:nodeset($languages)/lang">
850
+ <xsl:variable name="title_num" select="position()"/>
851
+ <xsl:variable name="curr_lang" select="."/>
852
+ <xsl:variable name="title-cover" select="xalan:nodeset($titles)//bipm:title[@language = $curr_lang and @type='main']"/>
853
+ <xsl:variable name="title-cover_" select="java:replaceAll(java:java.lang.String.new($title-cover),'( (of )| (and )| (or ))','#$2')"/>
854
+ <xsl:variable name="titleParts">
855
+ <xsl:call-template name="splitTitle">
856
+ <xsl:with-param name="pText" select="$title-cover_"/>
857
+ <xsl:with-param name="sep" select="' '"/>
858
+ </xsl:call-template>
859
+ </xsl:variable>
860
+ <xsl:variable name="titleSplitted">
861
+ <xsl:call-template name="splitByParts">
862
+ <xsl:with-param name="items" select="$titleParts"/>
863
+ <xsl:with-param name="mergeEach" select="round(count(xalan:nodeset($titleParts)/item) div 4 + 0.49)"/>
864
+ </xsl:call-template>
865
+ </xsl:variable>
866
+ <xsl:variable name="font-weight-initial">
867
+ <xsl:choose>
868
+ <xsl:when test="position() = 1">0</xsl:when>
869
+ <xsl:otherwise>400</xsl:otherwise>
870
+ </xsl:choose>
871
+ </xsl:variable>
872
+ <fo:block>
873
+ <xsl:if test="$title_num != 1">
874
+ <xsl:attribute name="text-align">right</xsl:attribute>
875
+ </xsl:if>
876
+ <xsl:for-each select="xalan:nodeset($titleSplitted)/part">
877
+ <fo:block font-weight="{$font-weight-initial + 100 * position()}">
878
+ <xsl:value-of select="translate(., '#', ' ')"/>
879
+ <xsl:if test="$title_num = 1 and position() = last()">
880
+ <fo:inline font-size="11.7pt" font-weight="normal" padding-left="5mm" baseline-shift="15%" line-height="125%">
881
+ <xsl:copy-of select="$editionFO"/>
882
+ <xsl:text> </xsl:text>
883
+ <xsl:value-of select="$copyrightYear"/>
884
+ </fo:inline>
885
+ </xsl:if>
886
+ </fo:block>
887
+ </xsl:for-each>
888
+ </fo:block>
889
+ </xsl:for-each>
890
+
891
+
655
892
  </fo:block>
656
893
  </fo:block-container>
894
+
895
+ </fo:flow>
896
+ </fo:page-sequence>
897
+ </xsl:template>
898
+
899
+ <xsl:template name="insertCoverPageAppendix">
900
+
901
+ <fo:page-sequence master-reference="cover-page-appendix" force-page-count="even" initial-page-number="1">
657
902
 
658
- <!-- BIPM logo -->
659
- <fo:block-container absolute-position="fixed" left="12.8mm" top="12.2mm">
660
- <fo:block>
661
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo-BIPM))}" width="35mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo"/>
662
- </fo:block>
903
+ <fo:flow flow-name="xsl-region-body" font-family="WorkSans">
904
+
905
+ <xsl:call-template name="insertCoverPageCommon"/>
906
+
907
+ <xsl:variable name="weight-normal">300</xsl:variable>
908
+ <xsl:variable name="weight-bold">500</xsl:variable>
909
+
910
+ <fo:block-container absolute-position="fixed" left="12.5mm" top="60mm">
911
+ <fo:block font-size="22.2pt" font-weight="{$weight-normal}">Le Système international d’unités</fo:block>
912
+ <fo:block font-size="22.2pt" font-weight="{$weight-bold}" margin-top="1mm">The International System of Units</fo:block>
913
+ <xsl:variable name="edition_str">édition</xsl:variable>
914
+ <!-- <xsl:choose>
915
+ <xsl:when test="$lang = 'fr'">édition</xsl:when>
916
+ <xsl:otherwise>edition</xsl:otherwise>
917
+ </xsl:choose>
918
+ </xsl:variable> -->
919
+ <fo:block font-size="14pt" font-weight="{$weight-bold}" margin-top="4mm"><xsl:value-of select="concat(/bipm:bipm-standard/bipm:bibdata/bipm:edition, ' ', $edition_str, ' ', $copyrightYear)"/></fo:block>
663
920
  </fo:block-container>
664
921
 
665
- <!-- SI logo -->
666
- <fo:block-container absolute-position="fixed" left="166.5mm" top="253mm">
667
- <fo:block>
668
- <fo:instream-foreign-object content-height="32mm" content-width="32mm" fox:alt-text="Image Logo">
669
- <xsl:copy-of select="$Image-Logo-SI"/>
670
- </fo:instream-foreign-object>
671
-
922
+ <fo:block-container height="98%" display-align="center">
923
+ <xsl:variable name="appendix_num" select="normalize-space(/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix)"/>
924
+ <xsl:if test="$appendix_num != ''">
925
+ <fo:block font-size="17pt" font-weight="{$weight-normal}">Annexe <xsl:value-of select="$appendix_num"/></fo:block>
926
+ <fo:block font-size="17pt" font-weight="{$weight-bold}">Appendix <xsl:value-of select="$appendix_num"/></fo:block>
927
+ </xsl:if>
928
+ <fo:block font-size="30.4pt">
929
+ <fo:block> </fo:block>
930
+ <fo:block font-weight="{$weight-normal}"><xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@language = 'fr' and @type = 'appendix']"/></fo:block>
931
+ <fo:block> </fo:block>
932
+ <fo:block font-weight="{$weight-bold}"><xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@language = 'en' and @type = 'appendix']"/></fo:block>
672
933
  </fo:block>
673
934
  </fo:block-container>
674
935
 
675
- <xsl:if test="$independentAppendix = ''">
676
-
677
- <fo:block-container height="100%" display-align="center" border="0pt solid black"><!-- -->
678
- <fo:block font-family="WorkSans" font-size="50pt" line-height="115%">
679
-
680
- <xsl:variable name="languages">
681
- <xsl:call-template name="getLanguages"/>
682
- </xsl:variable>
936
+ <!-- <fo:block-container>
937
+ <fo:block font-family="WorkSans" font-size="16pt" line-height="120%" font-weight="400" margin-top="20mm">
938
+ <fo:block>
939
+ <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@language = $lang]"/>
940
+ <xsl:text> (</xsl:text>
683
941
  <xsl:variable name="editionFO">
684
- <xsl:apply-templates select="(//bipm:bipm-standard)[1]/bipm:bibdata/bipm:edition">
685
- <xsl:with-param name="curr_lang" select="xalan:nodeset($languages)/lang[1]"/>
942
+ <xsl:apply-templates select="/bipm:bipm-standard/bipm:bibdata/bipm:edition">
943
+ <xsl:with-param name="curr_lang" select="$lang"/>
686
944
  </xsl:apply-templates>
687
945
  </xsl:variable>
688
-
689
- <xsl:variable name="titles">
690
- <xsl:for-each select="(//bipm:bipm-standard)[1]/bipm:bibdata/bipm:title">
691
- <xsl:copy-of select="."/>
692
- </xsl:for-each>
693
- </xsl:variable>
694
-
695
- <xsl:for-each select="xalan:nodeset($languages)/lang">
696
- <xsl:variable name="title_num" select="position()"/>
697
- <xsl:variable name="curr_lang" select="."/>
698
- <xsl:variable name="title-cover" select="xalan:nodeset($titles)//bipm:title[@language = $curr_lang and @type='main']"/>
699
- <xsl:variable name="title-cover_" select="java:replaceAll(java:java.lang.String.new($title-cover),'( (of )| (and )| (or ))','#$2')"/>
700
- <xsl:variable name="titleParts">
701
- <xsl:call-template name="splitTitle">
702
- <xsl:with-param name="pText" select="$title-cover_"/>
703
- <xsl:with-param name="sep" select="' '"/>
704
- </xsl:call-template>
705
- </xsl:variable>
706
- <xsl:variable name="titleSplitted">
707
- <xsl:call-template name="splitByParts">
708
- <xsl:with-param name="items" select="$titleParts"/>
709
- <xsl:with-param name="mergeEach" select="round(count(xalan:nodeset($titleParts)/item) div 4 + 0.49)"/>
710
- </xsl:call-template>
711
- </xsl:variable>
712
- <xsl:variable name="font-weight-initial">
713
- <xsl:choose>
714
- <xsl:when test="position() = 1">0</xsl:when>
715
- <xsl:otherwise>400</xsl:otherwise>
716
- </xsl:choose>
717
- </xsl:variable>
718
- <fo:block>
719
- <xsl:if test="$title_num != 1">
720
- <xsl:attribute name="text-align">right</xsl:attribute>
721
- </xsl:if>
722
- <xsl:for-each select="xalan:nodeset($titleSplitted)/part">
723
- <fo:block font-weight="{$font-weight-initial + 100 * position()}">
724
- <xsl:value-of select="translate(., '#', ' ')"/>
725
- <xsl:if test="$title_num = 1 and position() = last()">
726
- <fo:inline font-size="11.7pt" font-weight="normal" padding-left="5mm" baseline-shift="15%" line-height="125%">
727
- <xsl:copy-of select="$editionFO"/>
728
- <xsl:text> </xsl:text>
729
- <xsl:value-of select="$copyrightYear"/>
730
- </fo:inline>
731
- </xsl:if>
732
- </fo:block>
733
- </xsl:for-each>
734
- </fo:block>
735
- </xsl:for-each>
736
-
737
-
946
+ <xsl:value-of select="normalize-space($editionFO)"/>
947
+ <xsl:text>)</xsl:text>
738
948
  </fo:block>
739
- </fo:block-container>
740
- </xsl:if>
949
+ <fo:block>
950
+ <xsl:choose>
951
+ <xsl:when test="$lang = 'fr'">Annexe </xsl:when>
952
+ <xsl:otherwise>Appendix </xsl:otherwise>
953
+ </xsl:choose>
954
+ <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix"/>
955
+ </fo:block>
956
+ </fo:block>
957
+ <fo:block font-family="WorkSans" font-size="36pt" font-weight="600" margin-top="15mm">
958
+ <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@type = 'appendix' and @language = $lang]"/>
959
+ </fo:block>
960
+ </fo:block-container> -->
741
961
 
742
- <xsl:if test="$independentAppendix != ''">
743
- <fo:block-container>
744
- <fo:block font-family="WorkSans" font-size="16pt" line-height="120%" font-weight="400" margin-top="20mm">
745
- <fo:block>
746
- <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@language = $lang]"/>
747
- <xsl:text> (</xsl:text>
748
- <xsl:variable name="editionFO">
749
- <xsl:apply-templates select="/bipm:bipm-standard/bipm:bibdata/bipm:edition">
750
- <xsl:with-param name="curr_lang" select="$lang"/>
751
- </xsl:apply-templates>
752
- </xsl:variable>
753
- <xsl:value-of select="normalize-space($editionFO)"/>
754
- <xsl:text>)</xsl:text>
755
- </fo:block>
756
- <fo:block>
757
- <xsl:choose>
758
- <xsl:when test="$lang = 'fr'">Annexe </xsl:when>
759
- <xsl:otherwise>Appendix </xsl:otherwise>
760
- </xsl:choose>
761
- <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:structuredidentifier/bipm:appendix"/>
762
- </fo:block>
962
+ <fo:block-container absolute-position="fixed" left="12mm" top="242mm" height="42mm" display-align="after">
963
+ <fo:block font-size="12pt">
964
+ <fo:block>Comité consultatif du temps et des fréquences</fo:block>
965
+ <fo:block><xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:ext/bipm:editorialgroup/bipm:committee"/></fo:block>
966
+ <fo:block> </fo:block>
967
+ <!-- <fo:block>BIPM SI MEP S1</fo:block> -->
968
+ <fo:block>
969
+ <xsl:call-template name="printRevisionDate">
970
+ <xsl:with-param name="date" select="/bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:revision-date"/>
971
+ <xsl:with-param name="lang" select="'en'"/>
972
+ </xsl:call-template>
763
973
  </fo:block>
764
- <fo:block font-family="WorkSans" font-size="36pt" font-weight="600" margin-top="15mm">
765
- <xsl:value-of select="/bipm:bipm-standard/bipm:bibdata/bipm:title[@type = 'appendix' and @language = $lang]"/>
974
+ <fo:block>
975
+ <xsl:call-template name="printRevisionDate">
976
+ <xsl:with-param name="date" select="/bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:revision-date"/>
977
+ <xsl:with-param name="lang" select="'fr'"/>
978
+ </xsl:call-template>
766
979
  </fo:block>
767
- </fo:block-container>
768
-
769
- <fo:block-container absolute-position="fixed" left="20mm" top="232mm" height="42mm" width="70mm">
770
- <fo:block font-size="12pt" font-family="WorkSans">
771
- <fo:block>Consultative Committee for Time and Frequence</fo:block>
772
- <fo:block> </fo:block>
773
- <fo:block>BIPM SI MEP S1</fo:block>
774
- <fo:block>
775
- <xsl:call-template name="printRevisionDate">
776
- <xsl:with-param name="date" select="/bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:revision-date"/>
777
- </xsl:call-template></fo:block>
778
- </fo:block>
779
- </fo:block-container>
780
-
781
-
782
- </xsl:if>
783
-
980
+ </fo:block>
981
+ </fo:block-container>
982
+
784
983
  </fo:flow>
785
984
  </fo:page-sequence>
786
985
  </xsl:template>
787
986
 
987
+ <xsl:template name="insertCoverPageCommon">
988
+ <!-- background color -->
989
+ <fo:block-container absolute-position="fixed" left="0" top="-1mm">
990
+ <fo:block>
991
+ <fo:instream-foreign-object content-height="{$pageHeight}" fox:alt-text="Background color">
992
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="{$pageWidth}" height="{$pageHeight}">
993
+ <rect width="{$pageWidth}" height="{$pageHeight}" style="fill:rgb(214,226,239);stroke-width:0"/>
994
+ </svg>
995
+ </fo:instream-foreign-object>
996
+ </fo:block>
997
+ </fo:block-container>
998
+
999
+ <!-- BIPM logo -->
1000
+ <fo:block-container absolute-position="fixed" left="12.8mm" top="12.2mm">
1001
+ <fo:block>
1002
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo-BIPM))}" width="35mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo"/>
1003
+ </fo:block>
1004
+ </fo:block-container>
1005
+
1006
+ <!-- SI logo -->
1007
+ <fo:block-container absolute-position="fixed" left="166.5mm" top="253mm">
1008
+ <fo:block>
1009
+ <fo:instream-foreign-object content-height="32mm" content-width="32mm" fox:alt-text="Image Logo">
1010
+ <xsl:copy-of select="$Image-Logo-SI"/>
1011
+ </fo:instream-foreign-object>
1012
+
1013
+ </fo:block>
1014
+ </fo:block-container>
1015
+ </xsl:template>
1016
+
788
1017
  <xsl:template name="insertInnerCoverPage">
789
1018
  <fo:page-sequence master-reference="title-page" format="1" initial-page-number="1" force-page-count="even">
790
1019
 
@@ -1160,8 +1389,8 @@
1160
1389
 
1161
1390
  <xsl:variable name="font-size">
1162
1391
  <xsl:choose>
1163
- <xsl:when test="$level = 1 and $independentAppendix != ''">11.5pt</xsl:when>
1164
- <xsl:when test="$level &gt;= 2 and $independentAppendix != ''">10.5pt</xsl:when>
1392
+ <!-- <xsl:when test="$level = 1 and $independentAppendix != ''">11.5pt</xsl:when>
1393
+ <xsl:when test="$level &gt;= 2 and $independentAppendix != ''">10.5pt</xsl:when> -->
1165
1394
  <xsl:when test="$level = 1">16pt</xsl:when>
1166
1395
  <xsl:when test="$level = 2 and ancestor::bipm:annex">10.5pt</xsl:when>
1167
1396
  <xsl:when test="$level = 2">14pt</xsl:when>
@@ -1185,17 +1414,17 @@
1185
1414
  <xsl:when test="$level = 1 and (parent::bipm:annex or parent::bipm:abstract or ancestor::bipm:preface)">84pt</xsl:when>
1186
1415
  <xsl:when test="$level = 1">6pt</xsl:when>
1187
1416
  <xsl:when test="$level = 2 and ancestor::bipm:annex">6pt</xsl:when>
1188
- <xsl:when test="$level = 2 and $independentAppendix != ''">6pt</xsl:when>
1417
+ <!-- <xsl:when test="$level = 2 and $independentAppendix != ''">6pt</xsl:when> -->
1189
1418
  <xsl:when test="$level = 2">10pt</xsl:when>
1190
1419
  <xsl:otherwise>6pt</xsl:otherwise>
1191
1420
  </xsl:choose>
1192
1421
  </xsl:attribute>
1193
- <xsl:if test="$level = 1 and $independentAppendix != ''">
1422
+ <!-- <xsl:if test="$level = 1 and $independentAppendix != ''">
1194
1423
  <xsl:attribute name="margin-top">24pt</xsl:attribute>
1195
1424
  </xsl:if>
1196
1425
  <xsl:if test="$level = 2 and $independentAppendix != ''">
1197
1426
  <xsl:attribute name="margin-top">36pt</xsl:attribute>
1198
- </xsl:if>
1427
+ </xsl:if> -->
1199
1428
  <xsl:if test="$level = 2">
1200
1429
  <xsl:attribute name="margin-top">24pt</xsl:attribute>
1201
1430
  </xsl:if>
@@ -1219,7 +1448,7 @@
1219
1448
  </xsl:if>
1220
1449
 
1221
1450
  <xsl:choose>
1222
- <xsl:when test="*[local-name() = 'tab'] and not(ancestor::bipm:annex) and $independentAppendix = ''"><!-- split number and title -->
1451
+ <xsl:when test="*[local-name() = 'tab'] and not(ancestor::bipm:annex) "><!-- split number and title --> <!-- and $independentAppendix = '' -->
1223
1452
  <fo:table table-layout="fixed" width="100%">
1224
1453
  <fo:table-column column-width="14mm"/>
1225
1454
  <fo:table-column column-width="136mm"/>
@@ -1241,9 +1470,9 @@
1241
1470
  </xsl:when>
1242
1471
  <xsl:otherwise>
1243
1472
  <fo:block>
1244
- <xsl:if test="$independentAppendix != ''">
1473
+ <!-- <xsl:if test="$independentAppendix != ''">
1245
1474
  <xsl:attribute name="margin-left">14mm</xsl:attribute>
1246
- </xsl:if>
1475
+ </xsl:if> -->
1247
1476
  <xsl:choose>
1248
1477
  <xsl:when test="ancestor::bipm:annex and $level &gt;= 2">
1249
1478
  <xsl:if test="$level = 3">
@@ -1259,10 +1488,10 @@
1259
1488
  <xsl:call-template name="extractTitle"/>
1260
1489
  </xsl:when>
1261
1490
  <xsl:otherwise>
1262
- <xsl:choose>
1263
- <xsl:when test="$independentAppendix = ''">
1491
+ <!-- <xsl:choose>
1492
+ <xsl:when test="$independentAppendix = ''"> -->
1264
1493
  <xsl:apply-templates/>
1265
- </xsl:when>
1494
+ <!-- </xsl:when>
1266
1495
  <xsl:otherwise>
1267
1496
  <xsl:variable name="section" select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
1268
1497
  <xsl:if test="$section != '' and $level = 1">
@@ -1270,9 +1499,12 @@
1270
1499
  </xsl:if>
1271
1500
  <xsl:call-template name="extractTitle"/>
1272
1501
  </xsl:otherwise>
1273
- </xsl:choose>
1502
+ </xsl:choose> -->
1274
1503
  </xsl:otherwise>
1275
1504
  </xsl:choose>
1505
+ <xsl:if test=".//bipm:note_side">
1506
+ <fo:inline>*</fo:inline>
1507
+ </xsl:if>
1276
1508
  </fo:block>
1277
1509
  </xsl:otherwise>
1278
1510
  </xsl:choose>
@@ -1297,7 +1529,8 @@
1297
1529
  <!-- ====== -->
1298
1530
 
1299
1531
 
1300
- <xsl:template match="bipm:preface/bipm:abstract" priority="3">
1532
+ <!-- <xsl:template match="bipm:preface/bipm:abstract" priority="3"> -->
1533
+ <xsl:template match="bipm:preface/*[1]" priority="3">
1301
1534
  <fo:table table-layout="fixed" width="173.5mm">
1302
1535
  <xsl:call-template name="setId"/>
1303
1536
  <fo:table-column column-width="137mm"/>
@@ -1340,7 +1573,8 @@
1340
1573
 
1341
1574
  <xsl:variable name="rows_with_notes">
1342
1575
  <xsl:for-each select="*">
1343
- <xsl:if test=".//bipm:note[not(ancestor::bipm:table)]">
1576
+ <!-- <xsl:if test=".//bipm:note[not(ancestor::bipm:table)]"> -->
1577
+ <xsl:if test=".//bipm:note_side"> <!-- virtual element note_side -->
1344
1578
  <row_num><xsl:value-of select="position()"/></row_num>
1345
1579
  </xsl:if>
1346
1580
  </xsl:for-each>
@@ -1392,7 +1626,8 @@
1392
1626
 
1393
1627
 
1394
1628
 
1395
- <xsl:template match="bipm:preface/bipm:abstract/*" mode="clause_table">
1629
+ <!-- <xsl:template match="bipm:preface/bipm:abstract/*" mode="clause_table"> -->
1630
+ <xsl:template match="bipm:preface/*[1]/*" mode="clause_table">
1396
1631
  <xsl:param name="rows"/>
1397
1632
 
1398
1633
  <xsl:variable name="current_row"><xsl:number count="*"/></xsl:variable>
@@ -1423,7 +1658,9 @@
1423
1658
  <xsl:variable name="start_row" select="$current_row"/>
1424
1659
  <xsl:variable name="end_row" select="$current_row + $number-rows-spanned"/>
1425
1660
  <fo:block>
1426
- <xsl:for-each select="ancestor::bipm:abstract/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note[not(ancestor::bipm:table)]">
1661
+ <!-- <xsl:for-each select="ancestor::bipm:abstract/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note[not(ancestor::bipm:table)]"> -->
1662
+ <!-- <xsl:for-each select="ancestor::bipm:abstract/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note_side"> -->
1663
+ <xsl:for-each select="ancestor::bipm:preface/*[1]/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note_side">
1427
1664
  <xsl:apply-templates select="." mode="note_side"/>
1428
1665
  </xsl:for-each>
1429
1666
  </fo:block>
@@ -1450,8 +1687,8 @@
1450
1687
 
1451
1688
 
1452
1689
  <xsl:template match="bipm:sections/bipm:clause | bipm:annex/bipm:clause" priority="3">
1453
- <xsl:choose>
1454
- <xsl:when test="$independentAppendix = ''">
1690
+ <!-- <xsl:choose>
1691
+ <xsl:when test="$independentAppendix = ''"> -->
1455
1692
  <fo:table table-layout="fixed" width="174mm" line-height="135%">
1456
1693
  <xsl:call-template name="setId"/>
1457
1694
  <fo:table-column column-width="137mm"/>
@@ -1519,7 +1756,8 @@
1519
1756
 
1520
1757
  <xsl:variable name="rows_with_notes">
1521
1758
  <xsl:for-each select="*">
1522
- <xsl:if test=".//bipm:note[not(ancestor::bipm:table)]">
1759
+ <!-- <xsl:if test=".//bipm:note[not(ancestor::bipm:table)]"> -->
1760
+ <xsl:if test=".//bipm:note_side"> <!-- virtual element note_side --> <!-- [not(ancestor::bipm:table)] -->
1523
1761
  <row_num><xsl:value-of select="position()"/></row_num>
1524
1762
  </xsl:if>
1525
1763
  </xsl:for-each>
@@ -1569,14 +1807,14 @@
1569
1807
  </fo:table-body>
1570
1808
  </fo:table>
1571
1809
 
1572
- </xsl:when>
1810
+ <!-- </xsl:when>
1573
1811
  <xsl:otherwise>
1574
1812
  <fo:block>
1575
1813
  <xsl:call-template name="setId"/>
1576
1814
  <xsl:apply-templates/>
1577
1815
  </fo:block>
1578
1816
  </xsl:otherwise>
1579
- </xsl:choose>
1817
+ </xsl:choose> -->
1580
1818
 
1581
1819
  </xsl:template>
1582
1820
 
@@ -1638,7 +1876,8 @@
1638
1876
 
1639
1877
  <fo:block>
1640
1878
  <!-- <fo:block>display-align=<xsl:value-of select="xalan:nodeset($rows)/num[@span_start = $current_row]/@display-align"/></fo:block> -->
1641
- <xsl:for-each select="ancestor::*[1]/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note">
1879
+ <!-- <xsl:for-each select="ancestor::*[1]/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note"> -->
1880
+ <xsl:for-each select="ancestor::*[1]/*[position() &gt;= $start_row and position() &lt; $end_row]//bipm:note_side">
1642
1881
 
1643
1882
  <xsl:apply-templates select="." mode="note_side"/>
1644
1883
  </xsl:for-each>
@@ -1668,26 +1907,52 @@
1668
1907
  </xsl:template>
1669
1908
 
1670
1909
  <!-- skip, because it process in note_side template -->
1671
- <xsl:template match="bipm:preface/bipm:abstract//bipm:note[not(ancestor::bipm:table)]" priority="3"/>
1672
- <xsl:template match="bipm:sections//bipm:note | bipm:annex//bipm:note" priority="3">
1673
- <xsl:if test="$independentAppendix != ''">
1910
+ <!-- <xsl:template match="bipm:preface/bipm:abstract//bipm:note[not(ancestor::bipm:table)]" priority="3"/> -->
1911
+ <!-- <xsl:template match="bipm:preface/bipm:abstract//bipm:note_side" priority="3"/> -->
1912
+ <xsl:template match="bipm:preface/*[1]//bipm:note_side" priority="3"/>
1913
+
1914
+
1915
+ <!-- <xsl:template match="bipm:sections//bipm:note | bipm:annex//bipm:note" priority="3"> -->
1916
+ <xsl:template match="bipm:sections//bipm:note_side | bipm:annex//bipm:note_side" priority="3">
1917
+ <!-- <xsl:if test="$independentAppendix != ''">
1674
1918
  <fo:block>
1675
- <xsl:apply-templates/>
1919
+ <xsl:apply-templates />
1676
1920
  </fo:block>
1677
- </xsl:if>
1921
+ </xsl:if> -->
1678
1922
  </xsl:template> <!-- [not(ancestor::bipm:table)] -->
1679
1923
 
1680
1924
 
1681
- <xsl:template match="bipm:note" mode="note_side">
1682
- <fo:block>
1925
+ <!-- <xsl:template match="bipm:note" mode="note_side"> -->
1926
+ <xsl:template match="bipm:note_side" mode="note_side">
1927
+ <fo:block line-height-shift-adjustment="disregard-shifts">
1928
+ <xsl:if test="ancestor::bipm:title"><fo:inline>* </fo:inline></xsl:if>
1683
1929
  <xsl:apply-templates mode="note_side"/>
1684
1930
  </fo:block>
1685
1931
  </xsl:template>
1686
- <xsl:template match="bipm:note/bipm:name" mode="note_side" priority="2"/>
1687
- <xsl:template match="bipm:note/*" mode="note_side">
1932
+ <!-- <xsl:template match="bipm:note/bipm:name" mode="note_side" priority="2"/> -->
1933
+ <xsl:template match="bipm:note_side/bipm:name" mode="note_side" priority="2"/>
1934
+ <!-- <xsl:template match="bipm:note/*" mode="note_side"> -->
1935
+ <xsl:template match="bipm:note_side/*" mode="note_side">
1688
1936
  <xsl:apply-templates select="."/>
1689
1937
  </xsl:template>
1690
1938
 
1939
+
1940
+ <xsl:template match="*[local-name() = 'note_side']/*[local-name() = 'p']">
1941
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
1942
+ <xsl:choose>
1943
+ <xsl:when test="$num = 1">
1944
+ <fo:inline xsl:use-attribute-sets="note-p-style">
1945
+ <xsl:apply-templates/>
1946
+ </fo:inline>
1947
+ </xsl:when>
1948
+ <xsl:otherwise>
1949
+ <fo:block xsl:use-attribute-sets="note-p-style">
1950
+ <xsl:apply-templates/>
1951
+ </fo:block>
1952
+ </xsl:otherwise>
1953
+ </xsl:choose>
1954
+ </xsl:template>
1955
+
1691
1956
  <!--
1692
1957
  <fn reference="1">
1693
1958
  <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
@@ -1695,16 +1960,19 @@
1695
1960
  -->
1696
1961
  <xsl:template match="bipm:title//bipm:fn | bipm:name//bipm:fn | bipm:p/bipm:fn[not(ancestor::bipm:table)] | bipm:p/*/bipm:fn[not(ancestor::bipm:table)] | bipm:sourcecode/bipm:fn[not(ancestor::bipm:table)]" priority="2" name="fn">
1697
1962
  <fo:footnote keep-with-previous.within-line="always">
1698
- <xsl:variable name="number" select="@reference"/>
1963
+ <xsl:variable name="number"> <!-- select="@reference"/> -->
1964
+ <xsl:number count="bipm:fn[not(ancestor::bipm:table)]" level="any"/>
1965
+ </xsl:variable>
1966
+ <xsl:variable name="gen_id" select="generate-id()"/>
1699
1967
  <xsl:variable name="lang" select="ancestor::bipm:bipm-standard/*[local-name()='bibdata']//*[local-name()='language']"/>
1700
1968
  <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
1701
- <fo:basic-link internal-destination="{$lang}_footnote_{@reference}" fox:alt-text="footnote {@reference}">
1969
+ <fo:basic-link internal-destination="{$lang}_footnote_{@reference}_{$number}_{$gen_id}" fox:alt-text="footnote {@reference}">
1702
1970
  <xsl:value-of select="$number"/><!-- + count(//bipm:bibitem/bipm:note) -->
1703
1971
  </fo:basic-link>
1704
1972
  </fo:inline>
1705
1973
  <fo:footnote-body>
1706
1974
  <fo:block font-size="9pt" margin-bottom="12pt" font-weight="normal" text-indent="0" start-indent="0" line-height="124%" text-align="justify">
1707
- <fo:inline id="{$lang}_footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super" padding-right="1mm"> <!-- baseline-shift="30%" padding-right="3mm" font-size="60%" alignment-baseline="hanging" -->
1975
+ <fo:inline id="{$lang}_footnote_{@reference}_{$number}_{$gen_id}" keep-with-next.within-line="always" font-size="60%" vertical-align="super" padding-right="1mm"> <!-- baseline-shift="30%" padding-right="3mm" font-size="60%" alignment-baseline="hanging" -->
1708
1976
  <xsl:value-of select="$number "/><!-- + count(//bipm:bibitem/bipm:note) -->
1709
1977
  </fo:inline>
1710
1978
  <xsl:for-each select="bipm:p">
@@ -1761,6 +2029,11 @@
1761
2029
  <xsl:if test="@align = 'center'">
1762
2030
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1763
2031
  </xsl:if>
2032
+ <xsl:if test="@parent-type = 'quote'">
2033
+ <xsl:attribute name="font-family">Arial</xsl:attribute>
2034
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
2035
+ <xsl:attribute name="line-height">130%</xsl:attribute>
2036
+ </xsl:if>
1764
2037
  <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
1765
2038
  <xsl:apply-templates/>
1766
2039
  </xsl:element>
@@ -1778,7 +2051,14 @@
1778
2051
  </xsl:template>
1779
2052
 
1780
2053
  <xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process" priority="2">
1781
- <xsl:call-template name="p"/>
2054
+ <xsl:choose>
2055
+ <xsl:when test="ancestor::bipm:preface">
2056
+ <xsl:call-template name="p"/>
2057
+ </xsl:when>
2058
+ <xsl:otherwise>
2059
+ <xsl:apply-templates/>
2060
+ </xsl:otherwise>
2061
+ </xsl:choose>
1782
2062
  </xsl:template>
1783
2063
 
1784
2064
 
@@ -1793,6 +2073,11 @@
1793
2073
  <xsl:if test="ancestor::bipm:li">
1794
2074
  <xsl:attribute name="margin-left">7mm</xsl:attribute>
1795
2075
  </xsl:if>
2076
+ <xsl:if test="@parent-type = 'quote'">
2077
+ <xsl:attribute name="font-family">Arial</xsl:attribute>
2078
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
2079
+ <xsl:attribute name="line-height">130%</xsl:attribute>
2080
+ </xsl:if>
1796
2081
  <fo:block-container margin-left="0mm">
1797
2082
  <fo:list-block provisional-distance-between-starts="8mm">
1798
2083
  <xsl:if test="not(following-sibling::*[1][local-name() = 'li'])"> <!-- last item -->
@@ -1804,7 +2089,8 @@
1804
2089
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1805
2090
  </xsl:if>
1806
2091
  </xsl:if>
1807
- <xsl:if test="../ancestor::bipm:note">
2092
+ <!-- <xsl:if test="../ancestor::bipm:note"> -->
2093
+ <xsl:if test="ancestor::bipm:note_side">
1808
2094
  <xsl:attribute name="provisional-distance-between-starts">0mm</xsl:attribute>
1809
2095
  </xsl:if>
1810
2096
 
@@ -1847,7 +2133,8 @@
1847
2133
  <xsl:if test="@list_type = 'ol'">
1848
2134
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1849
2135
  </xsl:if>
1850
- <xsl:if test="ancestor::bipm:note">
2136
+ <!-- <xsl:if test="ancestor::bipm:note"> -->
2137
+ <xsl:if test="ancestor::bipm:note_side">
1851
2138
  <xsl:attribute name="text-indent">3mm</xsl:attribute>
1852
2139
  </xsl:if>
1853
2140
 
@@ -2008,8 +2295,8 @@
2008
2295
 
2009
2296
  <xsl:template match="bipm:pagebreak">
2010
2297
  <fo:block break-after="page"/>
2011
- <fo:block> </fo:block>
2012
- <fo:block break-after="page"/>
2298
+ <!-- <fo:block>&#xA0;</fo:block>
2299
+ <fo:block break-after="page"/> -->
2013
2300
  </xsl:template>
2014
2301
 
2015
2302
  <xsl:template match="bipm:admonition">
@@ -2025,6 +2312,60 @@
2025
2312
  </fo:block-container>
2026
2313
  </xsl:template>
2027
2314
 
2315
+
2316
+ <xsl:template match="bipm:xref" priority="2">
2317
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">
2318
+ <xsl:choose>
2319
+ <xsl:when test="@pagenumber='true'"><!-- ToC in Appendix -->
2320
+ <fo:inline font-weight="bold"><fo:page-number-citation ref-id="{@target}"/></fo:inline>
2321
+ </xsl:when>
2322
+ <xsl:when test="starts-with(normalize-space(following-sibling::node()[1]), ')')">
2323
+ <!-- add , see p. N -->
2324
+ <!-- add , voir p. N -->
2325
+ <xsl:apply-templates/>
2326
+ <xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
2327
+ <xsl:text>, </xsl:text>
2328
+ <xsl:choose>
2329
+ <xsl:when test="$curr_lang = 'fr'">voir</xsl:when>
2330
+ <xsl:otherwise>see</xsl:otherwise>
2331
+ </xsl:choose>
2332
+ <xsl:text> p. </xsl:text>
2333
+ <fo:page-number-citation ref-id="{@target}"/>
2334
+ </xsl:when>
2335
+ <xsl:otherwise>
2336
+ <fo:inline><xsl:apply-templates/></fo:inline>
2337
+ </xsl:otherwise>
2338
+ </xsl:choose>
2339
+ </fo:basic-link>
2340
+ </xsl:template>
2341
+
2342
+ <xsl:template match="bipm:note[not(ancestor::bipm:preface)]/bipm:name" priority="2" mode="presentation">
2343
+ <xsl:choose>
2344
+ <xsl:when test="not(../preceding-sibling::bipm:note) and not((../following-sibling::bipm:note))">
2345
+ <xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
2346
+ <xsl:choose>
2347
+ <xsl:when test="$curr_lang = 'fr'">Remarque: </xsl:when>
2348
+ <xsl:otherwise>Note: </xsl:otherwise>
2349
+ </xsl:choose>
2350
+ </xsl:when>
2351
+ <!-- <xsl:when test="../preceding-sibling::*[1][local-name = 'note'] or following-sibling::*[1][local-name = 'note']">
2352
+ <xsl:number/><xsl:text>. </xsl:text>
2353
+ </xsl:when> -->
2354
+ <xsl:when test="ancestor::bipm:table and count(ancestor::bipm:table//bipm:note) &gt; 0">
2355
+ <xsl:variable name="table_id" select="ancestor::bipm:table/@id"/>
2356
+ <xsl:number count="//bipm:table[@id = $table_id]//bipm:note"/><xsl:text>. </xsl:text>
2357
+ </xsl:when>
2358
+ </xsl:choose>
2359
+ </xsl:template>
2360
+
2361
+ <xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']" priority="3">
2362
+ <fo:inline xsl:use-attribute-sets="note-p-style">
2363
+ <xsl:apply-templates/>
2364
+ </fo:inline>
2365
+ <fo:inline><xsl:value-of select="$linebreak"/></fo:inline>
2366
+
2367
+ </xsl:template>
2368
+
2028
2369
  <xsl:template name="insertHeaderFooter">
2029
2370
  <!-- <xsl:variable name="header-title">Le BIPM et la Convention du Mètre</xsl:variable> -->
2030
2371
  <fo:static-content flow-name="header-odd">
@@ -2098,6 +2439,8 @@
2098
2439
 
2099
2440
  <xsl:template name="printRevisionDate">
2100
2441
  <xsl:param name="date"/>
2442
+ <xsl:param name="lang"/>
2443
+ <xsl:param name="variant"/>
2101
2444
  <!-- <revision-date>2019-05-20</revision-date> -->
2102
2445
  <xsl:variable name="year" select="substring($date, 1, 4)"/>
2103
2446
  <xsl:variable name="month" select="substring($date, 6, 2)"/>
@@ -2138,7 +2481,15 @@
2138
2481
  </xsl:otherwise>
2139
2482
  </xsl:choose>
2140
2483
  </xsl:variable>
2141
- <xsl:value-of select="concat($day, ' ', $monthStr, ' ', $year)"/>
2484
+ <xsl:choose>
2485
+ <xsl:when test="$lang = 'fr' or $variant = 'true'">
2486
+ <xsl:value-of select="concat($day, ' ', $monthStr, ' ', $year)"/>
2487
+ </xsl:when>
2488
+ <xsl:otherwise>
2489
+ <xsl:value-of select="concat($monthStr, ' ', $day, ', ', $year)"/>
2490
+ </xsl:otherwise>
2491
+ </xsl:choose>
2492
+
2142
2493
  </xsl:template>
2143
2494
 
2144
2495
 
@@ -2840,6 +3191,9 @@
2840
3191
 
2841
3192
 
2842
3193
 
3194
+
3195
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
3196
+
2843
3197
  </xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
2844
3198
 
2845
3199
 
@@ -2867,6 +3221,8 @@
2867
3221
 
2868
3222
 
2869
3223
 
3224
+ <xsl:attribute name="text-align">justify</xsl:attribute>
3225
+
2870
3226
  </xsl:attribute-set><xsl:attribute-set name="termnote-style">
2871
3227
 
2872
3228
 
@@ -3088,10 +3444,14 @@
3088
3444
  <xsl:attribute name="space-after">12pt</xsl:attribute>
3089
3445
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
3090
3446
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
3091
- <xsl:if test="not(ancestor::*[local-name()='note'])">
3447
+ <xsl:if test="not(ancestor::*[local-name()='note_side'])">
3092
3448
  <xsl:attribute name="font-size">10pt</xsl:attribute>
3093
3449
  </xsl:if>
3094
3450
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
3451
+ <xsl:if test="@parent-type = 'quote'">
3452
+ <xsl:attribute name="font-family">Arial</xsl:attribute>
3453
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
3454
+ </xsl:if>
3095
3455
 
3096
3456
 
3097
3457
 
@@ -3110,7 +3470,7 @@
3110
3470
 
3111
3471
 
3112
3472
 
3113
- <xsl:if test="not(ancestor::*[local-name()='preface']) and not(ancestor::*[local-name()='note'])">
3473
+ <xsl:if test="not(ancestor::*[local-name()='preface']) and not(ancestor::*[local-name()='note_side']) and not(ancestor::*[local-name() = 'annex'] and .//*[local-name() = 'xref'][@pagenumber])">
3114
3474
  <attribute name="border-top">0.5pt solid black</attribute>
3115
3475
  <attribute name="border-bottom">0.5pt solid black</attribute>
3116
3476
  </xsl:if>
@@ -3375,21 +3735,26 @@
3375
3735
 
3376
3736
  <xsl:attribute name="border">solid black 0pt</xsl:attribute>
3377
3737
 
3378
- <!-- except gb and bipm -->
3379
3738
 
3380
3739
 
3381
3740
 
3741
+ <!-- except gb -->
3742
+
3743
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
3744
+
3745
+
3746
+ <!-- show Note under table in preface (ex. abstract) sections -->
3747
+ <!-- empty, because notes show at page side in main sections -->
3748
+ <!-- <xsl:if test="$namespace = 'bipm'">
3382
3749
  <xsl:choose>
3383
- <xsl:when test="ancestor::*[local-name()='preface']">
3384
- <!-- show Note under table in preface (ex. abstract) sections -->
3750
+ <xsl:when test="ancestor::*[local-name()='preface']">
3385
3751
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
3386
3752
  </xsl:when>
3387
- <xsl:otherwise>
3388
- <!-- empty, because notes show at page side in main sections -->
3753
+ <xsl:otherwise>
3389
3754
  <fo:block/>
3390
3755
  </xsl:otherwise>
3391
3756
  </xsl:choose>
3392
-
3757
+ </xsl:if> -->
3393
3758
 
3394
3759
 
3395
3760
  <!-- horizontal row separator -->
@@ -3454,7 +3819,21 @@
3454
3819
 
3455
3820
  <xsl:attribute name="border">solid black 0pt</xsl:attribute>
3456
3821
 
3457
- <!-- except gb and bipm -->
3822
+
3823
+
3824
+
3825
+ <xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) &gt; 1">
3826
+ <fo:block font-weight="bold">
3827
+ <xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
3828
+ <xsl:choose>
3829
+ <xsl:when test="$curr_lang = 'fr'">Remarques</xsl:when>
3830
+ <xsl:otherwise>Notes</xsl:otherwise>
3831
+ </xsl:choose>
3832
+ </fo:block>
3833
+ </xsl:if>
3834
+
3835
+
3836
+ <!-- except gb -->
3458
3837
 
3459
3838
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
3460
3839
 
@@ -3539,6 +3918,9 @@
3539
3918
 
3540
3919
 
3541
3920
 
3921
+ <!-- <xsl:if test="$namespace = 'bipm'">
3922
+ <xsl:attribute name="height">8mm</xsl:attribute>
3923
+ </xsl:if> -->
3542
3924
 
3543
3925
  <xsl:apply-templates/>
3544
3926
  </fo:table-row>
@@ -3569,6 +3951,10 @@
3569
3951
  <xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
3570
3952
  <xsl:attribute name="height">8mm</xsl:attribute>
3571
3953
  <xsl:attribute name="padding-top">2mm</xsl:attribute>
3954
+ <xsl:if test="ancestor::*[local-name() = 'annex'] and ancestor::*[local-name() = 'table']//*[local-name() = 'xref'][@pagenumber]"><!-- for Annex ToC -->
3955
+ <xsl:attribute name="border-top">solid black 0pt</xsl:attribute>
3956
+ <xsl:attribute name="border-bottom">solid black 0pt</xsl:attribute>
3957
+ </xsl:if>
3572
3958
 
3573
3959
  <xsl:if test="@colspan">
3574
3960
  <xsl:attribute name="number-columns-spanned">
@@ -3651,7 +4037,12 @@
3651
4037
 
3652
4038
 
3653
4039
  <xsl:attribute name="text-align">justify</xsl:attribute>
3654
- <xsl:attribute name="margin-top">18pt</xsl:attribute>
4040
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
4041
+ <xsl:if test="ancestor::bipm:preface">
4042
+ <xsl:attribute name="margin-top">18pt</xsl:attribute>
4043
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
4044
+ </xsl:if>
4045
+
3655
4046
 
3656
4047
 
3657
4048
  <fo:inline padding-right="2mm">
@@ -3659,14 +4050,18 @@
3659
4050
 
3660
4051
 
3661
4052
 
3662
- <xsl:attribute name="font-size">10pt</xsl:attribute>
3663
- <xsl:attribute name="text-decoration">underline</xsl:attribute>
4053
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
4054
+ <xsl:if test="ancestor::bipm:preface">
4055
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
4056
+ </xsl:if>
3664
4057
 
3665
4058
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3666
4059
 
3667
4060
  </fo:inline>
3668
4061
 
3669
- <fo:block> </fo:block>
4062
+ <xsl:if test="ancestor::bipm:preface">
4063
+ <fo:block> </fo:block>
4064
+ </xsl:if>
3670
4065
 
3671
4066
  <xsl:apply-templates mode="process"/>
3672
4067
  </fo:block>
@@ -4688,6 +5083,15 @@
4688
5083
 
4689
5084
 
4690
5085
 
5086
+ <xsl:if test="@parent-type = 'quote'">
5087
+ <xsl:attribute name="font-family">Arial</xsl:attribute>
5088
+ <xsl:attribute name="font-size">9pt</xsl:attribute>
5089
+ <xsl:attribute name="line-height">130%</xsl:attribute>
5090
+ <xsl:attribute name="text-align">justify</xsl:attribute>
5091
+ </xsl:if>
5092
+
5093
+
5094
+
4691
5095
  <fo:inline xsl:use-attribute-sets="note-name-style">
4692
5096
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4693
5097
  </fo:inline>