metanorma-iso 1.5.9 → 1.5.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f062c8a45b1571a860957f18b17486aeeb235b0b9bc63fe2dced19bfb87cfee7
4
- data.tar.gz: 330063e5d378fedb3b4e40da8b3ab577ba5d64e0ee0171699657eab00bca35b6
3
+ metadata.gz: bcacb0045dc41c1bd31e2623205d83815c60dc4e020bbe6c0485ee0abd2f24d6
4
+ data.tar.gz: 795cf80c9d0c18c0aebfeff25f7e919c790b47fbf3352746e5f28cf90701a728
5
5
  SHA512:
6
- metadata.gz: ffa2c512604cfb1cc4933d854df04a7690aecbdddf0df8b09aa74b2d0d4dd7534f2ec33d0eeb54525f3edddc67e4851f7fffb0282c0ddc889b9d81d6b507a370
7
- data.tar.gz: 41fb639fb4076cd238872f8411734e51b7647123a26b4ed05ab948d58b32c1df57f7d8d874b178cb3b5f35cdb9a6efaa3f7c5fb3f59068820797101b34a24bd9
6
+ metadata.gz: 72ebb4928526e51d726f697c99798f2375f3e26c34b7e641e463a074a9d467a3e94e4d60c68a129ac71552e7826a757af0f20c871aefe5f7b27a2f21e0e17b74
7
+ data.tar.gz: 8507e683e4534458a8a3af9908862608e6e07675b2c6cdd9f29788b84ef36b3456fb4a859c33efd8a89f1f91206b2bc6e3dd00ef281ffbcebe8cad5599d08fe7
@@ -28,7 +28,7 @@ module Asciidoctor
28
28
  csv_split(publishers).each do |p|
29
29
  xml.contributor do |c|
30
30
  c.role **{ type: "author" }
31
- c.organization { |a| organization(a, p) }
31
+ c.organization { |a| organization(a, p, node, !node.attr("publisher")) }
32
32
  end
33
33
  end
34
34
  end
@@ -38,7 +38,7 @@ module Asciidoctor
38
38
  csv_split(publishers).each do |p|
39
39
  xml.contributor do |c|
40
40
  c.role **{ type: "publisher" }
41
- c.organization { |a| organization(a, p) }
41
+ c.organization { |a| organization(a, p, node, !node.attr("publisher")) }
42
42
  end
43
43
  end
44
44
  end
@@ -49,7 +49,10 @@ module Asciidoctor
49
49
  xml.copyright do |c|
50
50
  c.from (node.attr("copyright-year") || Date.today.year)
51
51
  c.owner do |owner|
52
- owner.organization { |o| organization(o, p) }
52
+ owner.organization do |o|
53
+ organization(o, p, node,
54
+ !(node.attr("copyright-holder") || node.attr("publisher")))
55
+ end
53
56
  end
54
57
  end
55
58
  end
@@ -42,7 +42,6 @@
42
42
  </define>
43
43
  <define name="xref">
44
44
  <element name="xref">
45
- <!-- attribute target { xsd:IDREF }, -->
46
45
  <attribute name="target">
47
46
  <data type="string">
48
47
  <param name="pattern">\i\c*|\c+#\c+</param>
@@ -16,7 +16,7 @@ fieldset, form, label, legend,
16
16
  table, caption, tbody, tfoot, thead, tr, th, td,
17
17
  article, aside, canvas, details, embed,
18
18
  figure, figcaption, footer, header, hgroup,
19
- menu, nav, output, ruby, section, summary,
19
+ menu, output, ruby, section, summary,
20
20
  time, mark, audio, video {
21
21
  margin: 0;
22
22
  padding: 0; }
@@ -16,7 +16,7 @@ fieldset, form, label, legend,
16
16
  table, caption, tbody, tfoot, thead, tr, th, td,
17
17
  article, aside, canvas, details, embed,
18
18
  figure, figcaption, footer, header, hgroup,
19
- menu, nav, output, ruby, section, summary,
19
+ menu, output, ruby, section, summary,
20
20
  time, mark, audio, video {
21
21
  margin: 0;
22
22
  padding: 0; }
@@ -402,7 +402,15 @@
402
402
  <fo:flow flow-name="xsl-region-body">
403
403
  <fo:block-container>
404
404
  <fo:block margin-top="-1mm" font-size="20pt" text-align="right">
405
- <xsl:value-of select="$stage-fullname-uppercased"/>
405
+ <xsl:value-of select="$stage-fullname-uppercased"/>
406
+ <!-- <xsl:if test="$doctype = 'amendment'">
407
+ <xsl:variable name="title-amendment">
408
+ <xsl:call-template name="getTitle">
409
+ <xsl:with-param name="name" select="'title-amendment'"/>
410
+ </xsl:call-template>
411
+ </xsl:variable>
412
+ <xsl:text> </xsl:text><xsl:value-of select="$title-amendment"/>
413
+ </xsl:if> -->
406
414
  </fo:block>
407
415
  <fo:block font-size="20pt" font-weight="bold" text-align="right">
408
416
  <xsl:value-of select="$docidentifierISO"/>
@@ -477,16 +485,13 @@
477
485
 
478
486
  <xsl:call-template name="printTitlePartEn"/>
479
487
 
480
- <!-- <xsl:if test="normalize-space($title-part) != ''">
481
- <xsl:if test="$part != ''">
482
- <xsl:text> — </xsl:text>
483
- <fo:block font-weight="normal" margin-top="6pt">
484
- <xsl:text>Part </xsl:text><xsl:value-of select="$part"/>
485
- <xsl:text>:</xsl:text>
486
- </fo:block>
487
- </xsl:if>
488
- <xsl:value-of select="$title-part"/>
489
- </xsl:if> -->
488
+ <xsl:variable name="title-amd" select="/iso:iso-standard/iso:bibdata/iso:title[@language = 'en' and @type = 'title-amd']"/>
489
+ <xsl:if test="$doctype = 'amendment' and normalize-space($title-amd) != ''">
490
+ <fo:block margin-top="12pt">
491
+ <xsl:call-template name="printAmendmentTitle"/>
492
+ </fo:block>
493
+ </xsl:if>
494
+
490
495
  </fo:block>
491
496
 
492
497
  <fo:block font-size="9pt"><xsl:value-of select="$linebreak"/></fo:block>
@@ -501,6 +506,15 @@
501
506
 
502
507
  <xsl:call-template name="printTitlePartFr"/>
503
508
 
509
+ <xsl:variable name="title-amd" select="/iso:iso-standard/iso:bibdata/iso:title[@language = 'fr' and @type = 'title-amd']"/>
510
+ <xsl:if test="$doctype = 'amendment' and normalize-space($title-amd) != ''">
511
+ <fo:block margin-top="6pt">
512
+ <xsl:call-template name="printAmendmentTitle">
513
+ <xsl:with-param name="lang" select="'fr'"/>
514
+ </xsl:call-template>
515
+ </fo:block>
516
+ </xsl:if>
517
+
504
518
  </fo:block>
505
519
  </fo:block>
506
520
  <fo:block margin-top="10mm">
@@ -2070,7 +2084,12 @@
2070
2084
 
2071
2085
 
2072
2086
  </title-toc>
2073
- <title-toc lang="fr">Sommaire</title-toc>
2087
+ <title-toc lang="fr">
2088
+
2089
+ <xsl:text>Sommaire</xsl:text>
2090
+
2091
+
2092
+ </title-toc>
2074
2093
 
2075
2094
  <title-toc lang="zh">Contents</title-toc>
2076
2095
 
@@ -2162,10 +2181,19 @@
2162
2181
 
2163
2182
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
2164
2183
  <xsl:param name="name"/>
2165
- <xsl:variable name="lang">
2166
- <xsl:call-template name="getLang"/>
2184
+ <xsl:param name="lang"/>
2185
+ <xsl:variable name="lang_">
2186
+ <xsl:choose>
2187
+ <xsl:when test="$lang != ''">
2188
+ <xsl:value-of select="$lang"/>
2189
+ </xsl:when>
2190
+ <xsl:otherwise>
2191
+ <xsl:call-template name="getLang"/>
2192
+ </xsl:otherwise>
2193
+ </xsl:choose>
2167
2194
  </xsl:variable>
2168
- <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
2195
+ <xsl:variable name="language" select="normalize-space($lang_)"/>
2196
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
2169
2197
  <xsl:choose>
2170
2198
  <xsl:when test="normalize-space($title_) != ''">
2171
2199
  <xsl:value-of select="$title_"/>
@@ -2318,6 +2346,7 @@
2318
2346
 
2319
2347
 
2320
2348
 
2349
+
2321
2350
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2322
2351
 
2323
2352
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -2567,6 +2596,8 @@
2567
2596
 
2568
2597
 
2569
2598
 
2599
+
2600
+
2570
2601
  <!-- $namespace = 'iso' or -->
2571
2602
 
2572
2603
 
@@ -2600,6 +2631,7 @@
2600
2631
  <xsl:with-param name="table" select="$simple-table"/>
2601
2632
  </xsl:call-template>
2602
2633
  </xsl:variable>
2634
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
2603
2635
 
2604
2636
  <!-- <xsl:variable name="colwidths2">
2605
2637
  <xsl:call-template name="calculate-column-widths">
@@ -2620,11 +2652,16 @@
2620
2652
 
2621
2653
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2622
2654
 
2655
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2623
2656
 
2624
2657
 
2658
+
2659
+
2660
+
2625
2661
 
2626
2662
 
2627
-
2663
+
2664
+
2628
2665
 
2629
2666
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
2630
2667
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
@@ -2633,30 +2670,47 @@
2633
2670
 
2634
2671
 
2635
2672
 
2636
- <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
2673
+
2674
+
2675
+
2676
+ <xsl:variable name="table_attributes">
2677
+ <attribute name="table-layout">fixed</attribute>
2678
+ <attribute name="width">100%</attribute>
2679
+ <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
2680
+ <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
2637
2681
 
2638
- <xsl:attribute name="border">1.5pt solid black</xsl:attribute>
2682
+ <attribute name="border">1.5pt solid black</attribute>
2639
2683
  <xsl:if test="*[local-name()='thead']">
2640
- <xsl:attribute name="border-top">1pt solid black</xsl:attribute>
2684
+ <attribute name="border-top">1pt solid black</attribute>
2641
2685
  </xsl:if>
2642
2686
 
2643
2687
 
2644
2688
 
2645
2689
 
2646
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
2647
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
2648
-
2649
-
2650
-
2651
-
2652
-
2653
-
2654
- <xsl:attribute name="font-size">10pt</xsl:attribute>
2690
+ <attribute name="margin-left">0mm</attribute>
2691
+ <attribute name="margin-right">0mm</attribute>
2655
2692
 
2693
+
2694
+
2695
+
2656
2696
 
2697
+
2657
2698
 
2699
+ </xsl:variable>
2700
+
2701
+
2702
+ <fo:table id="{@id}" table-omit-footer-at-break="true">
2658
2703
 
2704
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
2705
+ <xsl:attribute name="{@name}">
2706
+ <xsl:value-of select="."/>
2707
+ </xsl:attribute>
2708
+ </xsl:for-each>
2659
2709
 
2710
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
2711
+ <xsl:if test="$isNoteOrFnExist = 'true'">
2712
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2713
+ </xsl:if>
2660
2714
 
2661
2715
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
2662
2716
  <xsl:choose>
@@ -2680,6 +2734,33 @@
2680
2734
 
2681
2735
  </fo:table>
2682
2736
 
2737
+ <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
2738
+ <xsl:call-template name="insertTableFooterInSeparateTable">
2739
+ <xsl:with-param name="table_attributes" select="$table_attributes"/>
2740
+ <xsl:with-param name="colwidths" select="$colwidths"/>
2741
+ </xsl:call-template>
2742
+ </xsl:for-each>
2743
+
2744
+ <!-- insert footer as table -->
2745
+ <!-- <fo:table>
2746
+ <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
2747
+ <xsl:attribute name="{@name}">
2748
+ <xsl:value-of select="."/>
2749
+ </xsl:attribute>
2750
+ </xsl:for-each>
2751
+
2752
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2753
+ <xsl:choose>
2754
+ <xsl:when test=". = 1 or . = 0">
2755
+ <fo:table-column column-width="proportional-column-width(2)"/>
2756
+ </xsl:when>
2757
+ <xsl:otherwise>
2758
+ <fo:table-column column-width="proportional-column-width({.})"/>
2759
+ </xsl:otherwise>
2760
+ </xsl:choose>
2761
+ </xsl:for-each>
2762
+ </fo:table>-->
2763
+
2683
2764
 
2684
2765
 
2685
2766
 
@@ -2746,6 +2827,13 @@
2746
2827
  <xsl:for-each select="xalan:nodeset($table)//tr">
2747
2828
  <xsl:variable name="td_text">
2748
2829
  <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
2830
+
2831
+ <!-- <xsl:if test="$namespace = 'bipm'">
2832
+ <xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
2833
+ <word><xsl:value-of select="normalize-space(.)"/></word>
2834
+ </xsl:for-each>
2835
+ </xsl:if> -->
2836
+
2749
2837
  </xsl:variable>
2750
2838
  <xsl:variable name="words">
2751
2839
  <xsl:variable name="string_with_added_zerospaces">
@@ -2805,6 +2893,9 @@
2805
2893
  <xsl:value-of select="*[local-name()='origin']/@citeas"/>
2806
2894
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
2807
2895
  <xsl:value-of select="@target"/>
2896
+ </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
2897
+ <xsl:variable name="math_text" select="normalize-space(.)"/>
2898
+ <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
2808
2899
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
2809
2900
  <xsl:param name="cols-count"/>
2810
2901
  <!-- font-weight="bold" -->
@@ -2813,7 +2904,7 @@
2813
2904
  <xsl:call-template name="table-header-title">
2814
2905
  <xsl:with-param name="cols-count" select="$cols-count"/>
2815
2906
  </xsl:call-template>
2816
-
2907
+
2817
2908
  <xsl:apply-templates/>
2818
2909
  </fo:table-header>
2819
2910
  </xsl:template><xsl:template name="table-header-title">
@@ -2838,6 +2929,13 @@
2838
2929
  </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
2839
2930
  <xsl:apply-templates/>
2840
2931
  </xsl:template><xsl:template name="insertTableFooter">
2932
+ <xsl:param name="cols-count"/>
2933
+ <xsl:if test="../*[local-name()='tfoot']">
2934
+ <fo:table-footer>
2935
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
2936
+ </fo:table-footer>
2937
+ </xsl:if>
2938
+ </xsl:template><xsl:template name="insertTableFooter2">
2841
2939
  <xsl:param name="cols-count"/>
2842
2940
  <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
2843
2941
  <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
@@ -2861,11 +2959,15 @@
2861
2959
  <!-- fn will be processed inside 'note' processing -->
2862
2960
 
2863
2961
 
2864
- <!-- except gb -->
2962
+
2963
+ <!-- except gb and bipm -->
2865
2964
 
2866
2965
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
2867
2966
 
2868
2967
 
2968
+
2969
+
2970
+
2869
2971
  <!-- horizontal row separator -->
2870
2972
 
2871
2973
 
@@ -2879,6 +2981,86 @@
2879
2981
  </fo:table-footer>
2880
2982
 
2881
2983
  </xsl:if>
2984
+ </xsl:template><xsl:template name="insertTableFooterInSeparateTable">
2985
+ <xsl:param name="table_attributes"/>
2986
+ <xsl:param name="colwidths"/>
2987
+
2988
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
2989
+
2990
+ <xsl:if test="$isNoteOrFnExist = 'true'">
2991
+
2992
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($colwidths)//column)"/>
2993
+
2994
+ <fo:table keep-with-previous="always">
2995
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
2996
+ <xsl:choose>
2997
+ <xsl:when test="@name = 'border-top'">
2998
+ <xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
2999
+ </xsl:when>
3000
+ <xsl:when test="@name = 'border'">
3001
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
3002
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
3003
+ </xsl:when>
3004
+ <xsl:otherwise>
3005
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
3006
+ </xsl:otherwise>
3007
+ </xsl:choose>
3008
+ </xsl:for-each>
3009
+
3010
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
3011
+ <xsl:choose>
3012
+ <xsl:when test=". = 1 or . = 0">
3013
+ <fo:table-column column-width="proportional-column-width(2)"/>
3014
+ </xsl:when>
3015
+ <xsl:otherwise>
3016
+ <fo:table-column column-width="proportional-column-width({.})"/>
3017
+ </xsl:otherwise>
3018
+ </xsl:choose>
3019
+ </xsl:for-each>
3020
+
3021
+ <fo:table-body>
3022
+ <fo:table-row>
3023
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
3024
+
3025
+ <xsl:attribute name="border-top">solid black 0pt</xsl:attribute>
3026
+
3027
+
3028
+
3029
+ <!-- fn will be processed inside 'note' processing -->
3030
+
3031
+
3032
+
3033
+ <!-- except gb and bipm -->
3034
+
3035
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
3036
+
3037
+
3038
+ <!-- <xsl:if test="$namespace = 'bipm'">
3039
+ <xsl:choose>
3040
+ <xsl:when test="ancestor::*[local-name()='preface']">
3041
+ show Note under table in preface (ex. abstract) sections
3042
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
3043
+ </xsl:when>
3044
+ <xsl:otherwise>
3045
+ empty, because notes show at page side in main sections
3046
+ <fo:block/>
3047
+ </xsl:otherwise>
3048
+ </xsl:choose>
3049
+ </xsl:if> -->
3050
+
3051
+
3052
+ <!-- horizontal row separator -->
3053
+
3054
+
3055
+ <!-- fn processing -->
3056
+ <xsl:call-template name="fn_display"/>
3057
+
3058
+ </fo:table-cell>
3059
+ </fo:table-row>
3060
+ </fo:table-body>
3061
+
3062
+ </fo:table>
3063
+ </xsl:if>
2882
3064
  </xsl:template><xsl:template match="*[local-name()='tbody']">
2883
3065
 
2884
3066
  <xsl:variable name="cols-count">
@@ -2981,8 +3163,8 @@
2981
3163
 
2982
3164
  </xsl:if>
2983
3165
 
2984
-
2985
-
3166
+
3167
+
2986
3168
 
2987
3169
  <xsl:apply-templates/>
2988
3170
  </fo:table-row>
@@ -3008,6 +3190,7 @@
3008
3190
 
3009
3191
 
3010
3192
 
3193
+
3011
3194
  <xsl:if test="@colspan">
3012
3195
  <xsl:attribute name="number-columns-spanned">
3013
3196
  <xsl:value-of select="@colspan"/>
@@ -3053,7 +3236,8 @@
3053
3236
  <xsl:attribute name="border">solid black 0</xsl:attribute>
3054
3237
  </xsl:if>
3055
3238
 
3056
-
3239
+
3240
+
3057
3241
 
3058
3242
 
3059
3243
 
@@ -3086,14 +3270,17 @@
3086
3270
 
3087
3271
 
3088
3272
 
3273
+
3274
+
3089
3275
  <fo:inline padding-right="2mm">
3090
3276
 
3091
3277
 
3092
3278
 
3093
-
3279
+
3094
3280
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3095
3281
 
3096
3282
  </fo:inline>
3283
+
3097
3284
  <xsl:apply-templates mode="process"/>
3098
3285
  </fo:block>
3099
3286
 
@@ -3120,6 +3307,7 @@
3120
3307
 
3121
3308
 
3122
3309
 
3310
+
3123
3311
  <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
3124
3312
 
3125
3313
 
@@ -3129,12 +3317,15 @@
3129
3317
 
3130
3318
 
3131
3319
 
3320
+
3132
3321
  <xsl:value-of select="@reference"/>
3133
3322
 
3323
+
3134
3324
  </fo:inline>
3135
3325
  <fo:inline>
3136
3326
 
3137
- <xsl:apply-templates/>
3327
+ <!-- <xsl:apply-templates /> -->
3328
+ <xsl:copy-of select="./node()"/>
3138
3329
  </fo:inline>
3139
3330
  </fo:block>
3140
3331
  </xsl:if>
@@ -3171,7 +3362,20 @@
3171
3362
  <xsl:variable name="following_dl_colwidths">
3172
3363
  <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
3173
3364
  <xsl:variable name="html-table">
3174
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
3365
+ <xsl:variable name="doc_ns">
3366
+
3367
+ </xsl:variable>
3368
+ <xsl:variable name="ns">
3369
+ <xsl:choose>
3370
+ <xsl:when test="normalize-space($doc_ns) != ''">
3371
+ <xsl:value-of select="normalize-space($doc_ns)"/>
3372
+ </xsl:when>
3373
+ <xsl:otherwise>
3374
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
3375
+ </xsl:otherwise>
3376
+ </xsl:choose>
3377
+ </xsl:variable>
3378
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
3175
3379
  <xsl:element name="{$ns}:table">
3176
3380
  <xsl:for-each select="*[local-name() = 'dl'][1]">
3177
3381
  <tbody>
@@ -3236,7 +3440,8 @@
3236
3440
  <xsl:attribute name="margin-bottom">0</xsl:attribute>
3237
3441
  </xsl:if>
3238
3442
 
3239
- <xsl:apply-templates/>
3443
+ <!-- <xsl:apply-templates /> -->
3444
+ <xsl:copy-of select="./node()"/>
3240
3445
  </fo:block>
3241
3446
  </fo:table-cell>
3242
3447
  </fo:table-row>
@@ -3261,9 +3466,12 @@
3261
3466
 
3262
3467
 
3263
3468
 
3469
+
3264
3470
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
3265
3471
 
3472
+
3266
3473
  <xsl:value-of select="@reference"/>
3474
+
3267
3475
  </fo:basic-link>
3268
3476
  </fo:inline>
3269
3477
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
@@ -3375,7 +3583,20 @@
3375
3583
  </xsl:choose>
3376
3584
  <!-- create virtual html table for dl/[dt and dd] -->
3377
3585
  <xsl:variable name="html-table">
3378
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
3586
+ <xsl:variable name="doc_ns">
3587
+
3588
+ </xsl:variable>
3589
+ <xsl:variable name="ns">
3590
+ <xsl:choose>
3591
+ <xsl:when test="normalize-space($doc_ns) != ''">
3592
+ <xsl:value-of select="normalize-space($doc_ns)"/>
3593
+ </xsl:when>
3594
+ <xsl:otherwise>
3595
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
3596
+ </xsl:otherwise>
3597
+ </xsl:choose>
3598
+ </xsl:variable>
3599
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
3379
3600
  <xsl:element name="{$ns}:table">
3380
3601
  <tbody>
3381
3602
  <xsl:apply-templates mode="dl"/>
@@ -3521,6 +3742,7 @@
3521
3742
 
3522
3743
 
3523
3744
 
3745
+
3524
3746
  <xsl:apply-templates/>
3525
3747
  <!-- <xsl:if test="$namespace = 'gb'">
3526
3748
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -3587,18 +3809,18 @@
3587
3809
  </xsl:template><xsl:template match="*[local-name()='tt']">
3588
3810
  <fo:inline xsl:use-attribute-sets="tt-style">
3589
3811
  <xsl:variable name="_font-size">
3590
-
3591
-
3592
-
3812
+
3813
+
3814
+
3593
3815
 
3594
3816
 
3595
3817
  10
3596
3818
 
3597
3819
 
3598
3820
 
3599
-
3600
3821
 
3601
-
3822
+
3823
+
3602
3824
 
3603
3825
 
3604
3826
  </xsl:variable>
@@ -3936,7 +4158,7 @@
3936
4158
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
3937
4159
  <xsl:value-of select="substring($str, 2)"/>
3938
4160
  </xsl:template><xsl:template match="mathml:math">
3939
- <fo:inline font-family="STIX2Math">
4161
+ <fo:inline font-family="STIX Two Math"> <!-- -->
3940
4162
  <xsl:variable name="mathml">
3941
4163
  <xsl:apply-templates select="." mode="mathml"/>
3942
4164
  </xsl:variable>
@@ -4030,7 +4252,7 @@
4030
4252
  <xsl:apply-templates/>
4031
4253
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
4032
4254
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
4033
-
4255
+
4034
4256
  <xsl:apply-templates/>
4035
4257
  </fo:basic-link>
4036
4258
  </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
@@ -4238,18 +4460,9 @@
4238
4460
  <fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
4239
4461
  <fo:bookmark-title>
4240
4462
  <xsl:variable name="bookmark-title_">
4241
- <xsl:choose>
4242
- <xsl:when test="@lang = 'en'">
4243
-
4244
-
4245
- </xsl:when>
4246
- <xsl:when test="@lang = 'fr'">
4247
-
4248
-
4249
- </xsl:when>
4250
- <xsl:when test="@lang = 'de'">Deutsche</xsl:when>
4251
- <xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
4252
- </xsl:choose>
4463
+ <xsl:call-template name="getLangVersion">
4464
+ <xsl:with-param name="lang" select="@lang"/>
4465
+ </xsl:call-template>
4253
4466
  </xsl:variable>
4254
4467
  <xsl:choose>
4255
4468
  <xsl:when test="normalize-space($bookmark-title_) != ''">
@@ -4291,6 +4504,20 @@
4291
4504
 
4292
4505
  </fo:bookmark-tree>
4293
4506
  </xsl:if>
4507
+ </xsl:template><xsl:template name="getLangVersion">
4508
+ <xsl:param name="lang"/>
4509
+ <xsl:choose>
4510
+ <xsl:when test="$lang = 'en'">
4511
+
4512
+
4513
+ </xsl:when>
4514
+ <xsl:when test="$lang = 'fr'">
4515
+
4516
+
4517
+ </xsl:when>
4518
+ <xsl:when test="$lang = 'de'">Deutsche</xsl:when>
4519
+ <xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
4520
+ </xsl:choose>
4294
4521
  </xsl:template><xsl:template match="item" mode="bookmark">
4295
4522
  <fo:bookmark internal-destination="{@id}" starting-state="hide">
4296
4523
  <fo:bookmark-title>
@@ -4305,7 +4532,7 @@
4305
4532
  </xsl:template><xsl:template match="title" mode="bookmark"/><xsl:template match="text()" mode="bookmark"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
4306
4533
  <xsl:if test="normalize-space() != ''">
4307
4534
  <fo:block xsl:use-attribute-sets="figure-name-style">
4308
-
4535
+
4309
4536
  <xsl:apply-templates/>
4310
4537
  </fo:block>
4311
4538
  </xsl:if>
@@ -4942,6 +5169,7 @@
4942
5169
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
4943
5170
  <fo:block>
4944
5171
  <xsl:call-template name="setId"/>
5172
+
4945
5173
  <xsl:apply-templates/>
4946
5174
  </fo:block>
4947
5175
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -4977,6 +5205,7 @@
4977
5205
  </xsl:choose>
4978
5206
  </xsl:attribute>
4979
5207
 
5208
+
4980
5209
  <fo:block-container margin-left="0mm">
4981
5210
  <fo:block>
4982
5211
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -5162,6 +5391,7 @@
5162
5391
 
5163
5392
 
5164
5393
 
5394
+
5165
5395
 
5166
5396
  </xsl:variable>
5167
5397
  <xsl:choose>
@@ -5178,6 +5408,7 @@
5178
5408
  <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']/*[local-name() = 'organization']/*[local-name() = 'name']"/>
5179
5409
 
5180
5410
 
5411
+
5181
5412
  </dc:creator>
5182
5413
  <dc:description>
5183
5414
  <xsl:variable name="abstract">
@@ -5187,6 +5418,7 @@
5187
5418
 
5188
5419
 
5189
5420
 
5421
+
5190
5422
  </xsl:variable>
5191
5423
  <xsl:value-of select="normalize-space($abstract)"/>
5192
5424
  </dc:description>