metanorma-iec 2.7.6 → 2.7.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.
@@ -295,591 +295,596 @@
295
295
  </xsl:template>
296
296
 
297
297
  <xsl:template name="cover-page">
298
+ <xsl:choose>
299
+ <xsl:when test="(//mn:metanorma)[1]/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space((//mn:metanorma)[1]/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
300
+ </xsl:when>
301
+ <xsl:otherwise>
302
+ <xsl:variable name="document1_boilerplate">
303
+ <xsl:copy-of select="(//mn:metanorma)[1]/mn:boilerplate"/>
304
+ </xsl:variable>
305
+ <xsl:variable name="updated_document1_boilerplate_">
306
+ <xsl:for-each select="xalan:nodeset($document1_boilerplate)">
307
+ <xsl:call-template name="updateXML"/>
308
+ </xsl:for-each>
309
+ </xsl:variable>
310
+ <xsl:variable name="updated_document1_boilerplate" select="xalan:nodeset($updated_document1_boilerplate_)"/>
298
311
 
299
- <xsl:variable name="document1_boilerplate">
300
- <xsl:copy-of select="(//mn:metanorma)[1]/mn:boilerplate"/>
301
- </xsl:variable>
302
- <xsl:variable name="updated_document1_boilerplate_">
303
- <xsl:for-each select="xalan:nodeset($document1_boilerplate)">
304
- <xsl:call-template name="updateXML"/>
305
- </xsl:for-each>
306
- </xsl:variable>
307
- <xsl:variable name="updated_document1_boilerplate" select="xalan:nodeset($updated_document1_boilerplate_)"/>
312
+ <xsl:variable name="document2_boilerplate">
313
+ <xsl:copy-of select="(//mn:metanorma)[2]/mn:boilerplate"/>
314
+ </xsl:variable>
315
+ <xsl:variable name="updated_document2_boilerplate_">
316
+ <xsl:for-each select="xalan:nodeset($document2_boilerplate)">
317
+ <xsl:call-template name="updateXML"/>
318
+ </xsl:for-each>
319
+ </xsl:variable>
320
+ <xsl:variable name="updated_document2_boilerplate" select="xalan:nodeset($updated_document2_boilerplate_)"/>
308
321
 
309
- <xsl:variable name="document2_boilerplate">
310
- <xsl:copy-of select="(//mn:metanorma)[2]/mn:boilerplate"/>
311
- </xsl:variable>
312
- <xsl:variable name="updated_document2_boilerplate_">
313
- <xsl:for-each select="xalan:nodeset($document2_boilerplate)">
314
- <xsl:call-template name="updateXML"/>
315
- </xsl:for-each>
316
- </xsl:variable>
317
- <xsl:variable name="updated_document2_boilerplate" select="xalan:nodeset($updated_document2_boilerplate_)"/>
322
+ <!-- For 'Published' documents insert two cover pages -->
323
+ <xsl:if test="$stage_published = 'true'">
318
324
 
319
- <!-- For 'Published' documents insert two cover pages -->
320
- <xsl:if test="$stage_published = 'true'">
325
+ <!-- 1st Cover Page -->
326
+ <fo:page-sequence master-reference="cover" force-page-count="no-force">
327
+ <fo:static-content flow-name="left-region">
328
+ <fo:block-container reference-orientation="90">
329
+ <fo:block font-size="7pt" margin-left="3.5mm" margin-top="5.5mm">
330
+ <xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:docidentifier[@type = 'iso-revdate']"/>
331
+ </fo:block>
332
+ </fo:block-container>
333
+ </fo:static-content>
334
+ <fo:flow flow-name="xsl-region-body">
335
+ <fo:block-container absolute-position="fixed" left="18mm" top="107mm">
336
+ <fo:block>
337
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="192mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
338
+ </fo:block>
339
+ </fo:block-container>
340
+ <xsl:call-template name="insertCoverPart1"/>
341
+ </fo:flow>
342
+ </fo:page-sequence> <!-- END: 1st Cover Page -->
321
343
 
322
- <!-- 1st Cover Page -->
323
- <fo:page-sequence master-reference="cover" force-page-count="no-force">
324
- <fo:static-content flow-name="left-region">
325
- <fo:block-container reference-orientation="90">
326
- <fo:block font-size="7pt" margin-left="3.5mm" margin-top="5.5mm">
327
- <xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:docidentifier[@type = 'iso-revdate']"/>
328
- </fo:block>
329
- </fo:block-container>
330
- </fo:static-content>
331
- <fo:flow flow-name="xsl-region-body">
332
- <fo:block-container absolute-position="fixed" left="18mm" top="107mm">
333
- <fo:block>
334
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="192mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
335
- </fo:block>
336
- </fo:block-container>
337
- <xsl:call-template name="insertCoverPart1"/>
338
- </fo:flow>
339
- </fo:page-sequence> <!-- END: 1st Cover Page -->
344
+ <xsl:call-template name="inner-cover-page">
345
+ <xsl:with-param name="updated_document1_boilerplate" select="$updated_document1_boilerplate"/>
346
+ <xsl:with-param name="updated_document2_boilerplate" select="$updated_document2_boilerplate"/>
347
+ </xsl:call-template>
348
+ </xsl:if>
340
349
 
341
- <xsl:call-template name="inner-cover-page">
342
- <xsl:with-param name="updated_document1_boilerplate" select="$updated_document1_boilerplate"/>
343
- <xsl:with-param name="updated_document2_boilerplate" select="$updated_document2_boilerplate"/>
344
- </xsl:call-template>
345
- </xsl:if>
350
+ <xsl:variable name="lang_second" select="(//mn:metanorma)[2]/mn:bibdata/mn:language[@current = 'true']"/>
351
+ <!-- For 'Published' documents insert 3rd Cover Page
352
+ OR insert first Cover Page for FDIS -->
353
+ <xsl:if test="$stage_published = 'true' or $stage-abbreviation = 'FDIS'">
354
+ <fo:page-sequence master-reference="cover" force-page-count="no-force">
355
+ <fo:flow flow-name="xsl-region-body">
356
+ <xsl:call-template name="insertCoverPart1"/>
357
+ <fo:block-container absolute-position="fixed" left="26.5mm" top="214mm" width="163mm">
358
+ <fo:block-container height="32mm" display-align="after">
359
+ <fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
360
+ <fo:block-container width="40mm">
361
+ <fo:block>
362
+ <xsl:call-template name="getLocalizedString">
363
+ <xsl:with-param name="key">IEC</xsl:with-param>
364
+ <xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
365
+ </xsl:call-template>
366
+ </fo:block>
367
+ </fo:block-container>
368
+ </fo:block>
346
369
 
347
- <xsl:variable name="lang_second" select="(//mn:metanorma)[2]/mn:bibdata/mn:language[@current = 'true']"/>
348
- <!-- For 'Published' documents insert 3rd Cover Page
349
- OR insert first Cover Page for FDIS -->
350
- <xsl:if test="$stage_published = 'true' or $stage-abbreviation = 'FDIS'">
351
- <fo:page-sequence master-reference="cover" force-page-count="no-force">
352
- <fo:flow flow-name="xsl-region-body">
353
- <xsl:call-template name="insertCoverPart1"/>
354
- <fo:block-container absolute-position="fixed" left="26.5mm" top="214mm" width="163mm">
355
- <fo:block-container height="32mm" display-align="after">
356
- <fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
357
- <fo:block-container width="40mm">
358
- <fo:block>
370
+ <xsl:variable name="IEC_lang_second">
359
371
  <xsl:call-template name="getLocalizedString">
360
372
  <xsl:with-param name="key">IEC</xsl:with-param>
361
- <xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
373
+ <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
374
+ <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
362
375
  </xsl:call-template>
363
- </fo:block>
364
- </fo:block-container>
365
- </fo:block>
366
-
367
- <xsl:variable name="IEC_lang_second">
368
- <xsl:call-template name="getLocalizedString">
369
- <xsl:with-param name="key">IEC</xsl:with-param>
370
- <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
371
- <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
372
- </xsl:call-template>
373
- </xsl:variable>
376
+ </xsl:variable>
374
377
 
375
- <xsl:if test="normalize-space($IEC_lang_second) != ''">
376
- <fo:block font-size="9pt" line-height="150%" margin-top="8pt">
377
- <fo:block-container width="40mm">
378
- <fo:block>
379
- <!-- 'COMMISSION ELECTROTECHNIQUE INTERNATIONALE' -->
380
- <xsl:value-of select="$IEC_lang_second"/>
378
+ <xsl:if test="normalize-space($IEC_lang_second) != ''">
379
+ <fo:block font-size="9pt" line-height="150%" margin-top="8pt">
380
+ <fo:block-container width="40mm">
381
+ <fo:block>
382
+ <!-- 'COMMISSION ELECTROTECHNIQUE INTERNATIONALE' -->
383
+ <xsl:value-of select="$IEC_lang_second"/>
384
+ </fo:block>
385
+ </fo:block-container>
381
386
  </fo:block>
382
- </fo:block-container>
383
- </fo:block>
384
- </xsl:if>
385
- </fo:block-container>
387
+ </xsl:if>
388
+ </fo:block-container>
386
389
 
387
- <xsl:variable name="price_code_value" select="//mn:metanorma/mn:bibdata/mn:ext/mn:price-code"/>
388
- <fo:table table-layout="fixed" width="102%" margin-top="-9mm" margin-bottom="2mm" id="__internal_layout__price_code">
389
- <fo:table-column column-width="148mm"/>
390
- <fo:table-column column-width="16mm"/>
391
- <fo:table-body>
392
- <fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
393
- <fo:table-cell font-size="8pt" text-align="right" display-align="center">
394
- <fo:block padding-top="1mm">
395
- <xsl:if test="normalize-space($price_code_value) != ''">
396
- <fo:block color="{$color_blue}" margin-bottom="3pt">
397
- <!-- PRICE CODE -->
398
- <xsl:variable name="price_code">
399
- <xsl:call-template name="getLocalizedString">
400
- <xsl:with-param name="key">price-code</xsl:with-param>
401
- <xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
402
- </xsl:call-template>
403
- </xsl:variable>
404
- <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
405
- </fo:block>
390
+ <xsl:variable name="price_code_value" select="//mn:metanorma/mn:bibdata/mn:ext/mn:price-code"/>
391
+ <fo:table table-layout="fixed" width="102%" margin-top="-9mm" margin-bottom="2mm" id="__internal_layout__price_code">
392
+ <fo:table-column column-width="148mm"/>
393
+ <fo:table-column column-width="16mm"/>
394
+ <fo:table-body>
395
+ <fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
396
+ <fo:table-cell font-size="8pt" text-align="right" display-align="center">
397
+ <fo:block padding-top="1mm">
398
+ <xsl:if test="normalize-space($price_code_value) != ''">
399
+ <fo:block color="{$color_blue}" margin-bottom="3pt">
400
+ <!-- PRICE CODE -->
401
+ <xsl:variable name="price_code">
402
+ <xsl:call-template name="getLocalizedString">
403
+ <xsl:with-param name="key">price-code</xsl:with-param>
404
+ <xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
405
+ </xsl:call-template>
406
+ </xsl:variable>
407
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
408
+ </fo:block>
406
409
 
407
- <xsl:variable name="price_code_lang_second">
408
- <xsl:call-template name="getLocalizedString">
409
- <xsl:with-param name="key">price-code</xsl:with-param>
410
- <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
411
- <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
412
- </xsl:call-template>
413
- </xsl:variable>
414
- <xsl:if test="normalize-space($price_code_lang_second) != ''">
415
- <fo:block>
416
- <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code_lang_second))"/>
417
- </fo:block>
418
- </xsl:if>
410
+ <xsl:variable name="price_code_lang_second">
411
+ <xsl:call-template name="getLocalizedString">
412
+ <xsl:with-param name="key">price-code</xsl:with-param>
413
+ <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
414
+ <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
415
+ </xsl:call-template>
416
+ </xsl:variable>
417
+ <xsl:if test="normalize-space($price_code_lang_second) != ''">
418
+ <fo:block>
419
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code_lang_second))"/>
420
+ </fo:block>
421
+ </xsl:if>
422
+ </xsl:if>
423
+ </fo:block>
424
+ </fo:table-cell>
425
+ <fo:table-cell font-size="25pt" font-weight="bold" color="{$color_gray}" text-align="right" display-align="center">
426
+ <fo:block padding-top="1mm"><xsl:value-of select="$price_code_value"/></fo:block>
427
+ </fo:table-cell>
428
+ </fo:table-row>
429
+ </fo:table-body>
430
+ </fo:table>
431
+ <fo:block font-size="8pt" text-align-last="justify">
432
+ <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:ext/mn:ics">
433
+ <xsl:if test="position() = 1">ICS </xsl:if>
434
+ <xsl:value-of select="mn:code"/>
435
+ <xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
436
+ </xsl:for-each>
437
+ <xsl:text> </xsl:text>
438
+ <fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
439
+ <xsl:text> </xsl:text>
440
+ <xsl:if test="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']">
441
+ <!-- Example: ISBN 978-2-8322-1532-6 -->
442
+ <xsl:text>ISBN </xsl:text>
443
+ <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']"/>
444
+ </xsl:if>
445
+ </fo:inline>
446
+ </fo:block>
447
+ <fo:block-container margin-left="1.5mm">
448
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
449
+ <fo:block-container border="0.5pt solid black" font-size="10pt" margin-top="8mm" font-weight="bold" padding-left="1.5mm" padding-top="0.5mm" width="102%" height="11mm" display-align="center" id="__internal_layout__warning_block">
450
+ <fo:block margin-left="1mm">Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
451
+ <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
452
+ <fo:block margin-left="1mm" margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
419
453
  </xsl:if>
420
- </fo:block>
421
- </fo:table-cell>
422
- <fo:table-cell font-size="25pt" font-weight="bold" color="{$color_gray}" text-align="right" display-align="center">
423
- <fo:block padding-top="1mm"><xsl:value-of select="$price_code_value"/></fo:block>
424
- </fo:table-cell>
425
- </fo:table-row>
426
- </fo:table-body>
427
- </fo:table>
428
- <fo:block font-size="8pt" text-align-last="justify">
429
- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:ext/mn:ics">
430
- <xsl:if test="position() = 1">ICS </xsl:if>
431
- <xsl:value-of select="mn:code"/>
432
- <xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
433
- </xsl:for-each>
434
- <xsl:text> </xsl:text>
435
- <fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
436
- <xsl:text> </xsl:text>
437
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']">
438
- <!-- Example: ISBN 978-2-8322-1532-6 -->
439
- <xsl:text>ISBN </xsl:text>
440
- <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']"/>
441
- </xsl:if>
442
- </fo:inline>
443
- </fo:block>
444
- <fo:block-container margin-left="1.5mm">
445
- <fo:block-container margin-left="0mm">
446
- <fo:block-container border="0.5pt solid black" font-size="10pt" margin-top="8mm" font-weight="bold" padding-left="1.5mm" padding-top="0.5mm" width="102%" height="11mm" display-align="center" id="__internal_layout__warning_block">
447
- <fo:block margin-left="1mm">Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
448
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
449
- <fo:block margin-left="1mm" margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
450
- </xsl:if>
454
+ </fo:block-container>
455
+ </fo:block-container>
451
456
  </fo:block-container>
457
+ <fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
458
+ <xsl:if test="count((//mn:metanorma)[1]/mn:bibdata/mn:copyright) = 1">
459
+ <fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
460
+ <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
461
+ <fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
462
+ </xsl:if>
463
+ </xsl:if>
464
+ </fo:block>
452
465
  </fo:block-container>
453
- </fo:block-container>
454
- <fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
455
- <xsl:if test="count((//mn:metanorma)[1]/mn:bibdata/mn:copyright) = 1">
456
- <fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
457
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
458
- <fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
459
- </xsl:if>
460
- </xsl:if>
461
- </fo:block>
462
- </fo:block-container>
463
- </fo:flow>
464
- </fo:page-sequence> <!-- END: cover -->
465
- </xsl:if>
466
+ </fo:flow>
467
+ </fo:page-sequence> <!-- END: cover -->
468
+ </xsl:if>
466
469
 
467
- <!-- for non-published documents insert cover page (2nd for FDIS) ) -->
468
- <xsl:if test="$stage-abbreviation = 'NWIP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS' or $stage-abbreviation = 'FDIS'">
469
- <!-- circulation cover page -->
470
- <fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
471
- <fo:static-content flow-name="footer-FDIS">
472
- <fo:block-container background-color="rgb(236, 232, 232)" padding="2mm" border="1.5pt solid white">
473
- <fo:block font-size="8pt" margin-bottom="6pt">
470
+ <!-- for non-published documents insert cover page (2nd for FDIS) ) -->
471
+ <xsl:if test="$stage-abbreviation = 'NWIP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS' or $stage-abbreviation = 'FDIS'">
472
+ <!-- circulation cover page -->
473
+ <fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
474
+ <fo:static-content flow-name="footer-FDIS">
475
+ <fo:block-container background-color="rgb(236, 232, 232)" padding="2mm" border="1.5pt solid white">
476
+ <fo:block font-size="8pt" margin-bottom="6pt">
474
477
 
475
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[not(@id)]"/>
478
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[not(@id)]"/>
476
479
 
477
- </fo:block>
478
- </fo:block-container>
479
- </fo:static-content>
480
- <fo:flow flow-name="xsl-region-body">
480
+ </fo:block>
481
+ </fo:block-container>
482
+ </fo:static-content>
483
+ <fo:flow flow-name="xsl-region-body">
481
484
 
482
- <fo:block text-align-last="justify" margin-left="-0.5mm">
483
- <xsl:call-template name="outputLogo"/>
485
+ <fo:block text-align-last="justify" margin-left="-0.5mm">
486
+ <xsl:call-template name="outputLogo"/>
484
487
 
485
- <xsl:if test="$stage-abbreviation = 'FDIS'">
486
- <fo:inline font-size="8pt" padding-left="0.5mm" color="{$color_blue}">®</fo:inline>
487
- </xsl:if>
488
- <fo:inline keep-together.within-line="always" font-size="18pt" font-weight="bold" baseline-shift="10mm"><fo:leader leader-pattern="space"/>
489
- <!-- Ex: 34D/1511/FDIS -->
490
- <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='iso-tc']"/>
491
- <xsl:text> </xsl:text>
492
- </fo:inline>
493
- </fo:block>
494
- <fo:block font-size="10pt" text-align="right" margin-top="-2mm" margin-bottom="8pt">
495
- <!-- Examples: 'FINAL DRAFT INTERNATIONAL STANDARD (FDIS)', 'COMMITTEE DRAFT FOR VOTE (CDV)' -->
496
- <xsl:call-template name="addLetterSpacing">
497
- <xsl:with-param name="text" select="concat($stage-fullname-uppercased, ' (', $stage-abbreviation ,')')"/>
498
- </xsl:call-template>
499
- <xsl:text> </xsl:text>
500
- </fo:block>
501
- <fo:block-container margin-left="57mm">
502
- <fo:block-container margin-left="0mm">
503
- <fo:table table-layout="fixed" width="118mm" background-color="rgb(219, 229, 241)" id="__internal_layout__project_{generate-id()}">
504
- <fo:table-column column-width="50%"/>
505
- <fo:table-column column-width="50%"/>
506
- <fo:table-body>
507
- <fo:table-row height="12mm">
508
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
509
- <fo:block font-size="6.5pt" margin-bottom="6pt">
510
- <xsl:call-template name="addLetterSpacingSmallCaps">
511
- <xsl:with-param name="text" select="'Project number:'"/>
512
- </xsl:call-template>
513
- </fo:block>
514
- <fo:block font-size="9pt" font-weight="bold">
515
- <xsl:call-template name="addLetterSpacing">
516
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number"/></xsl:with-param>
517
- </xsl:call-template>
518
- </fo:block>
519
- </fo:table-cell>
520
- </fo:table-row>
521
- <fo:table-row height="12mm">
522
- <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
523
- <fo:block font-size="6.5pt" margin-bottom="6pt">
524
- <xsl:call-template name="addLetterSpacingSmallCaps">
525
- <xsl:with-param name="text" select="'Date of circulation:'"/>
526
- </xsl:call-template>
527
- </fo:block>
528
- <fo:block font-size="9pt" font-weight="bold">
529
- <xsl:call-template name="addLetterSpacing">
530
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type ='circulated']/mn:on"/></xsl:with-param>
531
- </xsl:call-template>
532
- </fo:block>
533
- </fo:table-cell>
534
- <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
535
- <fo:block font-size="6.5pt" margin-bottom="6pt">
536
- <xsl:call-template name="addLetterSpacingSmallCaps">
537
- <xsl:with-param name="text" select="'Closing date for voting:'"/>
538
- </xsl:call-template>
539
- </fo:block>
540
- <fo:block font-size="9pt" font-weight="bold">
541
- <xsl:call-template name="addLetterSpacing">
542
- <!-- 2019-12-06 -->
543
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='vote-ended']/mn:on"/></xsl:with-param>
544
- </xsl:call-template>
545
- </fo:block>
546
- </fo:table-cell>
547
- </fo:table-row>
548
- <fo:table-row height="12mm">
549
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
550
- <fo:block font-size="6.5pt" margin-bottom="6pt">
551
- <xsl:call-template name="addLetterSpacingSmallCaps">
552
- <xsl:with-param name="text" select="'Supersedes documents:'"/>
553
- </xsl:call-template>
554
- </fo:block>
555
- <fo:block font-size="9pt" font-weight="bold">
556
- <xsl:variable name="supersedes_documents">
557
- <!-- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='supersedes']/mn:bibitem/mn:docnumber"> -->
558
- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='obsoletes']/mn:bibitem/mn:docidentifier">
559
- <xsl:value-of select="."/>
560
- <xsl:if test="position() != last()">,</xsl:if>
561
- </xsl:for-each>
562
- </xsl:variable>
563
- <xsl:call-template name="addLetterSpacing">
564
- <xsl:with-param name="text"><xsl:value-of select="$supersedes_documents"/></xsl:with-param>
565
- </xsl:call-template>
566
- </fo:block>
567
- </fo:table-cell>
568
- </fo:table-row>
569
- </fo:table-body>
570
- </fo:table>
571
- </fo:block-container>
572
- </fo:block-container>
488
+ <xsl:if test="$stage-abbreviation = 'FDIS'">
489
+ <fo:inline font-size="8pt" padding-left="0.5mm" color="{$color_blue}">®</fo:inline>
490
+ </xsl:if>
491
+ <fo:inline keep-together.within-line="always" font-size="18pt" font-weight="bold" baseline-shift="10mm"><fo:leader leader-pattern="space"/>
492
+ <!-- Ex: 34D/1511/FDIS -->
493
+ <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='iso-tc']"/>
494
+ <xsl:text> </xsl:text>
495
+ </fo:inline>
496
+ </fo:block>
497
+ <fo:block font-size="10pt" text-align="right" margin-top="-2mm" margin-bottom="8pt">
498
+ <!-- Examples: 'FINAL DRAFT INTERNATIONAL STANDARD (FDIS)', 'COMMITTEE DRAFT FOR VOTE (CDV)' -->
499
+ <xsl:call-template name="addLetterSpacing">
500
+ <xsl:with-param name="text" select="concat($stage-fullname-uppercased, ' (', $stage-abbreviation ,')')"/>
501
+ </xsl:call-template>
502
+ <xsl:text> </xsl:text>
503
+ </fo:block>
504
+ <fo:block-container margin-left="57mm">
505
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
506
+ <fo:table table-layout="fixed" width="118mm" background-color="rgb(219, 229, 241)" id="__internal_layout__project_{generate-id()}">
507
+ <fo:table-column column-width="50%"/>
508
+ <fo:table-column column-width="50%"/>
509
+ <fo:table-body>
510
+ <fo:table-row height="12mm">
511
+ <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
512
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
513
+ <xsl:call-template name="addLetterSpacingSmallCaps">
514
+ <xsl:with-param name="text" select="'Project number:'"/>
515
+ </xsl:call-template>
516
+ </fo:block>
517
+ <fo:block font-size="9pt" font-weight="bold">
518
+ <xsl:call-template name="addLetterSpacing">
519
+ <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number"/></xsl:with-param>
520
+ </xsl:call-template>
521
+ </fo:block>
522
+ </fo:table-cell>
523
+ </fo:table-row>
524
+ <fo:table-row height="12mm">
525
+ <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
526
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
527
+ <xsl:call-template name="addLetterSpacingSmallCaps">
528
+ <xsl:with-param name="text" select="'Date of circulation:'"/>
529
+ </xsl:call-template>
530
+ </fo:block>
531
+ <fo:block font-size="9pt" font-weight="bold">
532
+ <xsl:call-template name="addLetterSpacing">
533
+ <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type ='circulated']/mn:on"/></xsl:with-param>
534
+ </xsl:call-template>
535
+ </fo:block>
536
+ </fo:table-cell>
537
+ <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
538
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
539
+ <xsl:call-template name="addLetterSpacingSmallCaps">
540
+ <xsl:with-param name="text" select="'Closing date for voting:'"/>
541
+ </xsl:call-template>
542
+ </fo:block>
543
+ <fo:block font-size="9pt" font-weight="bold">
544
+ <xsl:call-template name="addLetterSpacing">
545
+ <!-- 2019-12-06 -->
546
+ <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='vote-ended']/mn:on"/></xsl:with-param>
547
+ </xsl:call-template>
548
+ </fo:block>
549
+ </fo:table-cell>
550
+ </fo:table-row>
551
+ <fo:table-row height="12mm">
552
+ <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
553
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
554
+ <xsl:call-template name="addLetterSpacingSmallCaps">
555
+ <xsl:with-param name="text" select="'Supersedes documents:'"/>
556
+ </xsl:call-template>
557
+ </fo:block>
558
+ <fo:block font-size="9pt" font-weight="bold">
559
+ <xsl:variable name="supersedes_documents">
560
+ <!-- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='supersedes']/mn:bibitem/mn:docnumber"> -->
561
+ <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='obsoletes']/mn:bibitem/mn:docidentifier">
562
+ <xsl:value-of select="."/>
563
+ <xsl:if test="position() != last()">,</xsl:if>
564
+ </xsl:for-each>
565
+ </xsl:variable>
566
+ <xsl:call-template name="addLetterSpacing">
567
+ <xsl:with-param name="text"><xsl:value-of select="$supersedes_documents"/></xsl:with-param>
568
+ </xsl:call-template>
569
+ </fo:block>
570
+ </fo:table-cell>
571
+ </fo:table-row>
572
+ </fo:table-body>
573
+ </fo:table>
574
+ </fo:block-container>
575
+ </fo:block-container>
573
576
 
574
- <fo:block-container margin-left="-2mm" margin-right="-2mm" margin-top="5mm">
575
- <fo:block-container margin-left="0mm" margin-right="0mm">
576
- <xsl:variable name="border-color">rgb(221, 213, 213)</xsl:variable>
577
- <fo:table table-layout="fixed" width="100%" border="1.5pt solid {$border-color}">
578
- <fo:table-column column-width="50%"/>
579
- <fo:table-column column-width="50%"/>
580
- <fo:table-body>
581
- <fo:table-row height="4mm">
582
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
583
- <xsl:variable name="contributor_author_">
584
- <xsl:copy-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author' and mn:description[normalize-space(@language) = ''] = 'committee']]/node()"/>
585
- </xsl:variable>
586
- <xsl:variable name="contributor_author" select="xalan:nodeset($contributor_author_)"/>
587
- <!-- https://github.com/metanorma/metanorma-iec/issues/440 -->
588
- <xsl:variable name="subdivision_subcommittee_">
589
- <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Subcommittee']/node()"/>
590
- </xsl:variable>
591
- <xsl:variable name="subdivision_subcommittee" select="xalan:nodeset($subdivision_subcommittee_)"/>
577
+ <fo:block-container margin-left="-2mm" margin-right="-2mm" margin-top="5mm">
578
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
579
+ <xsl:variable name="border-color">rgb(221, 213, 213)</xsl:variable>
580
+ <fo:table table-layout="fixed" width="100%" border="1.5pt solid {$border-color}">
581
+ <fo:table-column column-width="50%"/>
582
+ <fo:table-column column-width="50%"/>
583
+ <fo:table-body>
584
+ <fo:table-row height="4mm">
585
+ <fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
586
+ <xsl:variable name="contributor_author_">
587
+ <xsl:copy-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author' and mn:description[normalize-space(@language) = ''] = 'committee']]/node()"/>
588
+ </xsl:variable>
589
+ <xsl:variable name="contributor_author" select="xalan:nodeset($contributor_author_)"/>
590
+ <!-- https://github.com/metanorma/metanorma-iec/issues/440 -->
591
+ <xsl:variable name="subdivision_subcommittee_">
592
+ <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Subcommittee']/node()"/>
593
+ </xsl:variable>
594
+ <xsl:variable name="subdivision_subcommittee" select="xalan:nodeset($subdivision_subcommittee_)"/>
592
595
 
593
- <xsl:variable name="subdivision_technical_committee_">
594
- <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Technical committee']/node()"/>
595
- </xsl:variable>
596
- <xsl:variable name="subdivision_technical_committee" select="xalan:nodeset($subdivision_technical_committee_)"/>
596
+ <xsl:variable name="subdivision_technical_committee_">
597
+ <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Technical committee']/node()"/>
598
+ </xsl:variable>
599
+ <xsl:variable name="subdivision_technical_committee" select="xalan:nodeset($subdivision_technical_committee_)"/>
597
600
 
598
- <fo:block>
599
- <!-- If //bibdata/ext/editorialgroup/subcommittee exists, use "IEC SC" + //bibdata/ext/editorialgroup/subcommittee/@number + //bibdata/ext/editorialgroup/subcommittee,
600
- else use "IEC TC" + //bibdata/ext/editorialgroup/technical-committee/@number + //bibdata/ext/editorialgroup/technical-committee -->
601
- <xsl:choose>
602
- <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"> -->
603
- <xsl:when test="normalize-space($subdivision_subcommittee) != ''">
604
- <fo:block font-size="6.5pt">
605
- <!-- <fo:inline font-size="8pt">IEC SC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee/@number"/> : </fo:inline> -->
606
- <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_subcommittee/mn:identifier, ' : ')"/></fo:inline>
607
- <xsl:call-template name="addLetterSpacingSmallCaps">
608
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"/> -->
609
- <xsl:with-param name="text" select="$subdivision_subcommittee/mn:name"/>
610
- </xsl:call-template>
611
- </fo:block>
612
- </xsl:when>
613
- <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"> -->
614
- <xsl:when test="normalize-space($subdivision_technical_committee) != ''">
615
- <fo:block font-size="6.5pt">
616
- <!-- <fo:inline font-size="8pt">IEC TC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee/@number"/> : </fo:inline> -->
617
- <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_technical_committee/mn:identifier, ' : ')"/></fo:inline>
618
- <xsl:call-template name="addLetterSpacingSmallCaps">
619
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/> -->
620
- <xsl:with-param name="text" select="$subdivision_technical_committee/mn:name"/>
621
- </xsl:call-template>
622
- </fo:block>
623
- </xsl:when>
624
- </xsl:choose>
625
- </fo:block>
626
- </fo:table-cell>
627
- </fo:table-row>
628
- <fo:table-row height="12mm">
629
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
630
- <fo:block font-size="6.5pt" margin-bottom="6pt">
631
- <xsl:call-template name="addLetterSpacingSmallCaps">
632
- <xsl:with-param name="text" select="'Secretariat:'"/>
633
- </xsl:call-template>
634
- </fo:block>
635
- <fo:block font-size="9pt">
636
- <xsl:call-template name="addLetterSpacing">
637
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat"/> -->
638
- <xsl:with-param name="text" select="normalize-space(//mn:metanorma/mn:bibdata/mn:contributor[mn:role/mn:description = 'secretariat']/mn:organization/mn:subdivision)"/>
639
- </xsl:call-template>
640
- </fo:block>
641
- </fo:table-cell>
642
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
643
- <fo:block font-size="6.5pt" margin-bottom="6pt">
644
- <xsl:call-template name="addLetterSpacingSmallCaps">
645
- <xsl:with-param name="text" select="'Secretary:'"/>
646
- </xsl:call-template>
647
- </fo:block>
648
- <fo:block font-size="9pt">
649
- <!-- Example: Ms Shanti Conn -->
650
- <xsl:call-template name="addLetterSpacing">
651
- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:secretary"/>
652
- </xsl:call-template>
653
- </fo:block>
654
- </fo:table-cell>
655
- </fo:table-row>
656
- <fo:table-row height="12mm">
657
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
658
- <xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
659
- <xsl:attribute name="number-columns-spanned">2</xsl:attribute>
660
- </xsl:if>
661
- <fo:block font-size="6.5pt" margin-bottom="6pt">
662
- <xsl:call-template name="addLetterSpacingSmallCaps">
663
- <xsl:with-param name="text" select="'Of interest to the following committees:'"/>
664
- </xsl:call-template>
665
- </fo:block>
666
- <fo:block font-size="9pt">
667
- <xsl:call-template name="addLetterSpacing">
668
- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:interest-to-committees"/>
669
- </xsl:call-template>
670
- </fo:block>
671
- </fo:table-cell>
672
- <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
673
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
674
- <fo:block font-size="6.5pt" margin-bottom="6pt">
675
- <xsl:if test="$stage-abbreviation = 'FDIS'">
601
+ <fo:block>
602
+ <!-- If //bibdata/ext/editorialgroup/subcommittee exists, use "IEC SC" + //bibdata/ext/editorialgroup/subcommittee/@number + //bibdata/ext/editorialgroup/subcommittee,
603
+ else use "IEC TC" + //bibdata/ext/editorialgroup/technical-committee/@number + //bibdata/ext/editorialgroup/technical-committee -->
604
+ <xsl:choose>
605
+ <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"> -->
606
+ <xsl:when test="normalize-space($subdivision_subcommittee) != ''">
607
+ <fo:block font-size="6.5pt">
608
+ <!-- <fo:inline font-size="8pt">IEC SC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee/@number"/> : </fo:inline> -->
609
+ <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_subcommittee/mn:identifier, ' : ')"/></fo:inline>
610
+ <xsl:call-template name="addLetterSpacingSmallCaps">
611
+ <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"/> -->
612
+ <xsl:with-param name="text" select="$subdivision_subcommittee/mn:name"/>
613
+ </xsl:call-template>
614
+ </fo:block>
615
+ </xsl:when>
616
+ <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"> -->
617
+ <xsl:when test="normalize-space($subdivision_technical_committee) != ''">
618
+ <fo:block font-size="6.5pt">
619
+ <!-- <fo:inline font-size="8pt">IEC TC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee/@number"/> : </fo:inline> -->
620
+ <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_technical_committee/mn:identifier, ' : ')"/></fo:inline>
621
+ <xsl:call-template name="addLetterSpacingSmallCaps">
622
+ <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/> -->
623
+ <xsl:with-param name="text" select="$subdivision_technical_committee/mn:name"/>
624
+ </xsl:call-template>
625
+ </fo:block>
626
+ </xsl:when>
627
+ </xsl:choose>
628
+ </fo:block>
629
+ </fo:table-cell>
630
+ </fo:table-row>
631
+ <fo:table-row height="12mm">
632
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
633
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
676
634
  <xsl:call-template name="addLetterSpacingSmallCaps">
677
- <xsl:with-param name="text" select="'horizontal standard:'"/>
635
+ <xsl:with-param name="text" select="'Secretariat:'"/>
678
636
  </xsl:call-template>
679
- </xsl:if>
680
- <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
637
+ </fo:block>
638
+ <fo:block font-size="9pt">
639
+ <xsl:call-template name="addLetterSpacing">
640
+ <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat"/> -->
641
+ <xsl:with-param name="text" select="normalize-space(//mn:metanorma/mn:bibdata/mn:contributor[mn:role/mn:description = 'secretariat']/mn:organization/mn:subdivision)"/>
642
+ </xsl:call-template>
643
+ </fo:block>
644
+ </fo:table-cell>
645
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
646
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
681
647
  <xsl:call-template name="addLetterSpacingSmallCaps">
682
- <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
648
+ <xsl:with-param name="text" select="'Secretary:'"/>
683
649
  </xsl:call-template>
650
+ </fo:block>
651
+ <fo:block font-size="9pt">
652
+ <!-- Example: Ms Shanti Conn -->
653
+ <xsl:call-template name="addLetterSpacing">
654
+ <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:secretary"/>
655
+ </xsl:call-template>
656
+ </fo:block>
657
+ </fo:table-cell>
658
+ </fo:table-row>
659
+ <fo:table-row height="12mm">
660
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
661
+ <xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
662
+ <xsl:attribute name="number-columns-spanned">2</xsl:attribute>
684
663
  </xsl:if>
685
- </fo:block>
686
- <fo:block>
687
- <xsl:choose>
688
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:horizontal = 'true'">
689
- <xsl:call-template name="insertCheckBoxOn"/>
690
- </xsl:when>
691
- <xsl:otherwise>
692
- <xsl:call-template name="insertCheckBoxOff"/>
693
- </xsl:otherwise>
694
- </xsl:choose>
695
- </fo:block>
696
-
697
- <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
698
- <fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
699
- <fo:block-container margin-left="1mm" margin-right="1mm">
700
- <fo:block font-size="8pt" padding="2mm">
701
- <xsl:call-template name="addLetterSpacing">
702
- <xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
664
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
665
+ <xsl:call-template name="addLetterSpacingSmallCaps">
666
+ <xsl:with-param name="text" select="'Of interest to the following committees:'"/>
667
+ </xsl:call-template>
668
+ </fo:block>
669
+ <fo:block font-size="9pt">
670
+ <xsl:call-template name="addLetterSpacing">
671
+ <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:interest-to-committees"/>
672
+ </xsl:call-template>
673
+ </fo:block>
674
+ </fo:table-cell>
675
+ <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
676
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
677
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
678
+ <xsl:if test="$stage-abbreviation = 'FDIS'">
679
+ <xsl:call-template name="addLetterSpacingSmallCaps">
680
+ <xsl:with-param name="text" select="'horizontal standard:'"/>
703
681
  </xsl:call-template>
704
- </fo:block>
705
- </fo:block-container>
706
- </fo:block-container>
707
- </xsl:if>
708
- </fo:table-cell>
709
- </xsl:if>
710
- </fo:table-row>
711
-
712
- <xsl:if test="not($stage-abbreviation = 'DPAS')">
713
- <fo:table-row height="10mm">
714
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
715
- <fo:block font-size="6.5pt" margin-bottom="4pt">
716
- <xsl:call-template name="addLetterSpacingSmallCaps">
717
- <xsl:with-param name="text" select="'Functions concerned:'"/>
718
- </xsl:call-template>
719
- </fo:block>
720
- <!-- function: { emc | safety | environment | quality-assurance } -->
721
- <fo:block font-size="6.5pt">
722
- <xsl:choose>
723
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'emc'">
724
- <xsl:call-template name="insertCheckBoxOn"/>
725
- </xsl:when>
726
- <xsl:otherwise>
727
- <xsl:call-template name="insertCheckBoxOff"/>
728
- </xsl:otherwise>
729
- </xsl:choose>
730
- <xsl:call-template name="addLetterSpacingSmallCaps">
731
- <xsl:with-param name="text" select="'EMC'"/>
732
- </xsl:call-template>
733
- <fo:inline padding-right="33mm"> </fo:inline>
734
- <xsl:choose>
735
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'environment'">
736
- <xsl:call-template name="insertCheckBoxOn"/>
737
- </xsl:when>
738
- <xsl:otherwise>
739
- <xsl:call-template name="insertCheckBoxOff"/>
740
- </xsl:otherwise>
741
- </xsl:choose>
742
- <xsl:call-template name="addLetterSpacingSmallCaps">
743
- <xsl:with-param name="text" select="'Environment'"/>
744
- </xsl:call-template>
745
- </fo:block>
746
- </fo:table-cell>
747
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
748
- <fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
749
- <fo:block font-size="6.5pt">
750
- <xsl:choose>
751
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'quality-assurance'">
752
- <xsl:call-template name="insertCheckBoxOn"/>
753
- </xsl:when>
754
- <xsl:otherwise>
755
- <xsl:call-template name="insertCheckBoxOff"/>
756
- </xsl:otherwise>
757
- </xsl:choose>
758
- <xsl:call-template name="addLetterSpacingSmallCaps">
759
- <xsl:with-param name="text" select="'Quality assurance'"/>
760
- </xsl:call-template>
761
- <fo:inline padding-right="13mm"> </fo:inline>
762
- <xsl:choose>
763
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'safety'">
764
- <xsl:call-template name="insertCheckBoxOn"/>
765
- </xsl:when>
766
- <xsl:otherwise>
767
- <xsl:call-template name="insertCheckBoxOff"/>
768
- </xsl:otherwise>
769
- </xsl:choose>
770
- <xsl:call-template name="addLetterSpacingSmallCaps">
771
- <xsl:with-param name="text" select="'Safety'"/>
772
- </xsl:call-template>
773
- </fo:block>
774
- </fo:table-cell>
775
- </fo:table-row>
776
- </xsl:if>
682
+ </xsl:if>
683
+ <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
684
+ <xsl:call-template name="addLetterSpacingSmallCaps">
685
+ <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
686
+ </xsl:call-template>
687
+ </xsl:if>
688
+ </fo:block>
689
+ <fo:block>
690
+ <xsl:choose>
691
+ <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:horizontal = 'true'">
692
+ <xsl:call-template name="insertCheckBoxOn"/>
693
+ </xsl:when>
694
+ <xsl:otherwise>
695
+ <xsl:call-template name="insertCheckBoxOff"/>
696
+ </xsl:otherwise>
697
+ </xsl:choose>
698
+ </fo:block>
777
699
 
778
- <xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
700
+ <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
701
+ <fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
702
+ <fo:block-container margin-left="1mm" margin-right="1mm">
703
+ <fo:block font-size="8pt" padding="2mm">
704
+ <xsl:call-template name="addLetterSpacing">
705
+ <xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
706
+ </xsl:call-template>
707
+ </fo:block>
708
+ </fo:block-container>
709
+ </fo:block-container>
710
+ </xsl:if>
711
+ </fo:table-cell>
712
+ </xsl:if>
713
+ </fo:table-row>
779
714
 
780
- <fo:table-row>
781
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
782
- <fo:block font-size="6.5pt" margin-bottom="12pt">
783
- <xsl:choose>
784
- <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
785
- <xsl:call-template name="insertCheckBoxOn"/>
786
- </xsl:when>
787
- <xsl:otherwise>
788
- <xsl:call-template name="insertCheckBoxOff"/>
789
- </xsl:otherwise>
790
- </xsl:choose>
791
- <xsl:call-template name="addLetterSpacingSmallCaps">
792
- <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
793
- </xsl:call-template>
794
- </fo:block>
715
+ <xsl:if test="not($stage-abbreviation = 'DPAS')">
716
+ <fo:table-row height="10mm">
717
+ <fo:table-cell padding="1.5mm" padding-bottom="0mm">
718
+ <fo:block font-size="6.5pt" margin-bottom="4pt">
719
+ <xsl:call-template name="addLetterSpacingSmallCaps">
720
+ <xsl:with-param name="text" select="'Functions concerned:'"/>
721
+ </xsl:call-template>
722
+ </fo:block>
723
+ <!-- function: { emc | safety | environment | quality-assurance } -->
724
+ <fo:block font-size="6.5pt">
725
+ <xsl:choose>
726
+ <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'emc'">
727
+ <xsl:call-template name="insertCheckBoxOn"/>
728
+ </xsl:when>
729
+ <xsl:otherwise>
730
+ <xsl:call-template name="insertCheckBoxOff"/>
731
+ </xsl:otherwise>
732
+ </xsl:choose>
733
+ <xsl:call-template name="addLetterSpacingSmallCaps">
734
+ <xsl:with-param name="text" select="'EMC'"/>
735
+ </xsl:call-template>
736
+ <fo:inline padding-right="33mm"> </fo:inline>
737
+ <xsl:choose>
738
+ <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'environment'">
739
+ <xsl:call-template name="insertCheckBoxOn"/>
740
+ </xsl:when>
741
+ <xsl:otherwise>
742
+ <xsl:call-template name="insertCheckBoxOff"/>
743
+ </xsl:otherwise>
744
+ </xsl:choose>
745
+ <xsl:call-template name="addLetterSpacingSmallCaps">
746
+ <xsl:with-param name="text" select="'Environment'"/>
747
+ </xsl:call-template>
748
+ </fo:block>
749
+ </fo:table-cell>
750
+ <fo:table-cell padding="1.5mm" padding-bottom="0mm">
751
+ <fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
752
+ <fo:block font-size="6.5pt">
753
+ <xsl:choose>
754
+ <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'quality-assurance'">
755
+ <xsl:call-template name="insertCheckBoxOn"/>
756
+ </xsl:when>
757
+ <xsl:otherwise>
758
+ <xsl:call-template name="insertCheckBoxOff"/>
759
+ </xsl:otherwise>
760
+ </xsl:choose>
761
+ <xsl:call-template name="addLetterSpacingSmallCaps">
762
+ <xsl:with-param name="text" select="'Quality assurance'"/>
763
+ </xsl:call-template>
764
+ <fo:inline padding-right="13mm"> </fo:inline>
765
+ <xsl:choose>
766
+ <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'safety'">
767
+ <xsl:call-template name="insertCheckBoxOn"/>
768
+ </xsl:when>
769
+ <xsl:otherwise>
770
+ <xsl:call-template name="insertCheckBoxOff"/>
771
+ </xsl:otherwise>
772
+ </xsl:choose>
773
+ <xsl:call-template name="addLetterSpacingSmallCaps">
774
+ <xsl:with-param name="text" select="'Safety'"/>
775
+ </xsl:call-template>
776
+ </fo:block>
777
+ </fo:table-cell>
778
+ </fo:table-row>
779
+ </xsl:if>
795
780
 
796
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
781
+ <xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
797
782
 
798
- </fo:table-cell>
799
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
800
- <fo:block font-size="6.5pt" margin-bottom="6pt">
801
- <xsl:choose>
802
- <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
803
- <xsl:call-template name="insertCheckBoxOff"/>
804
- </xsl:when>
805
- <xsl:otherwise>
806
- <xsl:call-template name="insertCheckBoxOn"/>
807
- </xsl:otherwise>
808
- </xsl:choose>
809
- <xsl:call-template name="addLetterSpacingSmallCaps">
810
- <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
811
- </xsl:call-template>
812
- </fo:block>
813
- </fo:table-cell>
814
- </fo:table-row>
815
- </xsl:if>
816
- </fo:table-body>
817
- </fo:table>
818
- </fo:block-container>
819
- </fo:block-container>
783
+ <fo:table-row>
784
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
785
+ <fo:block font-size="6.5pt" margin-bottom="12pt">
786
+ <xsl:choose>
787
+ <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
788
+ <xsl:call-template name="insertCheckBoxOn"/>
789
+ </xsl:when>
790
+ <xsl:otherwise>
791
+ <xsl:call-template name="insertCheckBoxOff"/>
792
+ </xsl:otherwise>
793
+ </xsl:choose>
794
+ <xsl:call-template name="addLetterSpacingSmallCaps">
795
+ <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
796
+ </xsl:call-template>
797
+ </fo:block>
820
798
 
821
- <fo:block-container font-size="8pt" background-color="rgb(236, 232, 232)" margin-top="5mm" padding="2mm" text-align="justify" border="1.5pt solid white">
822
- <fo:block>
823
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:license-statement" mode="cover-page-internal"/>
824
- </fo:block>
825
- </fo:block-container>
799
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
826
800
 
827
- <fo:block-container background-color="rgb(219, 229, 241)" margin-top="4mm" padding="2mm" padding-top="1mm" border="1.5pt solid white">
828
- <fo:block font-size="6.5pt" margin-bottom="6pt">
829
- <xsl:call-template name="addLetterSpacingSmallCaps">
830
- <xsl:with-param name="text">
831
- <!-- Title: -->
832
- <xsl:call-template name="getLocalizedString">
833
- <xsl:with-param name="key">title</xsl:with-param>
801
+ </fo:table-cell>
802
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
803
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
804
+ <xsl:choose>
805
+ <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
806
+ <xsl:call-template name="insertCheckBoxOff"/>
807
+ </xsl:when>
808
+ <xsl:otherwise>
809
+ <xsl:call-template name="insertCheckBoxOn"/>
810
+ </xsl:otherwise>
811
+ </xsl:choose>
812
+ <xsl:call-template name="addLetterSpacingSmallCaps">
813
+ <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
814
+ </xsl:call-template>
815
+ </fo:block>
816
+ </fo:table-cell>
817
+ </fo:table-row>
818
+ </xsl:if>
819
+ </fo:table-body>
820
+ </fo:table>
821
+ </fo:block-container>
822
+ </fo:block-container>
823
+
824
+ <fo:block-container font-size="8pt" background-color="rgb(236, 232, 232)" margin-top="5mm" padding="2mm" text-align="justify" border="1.5pt solid white">
825
+ <fo:block>
826
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:license-statement" mode="cover-page-internal"/>
827
+ </fo:block>
828
+ </fo:block-container>
829
+
830
+ <fo:block-container background-color="rgb(219, 229, 241)" margin-top="4mm" padding="2mm" padding-top="1mm" border="1.5pt solid white">
831
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
832
+ <xsl:call-template name="addLetterSpacingSmallCaps">
833
+ <xsl:with-param name="text">
834
+ <!-- Title: -->
835
+ <xsl:call-template name="getLocalizedString">
836
+ <xsl:with-param name="key">title</xsl:with-param>
837
+ </xsl:call-template>
838
+ <xsl:text>:</xsl:text>
839
+ </xsl:with-param>
834
840
  </xsl:call-template>
835
- <xsl:text>:</xsl:text>
836
- </xsl:with-param>
837
- </xsl:call-template>
838
- </fo:block>
839
- <fo:block font-size="9pt" font-weight="bold">
840
- <xsl:call-template name="addLetterSpacing">
841
- <xsl:with-param name="text"><xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'main']"/></xsl:with-param>
842
- </xsl:call-template>
843
- </fo:block>
844
- </fo:block-container>
841
+ </fo:block>
842
+ <fo:block font-size="9pt" font-weight="bold">
843
+ <xsl:call-template name="addLetterSpacing">
844
+ <xsl:with-param name="text"><xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'main']"/></xsl:with-param>
845
+ </xsl:call-template>
846
+ </fo:block>
847
+ </fo:block-container>
845
848
 
846
- <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS'">
847
- <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" height="6.5mm" padding="1mm" margin-top="3mm" display-align="center">
848
- <fo:block font-size="6.5pt">
849
- <xsl:call-template name="addLetterSpacing">
850
- <xsl:with-param name="text">
851
- <!-- PROPOSED STABILITY DATE: -->
852
- <xsl:call-template name="getLocalizedString">
853
- <xsl:with-param name="key">proposed_stability_date</xsl:with-param>
849
+ <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS'">
850
+ <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" height="6.5mm" padding="1mm" margin-top="3mm" display-align="center">
851
+ <fo:block font-size="6.5pt">
852
+ <xsl:call-template name="addLetterSpacing">
853
+ <xsl:with-param name="text">
854
+ <!-- PROPOSED STABILITY DATE: -->
855
+ <xsl:call-template name="getLocalizedString">
856
+ <xsl:with-param name="key">proposed_stability_date</xsl:with-param>
857
+ </xsl:call-template>
858
+ <xsl:text>: </xsl:text>
859
+ </xsl:with-param>
854
860
  </xsl:call-template>
855
- <xsl:text>: </xsl:text>
856
- </xsl:with-param>
857
- </xsl:call-template>
858
- <!-- 2023 -->
859
- <fo:inline font-size="9pt"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='unchanged']/mn:on"/></fo:inline>
860
- </fo:block>
861
- </fo:block-container>
862
- </xsl:if>
861
+ <!-- 2023 -->
862
+ <fo:inline font-size="9pt"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='unchanged']/mn:on"/></fo:inline>
863
+ </fo:block>
864
+ </fo:block-container>
865
+ </xsl:if>
863
866
 
864
- <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" padding="1mm" margin-top="3mm">
865
- <fo:block font-size="6.5pt" margin-bottom="6pt">
866
- <xsl:call-template name="addLetterSpacingSmallCaps">
867
- <xsl:with-param name="text">
868
- <!-- Note from TC/SC officers: -->
869
- <xsl:call-template name="getLocalizedString">
870
- <xsl:with-param name="key">tc_sc_note</xsl:with-param>
867
+ <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" padding="1mm" margin-top="3mm">
868
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
869
+ <xsl:call-template name="addLetterSpacingSmallCaps">
870
+ <xsl:with-param name="text">
871
+ <!-- Note from TC/SC officers: -->
872
+ <xsl:call-template name="getLocalizedString">
873
+ <xsl:with-param name="key">tc_sc_note</xsl:with-param>
874
+ </xsl:call-template>
875
+ <xsl:text>:</xsl:text>
876
+ </xsl:with-param>
871
877
  </xsl:call-template>
872
- <xsl:text>:</xsl:text>
873
- </xsl:with-param>
874
- </xsl:call-template>
875
- </fo:block>
876
- <!-- Example: This FDIS is the result of the discussion between the IEC SC21A experts WG 3 during the meeting held in -->
877
- <xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:tc-sc-officers-note"/>
878
- </fo:block-container>
878
+ </fo:block>
879
+ <!-- Example: This FDIS is the result of the discussion between the IEC SC21A experts WG 3 during the meeting held in -->
880
+ <xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:tc-sc-officers-note"/>
881
+ </fo:block-container>
879
882
 
880
- </fo:flow>
881
- </fo:page-sequence> <!-- END: cover-FDIS -->
882
- </xsl:if>
883
+ </fo:flow>
884
+ </fo:page-sequence> <!-- END: cover-FDIS -->
885
+ </xsl:if>
886
+ </xsl:otherwise>
887
+ </xsl:choose>
883
888
  </xsl:template>
884
889
 
885
890
  <xsl:template name="inner-cover-page">
@@ -891,7 +896,7 @@
891
896
  <fo:block span="all">
892
897
  <fo:block-container border="0.5pt solid black" margin-top="7mm">
893
898
  <fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
894
- <fo:block-container margin-left="0mm" margin-right="0mm">
899
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
895
900
  <fo:table table-layout="fixed" width="100%">
896
901
  <fo:table-column column-width="20mm"/>
897
902
  <fo:table-column column-width="130mm"/>
@@ -1052,7 +1057,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1052
1057
  <fo:block> </fo:block>
1053
1058
  </fo:block>
1054
1059
  <fo:block-container font-size="30pt" font-weight="bold" height="56mm" margin-left="7.5mm" line-height="115%">
1055
- <fo:block-container margin-left="0mm">
1060
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
1056
1061
  <fo:block-container height="25mm" display-align="after">
1057
1062
  <xsl:if test="$stage_published = 'true'">
1058
1063
  <xsl:attribute name="width">100mm</xsl:attribute>
@@ -1090,7 +1095,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1090
1095
  </fo:block-container>
1091
1096
  </fo:block-container>
1092
1097
  <fo:block-container margin-left="8mm">
1093
- <fo:block-container margin-left="0mm">
1098
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
1094
1099
  <fo:block-container height="6mm">
1095
1100
  <fo:block text-align="right" margin-top="-4.5mm" margin-right="-1mm">
1096
1101
  <xsl:if test="//mn:metanorma/mn:bibdata/mn:ext/mn:accessibility-color-inside = 'true'">
@@ -1133,7 +1138,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1133
1138
  </fo:block-container>
1134
1139
  </fo:block-container>
1135
1140
  <fo:block-container margin-left="8.5mm">
1136
- <fo:block-container margin-left="0mm">
1141
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style">
1137
1142
  <fo:block font-size="12pt" font-weight="bold" color="{$color_blue}" margin-bottom="16pt" role="H1">
1138
1143
  <!-- Example:
1139
1144
  Electromagnetic compatibility (EMC) –
@@ -1831,7 +1836,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1831
1836
  </xsl:template>
1832
1837
 
1833
1838
  <xsl:template match="mn:annex/mn:fmt-title">
1834
- <fo:block font-size="12pt" text-align="center" margin-bottom="32pt" keep-with-next="always" role="H1">
1839
+ <xsl:call-template name="setNamedDestination"/>
1840
+ <fo:block xsl:use-attribute-sets="annex-title-style">
1841
+ <xsl:call-template name="refine_annex-title-style"/>
1842
+
1835
1843
  <xsl:apply-templates/>
1836
1844
  <xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
1837
1845
  </fo:block>
@@ -1839,7 +1847,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1839
1847
 
1840
1848
  <!-- Bibliography -->
1841
1849
  <xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
1842
- <fo:block font-size="12pt" text-align="center" margin-bottom="12pt" keep-with-next="always" role="H1">
1850
+ <fo:block xsl:use-attribute-sets="references-non-normative-title-style">
1843
1851
  <xsl:apply-templates/>
1844
1852
  </fo:block>
1845
1853
  </xsl:template>
@@ -1851,47 +1859,23 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1851
1859
 
1852
1860
  <xsl:template match="mn:fmt-title" name="title">
1853
1861
 
1854
- <xsl:variable name="level">
1855
- <xsl:call-template name="getLevel"/>
1856
- </xsl:variable>
1857
-
1858
- <xsl:variable name="font-size">
1862
+ <xsl:variable name="element-name">
1859
1863
  <xsl:choose>
1860
- <xsl:when test="ancestor::mn:sections and $level = 1">11pt</xsl:when>
1861
- <xsl:when test="ancestor::mn:annex and $level &lt;= 2">11pt</xsl:when>
1862
- <xsl:when test="ancestor::mn:references[not (preceding-sibling::mn:references)]">11pt</xsl:when>
1863
- <xsl:otherwise>10pt</xsl:otherwise>
1864
+ <xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
1865
+ <xsl:otherwise>fo:block</xsl:otherwise>
1864
1866
  </xsl:choose>
1865
1867
  </xsl:variable>
1866
1868
 
1867
- <xsl:choose>
1868
- <xsl:when test="../@inline-header = 'true'">
1869
- <fo:inline font-size="{$font-size}" font-weight="bold" role="H{$level}">
1870
- <xsl:apply-templates/>
1871
- </fo:inline>
1872
- </xsl:when>
1873
- <xsl:otherwise>
1874
- <fo:block font-size="{$font-size}" font-weight="bold" keep-with-next="always" role="H{$level}">
1875
- <xsl:attribute name="space-before"> <!-- margin-top -->
1876
- <xsl:choose>
1877
- <xsl:when test="$level = 2 and ancestor::mn:annex">22pt</xsl:when>
1878
- <xsl:when test="$level &gt;= 2 and ancestor::mn:annex">5pt</xsl:when>
1879
- <xsl:when test="$level = '' or $level = 1">18pt</xsl:when>
1880
- <xsl:otherwise>10pt</xsl:otherwise>
1881
- </xsl:choose>
1882
- </xsl:attribute>
1883
- <xsl:attribute name="margin-bottom">
1884
- <xsl:choose>
1885
- <xsl:when test="$level = '' or $level = 1">14pt</xsl:when>
1886
- <xsl:when test="$level = 2 and ancestor::mn:annex">14pt</xsl:when>
1887
- <xsl:otherwise>5pt</xsl:otherwise>
1888
- </xsl:choose>
1889
- </xsl:attribute>
1890
- <xsl:apply-templates/>
1891
- <xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
1892
- </fo:block>
1893
- </xsl:otherwise>
1894
- </xsl:choose>
1869
+ <xsl:variable name="title_styles">
1870
+ <styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"/></styles>
1871
+ </xsl:variable>
1872
+
1873
+ <xsl:element name="{$element-name}">
1874
+ <xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
1875
+
1876
+ <xsl:apply-templates/>
1877
+ <xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
1878
+ </xsl:element>
1895
1879
  </xsl:template>
1896
1880
  <!-- ====== -->
1897
1881
  <!-- ====== -->
@@ -1910,37 +1894,16 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
1910
1894
  </xsl:choose>
1911
1895
  </xsl:variable>
1912
1896
 
1897
+ <xsl:variable name="p_styles">
1898
+ <styles xsl:use-attribute-sets="p-style">
1899
+ <xsl:call-template name="refine_p-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template>
1900
+ </styles>
1901
+ </xsl:variable>
1902
+
1913
1903
  <xsl:choose>
1914
1904
  <xsl:when test="$element-name = 'fo:block'">
1915
1905
  <xsl:element name="{$element-name}">
1916
-
1917
- <xsl:call-template name="setBlockAttributes">
1918
- <xsl:with-param name="text_align_default">justify</xsl:with-param>
1919
- </xsl:call-template>
1920
-
1921
- <xsl:attribute name="margin-top">5pt</xsl:attribute>
1922
- <xsl:if test="ancestor::mn:fmt-definition">
1923
- <xsl:attribute name="margin-top">1pt</xsl:attribute>
1924
- </xsl:if>
1925
- <xsl:if test="ancestor::mn:dl">
1926
- <xsl:attribute name="margin-top">0pt</xsl:attribute>
1927
- </xsl:if>
1928
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1929
- <xsl:if test="local-name(following-sibling::*[1])= 'table'">
1930
- <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1931
- </xsl:if>
1932
- <xsl:if test="ancestor::mn:admonition">
1933
- <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1934
- </xsl:if>
1935
- <xsl:if test="ancestor::mn:admonition and not(following-sibling::mn:p)">
1936
- <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1937
- </xsl:if>
1938
- <xsl:if test="ancestor::mn:dl">
1939
- <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
1940
- </xsl:if>
1941
- <xsl:if test="@id">
1942
- <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
1943
- </xsl:if>
1906
+ <xsl:copy-of select="xalan:nodeset($p_styles)/styles/@*"/>
1944
1907
 
1945
1908
  <xsl:apply-templates select="@language"/>
1946
1909
  <xsl:apply-templates>
@@ -2027,6 +1990,11 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
2027
1990
  <!-- =================== -->
2028
1991
 
2029
1992
  <xsl:template name="insertHeaderFooter">
1993
+ <xsl:call-template name="insertHeader"/>
1994
+ <xsl:call-template name="insertFooter"/>
1995
+ </xsl:template>
1996
+
1997
+ <xsl:template name="insertHeader">
2030
1998
  <fo:static-content flow-name="header-even" role="artifact">
2031
1999
  <fo:block-container height="25mm" display-align="after">
2032
2000
  <fo:table table-layout="fixed" width="100%">
@@ -2076,6 +2044,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
2076
2044
  </fo:static-content>
2077
2045
  </xsl:template>
2078
2046
 
2047
+ <xsl:template name="insertFooter">
2048
+ </xsl:template>
2049
+
2079
2050
  <xsl:template name="back-page">
2080
2051
  <xsl:if test="$stage_published = 'true'">
2081
2052
  <fo:page-sequence master-reference="blank-page">
@@ -2087,7 +2058,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
2087
2058
  <fo:page-sequence master-reference="back-page">
2088
2059
  <fo:flow flow-name="xsl-region-body">
2089
2060
  <fo:block-container margin-left="20mm" margin-top="19mm">
2090
- <fo:block-container margin-left="0mm" margin-top="0mm">
2061
+ <fo:block-container xsl:use-attribute-sets="reset-margins-style" margin-top="0mm">
2091
2062
  <fo:block font-size="11pt" color="{$color_blue}" margin-bottom="12pt" line-height="150%">
2092
2063
  <fo:block-container width="42mm">
2093
2064
  <fo:block>
@@ -4281,6 +4252,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
4281
4252
  </xsl:element>
4282
4253
  </xsl:template>
4283
4254
 
4255
+ <!-- show sourcecode's name 'before' or 'after' source code -->
4256
+ <xsl:variable name="sourcecode-name-position"><xsl:text>after</xsl:text>
4257
+ </xsl:variable>
4258
+
4284
4259
  <xsl:template match="mn:sourcecode" name="sourcecode">
4285
4260
 
4286
4261
  <xsl:variable name="sourcecode_attributes">
@@ -4304,7 +4279,12 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
4304
4279
 
4305
4280
  <xsl:call-template name="refine_sourcecode-container-style"/>
4306
4281
 
4307
- <fo:block-container margin-left="0mm" role="SKIP">
4282
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
4283
+
4284
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
4285
+ <xsl:if test="$sourcecode-name-position = 'before'">
4286
+ <xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name BEFORE content -->
4287
+ </xsl:if>
4308
4288
 
4309
4289
  <fo:block xsl:use-attribute-sets="sourcecode-style">
4310
4290
 
@@ -4326,7 +4306,16 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
4326
4306
  </fo:block>
4327
4307
 
4328
4308
  <xsl:apply-templates select="mn:dl"/> <!-- Key table -->
4329
- <xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name AFTER content -->
4309
+
4310
+ <!-- <xsl:choose>
4311
+ <xsl:when test="$namespace = 'rsd'"></xsl:when>
4312
+ <xsl:otherwise>
4313
+ <xsl:apply-templates select="mn:fmt-name" /> --><!-- show sourcecode's name AFTER content -->
4314
+ <!-- </xsl:otherwise>
4315
+ </xsl:choose> -->
4316
+ <xsl:if test="$sourcecode-name-position = 'after'">
4317
+ <xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name AFTER content -->
4318
+ </xsl:if>
4330
4319
 
4331
4320
  </fo:block-container>
4332
4321
  </fo:block-container>
@@ -5583,94 +5572,88 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5583
5572
  <xsl:template name="refine_term-style">
5584
5573
  </xsl:template>
5585
5574
 
5586
- <xsl:attribute-set name="term-name-style">
5575
+ <xsl:attribute-set name="term-number-style">
5587
5576
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5588
5577
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5589
5578
  </xsl:attribute-set> <!-- term-name-style -->
5590
5579
 
5591
- <xsl:template name="refine_term-name-style">
5592
- </xsl:template>
5593
-
5594
- <xsl:attribute-set name="preferred-style">
5595
- </xsl:attribute-set> <!-- preferred-style -->
5596
-
5597
- <xsl:template name="refine_preferred-style">
5580
+ <xsl:template name="refine_term-number-style">
5598
5581
  </xsl:template>
5599
5582
 
5600
- <xsl:attribute-set name="preferred-block-style">
5583
+ <xsl:attribute-set name="term-preferred-block-style">
5601
5584
  <xsl:attribute name="line-height">1.1</xsl:attribute>
5602
5585
  <xsl:attribute name="space-before">14pt</xsl:attribute>
5603
5586
  </xsl:attribute-set> <!-- preferred-block-style -->
5604
5587
 
5605
- <xsl:template name="refine_preferred-block-style">
5588
+ <xsl:template name="refine_term-preferred-block-style">
5606
5589
  <xsl:if test="preceding-sibling::*[1][self::mn:fmt-preferred]">
5607
5590
  <xsl:attribute name="space-before">1pt</xsl:attribute>
5608
5591
  </xsl:if>
5609
5592
  </xsl:template>
5610
5593
 
5611
- <xsl:attribute-set name="preferred-term-style">
5594
+ <xsl:attribute-set name="term-preferred-style">
5612
5595
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5613
5596
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5614
5597
  </xsl:attribute-set> <!-- preferred-term-style -->
5615
5598
 
5616
- <xsl:template name="refine_preferred-term-style">
5599
+ <xsl:template name="refine_term-preferred-style">
5617
5600
  <xsl:if test="mn:strong">
5618
5601
  <xsl:attribute name="font-weight">normal</xsl:attribute>
5619
5602
  </xsl:if>
5620
5603
  </xsl:template>
5621
5604
 
5622
- <xsl:attribute-set name="domain-style">
5623
- </xsl:attribute-set> <!-- domain-style -->
5605
+ <xsl:attribute-set name="term-domain-style">
5606
+ </xsl:attribute-set> <!-- term-domain-style -->
5624
5607
 
5625
- <xsl:template name="refine_domain-style">
5608
+ <xsl:template name="refine_term-domain-style">
5626
5609
  </xsl:template>
5627
5610
 
5628
- <xsl:attribute-set name="admitted-style">
5629
- </xsl:attribute-set> <!-- admitted-style -->
5611
+ <xsl:attribute-set name="term-admitted-style">
5612
+ </xsl:attribute-set> <!-- term-admitted-style -->
5630
5613
 
5631
- <xsl:template name="refine_admitted-style">
5614
+ <xsl:template name="refine_term-admitted-style">
5632
5615
  </xsl:template>
5633
5616
 
5634
- <xsl:attribute-set name="deprecates-style">
5617
+ <xsl:attribute-set name="term-deprecates-style">
5635
5618
  <xsl:attribute name="font-size">8pt</xsl:attribute>
5636
5619
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
5637
5620
  <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
5638
- </xsl:attribute-set> <!-- deprecates-style -->
5621
+ </xsl:attribute-set> <!-- term-deprecates-style -->
5639
5622
 
5640
- <xsl:template name="refine_deprecates-style">
5623
+ <xsl:template name="refine_term-deprecates-style">
5641
5624
  </xsl:template>
5642
5625
 
5643
- <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
5626
+ <xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
5644
5627
  </xsl:attribute-set>
5645
5628
 
5646
- <xsl:template name="refine_related-block-style">
5629
+ <xsl:template name="refine_term-related-block-style">
5647
5630
  </xsl:template>
5648
5631
 
5649
- <xsl:attribute-set name="definition-style">
5632
+ <xsl:attribute-set name="term-definition-style">
5650
5633
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
5651
- </xsl:attribute-set> <!-- definition-style -->
5634
+ </xsl:attribute-set> <!-- term-definition-style -->
5652
5635
 
5653
- <xsl:template name="refine_definition-style">
5636
+ <xsl:template name="refine_term-definition-style">
5654
5637
  </xsl:template>
5655
5638
 
5656
- <xsl:attribute-set name="termsource-style">
5639
+ <xsl:attribute-set name="term-termsource-style">
5657
5640
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
5658
5641
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
5659
- </xsl:attribute-set> <!-- termsource-style -->
5642
+ </xsl:attribute-set> <!-- term-termsource-style -->
5660
5643
 
5661
- <xsl:template name="refine_termsource-style">
5662
- </xsl:template> <!-- refine_termsource-style -->
5644
+ <xsl:template name="refine_term-termsource-style">
5645
+ </xsl:template> <!-- refine_term-termsource-style -->
5663
5646
 
5664
- <xsl:attribute-set name="termsource-text-style">
5665
- </xsl:attribute-set> <!-- termsource-text-style -->
5647
+ <xsl:attribute-set name="term-termsource-text-style">
5648
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
5666
5649
 
5667
- <xsl:template name="refine_termsource-text-style">
5650
+ <xsl:template name="refine_term-termsource-text-style">
5668
5651
  </xsl:template>
5669
5652
 
5670
- <xsl:attribute-set name="origin-style">
5671
- </xsl:attribute-set> <!-- origin-style -->
5653
+ <xsl:attribute-set name="term-origin-style">
5654
+ </xsl:attribute-set> <!-- term-origin-style -->
5672
5655
 
5673
- <xsl:template name="refine_origin-style">
5656
+ <xsl:template name="refine_term-origin-style">
5674
5657
  </xsl:template>
5675
5658
 
5676
5659
  <!-- ====== -->
@@ -5714,9 +5697,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5714
5697
  <!-- modification -->
5715
5698
  <!-- ====== -->
5716
5699
  <xsl:template match="mn:fmt-termsource" name="termsource">
5717
- <fo:block xsl:use-attribute-sets="termsource-style">
5700
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
5718
5701
 
5719
- <xsl:call-template name="refine_termsource-style"/>
5702
+ <xsl:call-template name="refine_term-termsource-style"/>
5720
5703
 
5721
5704
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5722
5705
  <xsl:variable name="termsource_text">
@@ -5764,8 +5747,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5764
5747
 
5765
5748
  <!-- text SOURCE: -->
5766
5749
  <xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
5767
- <fo:inline xsl:use-attribute-sets="termsource-text-style">
5768
- <xsl:call-template name="refine_termsource-text-style"/>
5750
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
5751
+ <xsl:call-template name="refine_term-termsource-text-style"/>
5769
5752
  <xsl:value-of select="."/>
5770
5753
  </fo:inline>
5771
5754
  </xsl:template>
@@ -5777,8 +5760,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5777
5760
  <xsl:if test="normalize-space(@citeas) = ''">
5778
5761
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
5779
5762
  </xsl:if>
5780
- <fo:inline xsl:use-attribute-sets="origin-style">
5781
- <xsl:call-template name="refine_origin-style"/>
5763
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
5764
+ <xsl:call-template name="refine_term-origin-style"/>
5782
5765
  <xsl:apply-templates/>
5783
5766
  </fo:inline>
5784
5767
  </fo:basic-link>
@@ -5826,14 +5809,14 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5826
5809
  <xsl:variable name="levelTerm">
5827
5810
  <xsl:call-template name="getLevelTermName"/>
5828
5811
  </xsl:variable>
5829
- <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
5812
+ <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
5830
5813
 
5831
- <xsl:call-template name="refine_preferred-block-style"/>
5814
+ <xsl:call-template name="refine_term-preferred-block-style"/>
5832
5815
 
5833
5816
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
5834
5817
 
5835
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
5836
- <xsl:call-template name="refine_term-name-style"/>
5818
+ <fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
5819
+ <xsl:call-template name="refine_term-number-style"/>
5837
5820
 
5838
5821
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
5839
5822
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -5843,8 +5826,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5843
5826
  </fo:block>
5844
5827
  </xsl:if>
5845
5828
 
5846
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
5847
- <xsl:call-template name="refine_preferred-term-style"/>
5829
+ <fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
5830
+ <xsl:call-template name="refine_term-preferred-style"/>
5848
5831
 
5849
5832
  <xsl:apply-templates/>
5850
5833
  </fo:block>
@@ -5864,15 +5847,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5864
5847
  <xsl:template match="mn:domain"/>
5865
5848
 
5866
5849
  <xsl:template match="mn:fmt-admitted">
5867
- <fo:block xsl:use-attribute-sets="admitted-style">
5868
- <xsl:call-template name="refine_admitted-style"/>
5850
+ <fo:block xsl:use-attribute-sets="term-admitted-style">
5851
+ <xsl:call-template name="refine_term-admitted-style"/>
5869
5852
  <xsl:apply-templates/>
5870
5853
  </fo:block>
5871
5854
  </xsl:template>
5872
5855
 
5873
5856
  <xsl:template match="mn:fmt-deprecates">
5874
- <fo:block xsl:use-attribute-sets="deprecates-style">
5875
- <xsl:call-template name="refine_deprecates-style"/>
5857
+ <fo:block xsl:use-attribute-sets="term-deprecates-style">
5858
+ <xsl:call-template name="refine_term-deprecates-style"/>
5876
5859
  <xsl:apply-templates/>
5877
5860
  </fo:block>
5878
5861
  </xsl:template>
@@ -5885,8 +5868,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5885
5868
  <!-- End Preferred, admitted, deprecated -->
5886
5869
 
5887
5870
  <xsl:template match="mn:fmt-related">
5888
- <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
5889
- <xsl:call-template name="refine_related-block-style"/>
5871
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
5872
+ <xsl:call-template name="refine_term-related-block-style"/>
5890
5873
  <xsl:apply-templates/>
5891
5874
  </fo:block>
5892
5875
  </xsl:template>
@@ -5900,8 +5883,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5900
5883
  <!-- definition -->
5901
5884
  <!-- ========== -->
5902
5885
  <xsl:template match="mn:fmt-definition">
5903
- <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
5904
- <xsl:call-template name="refine_definition-style"/>
5886
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
5887
+ <xsl:call-template name="refine_term-definition-style"/>
5905
5888
  <xsl:apply-templates/>
5906
5889
  </fo:block>
5907
5890
  </xsl:template>
@@ -10216,6 +10199,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
10216
10199
  <!-- image -->
10217
10200
  <!-- ====== -->
10218
10201
 
10202
+ <!-- show figure's name 'before' or 'after' image -->
10203
+ <xsl:variable name="figure-name-position"><xsl:text>after</xsl:text>
10204
+ </xsl:variable>
10205
+
10219
10206
  <xsl:template match="mn:figure" name="figure">
10220
10207
  <xsl:variable name="isAdded" select="@added"/>
10221
10208
  <xsl:variable name="isDeleted" select="@deleted"/>
@@ -10228,6 +10215,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
10228
10215
  <xsl:with-param name="isDeleted" select="$isDeleted"/>
10229
10216
  </xsl:call-template>
10230
10217
 
10218
+ <xsl:if test="$figure-name-position = 'before'"> <!-- show figure's name BEFORE image -->
10219
+ <xsl:apply-templates select="mn:fmt-name"/>
10220
+ </xsl:if>
10221
+
10231
10222
  <!-- Example: Dimensions in millimeters -->
10232
10223
  <xsl:apply-templates select="mn:note[@type = 'units']"/>
10233
10224
 
@@ -10248,7 +10239,16 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
10248
10239
  <xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
10249
10240
  <xsl:call-template name="showFigureKey"/>
10250
10241
  </xsl:if>
10251
- <xsl:apply-templates select="mn:fmt-name"/> <!-- show figure's name AFTER image -->
10242
+
10243
+ <!-- <xsl:choose>
10244
+ <xsl:when test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'rsd'"></xsl:when>
10245
+ <xsl:otherwise>
10246
+ <xsl:apply-templates select="mn:fmt-name" /> --> <!-- show figure's name AFTER image -->
10247
+ <!-- </xsl:otherwise>
10248
+ </xsl:choose> -->
10249
+ <xsl:if test="$figure-name-position = 'after'">
10250
+ <xsl:apply-templates select="mn:fmt-name"/> <!-- show figure's name AFTER image -->
10251
+ </xsl:if>
10252
10252
 
10253
10253
  </fo:block-container>
10254
10254
  </xsl:template>
@@ -12340,10 +12340,14 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
12340
12340
  <!-- ================ -->
12341
12341
 
12342
12342
  <xsl:attribute-set name="references-non-normative-title-style">
12343
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
12344
+ <xsl:attribute name="text-align">center</xsl:attribute>
12345
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
12346
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
12347
+ <xsl:attribute name="role">H1</xsl:attribute>
12343
12348
  </xsl:attribute-set>
12344
12349
 
12345
12350
  <xsl:template name="refine_references-non-normative-title-style">
12346
-
12347
12351
  </xsl:template>
12348
12352
 
12349
12353
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -14455,9 +14459,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
14455
14459
  <!-- ===================================== -->
14456
14460
 
14457
14461
  <xsl:attribute-set name="annex-title-style">
14458
- </xsl:attribute-set>
14462
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
14463
+ <xsl:attribute name="text-align">center</xsl:attribute>
14464
+ <xsl:attribute name="margin-bottom">32pt</xsl:attribute>
14465
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14466
+ <xsl:attribute name="role">H1</xsl:attribute>
14467
+ </xsl:attribute-set> <!-- annex-title-style -->
14459
14468
 
14460
14469
  <xsl:template name="refine_annex-title-style">
14470
+ <!-- <xsl:call-template name="setIDforNamedDestination"/> -->
14461
14471
  </xsl:template>
14462
14472
 
14463
14473
  <xsl:attribute-set name="p-zzSTDTitle1-style">
@@ -14466,6 +14476,79 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
14466
14476
  <xsl:template name="refine_p-zzSTDTitle1-style">
14467
14477
  </xsl:template>
14468
14478
 
14479
+ <xsl:attribute-set name="p-style">
14480
+ <xsl:attribute name="margin-top">5pt</xsl:attribute>
14481
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
14482
+ </xsl:attribute-set> <!-- p-style -->
14483
+
14484
+ <xsl:template name="refine_p-style">
14485
+ <xsl:param name="element-name"/>
14486
+ <xsl:param name="margin"/>
14487
+ <xsl:call-template name="setBlockAttributes">
14488
+ <xsl:with-param name="text_align_default">justify</xsl:with-param>
14489
+ </xsl:call-template>
14490
+
14491
+ <xsl:if test="ancestor::mn:fmt-definition">
14492
+ <xsl:attribute name="margin-top">1pt</xsl:attribute>
14493
+ </xsl:if>
14494
+ <xsl:if test="ancestor::mn:dl">
14495
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
14496
+ </xsl:if>
14497
+
14498
+ <xsl:if test="local-name(following-sibling::*[1])= 'table'">
14499
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
14500
+ </xsl:if>
14501
+ <xsl:if test="ancestor::mn:admonition">
14502
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
14503
+ </xsl:if>
14504
+ <xsl:if test="ancestor::mn:admonition and not(following-sibling::mn:p)">
14505
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
14506
+ </xsl:if>
14507
+ <xsl:if test="ancestor::mn:dl">
14508
+ <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
14509
+ </xsl:if>
14510
+ <xsl:copy-of select="@id"/>
14511
+ <!-- $namespace = 'iec' -->
14512
+
14513
+ </xsl:template> <!-- refine_p-style -->
14514
+
14515
+ <xsl:attribute-set name="title-style">
14516
+ <!-- Note: font-size for level 1 title -->
14517
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
14518
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
14519
+ <xsl:attribute name="space-before">18pt</xsl:attribute>
14520
+ <xsl:attribute name="margin-bottom">14pt</xsl:attribute>
14521
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
14522
+ </xsl:attribute-set> <!-- title-style -->
14523
+
14524
+ <xsl:template name="refine_title-style">
14525
+ <xsl:param name="element-name"/>
14526
+ <xsl:variable name="level">
14527
+ <xsl:call-template name="getLevel"/>
14528
+ </xsl:variable>
14529
+ <xsl:if test="(ancestor::mn:sections and $level = 1) or (ancestor::mn:annex and $level &lt;= 2) or (ancestor::mn:references[not (preceding-sibling::mn:references)])">
14530
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
14531
+ </xsl:if>
14532
+ <xsl:if test="$level &gt;= 2">
14533
+ <xsl:attribute name="space-before">10pt</xsl:attribute>
14534
+ <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
14535
+ </xsl:if>
14536
+ <xsl:if test="$level = 2">
14537
+ <xsl:if test="ancestor::mn:annex">
14538
+ <xsl:attribute name="space-before">22pt</xsl:attribute>
14539
+ <xsl:attribute name="margin-bottom">14pt</xsl:attribute>
14540
+ </xsl:if>
14541
+ </xsl:if>
14542
+ <xsl:if test="$level &gt; 2">
14543
+ <xsl:if test="ancestor::mn:annex">
14544
+ <xsl:attribute name="space-before">5pt</xsl:attribute>
14545
+ </xsl:if>
14546
+ </xsl:if>
14547
+
14548
+ <!-- $namespace = 'iec' -->
14549
+ <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
14550
+ </xsl:template> <!-- refine_title-style -->
14551
+
14469
14552
  <xsl:template name="processPrefaceSectionsDefault">
14470
14553
  <xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
14471
14554
  <xsl:sort select="@displayorder" data-type="number"/>
@@ -14804,6 +14887,12 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
14804
14887
  </xsl:choose>
14805
14888
  </xsl:template>
14806
14889
 
14890
+ <xsl:attribute-set name="reset-margins-style">
14891
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
14892
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
14893
+ <xsl:attribute name="role">SKIP</xsl:attribute>
14894
+ </xsl:attribute-set>
14895
+
14807
14896
  <xsl:attribute-set name="clause-style">
14808
14897
 
14809
14898
  </xsl:attribute-set>
@@ -15839,8 +15928,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
15839
15928
 
15840
15929
  <xsl:template name="setTextAlignment">
15841
15930
  <xsl:param name="default">left</xsl:param>
15931
+ <xsl:param name="skip_default">false</xsl:param>
15842
15932
  <xsl:variable name="align" select="normalize-space(@align)"/>
15843
- <xsl:attribute name="text-align">
15933
+ <xsl:variable name="text_align">
15844
15934
  <xsl:choose>
15845
15935
  <xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
15846
15936
  <xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
@@ -15848,9 +15938,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
15848
15938
  <xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
15849
15939
  <xsl:when test="ancestor::mn:td/@align"><xsl:value-of select="ancestor::mn:td/@align"/></xsl:when>
15850
15940
  <xsl:when test="ancestor::mn:th/@align"><xsl:value-of select="ancestor::mn:th/@align"/></xsl:when>
15941
+ <xsl:when test="$skip_default = 'true'"/>
15851
15942
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
15852
15943
  </xsl:choose>
15853
- </xsl:attribute>
15944
+ </xsl:variable>
15945
+ <xsl:if test="normalize-space($text_align) != ''">
15946
+ <xsl:attribute name="text-align"><xsl:value-of select="$text_align"/></xsl:attribute>
15947
+ </xsl:if>
15854
15948
  <xsl:if test="$align = 'indent'">
15855
15949
  <xsl:attribute name="margin-left">7mm</xsl:attribute>
15856
15950
  </xsl:if>
@@ -15858,8 +15952,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
15858
15952
 
15859
15953
  <xsl:template name="setBlockAttributes">
15860
15954
  <xsl:param name="text_align_default">left</xsl:param>
15955
+ <xsl:param name="skip_text_align_default">false</xsl:param>
15861
15956
  <xsl:call-template name="setTextAlignment">
15862
15957
  <xsl:with-param name="default" select="$text_align_default"/>
15958
+ <xsl:with-param name="skip_default" select="$skip_text_align_default"/>
15863
15959
  </xsl:call-template>
15864
15960
  <xsl:call-template name="setKeepAttributes"/>
15865
15961
  <xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
@@ -15902,6 +15998,20 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
15902
15998
  </fo:block-container>
15903
15999
  </xsl:template>
15904
16000
 
16001
+ <!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
16002
+ <xsl:template name="insertCoverPageFullImage">
16003
+ <xsl:param name="name">coverpage-image</xsl:param>
16004
+ <xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
16005
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
16006
+ <fo:flow flow-name="xsl-region-body">
16007
+ <xsl:call-template name="insertBackgroundPageImage">
16008
+ <xsl:with-param name="number" select="position()"/>
16009
+ </xsl:call-template>
16010
+ </fo:flow>
16011
+ </fo:page-sequence>
16012
+ </xsl:for-each>
16013
+ </xsl:template>
16014
+
15905
16015
  <xsl:template name="insertPageImage">
15906
16016
  <xsl:param name="svg_content_height" select="$pageHeight"/>
15907
16017
  <xsl:param name="bitmap_width" select="$pageWidth"/>