metanorma-iec 2.7.5 → 2.7.7

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,696 +295,711 @@
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_)"/>
308
-
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_)"/>
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_)"/>
318
321
 
319
- <!-- For 'Published' documents insert two cover pages -->
320
- <xsl:if test="$stage_published = 'true'">
322
+ <!-- For 'Published' documents insert two cover pages -->
323
+ <xsl:if test="$stage_published = 'true'">
321
324
 
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 -->
340
-
341
- <!-- 2nd Cover Page -->
342
- <fo:page-sequence master-reference="cover_2nd" force-page-count="no-force" font-size="8pt">
343
- <fo:flow flow-name="xsl-region-body">
344
- <fo:block span="all">
345
- <fo:block-container border="0.5pt solid black" margin-top="7mm">
346
- <fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
347
- <fo:block-container margin-left="0mm" margin-right="0mm">
348
- <fo:table table-layout="fixed" width="100%">
349
- <fo:table-column column-width="20mm"/>
350
- <fo:table-column column-width="130mm"/>
351
- <fo:table-body>
352
- <fo:table-row>
353
- <fo:table-cell>
354
- <fo:block>
355
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
356
- </fo:block>
357
- </fo:table-cell>
358
- <fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
359
- <fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
360
- <fo:block margin-bottom="10pt">
361
- <!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
362
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-year')]"/>
363
- </fo:block>
364
- </fo:table-cell>
365
- </fo:table-row>
366
- </fo:table-body>
367
- </fo:table>
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">
368
336
  <fo:block>
369
- <fo:block margin-bottom="8pt" text-align="justify">
370
- <!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
371
- or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
372
- either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
373
- copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
374
- your local IEC member National Committee for further information. -->
375
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
376
- </fo:block>
377
- <!-- Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
378
- ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
379
- et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
380
- questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
381
- les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence. -->
382
- <fo:block margin-bottom="8pt" text-align="justify">
383
- <xsl:apply-templates select="$updated_document2_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
384
- </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 -->
385
343
 
386
- <xsl:variable name="telpos" select="count($updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
387
- <fo:table table-layout="fixed" width="100%">
388
- <fo:table-column column-width="59mm"/>
389
- <fo:table-column column-width="90mm"/>
390
- <fo:table-body>
391
- <fo:table-row>
392
- <fo:table-cell>
393
- <fo:block>
394
- <!-- Example: IEC Central Office
395
- 3, rue de Varembé
396
- CH-1211 Geneva 20
397
- Switzerland -->
398
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-name')]" mode="coverpage"/>
399
- <xsl:choose>
400
- <xsl:when test="$telpos != 0">
401
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() &lt; $telpos]" mode="coverpage"/>
402
- </xsl:when>
403
- <xsl:otherwise>
404
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
405
- </xsl:otherwise>
406
- </xsl:choose>
407
- </fo:block>
408
- </fo:table-cell>
409
- <fo:table-cell>
410
- <fo:block>
411
- <!-- Example: Tel.: +41 22 919 02 11
412
- Fax: +41 22 919 0
413
- info@iec.ch
414
- www.iec.ch -->
415
- <xsl:choose>
416
- <xsl:when test="$telpos != 0">
417
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() &gt; $telpos]" mode="coverpage"/>
418
- </xsl:when>
419
- <xsl:otherwise> </xsl:otherwise>
420
- </xsl:choose>
421
- </fo:block>
422
- </fo:table-cell>
423
- </fo:table-row>
424
- </fo:table-body>
425
- </fo:table>
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>
426
349
 
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>
427
368
  </fo:block>
428
- </fo:block-container>
429
- </fo:block-container>
430
- </fo:block-container>
431
- </fo:block>
432
369
 
433
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement"/> <!-- //mn:clause[not(@id) or @id != 'boilerplate-cenelec-attention'] -->
434
- <fo:block span="all" border-bottom="0.5pt solid black"/>
435
- <!-- About the IEC
436
- The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
437
- International Standards for all electrical, electronic and related technologies.
438
- About IEC publications
439
- The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
440
- latest edition, a corrigenda or an amendment might have been published.
441
- ...
442
- -->
443
- <xsl:if test="$updated_document2_boilerplate/mn:boilerplate/mn:feedback-statement">
444
- <xsl:apply-templates select="$updated_document2_boilerplate/mn:boilerplate/mn:feedback-statement"/>
445
- <fo:block span="all"/>
446
- </xsl:if>
447
-
448
- </fo:flow>
449
- </fo:page-sequence> <!-- END: 2nd Cover Page -->
450
- </xsl:if>
451
- <xsl:variable name="lang_second" select="(//mn:metanorma)[2]/mn:bibdata/mn:language[@current = 'true']"/>
452
- <!-- For 'Published' documents insert 3rd Cover Page
453
- OR insert first Cover Page for FDIS -->
454
- <xsl:if test="$stage_published = 'true' or $stage-abbreviation = 'FDIS'">
455
- <fo:page-sequence master-reference="cover" force-page-count="no-force">
456
- <fo:flow flow-name="xsl-region-body">
457
- <xsl:call-template name="insertCoverPart1"/>
458
- <fo:block-container absolute-position="fixed" left="26.5mm" top="214mm" width="163mm">
459
- <fo:block-container height="32mm" display-align="after">
460
- <fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
461
- <fo:block-container width="40mm">
462
- <fo:block>
370
+ <xsl:variable name="IEC_lang_second">
463
371
  <xsl:call-template name="getLocalizedString">
464
372
  <xsl:with-param name="key">IEC</xsl:with-param>
465
- <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>
466
375
  </xsl:call-template>
467
- </fo:block>
376
+ </xsl:variable>
377
+
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>
386
+ </fo:block>
387
+ </xsl:if>
468
388
  </fo:block-container>
469
- </fo:block>
470
389
 
471
- <xsl:variable name="IEC_lang_second">
472
- <xsl:call-template name="getLocalizedString">
473
- <xsl:with-param name="key">IEC</xsl:with-param>
474
- <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
475
- <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
476
- </xsl:call-template>
477
- </xsl:variable>
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>
478
409
 
479
- <xsl:if test="normalize-space($IEC_lang_second) != ''">
480
- <fo:block font-size="9pt" line-height="150%" margin-top="8pt">
481
- <fo:block-container width="40mm">
482
- <fo:block>
483
- <!-- 'COMMISSION ELECTROTECHNIQUE INTERNATIONALE' -->
484
- <xsl:value-of select="$IEC_lang_second"/>
485
- </fo:block>
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 margin-left="0mm">
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>
453
+ </xsl:if>
454
+ </fo:block-container>
486
455
  </fo:block-container>
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>
487
464
  </fo:block>
488
- </xsl:if>
489
- </fo:block-container>
465
+ </fo:block-container>
466
+ </fo:flow>
467
+ </fo:page-sequence> <!-- END: cover -->
468
+ </xsl:if>
490
469
 
491
- <xsl:variable name="price_code_value" select="//mn:metanorma/mn:bibdata/mn:ext/mn:price-code"/>
492
- <fo:table table-layout="fixed" width="102%" margin-top="-9mm" margin-bottom="2mm" id="__internal_layout__price_code">
493
- <fo:table-column column-width="148mm"/>
494
- <fo:table-column column-width="16mm"/>
495
- <fo:table-body>
496
- <fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
497
- <fo:table-cell font-size="8pt" text-align="right" display-align="center">
498
- <fo:block padding-top="1mm">
499
- <xsl:if test="normalize-space($price_code_value) != ''">
500
- <fo:block color="{$color_blue}" margin-bottom="3pt">
501
- <!-- PRICE CODE -->
502
- <xsl:variable name="price_code">
503
- <xsl:call-template name="getLocalizedString">
504
- <xsl:with-param name="key">price-code</xsl:with-param>
505
- <xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
506
- </xsl:call-template>
507
- </xsl:variable>
508
- <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
509
- </fo:block>
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">
510
477
 
511
- <xsl:variable name="price_code_lang_second">
512
- <xsl:call-template name="getLocalizedString">
513
- <xsl:with-param name="key">price-code</xsl:with-param>
514
- <xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
515
- <xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
516
- </xsl:call-template>
517
- </xsl:variable>
518
- <xsl:if test="normalize-space($price_code_lang_second) != ''">
519
- <fo:block>
520
- <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code_lang_second))"/>
521
- </fo:block>
522
- </xsl:if>
523
- </xsl:if>
524
- </fo:block>
525
- </fo:table-cell>
526
- <fo:table-cell font-size="25pt" font-weight="bold" color="{$color_gray}" text-align="right" display-align="center">
527
- <fo:block padding-top="1mm"><xsl:value-of select="$price_code_value"/></fo:block>
528
- </fo:table-cell>
529
- </fo:table-row>
530
- </fo:table-body>
531
- </fo:table>
532
- <fo:block font-size="8pt" text-align-last="justify">
533
- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:ext/mn:ics">
534
- <xsl:if test="position() = 1">ICS </xsl:if>
535
- <xsl:value-of select="mn:code"/>
536
- <xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
537
- </xsl:for-each>
538
- <xsl:text> </xsl:text>
539
- <fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
540
- <xsl:text> </xsl:text>
541
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']">
542
- <!-- Example: ISBN 978-2-8322-1532-6 -->
543
- <xsl:text>ISBN </xsl:text>
544
- <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']"/>
478
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[not(@id)]"/>
479
+
480
+ </fo:block>
481
+ </fo:block-container>
482
+ </fo:static-content>
483
+ <fo:flow flow-name="xsl-region-body">
484
+
485
+ <fo:block text-align-last="justify" margin-left="-0.5mm">
486
+ <xsl:call-template name="outputLogo"/>
487
+
488
+ <xsl:if test="$stage-abbreviation = 'FDIS'">
489
+ <fo:inline font-size="8pt" padding-left="0.5mm" color="{$color_blue}">®</fo:inline>
545
490
  </xsl:if>
546
- </fo:inline>
547
- </fo:block>
548
- <fo:block-container margin-left="1.5mm">
549
- <fo:block-container margin-left="0mm">
550
- <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">
551
- <fo:block margin-left="1mm">Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
552
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
553
- <fo:block margin-left="1mm" margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
554
- </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 margin-left="0mm">
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>
555
574
  </fo:block-container>
556
575
  </fo:block-container>
557
- </fo:block-container>
558
- <fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
559
- <xsl:if test="count((//mn:metanorma)[1]/mn:bibdata/mn:copyright) = 1">
560
- <fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
561
- <xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
562
- <fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
563
- </xsl:if>
564
- </xsl:if>
565
- </fo:block>
566
- </fo:block-container>
567
- </fo:flow>
568
- </fo:page-sequence> <!-- END: cover -->
569
- </xsl:if>
570
576
 
571
- <!-- for non-published documents insert cover page (2nd for FDIS) ) -->
572
- <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'">
573
- <!-- circulation cover page -->
574
- <fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
575
- <fo:static-content flow-name="footer-FDIS">
576
- <fo:block-container background-color="rgb(236, 232, 232)" padding="2mm" border="1.5pt solid white">
577
- <fo:block font-size="8pt" margin-bottom="6pt">
578
-
579
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[not(@id)]"/>
577
+ <fo:block-container margin-left="-2mm" margin-right="-2mm" margin-top="5mm">
578
+ <fo:block-container margin-left="0mm" margin-right="0mm">
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_)"/>
580
595
 
581
- </fo:block>
582
- </fo:block-container>
583
- </fo:static-content>
584
- <fo:flow flow-name="xsl-region-body">
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_)"/>
585
600
 
586
- <fo:block text-align-last="justify" margin-left="-0.5mm">
587
- <xsl:call-template name="outputLogo"/>
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">
634
+ <xsl:call-template name="addLetterSpacingSmallCaps">
635
+ <xsl:with-param name="text" select="'Secretariat:'"/>
636
+ </xsl:call-template>
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">
647
+ <xsl:call-template name="addLetterSpacingSmallCaps">
648
+ <xsl:with-param name="text" select="'Secretary:'"/>
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>
663
+ </xsl:if>
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:'"/>
681
+ </xsl:call-template>
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>
588
699
 
589
- <xsl:if test="$stage-abbreviation = 'FDIS'">
590
- <fo:inline font-size="8pt" padding-left="0.5mm" color="{$color_blue}">®</fo:inline>
591
- </xsl:if>
592
- <fo:inline keep-together.within-line="always" font-size="18pt" font-weight="bold" baseline-shift="10mm"><fo:leader leader-pattern="space"/>
593
- <!-- Ex: 34D/1511/FDIS -->
594
- <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='iso-tc']"/>
595
- <xsl:text> </xsl:text>
596
- </fo:inline>
597
- </fo:block>
598
- <fo:block font-size="10pt" text-align="right" margin-top="-2mm" margin-bottom="8pt">
599
- <!-- Examples: 'FINAL DRAFT INTERNATIONAL STANDARD (FDIS)', 'COMMITTEE DRAFT FOR VOTE (CDV)' -->
600
- <xsl:call-template name="addLetterSpacing">
601
- <xsl:with-param name="text" select="concat($stage-fullname-uppercased, ' (', $stage-abbreviation ,')')"/>
602
- </xsl:call-template>
603
- <xsl:text> </xsl:text>
604
- </fo:block>
605
- <fo:block-container margin-left="57mm">
606
- <fo:block-container margin-left="0mm">
607
- <fo:table table-layout="fixed" width="118mm" background-color="rgb(219, 229, 241)" id="__internal_layout__project_{generate-id()}">
608
- <fo:table-column column-width="50%"/>
609
- <fo:table-column column-width="50%"/>
610
- <fo:table-body>
611
- <fo:table-row height="12mm">
612
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
613
- <fo:block font-size="6.5pt" margin-bottom="6pt">
614
- <xsl:call-template name="addLetterSpacingSmallCaps">
615
- <xsl:with-param name="text" select="'Project number:'"/>
616
- </xsl:call-template>
617
- </fo:block>
618
- <fo:block font-size="9pt" font-weight="bold">
619
- <xsl:call-template name="addLetterSpacing">
620
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number"/></xsl:with-param>
621
- </xsl:call-template>
622
- </fo:block>
623
- </fo:table-cell>
624
- </fo:table-row>
625
- <fo:table-row height="12mm">
626
- <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
627
- <fo:block font-size="6.5pt" margin-bottom="6pt">
628
- <xsl:call-template name="addLetterSpacingSmallCaps">
629
- <xsl:with-param name="text" select="'Date of circulation:'"/>
630
- </xsl:call-template>
631
- </fo:block>
632
- <fo:block font-size="9pt" font-weight="bold">
633
- <xsl:call-template name="addLetterSpacing">
634
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type ='circulated']/mn:on"/></xsl:with-param>
635
- </xsl:call-template>
636
- </fo:block>
637
- </fo:table-cell>
638
- <fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
639
- <fo:block font-size="6.5pt" margin-bottom="6pt">
640
- <xsl:call-template name="addLetterSpacingSmallCaps">
641
- <xsl:with-param name="text" select="'Closing date for voting:'"/>
642
- </xsl:call-template>
643
- </fo:block>
644
- <fo:block font-size="9pt" font-weight="bold">
645
- <xsl:call-template name="addLetterSpacing">
646
- <!-- 2019-12-06 -->
647
- <xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='vote-ended']/mn:on"/></xsl:with-param>
648
- </xsl:call-template>
649
- </fo:block>
650
- </fo:table-cell>
651
- </fo:table-row>
652
- <fo:table-row height="12mm">
653
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
654
- <fo:block font-size="6.5pt" margin-bottom="6pt">
655
- <xsl:call-template name="addLetterSpacingSmallCaps">
656
- <xsl:with-param name="text" select="'Supersedes documents:'"/>
657
- </xsl:call-template>
658
- </fo:block>
659
- <fo:block font-size="9pt" font-weight="bold">
660
- <xsl:variable name="supersedes_documents">
661
- <!-- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='supersedes']/mn:bibitem/mn:docnumber"> -->
662
- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='obsoletes']/mn:bibitem/mn:docidentifier">
663
- <xsl:value-of select="."/>
664
- <xsl:if test="position() != last()">,</xsl:if>
665
- </xsl:for-each>
666
- </xsl:variable>
667
- <xsl:call-template name="addLetterSpacing">
668
- <xsl:with-param name="text"><xsl:value-of select="$supersedes_documents"/></xsl:with-param>
669
- </xsl:call-template>
670
- </fo:block>
671
- </fo:table-cell>
672
- </fo:table-row>
673
- </fo:table-body>
674
- </fo:table>
675
- </fo:block-container>
676
- </fo:block-container>
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>
677
714
 
678
- <fo:block-container margin-left="-2mm" margin-right="-2mm" margin-top="5mm">
679
- <fo:block-container margin-left="0mm" margin-right="0mm">
680
- <xsl:variable name="border-color">rgb(221, 213, 213)</xsl:variable>
681
- <fo:table table-layout="fixed" width="100%" border="1.5pt solid {$border-color}">
682
- <fo:table-column column-width="50%"/>
683
- <fo:table-column column-width="50%"/>
684
- <fo:table-body>
685
- <fo:table-row height="4mm">
686
- <fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
687
- <xsl:variable name="contributor_author_">
688
- <xsl:copy-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author' and mn:description[normalize-space(@language) = ''] = 'committee']]/node()"/>
689
- </xsl:variable>
690
- <xsl:variable name="contributor_author" select="xalan:nodeset($contributor_author_)"/>
691
- <!-- https://github.com/metanorma/metanorma-iec/issues/440 -->
692
- <xsl:variable name="subdivision_subcommittee_">
693
- <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Subcommittee']/node()"/>
694
- </xsl:variable>
695
- <xsl:variable name="subdivision_subcommittee" select="xalan:nodeset($subdivision_subcommittee_)"/>
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>
696
780
 
697
- <xsl:variable name="subdivision_technical_committee_">
698
- <xsl:copy-of select="$contributor_author/mn:organization/mn:subdivision[@type = 'Technical committee']/node()"/>
699
- </xsl:variable>
700
- <xsl:variable name="subdivision_technical_committee" select="xalan:nodeset($subdivision_technical_committee_)"/>
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')">
701
782
 
702
- <fo:block>
703
- <!-- If //bibdata/ext/editorialgroup/subcommittee exists, use "IEC SC" + //bibdata/ext/editorialgroup/subcommittee/@number + //bibdata/ext/editorialgroup/subcommittee,
704
- else use "IEC TC" + //bibdata/ext/editorialgroup/technical-committee/@number + //bibdata/ext/editorialgroup/technical-committee -->
705
- <xsl:choose>
706
- <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"> -->
707
- <xsl:when test="normalize-space($subdivision_subcommittee) != ''">
708
- <fo:block font-size="6.5pt">
709
- <!-- <fo:inline font-size="8pt">IEC SC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee/@number"/> : </fo:inline> -->
710
- <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_subcommittee/mn:identifier, ' : ')"/></fo:inline>
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>
711
794
  <xsl:call-template name="addLetterSpacingSmallCaps">
712
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"/> -->
713
- <xsl:with-param name="text" select="$subdivision_subcommittee/mn:name"/>
795
+ <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
714
796
  </xsl:call-template>
715
797
  </fo:block>
716
- </xsl:when>
717
- <!-- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"> -->
718
- <xsl:when test="normalize-space($subdivision_technical_committee) != ''">
719
- <fo:block font-size="6.5pt">
720
- <!-- <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> -->
721
- <fo:inline font-size="8pt"><xsl:value-of select="concat($contributor_author/mn:organization/mn:abbreviation, ' ', $subdivision_technical_committee/mn:identifier, ' : ')"/></fo:inline>
798
+
799
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
800
+
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>
722
812
  <xsl:call-template name="addLetterSpacingSmallCaps">
723
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/> -->
724
- <xsl:with-param name="text" select="$subdivision_technical_committee/mn:name"/>
813
+ <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
725
814
  </xsl:call-template>
726
815
  </fo:block>
727
- </xsl:when>
728
- </xsl:choose>
729
- </fo:block>
730
- </fo:table-cell>
731
- </fo:table-row>
732
- <fo:table-row height="12mm">
733
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
734
- <fo:block font-size="6.5pt" margin-bottom="6pt">
735
- <xsl:call-template name="addLetterSpacingSmallCaps">
736
- <xsl:with-param name="text" select="'Secretariat:'"/>
737
- </xsl:call-template>
738
- </fo:block>
739
- <fo:block font-size="9pt">
740
- <xsl:call-template name="addLetterSpacing">
741
- <!-- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat"/> -->
742
- <xsl:with-param name="text" select="normalize-space(//mn:metanorma/mn:bibdata/mn:contributor[mn:role/mn:description = 'secretariat']/mn:organization/mn:subdivision)"/>
743
- </xsl:call-template>
744
- </fo:block>
745
- </fo:table-cell>
746
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
747
- <fo:block font-size="6.5pt" margin-bottom="6pt">
748
- <xsl:call-template name="addLetterSpacingSmallCaps">
749
- <xsl:with-param name="text" select="'Secretary:'"/>
750
- </xsl:call-template>
751
- </fo:block>
752
- <fo:block font-size="9pt">
753
- <!-- Example: Ms Shanti Conn -->
754
- <xsl:call-template name="addLetterSpacing">
755
- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:secretary"/>
756
- </xsl:call-template>
757
- </fo:block>
758
- </fo:table-cell>
759
- </fo:table-row>
760
- <fo:table-row height="12mm">
761
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
762
- <xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
763
- <xsl:attribute name="number-columns-spanned">2</xsl:attribute>
816
+ </fo:table-cell>
817
+ </fo:table-row>
764
818
  </xsl:if>
765
- <fo:block font-size="6.5pt" margin-bottom="6pt">
766
- <xsl:call-template name="addLetterSpacingSmallCaps">
767
- <xsl:with-param name="text" select="'Of interest to the following committees:'"/>
768
- </xsl:call-template>
769
- </fo:block>
770
- <fo:block font-size="9pt">
771
- <xsl:call-template name="addLetterSpacing">
772
- <xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:interest-to-committees"/>
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>
840
+ </xsl:call-template>
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>
848
+
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>
773
857
  </xsl:call-template>
774
- </fo:block>
775
- </fo:table-cell>
776
- <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
777
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
778
- <fo:block font-size="6.5pt" margin-bottom="6pt">
779
- <xsl:if test="$stage-abbreviation = 'FDIS'">
780
- <xsl:call-template name="addLetterSpacingSmallCaps">
781
- <xsl:with-param name="text" select="'horizontal standard:'"/>
782
- </xsl:call-template>
783
- </xsl:if>
784
- <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
785
- <xsl:call-template name="addLetterSpacingSmallCaps">
786
- <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
787
- </xsl:call-template>
788
- </xsl:if>
789
- </fo:block>
790
- <fo:block>
791
- <xsl:choose>
792
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:horizontal = 'true'">
793
- <xsl:call-template name="insertCheckBoxOn"/>
794
- </xsl:when>
795
- <xsl:otherwise>
796
- <xsl:call-template name="insertCheckBoxOff"/>
797
- </xsl:otherwise>
798
- </xsl:choose>
799
- </fo:block>
858
+ <xsl:text>: </xsl:text>
859
+ </xsl:with-param>
860
+ </xsl:call-template>
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>
800
866
 
801
- <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
802
- <fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
803
- <fo:block-container margin-left="1mm" margin-right="1mm">
804
- <fo:block font-size="8pt" padding="2mm">
805
- <xsl:call-template name="addLetterSpacing">
806
- <xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
807
- </xsl:call-template>
808
- </fo:block>
809
- </fo:block-container>
810
- </fo:block-container>
811
- </xsl:if>
812
- </fo:table-cell>
813
- </xsl:if>
814
- </fo:table-row>
815
-
816
- <xsl:if test="not($stage-abbreviation = 'DPAS')">
817
- <fo:table-row height="10mm">
818
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
819
- <fo:block font-size="6.5pt" margin-bottom="4pt">
820
- <xsl:call-template name="addLetterSpacingSmallCaps">
821
- <xsl:with-param name="text" select="'Functions concerned:'"/>
822
- </xsl:call-template>
823
- </fo:block>
824
- <!-- function: { emc | safety | environment | quality-assurance } -->
825
- <fo:block font-size="6.5pt">
826
- <xsl:choose>
827
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'emc'">
828
- <xsl:call-template name="insertCheckBoxOn"/>
829
- </xsl:when>
830
- <xsl:otherwise>
831
- <xsl:call-template name="insertCheckBoxOff"/>
832
- </xsl:otherwise>
833
- </xsl:choose>
834
- <xsl:call-template name="addLetterSpacingSmallCaps">
835
- <xsl:with-param name="text" select="'EMC'"/>
836
- </xsl:call-template>
837
- <fo:inline padding-right="33mm"> </fo:inline>
838
- <xsl:choose>
839
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'environment'">
840
- <xsl:call-template name="insertCheckBoxOn"/>
841
- </xsl:when>
842
- <xsl:otherwise>
843
- <xsl:call-template name="insertCheckBoxOff"/>
844
- </xsl:otherwise>
845
- </xsl:choose>
846
- <xsl:call-template name="addLetterSpacingSmallCaps">
847
- <xsl:with-param name="text" select="'Environment'"/>
848
- </xsl:call-template>
849
- </fo:block>
850
- </fo:table-cell>
851
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
852
- <fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
853
- <fo:block font-size="6.5pt">
854
- <xsl:choose>
855
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'quality-assurance'">
856
- <xsl:call-template name="insertCheckBoxOn"/>
857
- </xsl:when>
858
- <xsl:otherwise>
859
- <xsl:call-template name="insertCheckBoxOff"/>
860
- </xsl:otherwise>
861
- </xsl:choose>
862
- <xsl:call-template name="addLetterSpacingSmallCaps">
863
- <xsl:with-param name="text" select="'Quality assurance'"/>
864
- </xsl:call-template>
865
- <fo:inline padding-right="13mm"> </fo:inline>
866
- <xsl:choose>
867
- <xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'safety'">
868
- <xsl:call-template name="insertCheckBoxOn"/>
869
- </xsl:when>
870
- <xsl:otherwise>
871
- <xsl:call-template name="insertCheckBoxOff"/>
872
- </xsl:otherwise>
873
- </xsl:choose>
874
- <xsl:call-template name="addLetterSpacingSmallCaps">
875
- <xsl:with-param name="text" select="'Safety'"/>
876
- </xsl:call-template>
877
- </fo:block>
878
- </fo:table-cell>
879
- </fo:table-row>
880
- </xsl:if>
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>
877
+ </xsl:call-template>
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>
881
882
 
882
- <xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
883
+ </fo:flow>
884
+ </fo:page-sequence> <!-- END: cover-FDIS -->
885
+ </xsl:if>
886
+ </xsl:otherwise>
887
+ </xsl:choose>
888
+ </xsl:template>
883
889
 
890
+ <xsl:template name="inner-cover-page">
891
+ <xsl:param name="updated_document1_boilerplate"/>
892
+ <xsl:param name="updated_document2_boilerplate"/>
893
+ <!-- 2nd Cover Page -->
894
+ <fo:page-sequence master-reference="cover_2nd" force-page-count="no-force" font-size="8pt">
895
+ <fo:flow flow-name="xsl-region-body">
896
+ <fo:block span="all">
897
+ <fo:block-container border="0.5pt solid black" margin-top="7mm">
898
+ <fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
899
+ <fo:block-container margin-left="0mm" margin-right="0mm">
900
+ <fo:table table-layout="fixed" width="100%">
901
+ <fo:table-column column-width="20mm"/>
902
+ <fo:table-column column-width="130mm"/>
903
+ <fo:table-body>
884
904
  <fo:table-row>
885
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
886
- <fo:block font-size="6.5pt" margin-bottom="12pt">
887
- <xsl:choose>
888
- <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
889
- <xsl:call-template name="insertCheckBoxOn"/>
890
- </xsl:when>
891
- <xsl:otherwise>
892
- <xsl:call-template name="insertCheckBoxOff"/>
893
- </xsl:otherwise>
894
- </xsl:choose>
895
- <xsl:call-template name="addLetterSpacingSmallCaps">
896
- <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
897
- </xsl:call-template>
905
+ <fo:table-cell>
906
+ <fo:block>
907
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
898
908
  </fo:block>
899
-
900
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
901
-
902
909
  </fo:table-cell>
903
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
904
- <fo:block font-size="6.5pt" margin-bottom="6pt">
905
- <xsl:choose>
906
- <xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
907
- <xsl:call-template name="insertCheckBoxOff"/>
908
- </xsl:when>
909
- <xsl:otherwise>
910
- <xsl:call-template name="insertCheckBoxOn"/>
911
- </xsl:otherwise>
912
- </xsl:choose>
913
- <xsl:call-template name="addLetterSpacingSmallCaps">
914
- <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
915
- </xsl:call-template>
910
+ <fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
911
+ <fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
912
+ <fo:block margin-bottom="10pt">
913
+ <!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
914
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-year')]"/>
916
915
  </fo:block>
917
916
  </fo:table-cell>
918
917
  </fo:table-row>
919
- </xsl:if>
920
- </fo:table-body>
921
- </fo:table>
922
- </fo:block-container>
923
- </fo:block-container>
924
-
925
- <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">
926
- <fo:block>
927
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:license-statement" mode="cover-page-internal"/>
928
- </fo:block>
929
- </fo:block-container>
918
+ </fo:table-body>
919
+ </fo:table>
920
+ <fo:block>
921
+ <fo:block margin-bottom="8pt" text-align="justify">
922
+ <!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
923
+ or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
924
+ either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
925
+ copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
926
+ your local IEC member National Committee for further information. -->
927
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
928
+ </fo:block>
929
+ <!-- Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
930
+ ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
931
+ et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
932
+ questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
933
+ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence. -->
934
+ <fo:block margin-bottom="8pt" text-align="justify">
935
+ <xsl:apply-templates select="$updated_document2_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
936
+ </fo:block>
930
937
 
931
- <fo:block-container background-color="rgb(219, 229, 241)" margin-top="4mm" padding="2mm" padding-top="1mm" border="1.5pt solid white">
932
- <fo:block font-size="6.5pt" margin-bottom="6pt">
933
- <xsl:call-template name="addLetterSpacingSmallCaps">
934
- <xsl:with-param name="text">
935
- <!-- Title: -->
936
- <xsl:call-template name="getLocalizedString">
937
- <xsl:with-param name="key">title</xsl:with-param>
938
- </xsl:call-template>
939
- <xsl:text>:</xsl:text>
940
- </xsl:with-param>
941
- </xsl:call-template>
942
- </fo:block>
943
- <fo:block font-size="9pt" font-weight="bold">
944
- <xsl:call-template name="addLetterSpacing">
945
- <xsl:with-param name="text"><xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'main']"/></xsl:with-param>
946
- </xsl:call-template>
947
- </fo:block>
948
- </fo:block-container>
938
+ <xsl:variable name="telpos" select="count($updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
939
+ <fo:table table-layout="fixed" width="100%">
940
+ <fo:table-column column-width="59mm"/>
941
+ <fo:table-column column-width="90mm"/>
942
+ <fo:table-body>
943
+ <fo:table-row>
944
+ <fo:table-cell>
945
+ <fo:block>
946
+ <!-- Example: IEC Central Office
947
+ 3, rue de Varembé
948
+ CH-1211 Geneva 20
949
+ Switzerland -->
950
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-name')]" mode="coverpage"/>
951
+ <xsl:choose>
952
+ <xsl:when test="$telpos != 0">
953
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() &lt; $telpos]" mode="coverpage"/>
954
+ </xsl:when>
955
+ <xsl:otherwise>
956
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
957
+ </xsl:otherwise>
958
+ </xsl:choose>
959
+ </fo:block>
960
+ </fo:table-cell>
961
+ <fo:table-cell>
962
+ <fo:block>
963
+ <!-- Example: Tel.: +41 22 919 02 11
964
+ Fax: +41 22 919 0
965
+ info@iec.ch
966
+ www.iec.ch -->
967
+ <xsl:choose>
968
+ <xsl:when test="$telpos != 0">
969
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() &gt; $telpos]" mode="coverpage"/>
970
+ </xsl:when>
971
+ <xsl:otherwise> </xsl:otherwise>
972
+ </xsl:choose>
973
+ </fo:block>
974
+ </fo:table-cell>
975
+ </fo:table-row>
976
+ </fo:table-body>
977
+ </fo:table>
949
978
 
950
- <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS'">
951
- <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" height="6.5mm" padding="1mm" margin-top="3mm" display-align="center">
952
- <fo:block font-size="6.5pt">
953
- <xsl:call-template name="addLetterSpacing">
954
- <xsl:with-param name="text">
955
- <!-- PROPOSED STABILITY DATE: -->
956
- <xsl:call-template name="getLocalizedString">
957
- <xsl:with-param name="key">proposed_stability_date</xsl:with-param>
958
- </xsl:call-template>
959
- <xsl:text>: </xsl:text>
960
- </xsl:with-param>
961
- </xsl:call-template>
962
- <!-- 2023 -->
963
- <fo:inline font-size="9pt"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='unchanged']/mn:on"/></fo:inline>
964
- </fo:block>
979
+ </fo:block>
980
+ </fo:block-container>
965
981
  </fo:block-container>
966
- </xsl:if>
967
-
968
- <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" padding="1mm" margin-top="3mm">
969
- <fo:block font-size="6.5pt" margin-bottom="6pt">
970
- <xsl:call-template name="addLetterSpacingSmallCaps">
971
- <xsl:with-param name="text">
972
- <!-- Note from TC/SC officers: -->
973
- <xsl:call-template name="getLocalizedString">
974
- <xsl:with-param name="key">tc_sc_note</xsl:with-param>
975
- </xsl:call-template>
976
- <xsl:text>:</xsl:text>
977
- </xsl:with-param>
978
- </xsl:call-template>
979
- </fo:block>
980
- <!-- Example: This FDIS is the result of the discussion between the IEC SC21A experts WG 3 during the meeting held in -->
981
- <xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:tc-sc-officers-note"/>
982
982
  </fo:block-container>
983
+ </fo:block>
983
984
 
984
- </fo:flow>
985
- </fo:page-sequence> <!-- END: cover-FDIS -->
986
- </xsl:if>
987
- </xsl:template>
985
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement"/> <!-- //mn:clause[not(@id) or @id != 'boilerplate-cenelec-attention'] -->
986
+ <fo:block span="all" border-bottom="0.5pt solid black"/>
987
+ <!-- About the IEC
988
+ The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
989
+ International Standards for all electrical, electronic and related technologies.
990
+ About IEC publications
991
+ The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
992
+ latest edition, a corrigenda or an amendment might have been published.
993
+ ...
994
+ -->
995
+ <xsl:if test="$updated_document2_boilerplate/mn:boilerplate/mn:feedback-statement">
996
+ <xsl:apply-templates select="$updated_document2_boilerplate/mn:boilerplate/mn:feedback-statement"/>
997
+ <fo:block span="all"/>
998
+ </xsl:if>
999
+
1000
+ </fo:flow>
1001
+ </fo:page-sequence> <!-- END: 2nd Cover Page -->
1002
+ </xsl:template> <!-- END: inner-cover-page -->
988
1003
 
989
1004
  <xsl:template match="mn:pagebreak" priority="2">
990
1005
  <xsl:copy-of select="."/>
@@ -2017,6 +2032,11 @@
2017
2032
  <!-- =================== -->
2018
2033
 
2019
2034
  <xsl:template name="insertHeaderFooter">
2035
+ <xsl:call-template name="insertHeader"/>
2036
+ <xsl:call-template name="insertFooter"/>
2037
+ </xsl:template>
2038
+
2039
+ <xsl:template name="insertHeader">
2020
2040
  <fo:static-content flow-name="header-even" role="artifact">
2021
2041
  <fo:block-container height="25mm" display-align="after">
2022
2042
  <fo:table table-layout="fixed" width="100%">
@@ -2066,6 +2086,9 @@
2066
2086
  </fo:static-content>
2067
2087
  </xsl:template>
2068
2088
 
2089
+ <xsl:template name="insertFooter">
2090
+ </xsl:template>
2091
+
2069
2092
  <xsl:template name="back-page">
2070
2093
  <xsl:if test="$stage_published = 'true'">
2071
2094
  <fo:page-sequence master-reference="blank-page">
@@ -3924,7 +3947,6 @@
3924
3947
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
3925
3948
 
3926
3949
  <xsl:template name="refine_feedback-statement-title-style">
3927
-
3928
3950
  </xsl:template>
3929
3951
 
3930
3952
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -5574,94 +5596,88 @@
5574
5596
  <xsl:template name="refine_term-style">
5575
5597
  </xsl:template>
5576
5598
 
5577
- <xsl:attribute-set name="term-name-style">
5599
+ <xsl:attribute-set name="term-number-style">
5578
5600
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5579
5601
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5580
5602
  </xsl:attribute-set> <!-- term-name-style -->
5581
5603
 
5582
- <xsl:template name="refine_term-name-style">
5604
+ <xsl:template name="refine_term-number-style">
5583
5605
  </xsl:template>
5584
5606
 
5585
- <xsl:attribute-set name="preferred-style">
5586
- </xsl:attribute-set> <!-- preferred-style -->
5587
-
5588
- <xsl:template name="refine_preferred-style">
5589
- </xsl:template>
5590
-
5591
- <xsl:attribute-set name="preferred-block-style">
5607
+ <xsl:attribute-set name="term-preferred-block-style">
5592
5608
  <xsl:attribute name="line-height">1.1</xsl:attribute>
5593
5609
  <xsl:attribute name="space-before">14pt</xsl:attribute>
5594
5610
  </xsl:attribute-set> <!-- preferred-block-style -->
5595
5611
 
5596
- <xsl:template name="refine_preferred-block-style">
5612
+ <xsl:template name="refine_term-preferred-block-style">
5597
5613
  <xsl:if test="preceding-sibling::*[1][self::mn:fmt-preferred]">
5598
5614
  <xsl:attribute name="space-before">1pt</xsl:attribute>
5599
5615
  </xsl:if>
5600
5616
  </xsl:template>
5601
5617
 
5602
- <xsl:attribute-set name="preferred-term-style">
5618
+ <xsl:attribute-set name="term-preferred-style">
5603
5619
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5604
5620
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5605
5621
  </xsl:attribute-set> <!-- preferred-term-style -->
5606
5622
 
5607
- <xsl:template name="refine_preferred-term-style">
5623
+ <xsl:template name="refine_term-preferred-style">
5608
5624
  <xsl:if test="mn:strong">
5609
5625
  <xsl:attribute name="font-weight">normal</xsl:attribute>
5610
5626
  </xsl:if>
5611
5627
  </xsl:template>
5612
5628
 
5613
- <xsl:attribute-set name="domain-style">
5614
- </xsl:attribute-set> <!-- domain-style -->
5629
+ <xsl:attribute-set name="term-domain-style">
5630
+ </xsl:attribute-set> <!-- term-domain-style -->
5615
5631
 
5616
- <xsl:template name="refine_domain-style">
5632
+ <xsl:template name="refine_term-domain-style">
5617
5633
  </xsl:template>
5618
5634
 
5619
- <xsl:attribute-set name="admitted-style">
5620
- </xsl:attribute-set> <!-- admitted-style -->
5635
+ <xsl:attribute-set name="term-admitted-style">
5636
+ </xsl:attribute-set> <!-- term-admitted-style -->
5621
5637
 
5622
- <xsl:template name="refine_admitted-style">
5638
+ <xsl:template name="refine_term-admitted-style">
5623
5639
  </xsl:template>
5624
5640
 
5625
- <xsl:attribute-set name="deprecates-style">
5641
+ <xsl:attribute-set name="term-deprecates-style">
5626
5642
  <xsl:attribute name="font-size">8pt</xsl:attribute>
5627
5643
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
5628
5644
  <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
5629
- </xsl:attribute-set> <!-- deprecates-style -->
5645
+ </xsl:attribute-set> <!-- term-deprecates-style -->
5630
5646
 
5631
- <xsl:template name="refine_deprecates-style">
5647
+ <xsl:template name="refine_term-deprecates-style">
5632
5648
  </xsl:template>
5633
5649
 
5634
- <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
5650
+ <xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
5635
5651
  </xsl:attribute-set>
5636
5652
 
5637
- <xsl:template name="refine_related-block-style">
5653
+ <xsl:template name="refine_term-related-block-style">
5638
5654
  </xsl:template>
5639
5655
 
5640
- <xsl:attribute-set name="definition-style">
5656
+ <xsl:attribute-set name="term-definition-style">
5641
5657
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
5642
- </xsl:attribute-set> <!-- definition-style -->
5658
+ </xsl:attribute-set> <!-- term-definition-style -->
5643
5659
 
5644
- <xsl:template name="refine_definition-style">
5660
+ <xsl:template name="refine_term-definition-style">
5645
5661
  </xsl:template>
5646
5662
 
5647
- <xsl:attribute-set name="termsource-style">
5663
+ <xsl:attribute-set name="term-termsource-style">
5648
5664
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
5649
5665
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
5650
- </xsl:attribute-set> <!-- termsource-style -->
5666
+ </xsl:attribute-set> <!-- term-termsource-style -->
5651
5667
 
5652
- <xsl:template name="refine_termsource-style">
5653
- </xsl:template> <!-- refine_termsource-style -->
5668
+ <xsl:template name="refine_term-termsource-style">
5669
+ </xsl:template> <!-- refine_term-termsource-style -->
5654
5670
 
5655
- <xsl:attribute-set name="termsource-text-style">
5656
- </xsl:attribute-set> <!-- termsource-text-style -->
5671
+ <xsl:attribute-set name="term-termsource-text-style">
5672
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
5657
5673
 
5658
- <xsl:template name="refine_termsource-text-style">
5674
+ <xsl:template name="refine_term-termsource-text-style">
5659
5675
  </xsl:template>
5660
5676
 
5661
- <xsl:attribute-set name="origin-style">
5662
- </xsl:attribute-set> <!-- origin-style -->
5677
+ <xsl:attribute-set name="term-origin-style">
5678
+ </xsl:attribute-set> <!-- term-origin-style -->
5663
5679
 
5664
- <xsl:template name="refine_origin-style">
5680
+ <xsl:template name="refine_term-origin-style">
5665
5681
  </xsl:template>
5666
5682
 
5667
5683
  <!-- ====== -->
@@ -5705,9 +5721,9 @@
5705
5721
  <!-- modification -->
5706
5722
  <!-- ====== -->
5707
5723
  <xsl:template match="mn:fmt-termsource" name="termsource">
5708
- <fo:block xsl:use-attribute-sets="termsource-style">
5724
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
5709
5725
 
5710
- <xsl:call-template name="refine_termsource-style"/>
5726
+ <xsl:call-template name="refine_term-termsource-style"/>
5711
5727
 
5712
5728
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5713
5729
  <xsl:variable name="termsource_text">
@@ -5755,8 +5771,8 @@
5755
5771
 
5756
5772
  <!-- text SOURCE: -->
5757
5773
  <xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
5758
- <fo:inline xsl:use-attribute-sets="termsource-text-style">
5759
- <xsl:call-template name="refine_termsource-text-style"/>
5774
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
5775
+ <xsl:call-template name="refine_term-termsource-text-style"/>
5760
5776
  <xsl:value-of select="."/>
5761
5777
  </fo:inline>
5762
5778
  </xsl:template>
@@ -5768,8 +5784,8 @@
5768
5784
  <xsl:if test="normalize-space(@citeas) = ''">
5769
5785
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
5770
5786
  </xsl:if>
5771
- <fo:inline xsl:use-attribute-sets="origin-style">
5772
- <xsl:call-template name="refine_origin-style"/>
5787
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
5788
+ <xsl:call-template name="refine_term-origin-style"/>
5773
5789
  <xsl:apply-templates/>
5774
5790
  </fo:inline>
5775
5791
  </fo:basic-link>
@@ -5817,14 +5833,14 @@
5817
5833
  <xsl:variable name="levelTerm">
5818
5834
  <xsl:call-template name="getLevelTermName"/>
5819
5835
  </xsl:variable>
5820
- <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
5836
+ <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
5821
5837
 
5822
- <xsl:call-template name="refine_preferred-block-style"/>
5838
+ <xsl:call-template name="refine_term-preferred-block-style"/>
5823
5839
 
5824
5840
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
5825
5841
 
5826
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
5827
- <xsl:call-template name="refine_term-name-style"/>
5842
+ <fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
5843
+ <xsl:call-template name="refine_term-number-style"/>
5828
5844
 
5829
5845
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
5830
5846
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -5834,8 +5850,8 @@
5834
5850
  </fo:block>
5835
5851
  </xsl:if>
5836
5852
 
5837
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
5838
- <xsl:call-template name="refine_preferred-term-style"/>
5853
+ <fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
5854
+ <xsl:call-template name="refine_term-preferred-style"/>
5839
5855
 
5840
5856
  <xsl:apply-templates/>
5841
5857
  </fo:block>
@@ -5855,15 +5871,15 @@
5855
5871
  <xsl:template match="mn:domain"/>
5856
5872
 
5857
5873
  <xsl:template match="mn:fmt-admitted">
5858
- <fo:block xsl:use-attribute-sets="admitted-style">
5859
- <xsl:call-template name="refine_admitted-style"/>
5874
+ <fo:block xsl:use-attribute-sets="term-admitted-style">
5875
+ <xsl:call-template name="refine_term-admitted-style"/>
5860
5876
  <xsl:apply-templates/>
5861
5877
  </fo:block>
5862
5878
  </xsl:template>
5863
5879
 
5864
5880
  <xsl:template match="mn:fmt-deprecates">
5865
- <fo:block xsl:use-attribute-sets="deprecates-style">
5866
- <xsl:call-template name="refine_deprecates-style"/>
5881
+ <fo:block xsl:use-attribute-sets="term-deprecates-style">
5882
+ <xsl:call-template name="refine_term-deprecates-style"/>
5867
5883
  <xsl:apply-templates/>
5868
5884
  </fo:block>
5869
5885
  </xsl:template>
@@ -5876,8 +5892,8 @@
5876
5892
  <!-- End Preferred, admitted, deprecated -->
5877
5893
 
5878
5894
  <xsl:template match="mn:fmt-related">
5879
- <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
5880
- <xsl:call-template name="refine_related-block-style"/>
5895
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
5896
+ <xsl:call-template name="refine_term-related-block-style"/>
5881
5897
  <xsl:apply-templates/>
5882
5898
  </fo:block>
5883
5899
  </xsl:template>
@@ -5891,8 +5907,8 @@
5891
5907
  <!-- definition -->
5892
5908
  <!-- ========== -->
5893
5909
  <xsl:template match="mn:fmt-definition">
5894
- <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
5895
- <xsl:call-template name="refine_definition-style"/>
5910
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
5911
+ <xsl:call-template name="refine_term-definition-style"/>
5896
5912
  <xsl:apply-templates/>
5897
5913
  </fo:block>
5898
5914
  </xsl:template>
@@ -9811,18 +9827,25 @@
9811
9827
  </xsl:attribute-set> <!-- quote-style -->
9812
9828
 
9813
9829
  <xsl:template name="refine_quote-style">
9814
- </xsl:template>
9830
+ </xsl:template> <!-- refine_quote-style -->
9815
9831
 
9816
9832
  <xsl:attribute-set name="quote-source-style">
9817
9833
  <xsl:attribute name="text-align">right</xsl:attribute>
9818
9834
  <xsl:attribute name="margin-top">15pt</xsl:attribute>
9819
9835
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
9820
9836
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
9821
- </xsl:attribute-set>
9837
+ </xsl:attribute-set> <!-- quote-source-style -->
9822
9838
 
9823
9839
  <xsl:template name="refine_quote-source-style">
9824
9840
  </xsl:template>
9825
9841
 
9842
+ <xsl:attribute-set name="source-style">
9843
+ </xsl:attribute-set> <!-- source-style -->
9844
+
9845
+ <xsl:template name="refine_source-style">
9846
+
9847
+ </xsl:template> <!-- refine_source-style -->
9848
+
9826
9849
  <!-- ====== -->
9827
9850
  <!-- quote -->
9828
9851
  <!-- source -->
@@ -9870,7 +9893,9 @@
9870
9893
  </xsl:if>
9871
9894
  <xsl:choose>
9872
9895
  <xsl:when test="not(parent::quote)">
9873
- <fo:block>
9896
+ <fo:block xsl:use-attribute-sets="source-style">
9897
+ <xsl:call-template name="refine_source-style"/>
9898
+
9874
9899
  <xsl:call-template name="insert_basic_link">
9875
9900
  <xsl:with-param name="element">
9876
9901
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -11988,7 +12013,7 @@
11988
12013
  <xsl:attribute name="baseline-shift">15%</xsl:attribute>
11989
12014
  </xsl:if>
11990
12015
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
11991
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
12016
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
11992
12017
  </xsl:template> <!-- refine_fn-reference-style -->
11993
12018
 
11994
12019
  <xsl:attribute-set name="fn-style">
@@ -11999,7 +12024,9 @@
11999
12024
  </xsl:template>
12000
12025
 
12001
12026
  <xsl:attribute-set name="fn-num-style">
12027
+ <xsl:attribute name="role">Reference</xsl:attribute>
12002
12028
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
12029
+ <xsl:attribute name="font-size">65%</xsl:attribute>
12003
12030
  <xsl:attribute name="font-size">8pt</xsl:attribute>
12004
12031
  <xsl:attribute name="baseline-shift">15%</xsl:attribute>
12005
12032
  </xsl:attribute-set> <!-- fn-num-style -->
@@ -12072,33 +12099,16 @@
12072
12099
  <xsl:variable name="ref_id" select="@target"/>
12073
12100
 
12074
12101
  <xsl:variable name="footnote_inline">
12075
- <fo:inline role="Reference">
12076
-
12077
- <xsl:variable name="fn_styles">
12078
- <xsl:choose>
12079
- <xsl:when test="ancestor::mn:bibitem">
12080
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
12081
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
12082
- </fn_styles>
12083
- </xsl:when>
12084
- <xsl:otherwise>
12085
- <fn_styles xsl:use-attribute-sets="fn-num-style">
12086
- <xsl:call-template name="refine_fn-num-style"/>
12087
- </fn_styles>
12088
- </xsl:otherwise>
12089
- </xsl:choose>
12090
- </xsl:variable>
12102
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
12091
12103
 
12092
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
12093
- <xsl:copy-of select="."/>
12094
- </xsl:for-each>
12104
+ <xsl:call-template name="refine_fn-num-style"/>
12095
12105
 
12096
12106
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
12097
12107
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
12098
12108
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
12099
12109
  </xsl:if> -->
12100
12110
 
12101
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
12111
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
12102
12112
 
12103
12113
  <xsl:call-template name="insert_basic_link">
12104
12114
  <xsl:with-param name="element">
@@ -12402,33 +12412,6 @@
12402
12412
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
12403
12413
  </xsl:template>
12404
12414
 
12405
- <!-- footnote reference number for bibitem, in the text -->
12406
- <xsl:attribute-set name="bibitem-note-fn-style">
12407
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
12408
- <xsl:attribute name="font-size">65%</xsl:attribute>
12409
- <xsl:attribute name="font-size">8pt</xsl:attribute>
12410
- <xsl:attribute name="baseline-shift">15%</xsl:attribute>
12411
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
12412
-
12413
- <xsl:template name="refine_bibitem-note-fn-style">
12414
- </xsl:template>
12415
-
12416
- <!-- footnote number on the page bottom -->
12417
- <xsl:attribute-set name="bibitem-note-fn-number-style">
12418
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
12419
- <xsl:attribute name="baseline-shift">15%</xsl:attribute>
12420
- <xsl:attribute name="padding-right">3mm</xsl:attribute>
12421
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
12422
-
12423
- <!-- footnote body (text) on the page bottom -->
12424
- <xsl:attribute-set name="bibitem-note-fn-body-style">
12425
- <xsl:attribute name="font-size">10pt</xsl:attribute>
12426
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
12427
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
12428
- <xsl:attribute name="font-size">8pt</xsl:attribute>
12429
- <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
12430
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
12431
-
12432
12415
  <xsl:attribute-set name="references-non-normative-style">
12433
12416
  </xsl:attribute-set> <!-- references-non-normative-style -->
12434
12417
 
@@ -14833,6 +14816,17 @@
14833
14816
  </xsl:attribute-set>
14834
14817
 
14835
14818
  <xsl:template name="refine_clause-style">
14819
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
14820
+ <!-- <xsl:if test="$namespace = 'rsd'">
14821
+ <xsl:variable name="level">
14822
+ <xsl:call-template name="getLevel">
14823
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
14824
+ </xsl:call-template>
14825
+ </xsl:variable>
14826
+ <xsl:if test="$level &gt;= 4">
14827
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
14828
+ </xsl:if>
14829
+ </xsl:if> -->
14836
14830
  </xsl:template>
14837
14831
 
14838
14832
  <!-- main sections -->
@@ -15915,6 +15909,20 @@
15915
15909
  </fo:block-container>
15916
15910
  </xsl:template>
15917
15911
 
15912
+ <!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
15913
+ <xsl:template name="insertCoverPageFullImage">
15914
+ <xsl:param name="name">coverpage-image</xsl:param>
15915
+ <xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
15916
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
15917
+ <fo:flow flow-name="xsl-region-body">
15918
+ <xsl:call-template name="insertBackgroundPageImage">
15919
+ <xsl:with-param name="number" select="position()"/>
15920
+ </xsl:call-template>
15921
+ </fo:flow>
15922
+ </fo:page-sequence>
15923
+ </xsl:for-each>
15924
+ </xsl:template>
15925
+
15918
15926
  <xsl:template name="insertPageImage">
15919
15927
  <xsl:param name="svg_content_height" select="$pageHeight"/>
15920
15928
  <xsl:param name="bitmap_width" select="$pageWidth"/>