metanorma-iec 2.7.6 → 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,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 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>
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 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>
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 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_)"/>
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) != ''">
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>
699
+
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>
714
+
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 } -->
604
724
  <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>
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>
607
733
  <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"/>
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'"/>
610
747
  </xsl:call-template>
611
748
  </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) != ''">
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>
615
752
  <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>
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>
618
773
  <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"/>
774
+ <xsl:with-param name="text" select="'Safety'"/>
621
775
  </xsl:call-template>
622
776
  </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>
777
+ </fo:table-cell>
778
+ </fo:table-row>
660
779
  </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'">
676
- <xsl:call-template name="addLetterSpacingSmallCaps">
677
- <xsl:with-param name="text" select="'horizontal standard:'"/>
678
- </xsl:call-template>
679
- </xsl:if>
680
- <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
681
- <xsl:call-template name="addLetterSpacingSmallCaps">
682
- <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
683
- </xsl:call-template>
684
- </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
780
 
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.'"/>
703
- </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>
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')">
777
782
 
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')">
779
-
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>
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>
795
798
 
796
- <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
799
+ <xsl:apply-templates select="$updated_document1_boilerplate/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
797
800
 
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>
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>
820
823
 
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>
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>
826
829
 
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>
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">
@@ -2027,6 +2032,11 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
2027
2032
  <!-- =================== -->
2028
2033
 
2029
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">
2030
2040
  <fo:static-content flow-name="header-even" role="artifact">
2031
2041
  <fo:block-container height="25mm" display-align="after">
2032
2042
  <fo:table table-layout="fixed" width="100%">
@@ -2076,6 +2086,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
2076
2086
  </fo:static-content>
2077
2087
  </xsl:template>
2078
2088
 
2089
+ <xsl:template name="insertFooter">
2090
+ </xsl:template>
2091
+
2079
2092
  <xsl:template name="back-page">
2080
2093
  <xsl:if test="$stage_published = 'true'">
2081
2094
  <fo:page-sequence master-reference="blank-page">
@@ -5583,94 +5596,88 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5583
5596
  <xsl:template name="refine_term-style">
5584
5597
  </xsl:template>
5585
5598
 
5586
- <xsl:attribute-set name="term-name-style">
5599
+ <xsl:attribute-set name="term-number-style">
5587
5600
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5588
5601
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5589
5602
  </xsl:attribute-set> <!-- term-name-style -->
5590
5603
 
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">
5604
+ <xsl:template name="refine_term-number-style">
5598
5605
  </xsl:template>
5599
5606
 
5600
- <xsl:attribute-set name="preferred-block-style">
5607
+ <xsl:attribute-set name="term-preferred-block-style">
5601
5608
  <xsl:attribute name="line-height">1.1</xsl:attribute>
5602
5609
  <xsl:attribute name="space-before">14pt</xsl:attribute>
5603
5610
  </xsl:attribute-set> <!-- preferred-block-style -->
5604
5611
 
5605
- <xsl:template name="refine_preferred-block-style">
5612
+ <xsl:template name="refine_term-preferred-block-style">
5606
5613
  <xsl:if test="preceding-sibling::*[1][self::mn:fmt-preferred]">
5607
5614
  <xsl:attribute name="space-before">1pt</xsl:attribute>
5608
5615
  </xsl:if>
5609
5616
  </xsl:template>
5610
5617
 
5611
- <xsl:attribute-set name="preferred-term-style">
5618
+ <xsl:attribute-set name="term-preferred-style">
5612
5619
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5613
5620
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5614
5621
  </xsl:attribute-set> <!-- preferred-term-style -->
5615
5622
 
5616
- <xsl:template name="refine_preferred-term-style">
5623
+ <xsl:template name="refine_term-preferred-style">
5617
5624
  <xsl:if test="mn:strong">
5618
5625
  <xsl:attribute name="font-weight">normal</xsl:attribute>
5619
5626
  </xsl:if>
5620
5627
  </xsl:template>
5621
5628
 
5622
- <xsl:attribute-set name="domain-style">
5623
- </xsl:attribute-set> <!-- domain-style -->
5629
+ <xsl:attribute-set name="term-domain-style">
5630
+ </xsl:attribute-set> <!-- term-domain-style -->
5624
5631
 
5625
- <xsl:template name="refine_domain-style">
5632
+ <xsl:template name="refine_term-domain-style">
5626
5633
  </xsl:template>
5627
5634
 
5628
- <xsl:attribute-set name="admitted-style">
5629
- </xsl:attribute-set> <!-- admitted-style -->
5635
+ <xsl:attribute-set name="term-admitted-style">
5636
+ </xsl:attribute-set> <!-- term-admitted-style -->
5630
5637
 
5631
- <xsl:template name="refine_admitted-style">
5638
+ <xsl:template name="refine_term-admitted-style">
5632
5639
  </xsl:template>
5633
5640
 
5634
- <xsl:attribute-set name="deprecates-style">
5641
+ <xsl:attribute-set name="term-deprecates-style">
5635
5642
  <xsl:attribute name="font-size">8pt</xsl:attribute>
5636
5643
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
5637
5644
  <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
5638
- </xsl:attribute-set> <!-- deprecates-style -->
5645
+ </xsl:attribute-set> <!-- term-deprecates-style -->
5639
5646
 
5640
- <xsl:template name="refine_deprecates-style">
5647
+ <xsl:template name="refine_term-deprecates-style">
5641
5648
  </xsl:template>
5642
5649
 
5643
- <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">
5644
5651
  </xsl:attribute-set>
5645
5652
 
5646
- <xsl:template name="refine_related-block-style">
5653
+ <xsl:template name="refine_term-related-block-style">
5647
5654
  </xsl:template>
5648
5655
 
5649
- <xsl:attribute-set name="definition-style">
5656
+ <xsl:attribute-set name="term-definition-style">
5650
5657
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
5651
- </xsl:attribute-set> <!-- definition-style -->
5658
+ </xsl:attribute-set> <!-- term-definition-style -->
5652
5659
 
5653
- <xsl:template name="refine_definition-style">
5660
+ <xsl:template name="refine_term-definition-style">
5654
5661
  </xsl:template>
5655
5662
 
5656
- <xsl:attribute-set name="termsource-style">
5663
+ <xsl:attribute-set name="term-termsource-style">
5657
5664
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
5658
5665
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
5659
- </xsl:attribute-set> <!-- termsource-style -->
5666
+ </xsl:attribute-set> <!-- term-termsource-style -->
5660
5667
 
5661
- <xsl:template name="refine_termsource-style">
5662
- </xsl:template> <!-- refine_termsource-style -->
5668
+ <xsl:template name="refine_term-termsource-style">
5669
+ </xsl:template> <!-- refine_term-termsource-style -->
5663
5670
 
5664
- <xsl:attribute-set name="termsource-text-style">
5665
- </xsl:attribute-set> <!-- termsource-text-style -->
5671
+ <xsl:attribute-set name="term-termsource-text-style">
5672
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
5666
5673
 
5667
- <xsl:template name="refine_termsource-text-style">
5674
+ <xsl:template name="refine_term-termsource-text-style">
5668
5675
  </xsl:template>
5669
5676
 
5670
- <xsl:attribute-set name="origin-style">
5671
- </xsl:attribute-set> <!-- origin-style -->
5677
+ <xsl:attribute-set name="term-origin-style">
5678
+ </xsl:attribute-set> <!-- term-origin-style -->
5672
5679
 
5673
- <xsl:template name="refine_origin-style">
5680
+ <xsl:template name="refine_term-origin-style">
5674
5681
  </xsl:template>
5675
5682
 
5676
5683
  <!-- ====== -->
@@ -5714,9 +5721,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5714
5721
  <!-- modification -->
5715
5722
  <!-- ====== -->
5716
5723
  <xsl:template match="mn:fmt-termsource" name="termsource">
5717
- <fo:block xsl:use-attribute-sets="termsource-style">
5724
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
5718
5725
 
5719
- <xsl:call-template name="refine_termsource-style"/>
5726
+ <xsl:call-template name="refine_term-termsource-style"/>
5720
5727
 
5721
5728
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5722
5729
  <xsl:variable name="termsource_text">
@@ -5764,8 +5771,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5764
5771
 
5765
5772
  <!-- text SOURCE: -->
5766
5773
  <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"/>
5774
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
5775
+ <xsl:call-template name="refine_term-termsource-text-style"/>
5769
5776
  <xsl:value-of select="."/>
5770
5777
  </fo:inline>
5771
5778
  </xsl:template>
@@ -5777,8 +5784,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5777
5784
  <xsl:if test="normalize-space(@citeas) = ''">
5778
5785
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
5779
5786
  </xsl:if>
5780
- <fo:inline xsl:use-attribute-sets="origin-style">
5781
- <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"/>
5782
5789
  <xsl:apply-templates/>
5783
5790
  </fo:inline>
5784
5791
  </fo:basic-link>
@@ -5826,14 +5833,14 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5826
5833
  <xsl:variable name="levelTerm">
5827
5834
  <xsl:call-template name="getLevelTermName"/>
5828
5835
  </xsl:variable>
5829
- <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">
5830
5837
 
5831
- <xsl:call-template name="refine_preferred-block-style"/>
5838
+ <xsl:call-template name="refine_term-preferred-block-style"/>
5832
5839
 
5833
5840
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
5834
5841
 
5835
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
5836
- <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"/>
5837
5844
 
5838
5845
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
5839
5846
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -5843,8 +5850,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5843
5850
  </fo:block>
5844
5851
  </xsl:if>
5845
5852
 
5846
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
5847
- <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"/>
5848
5855
 
5849
5856
  <xsl:apply-templates/>
5850
5857
  </fo:block>
@@ -5864,15 +5871,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5864
5871
  <xsl:template match="mn:domain"/>
5865
5872
 
5866
5873
  <xsl:template match="mn:fmt-admitted">
5867
- <fo:block xsl:use-attribute-sets="admitted-style">
5868
- <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"/>
5869
5876
  <xsl:apply-templates/>
5870
5877
  </fo:block>
5871
5878
  </xsl:template>
5872
5879
 
5873
5880
  <xsl:template match="mn:fmt-deprecates">
5874
- <fo:block xsl:use-attribute-sets="deprecates-style">
5875
- <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"/>
5876
5883
  <xsl:apply-templates/>
5877
5884
  </fo:block>
5878
5885
  </xsl:template>
@@ -5885,8 +5892,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5885
5892
  <!-- End Preferred, admitted, deprecated -->
5886
5893
 
5887
5894
  <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"/>
5895
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
5896
+ <xsl:call-template name="refine_term-related-block-style"/>
5890
5897
  <xsl:apply-templates/>
5891
5898
  </fo:block>
5892
5899
  </xsl:template>
@@ -5900,8 +5907,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
5900
5907
  <!-- definition -->
5901
5908
  <!-- ========== -->
5902
5909
  <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"/>
5910
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
5911
+ <xsl:call-template name="refine_term-definition-style"/>
5905
5912
  <xsl:apply-templates/>
5906
5913
  </fo:block>
5907
5914
  </xsl:template>
@@ -15902,6 +15909,20 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
15902
15909
  </fo:block-container>
15903
15910
  </xsl:template>
15904
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
+
15905
15926
  <xsl:template name="insertPageImage">
15906
15927
  <xsl:param name="svg_content_height" select="$pageHeight"/>
15907
15928
  <xsl:param name="bitmap_width" select="$pageWidth"/>