metanorma-itu 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.
@@ -375,18 +375,10 @@
375
375
  <xsl:attribute name="initial-page-number">1</xsl:attribute>
376
376
  </xsl:if>
377
377
 
378
- <xsl:choose>
379
- <xsl:when test="$doctype = 'service-publication'">
380
- <xsl:call-template name="insertHeaderFooterSP">
381
- <xsl:with-param name="footer-text" select="$footer-text"/>
382
- </xsl:call-template>
383
- </xsl:when>
384
- <xsl:otherwise>
385
- <xsl:call-template name="insertHeaderFooter">
386
- <xsl:with-param name="footer-text" select="$footer-text"/>
387
- </xsl:call-template>
388
- </xsl:otherwise>
389
- </xsl:choose>
378
+ <xsl:call-template name="insertHeaderFooter">
379
+ <xsl:with-param name="doctype" select="$doctype"/>
380
+ <xsl:with-param name="footer-text" select="$footer-text"/>
381
+ </xsl:call-template>
390
382
 
391
383
  <fo:flow flow-name="xsl-region-body">
392
384
 
@@ -498,18 +490,10 @@
498
490
 
499
491
  <xsl:call-template name="insertFootnoteSeparatorCommon"/>
500
492
 
501
- <xsl:choose>
502
- <xsl:when test="$doctype = 'service-publication'">
503
- <xsl:call-template name="insertHeaderFooterSP">
504
- <xsl:with-param name="footer-text" select="$footer-text"/>
505
- </xsl:call-template>
506
- </xsl:when>
507
- <xsl:otherwise>
508
- <xsl:call-template name="insertHeaderFooter">
509
- <xsl:with-param name="footer-text" select="$footer-text"/>
510
- </xsl:call-template>
511
- </xsl:otherwise>
512
- </xsl:choose>
493
+ <xsl:call-template name="insertHeaderFooter">
494
+ <xsl:with-param name="doctype" select="$doctype"/>
495
+ <xsl:with-param name="footer-text" select="$footer-text"/>
496
+ </xsl:call-template>
513
497
 
514
498
  <fo:flow flow-name="xsl-region-body">
515
499
 
@@ -705,6 +689,10 @@
705
689
  <!-- ============================================= -->
706
690
 
707
691
  <xsl:choose>
692
+ <xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
693
+ <xsl:call-template name="insertCoverPageFullImage"/>
694
+ </xsl:when>
695
+
708
696
  <xsl:when test="$layoutVersion = '2023'">
709
697
  <!-- cover page, version 2023 -->
710
698
  <fo:page-sequence force-page-count="no-force" master-reference="cover-page_2023" writing-mode="lr-tb" font-family="Arial" font-size="12pt">
@@ -2387,27 +2375,16 @@
2387
2375
  </xsl:template>
2388
2376
 
2389
2377
  <xsl:template match="mn:fmt-preferred" priority="2">
2390
- <!-- DEBUG need -->
2391
- <xsl:variable name="level">
2392
- <xsl:call-template name="getLevel"/>
2393
- </xsl:variable>
2394
- <xsl:variable name="levelTerm">
2395
- <xsl:call-template name="getLevelTermName"/>
2396
- </xsl:variable>
2397
- <fo:block space-before="6pt" text-align="justify" role="H{$levelTerm}">
2398
- <fo:inline padding-right="5mm" font-weight="bold">
2399
- <!-- level=<xsl:value-of select="$level"/> -->
2400
- <xsl:attribute name="padding-right">
2401
- <xsl:choose>
2402
- <xsl:when test="$level = 4">2mm</xsl:when>
2403
- <xsl:when test="$level = 3">4mm</xsl:when>
2404
- <xsl:otherwise>5mm</xsl:otherwise>
2405
- </xsl:choose>
2406
- </xsl:attribute>
2378
+ <fo:block xsl:use-attribute-sets="term-preferred-block-style">
2379
+ <xsl:call-template name="refine_term-preferred-block-style"/>
2380
+
2381
+ <fo:inline xsl:use-attribute-sets="term-number-style">
2382
+ <xsl:call-template name="refine_term-number-style"/>
2383
+
2407
2384
  <xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
2408
2385
  </fo:inline>
2409
- <fo:inline font-weight="bold">
2410
- <xsl:call-template name="refine_preferred-term-style"/>
2386
+ <fo:inline xsl:use-attribute-sets="term-preferred-style">
2387
+ <xsl:call-template name="refine_term-preferred-style"/>
2411
2388
  <xsl:apply-templates/>
2412
2389
  </fo:inline>
2413
2390
  <xsl:if test="../mn:fmt-termsource">
@@ -2827,91 +2804,109 @@
2827
2804
  </xsl:template> -->
2828
2805
 
2829
2806
  <xsl:template name="insertHeaderFooter">
2807
+ <xsl:param name="doctype"/>
2830
2808
  <xsl:param name="footer-text"/>
2831
- <fo:static-content flow-name="footer-even" font-family="Times New Roman" font-size="11pt" role="artifact">
2832
- <fo:block-container height="19mm" display-align="after">
2833
- <fo:table table-layout="fixed" width="100%" display-align="after">
2834
- <fo:table-column column-width="10%"/>
2835
- <fo:table-column column-width="90%"/>
2836
- <fo:table-body>
2837
- <fo:table-row>
2838
- <fo:table-cell text-align="start" padding-bottom="8mm">
2839
- <fo:block><fo:page-number/></fo:block>
2840
- </fo:table-cell>
2841
- <fo:table-cell font-weight="bold" text-align="start" padding-bottom="8mm">
2842
- <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2843
- </fo:table-cell>
2844
- </fo:table-row>
2845
- </fo:table-body>
2846
- </fo:table>
2847
- </fo:block-container>
2848
- </fo:static-content>
2849
- <fo:static-content flow-name="footer-odd" font-family="Times New Roman" font-size="11pt" role="artifact">
2850
- <fo:block-container height="19mm" display-align="after">
2851
- <fo:table table-layout="fixed" width="100%" display-align="after">
2852
- <fo:table-column column-width="90%"/>
2853
- <fo:table-column column-width="10%"/>
2854
- <fo:table-body>
2855
- <fo:table-row>
2856
- <fo:table-cell font-weight="bold" text-align="end" padding-bottom="8mm">
2857
- <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2858
- </fo:table-cell>
2859
- <fo:table-cell text-align="end" padding-bottom="8mm" padding-right="2mm">
2860
- <fo:block><fo:page-number/></fo:block>
2861
- </fo:table-cell>
2862
- </fo:table-row>
2863
- </fo:table-body>
2864
- </fo:table>
2865
- </fo:block-container>
2866
- </fo:static-content>
2809
+
2810
+ <xsl:call-template name="insertHeader"/>
2811
+
2812
+ <xsl:call-template name="insertFooter">
2813
+ <xsl:with-param name="doctype" select="$doctype"/>
2814
+ <xsl:with-param name="footer-text" select="$footer-text"/>
2815
+ </xsl:call-template>
2816
+ </xsl:template>
2817
+
2818
+ <xsl:template name="insertHeader">
2867
2819
  </xsl:template>
2868
2820
 
2869
- <xsl:template name="insertHeaderFooterSP">
2821
+ <xsl:template name="insertFooter">
2822
+ <xsl:param name="doctype"/>
2870
2823
  <xsl:param name="footer-text"/>
2871
- <fo:static-content flow-name="footer-even" role="artifact">
2872
- <fo:block-container height="20mm">
2873
- <fo:table table-layout="fixed" width="100%" margin-top="3mm">
2874
- <fo:table-column column-width="proportional-column-width(2)"/>
2875
- <fo:table-column column-width="proportional-column-width(2)"/>
2876
- <fo:table-column column-width="proportional-column-width(2)"/>
2877
- <fo:table-body>
2878
- <fo:table-row>
2879
- <fo:table-cell text-align="start" font-size="10pt" display-align="center">
2880
- <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2881
- </fo:table-cell>
2882
- <fo:table-cell text-align="center">
2883
- <fo:block>– <fo:page-number/> –</fo:block>
2884
- </fo:table-cell>
2885
- <fo:table-cell>
2886
- <fo:block> </fo:block>
2887
- </fo:table-cell>
2888
- </fo:table-row>
2889
- </fo:table-body>
2890
- </fo:table>
2891
- </fo:block-container>
2892
- </fo:static-content>
2893
- <fo:static-content flow-name="footer-odd" role="artifact">
2894
- <fo:block-container height="20mm">
2895
- <fo:table table-layout="fixed" width="100%" margin-top="3mm">
2896
- <fo:table-column column-width="proportional-column-width(2)"/>
2897
- <fo:table-column column-width="proportional-column-width(2)"/>
2898
- <fo:table-column column-width="proportional-column-width(2)"/>
2899
- <fo:table-body>
2900
- <fo:table-row>
2901
- <fo:table-cell text-align="start" font-size="10pt" display-align="center">
2902
- <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2903
- </fo:table-cell>
2904
- <fo:table-cell text-align="center">
2905
- <fo:block>– <fo:page-number/> –</fo:block>
2906
- </fo:table-cell>
2907
- <fo:table-cell>
2908
- <fo:block> </fo:block>
2909
- </fo:table-cell>
2910
- </fo:table-row>
2911
- </fo:table-body>
2912
- </fo:table>
2913
- </fo:block-container>
2914
- </fo:static-content>
2824
+ <xsl:choose>
2825
+ <xsl:when test="$doctype = 'service-publication'">
2826
+ <fo:static-content flow-name="footer-even" role="artifact">
2827
+ <fo:block-container height="20mm">
2828
+ <fo:table table-layout="fixed" width="100%" margin-top="3mm">
2829
+ <fo:table-column column-width="proportional-column-width(2)"/>
2830
+ <fo:table-column column-width="proportional-column-width(2)"/>
2831
+ <fo:table-column column-width="proportional-column-width(2)"/>
2832
+ <fo:table-body>
2833
+ <fo:table-row>
2834
+ <fo:table-cell text-align="start" font-size="10pt" display-align="center">
2835
+ <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2836
+ </fo:table-cell>
2837
+ <fo:table-cell text-align="center">
2838
+ <fo:block>– <fo:page-number/> –</fo:block>
2839
+ </fo:table-cell>
2840
+ <fo:table-cell>
2841
+ <fo:block> </fo:block>
2842
+ </fo:table-cell>
2843
+ </fo:table-row>
2844
+ </fo:table-body>
2845
+ </fo:table>
2846
+ </fo:block-container>
2847
+ </fo:static-content>
2848
+ <fo:static-content flow-name="footer-odd" role="artifact">
2849
+ <fo:block-container height="20mm">
2850
+ <fo:table table-layout="fixed" width="100%" margin-top="3mm">
2851
+ <fo:table-column column-width="proportional-column-width(2)"/>
2852
+ <fo:table-column column-width="proportional-column-width(2)"/>
2853
+ <fo:table-column column-width="proportional-column-width(2)"/>
2854
+ <fo:table-body>
2855
+ <fo:table-row>
2856
+ <fo:table-cell text-align="start" font-size="10pt" display-align="center">
2857
+ <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2858
+ </fo:table-cell>
2859
+ <fo:table-cell text-align="center">
2860
+ <fo:block>– <fo:page-number/> –</fo:block>
2861
+ </fo:table-cell>
2862
+ <fo:table-cell>
2863
+ <fo:block> </fo:block>
2864
+ </fo:table-cell>
2865
+ </fo:table-row>
2866
+ </fo:table-body>
2867
+ </fo:table>
2868
+ </fo:block-container>
2869
+ </fo:static-content>
2870
+ </xsl:when>
2871
+ <xsl:otherwise>
2872
+ <fo:static-content flow-name="footer-even" font-family="Times New Roman" font-size="11pt" role="artifact">
2873
+ <fo:block-container height="19mm" display-align="after">
2874
+ <fo:table table-layout="fixed" width="100%" display-align="after">
2875
+ <fo:table-column column-width="10%"/>
2876
+ <fo:table-column column-width="90%"/>
2877
+ <fo:table-body>
2878
+ <fo:table-row>
2879
+ <fo:table-cell text-align="start" padding-bottom="8mm">
2880
+ <fo:block><fo:page-number/></fo:block>
2881
+ </fo:table-cell>
2882
+ <fo:table-cell font-weight="bold" text-align="start" padding-bottom="8mm">
2883
+ <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2884
+ </fo:table-cell>
2885
+ </fo:table-row>
2886
+ </fo:table-body>
2887
+ </fo:table>
2888
+ </fo:block-container>
2889
+ </fo:static-content>
2890
+ <fo:static-content flow-name="footer-odd" font-family="Times New Roman" font-size="11pt" role="artifact">
2891
+ <fo:block-container height="19mm" display-align="after">
2892
+ <fo:table table-layout="fixed" width="100%" display-align="after">
2893
+ <fo:table-column column-width="90%"/>
2894
+ <fo:table-column column-width="10%"/>
2895
+ <fo:table-body>
2896
+ <fo:table-row>
2897
+ <fo:table-cell font-weight="bold" text-align="end" padding-bottom="8mm">
2898
+ <fo:block><xsl:value-of select="$footer-text"/></fo:block>
2899
+ </fo:table-cell>
2900
+ <fo:table-cell text-align="end" padding-bottom="8mm" padding-right="2mm">
2901
+ <fo:block><fo:page-number/></fo:block>
2902
+ </fo:table-cell>
2903
+ </fo:table-row>
2904
+ </fo:table-body>
2905
+ </fo:table>
2906
+ </fo:block-container>
2907
+ </fo:static-content>
2908
+ </xsl:otherwise>
2909
+ </xsl:choose>
2915
2910
  </xsl:template>
2916
2911
 
2917
2912
  <xsl:variable name="Image-Fond-Rec">
@@ -6377,83 +6372,96 @@
6377
6372
  <xsl:template name="refine_term-style">
6378
6373
  </xsl:template>
6379
6374
 
6380
- <xsl:attribute-set name="term-name-style">
6375
+ <xsl:attribute-set name="term-number-style">
6381
6376
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
6382
6377
  <xsl:attribute name="font-weight">bold</xsl:attribute>
6378
+ <xsl:attribute name="padding-right">5mm</xsl:attribute>
6383
6379
  </xsl:attribute-set> <!-- term-name-style -->
6384
6380
 
6385
- <xsl:template name="refine_term-name-style">
6386
- </xsl:template>
6387
-
6388
- <xsl:attribute-set name="preferred-style">
6389
- </xsl:attribute-set> <!-- preferred-style -->
6390
-
6391
- <xsl:template name="refine_preferred-style">
6381
+ <xsl:template name="refine_term-number-style">
6382
+ <xsl:variable name="level">
6383
+ <xsl:call-template name="getLevel"/>
6384
+ </xsl:variable>
6385
+ <!-- level=<xsl:value-of select="$level"/> -->
6386
+ <xsl:attribute name="padding-right">
6387
+ <xsl:choose>
6388
+ <xsl:when test="$level = 4">2mm</xsl:when>
6389
+ <xsl:when test="$level = 3">4mm</xsl:when>
6390
+ <xsl:otherwise>5mm</xsl:otherwise>
6391
+ </xsl:choose>
6392
+ </xsl:attribute>
6392
6393
  </xsl:template>
6393
6394
 
6394
- <xsl:attribute-set name="preferred-block-style">
6395
+ <xsl:attribute-set name="term-preferred-block-style">
6396
+ <xsl:attribute name="space-before">6pt</xsl:attribute>
6397
+ <xsl:attribute name="text-align">justify</xsl:attribute>
6395
6398
  </xsl:attribute-set> <!-- preferred-block-style -->
6396
6399
 
6397
- <xsl:template name="refine_preferred-block-style">
6400
+ <xsl:template name="refine_term-preferred-block-style">
6401
+ <xsl:variable name="levelTerm">
6402
+ <xsl:call-template name="getLevelTermName"/>
6403
+ </xsl:variable>
6404
+ <xsl:attribute name="role">H<xsl:value-of select="$levelTerm"/></xsl:attribute>
6398
6405
  </xsl:template>
6399
6406
 
6400
- <xsl:attribute-set name="preferred-term-style">
6407
+ <xsl:attribute-set name="term-preferred-style">
6401
6408
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
6402
6409
  <xsl:attribute name="font-weight">bold</xsl:attribute>
6410
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
6403
6411
  </xsl:attribute-set> <!-- preferred-term-style -->
6404
6412
 
6405
- <xsl:template name="refine_preferred-term-style">
6413
+ <xsl:template name="refine_term-preferred-style">
6406
6414
  <xsl:if test="mn:strong">
6407
6415
  <xsl:attribute name="font-weight">normal</xsl:attribute>
6408
6416
  </xsl:if>
6409
6417
  </xsl:template>
6410
6418
 
6411
- <xsl:attribute-set name="domain-style">
6412
- </xsl:attribute-set> <!-- domain-style -->
6419
+ <xsl:attribute-set name="term-domain-style">
6420
+ </xsl:attribute-set> <!-- term-domain-style -->
6413
6421
 
6414
- <xsl:template name="refine_domain-style">
6422
+ <xsl:template name="refine_term-domain-style">
6415
6423
  </xsl:template>
6416
6424
 
6417
- <xsl:attribute-set name="admitted-style">
6418
- </xsl:attribute-set> <!-- admitted-style -->
6425
+ <xsl:attribute-set name="term-admitted-style">
6426
+ </xsl:attribute-set> <!-- term-admitted-style -->
6419
6427
 
6420
- <xsl:template name="refine_admitted-style">
6428
+ <xsl:template name="refine_term-admitted-style">
6421
6429
  </xsl:template>
6422
6430
 
6423
- <xsl:attribute-set name="deprecates-style">
6424
- </xsl:attribute-set> <!-- deprecates-style -->
6431
+ <xsl:attribute-set name="term-deprecates-style">
6432
+ </xsl:attribute-set> <!-- term-deprecates-style -->
6425
6433
 
6426
- <xsl:template name="refine_deprecates-style">
6434
+ <xsl:template name="refine_term-deprecates-style">
6427
6435
  </xsl:template>
6428
6436
 
6429
- <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
6437
+ <xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
6430
6438
  </xsl:attribute-set>
6431
6439
 
6432
- <xsl:template name="refine_related-block-style">
6440
+ <xsl:template name="refine_term-related-block-style">
6433
6441
  </xsl:template>
6434
6442
 
6435
- <xsl:attribute-set name="definition-style">
6436
- </xsl:attribute-set> <!-- definition-style -->
6443
+ <xsl:attribute-set name="term-definition-style">
6444
+ </xsl:attribute-set> <!-- term-definition-style -->
6437
6445
 
6438
- <xsl:template name="refine_definition-style">
6446
+ <xsl:template name="refine_term-definition-style">
6439
6447
  </xsl:template>
6440
6448
 
6441
- <xsl:attribute-set name="termsource-style">
6442
- </xsl:attribute-set> <!-- termsource-style -->
6449
+ <xsl:attribute-set name="term-termsource-style">
6450
+ </xsl:attribute-set> <!-- term-termsource-style -->
6443
6451
 
6444
- <xsl:template name="refine_termsource-style">
6445
- </xsl:template> <!-- refine_termsource-style -->
6452
+ <xsl:template name="refine_term-termsource-style">
6453
+ </xsl:template> <!-- refine_term-termsource-style -->
6446
6454
 
6447
- <xsl:attribute-set name="termsource-text-style">
6448
- </xsl:attribute-set> <!-- termsource-text-style -->
6455
+ <xsl:attribute-set name="term-termsource-text-style">
6456
+ </xsl:attribute-set> <!-- term-termsource-text-style -->
6449
6457
 
6450
- <xsl:template name="refine_termsource-text-style">
6458
+ <xsl:template name="refine_term-termsource-text-style">
6451
6459
  </xsl:template>
6452
6460
 
6453
- <xsl:attribute-set name="origin-style">
6454
- </xsl:attribute-set> <!-- origin-style -->
6461
+ <xsl:attribute-set name="term-origin-style">
6462
+ </xsl:attribute-set> <!-- term-origin-style -->
6455
6463
 
6456
- <xsl:template name="refine_origin-style">
6464
+ <xsl:template name="refine_term-origin-style">
6457
6465
  </xsl:template>
6458
6466
 
6459
6467
  <!-- ====== -->
@@ -6497,9 +6505,9 @@
6497
6505
  <!-- modification -->
6498
6506
  <!-- ====== -->
6499
6507
  <xsl:template match="mn:fmt-termsource" name="termsource">
6500
- <fo:block xsl:use-attribute-sets="termsource-style">
6508
+ <fo:block xsl:use-attribute-sets="term-termsource-style">
6501
6509
 
6502
- <xsl:call-template name="refine_termsource-style"/>
6510
+ <xsl:call-template name="refine_term-termsource-style"/>
6503
6511
 
6504
6512
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
6505
6513
  <xsl:variable name="termsource_text">
@@ -6547,8 +6555,8 @@
6547
6555
 
6548
6556
  <!-- text SOURCE: -->
6549
6557
  <xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
6550
- <fo:inline xsl:use-attribute-sets="termsource-text-style">
6551
- <xsl:call-template name="refine_termsource-text-style"/>
6558
+ <fo:inline xsl:use-attribute-sets="term-termsource-text-style">
6559
+ <xsl:call-template name="refine_term-termsource-text-style"/>
6552
6560
  <xsl:value-of select="."/>
6553
6561
  </fo:inline>
6554
6562
  </xsl:template>
@@ -6560,8 +6568,8 @@
6560
6568
  <xsl:if test="normalize-space(@citeas) = ''">
6561
6569
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
6562
6570
  </xsl:if>
6563
- <fo:inline xsl:use-attribute-sets="origin-style">
6564
- <xsl:call-template name="refine_origin-style"/>
6571
+ <fo:inline xsl:use-attribute-sets="term-origin-style">
6572
+ <xsl:call-template name="refine_term-origin-style"/>
6565
6573
  <xsl:apply-templates/>
6566
6574
  </fo:inline>
6567
6575
  </fo:basic-link>
@@ -6609,14 +6617,14 @@
6609
6617
  <xsl:variable name="levelTerm">
6610
6618
  <xsl:call-template name="getLevelTermName"/>
6611
6619
  </xsl:variable>
6612
- <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
6620
+ <fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
6613
6621
 
6614
- <xsl:call-template name="refine_preferred-block-style"/>
6622
+ <xsl:call-template name="refine_term-preferred-block-style"/>
6615
6623
 
6616
6624
  <xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
6617
6625
 
6618
- <fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
6619
- <xsl:call-template name="refine_term-name-style"/>
6626
+ <fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
6627
+ <xsl:call-template name="refine_term-number-style"/>
6620
6628
 
6621
6629
  <xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
6622
6630
  <xsl:call-template name="setIDforNamedDestination"/>
@@ -6626,8 +6634,8 @@
6626
6634
  </fo:block>
6627
6635
  </xsl:if>
6628
6636
 
6629
- <fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
6630
- <xsl:call-template name="refine_preferred-term-style"/>
6637
+ <fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
6638
+ <xsl:call-template name="refine_term-preferred-style"/>
6631
6639
 
6632
6640
  <xsl:apply-templates/>
6633
6641
  </fo:block>
@@ -6647,15 +6655,15 @@
6647
6655
  <xsl:template match="mn:domain"/>
6648
6656
 
6649
6657
  <xsl:template match="mn:fmt-admitted">
6650
- <fo:block xsl:use-attribute-sets="admitted-style">
6651
- <xsl:call-template name="refine_admitted-style"/>
6658
+ <fo:block xsl:use-attribute-sets="term-admitted-style">
6659
+ <xsl:call-template name="refine_term-admitted-style"/>
6652
6660
  <xsl:apply-templates/>
6653
6661
  </fo:block>
6654
6662
  </xsl:template>
6655
6663
 
6656
6664
  <xsl:template match="mn:fmt-deprecates">
6657
- <fo:block xsl:use-attribute-sets="deprecates-style">
6658
- <xsl:call-template name="refine_deprecates-style"/>
6665
+ <fo:block xsl:use-attribute-sets="term-deprecates-style">
6666
+ <xsl:call-template name="refine_term-deprecates-style"/>
6659
6667
  <xsl:apply-templates/>
6660
6668
  </fo:block>
6661
6669
  </xsl:template>
@@ -6668,8 +6676,8 @@
6668
6676
  <!-- End Preferred, admitted, deprecated -->
6669
6677
 
6670
6678
  <xsl:template match="mn:fmt-related">
6671
- <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
6672
- <xsl:call-template name="refine_related-block-style"/>
6679
+ <fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
6680
+ <xsl:call-template name="refine_term-related-block-style"/>
6673
6681
  <xsl:apply-templates/>
6674
6682
  </fo:block>
6675
6683
  </xsl:template>
@@ -6683,8 +6691,8 @@
6683
6691
  <!-- definition -->
6684
6692
  <!-- ========== -->
6685
6693
  <xsl:template match="mn:fmt-definition">
6686
- <fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
6687
- <xsl:call-template name="refine_definition-style"/>
6694
+ <fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
6695
+ <xsl:call-template name="refine_term-definition-style"/>
6688
6696
  <xsl:apply-templates/>
6689
6697
  </fo:block>
6690
6698
  </xsl:template>
@@ -16656,6 +16664,20 @@
16656
16664
  </fo:block-container>
16657
16665
  </xsl:template>
16658
16666
 
16667
+ <!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
16668
+ <xsl:template name="insertCoverPageFullImage">
16669
+ <xsl:param name="name">coverpage-image</xsl:param>
16670
+ <xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
16671
+ <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
16672
+ <fo:flow flow-name="xsl-region-body">
16673
+ <xsl:call-template name="insertBackgroundPageImage">
16674
+ <xsl:with-param name="number" select="position()"/>
16675
+ </xsl:call-template>
16676
+ </fo:flow>
16677
+ </fo:page-sequence>
16678
+ </xsl:for-each>
16679
+ </xsl:template>
16680
+
16659
16681
  <xsl:template name="insertPageImage">
16660
16682
  <xsl:param name="svg_content_height" select="$pageHeight"/>
16661
16683
  <xsl:param name="bitmap_width" select="$pageWidth"/>