metanorma-mpfa 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,8 +12,7 @@
12
12
 
13
13
 
14
14
  <xsl:variable name="debug">false</xsl:variable>
15
- <xsl:variable name="pageWidth" select="210"/>
16
- <xsl:variable name="pageHeight" select="297"/>
15
+
17
16
  <xsl:variable name="marginLeftRight1" select="19"/>
18
17
  <xsl:variable name="marginLeftRight2" select="19"/>
19
18
  <xsl:variable name="marginTop" select="16.5"/>
@@ -153,9 +152,11 @@
153
152
  <xsl:with-param name="name" select="'title-edition'"/>
154
153
  </xsl:call-template>
155
154
  <xsl:value-of select="$linebreak"/>
156
- <xsl:call-template name="formatDate">
155
+ <xsl:call-template name="convertDate">
157
156
  <xsl:with-param name="date" select="/mpfd:mpfd-standard/mpfd:bibdata/mpfd:version/mpfd:revision-date"/>
158
- </xsl:call-template>
157
+ <xsl:with-param name="format">ddMMyyyy</xsl:with-param>
158
+ </xsl:call-template>
159
+
159
160
  </fo:block>
160
161
  <fo:block>Hong Kong</fo:block>
161
162
  </fo:block-container>
@@ -471,7 +472,7 @@
471
472
  <xsl:if test="local-name() = 'ol'">
472
473
  <xsl:attribute name="provisional-distance-between-starts">7mm</xsl:attribute>
473
474
  </xsl:if>
474
- <xsl:apply-templates/>
475
+ <xsl:apply-templates select="node()[not(local-name() = 'note')]"/>
475
476
  </fo:list-block>
476
477
  <xsl:for-each select="./mpfd:note//mpfd:p">
477
478
  <xsl:call-template name="note"/>
@@ -480,8 +481,6 @@
480
481
  </fo:block-container>
481
482
  </xsl:template>
482
483
 
483
- <xsl:template match="mpfd:ul//mpfd:note | mpfd:ol//mpfd:note" priority="2"/>
484
-
485
484
  <xsl:template match="mpfd:li">
486
485
  <fo:list-item id="{@id}">
487
486
  <fo:list-item-label end-indent="label-end()">
@@ -490,16 +489,12 @@
490
489
  </fo:block>
491
490
  </fo:list-item-label>
492
491
  <fo:list-item-body start-indent="body-start()">
493
- <xsl:apply-templates/>
494
- <xsl:apply-templates select=".//mpfd:note" mode="process"/>
492
+ <xsl:apply-templates select="node()[not(local-name() = 'note')]"/>
493
+ <xsl:apply-templates select=".//mpfd:note"/>
495
494
  </fo:list-item-body>
496
495
  </fo:list-item>
497
496
  </xsl:template>
498
497
 
499
- <xsl:template match="mpfd:note" mode="process">
500
- <xsl:call-template name="note"/>
501
- </xsl:template>
502
-
503
498
 
504
499
  <xsl:template match="mpfd:preferred">
505
500
  <fo:inline font-weight="bold">
@@ -533,31 +528,6 @@
533
528
  <xsl:variable name="Image-MPFD-Logo">
534
529
  <xsl:text>iVBORw0KGgoAAAANSUhEUgAAAZEAAAGQCAYAAABvfV3yAAAACXBIWXMAACxKAAAsSgF3enRNAAAgAElEQVR4nO2dX4hkWZ7Xf720u7o4m3dxYVdwqGhmcQWHqWjxSdftaFzYRcGOFkRfdioKFxQftqJEH7Uz33yazvTJF6lIQXTwT2c+CCs+dMaysE/SmaMPDoxUhvOgPiydmb0wqw6U3Onf6Tl1OyIz/t1zfr9zPh9IMqsqK/PEjXvP9/z+v/Hq1SsBAADYhp/gqgEAwLYgIgAAsDWICAAAbA0iAgAAW4OIAADA1iAiAACwNYgIAABsDSICAABbg4gAAMDWICIAALA1iAgAAGwNIgJQLwPee9gVRASgThoRudAPxAS2BhEBqJOpiDwSkXdE5FL/DLAxtIIHqI/WCrkWkYPOK5+LyET/DWAtsEQA6mO6REAEqwS2AUsEoC5WWSFdztUqueH+gPvAEgGoi8kaAtLynorNiPsD7gNLBKAurjWgvgknuLhgFVgiAPUw2UJAWp5prIRUYPgSiAhAPUx2eKWPVUjG3C8QgzsLoA5aK+Llnl4p7i34AiwRgDrY56b/TCvdG+4dQEQA6mDfbqh3VEiG3D91g4gAlM9oy4D6QzxWISENuGIQEYDy2SWg/hBtzcnHPf8OMAyBdYDyuVmzwHBXjkTkkPupLrBEAMpmmEhAWj4QkRn3U10gIgBlk9rN9AQhqQtEBKBscgS9EZKKICYCUC77LDDchlMC7uWDJQJQLrlTb7FIKgARASgXC/Ubr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i+SFbyzZzdV0R9wBYAu6s/NxgiZgkuK4InAPcAyJig7bD79PaL4IRQtbVgJYlAA+DiNhhpn53yMeJ9rui5gNgTYiJ2GOmg4sgHacicojbCmBz3uSamWOiC0JI+udcx9QiHgBbgjvLJhN1rUA/zKN6DwQEYAdwZ9mmFZMXtV+EPXKq7kIC5gB7AhGxz1g3P+pItoeYB0BPICI+GOoJ+nHtF2ID7tSKO0Y8APoDEfFDo6dp2sjfz0Kv0xktSgD6BxHxx0itkke1X4gO52p1EO8ASAgi4pNGU1M/qPw6LFRQZ7isAPKAiPhmoKfv9yp6zW2s4yOyrABsgIiUwUjjAKU2cgzCcaYfAGAERKQsBiomf11EvuL8lSEcAA5ARMqk0fqSqbO04KtINC4NrAcAHgARKZ+BCsrYoLtrrmJxoR+k5AI4AxGpi0bjJ0P9nFJU5ppBdRkJBwA4BxGBgX6MVGSGekXazwcbXJ25fr5RkQifr0m/BSgXRAQAALaGVvAAALA1iAgAAGwNIgIAAFuDiAAAwNYgIgAAsDWICAAAbA0iAgAAW4OIAADA1iAiAACwNYgIAABsDSICAADbISL/H/43USH4U9y8AAAAAElFTkSuQmCC</xsl:text>
535
530
  </xsl:variable>
536
-
537
- <!-- convert date from format 2007-04-01 to 1 April 2007-->
538
- <xsl:template name="formatDate">
539
- <xsl:param name="date"/>
540
- <xsl:variable name="year" select="substring($date, 1, 4)"/>
541
- <xsl:variable name="month" select="substring($date, 6, 2)"/>
542
- <xsl:variable name="day" select="number(substring($date, 9, 2))"/>
543
- <xsl:variable name="monthStr">
544
- <xsl:choose>
545
- <xsl:when test="$month = '01'">January</xsl:when>
546
- <xsl:when test="$month = '02'">February</xsl:when>
547
- <xsl:when test="$month = '03'">March</xsl:when>
548
- <xsl:when test="$month = '04'">April</xsl:when>
549
- <xsl:when test="$month = '05'">May</xsl:when>
550
- <xsl:when test="$month = '06'">June</xsl:when>
551
- <xsl:when test="$month = '07'">July</xsl:when>
552
- <xsl:when test="$month = '08'">August</xsl:when>
553
- <xsl:when test="$month = '09'">September</xsl:when>
554
- <xsl:when test="$month = '10'">October</xsl:when>
555
- <xsl:when test="$month = '11'">November</xsl:when>
556
- <xsl:when test="$month = '12'">December</xsl:when>
557
- </xsl:choose>
558
- </xsl:variable>
559
- <xsl:value-of select="normalize-space(concat($day, ' ', $monthStr, ' ', $year))"/>
560
- </xsl:template>
561
531
 
562
532
  <xsl:template name="insertHeaderFooter">
563
533
  <xsl:param name="font-weight">normal</xsl:param>
@@ -614,7 +584,11 @@
614
584
  </xsl:template>
615
585
 
616
586
 
617
- <xsl:variable name="titles_">
587
+ <xsl:variable name="pageWidth_">
588
+ 210
589
+ </xsl:variable><xsl:variable name="pageWidth" select="normalize-space($pageWidth_)"/><xsl:variable name="pageHeight_">
590
+ 297
591
+ </xsl:variable><xsl:variable name="pageHeight" select="normalize-space($pageHeight_)"/><xsl:variable name="titles_">
618
592
 
619
593
  <title-edition lang="en">
620
594
 
@@ -719,6 +693,53 @@
719
693
 
720
694
 
721
695
 
696
+ </xsl:attribute-set><xsl:attribute-set name="copyright-statement-style">
697
+
698
+ </xsl:attribute-set><xsl:attribute-set name="copyright-statement-title-style">
699
+
700
+
701
+ </xsl:attribute-set><xsl:attribute-set name="copyright-statement-p-style">
702
+
703
+
704
+
705
+ </xsl:attribute-set><xsl:attribute-set name="license-statement-style">
706
+
707
+
708
+ </xsl:attribute-set><xsl:attribute-set name="license-statement-title-style">
709
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
710
+
711
+
712
+
713
+
714
+
715
+
716
+ </xsl:attribute-set><xsl:attribute-set name="license-statement-p-style">
717
+
718
+
719
+
720
+
721
+ </xsl:attribute-set><xsl:attribute-set name="legal-statement-style">
722
+
723
+
724
+
725
+ </xsl:attribute-set><xsl:attribute-set name="legal-statement-title-style">
726
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
727
+
728
+
729
+
730
+
731
+
732
+ </xsl:attribute-set><xsl:attribute-set name="legal-statement-p-style">
733
+
734
+ </xsl:attribute-set><xsl:attribute-set name="feedback-statement-style">
735
+
736
+
737
+ </xsl:attribute-set><xsl:attribute-set name="feedback-statement-title-style">
738
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
739
+
740
+ </xsl:attribute-set><xsl:attribute-set name="feedback-statement-p-style">
741
+
742
+
722
743
  </xsl:attribute-set><xsl:attribute-set name="link-style">
723
744
 
724
745
 
@@ -1504,6 +1525,7 @@
1504
1525
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
1505
1526
 
1506
1527
 
1528
+
1507
1529
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
1508
1530
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1509
1531
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -1616,6 +1638,64 @@
1616
1638
  <xsl:value-of select="."/>
1617
1639
  </xsl:template><xsl:template match="*[local-name()='br']">
1618
1640
  <xsl:value-of select="$linebreak"/>
1641
+ </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
1642
+ <fo:block xsl:use-attribute-sets="copyright-statement-style">
1643
+ <xsl:apply-templates/>
1644
+ </fo:block>
1645
+ </xsl:template><xsl:template match="*[local-name()='copyright-statement']//*[local-name()='title']">
1646
+
1647
+ <!-- process in the template 'title' -->
1648
+ <xsl:call-template name="title"/>
1649
+
1650
+ </xsl:template><xsl:template match="*[local-name()='copyright-statement']//*[local-name()='p']">
1651
+
1652
+
1653
+ <!-- process in the template 'paragraph' -->
1654
+ <xsl:call-template name="paragraph"/>
1655
+
1656
+ </xsl:template><xsl:template match="*[local-name()='license-statement']">
1657
+ <fo:block xsl:use-attribute-sets="license-statement-style">
1658
+ <xsl:apply-templates/>
1659
+ </fo:block>
1660
+ </xsl:template><xsl:template match="*[local-name()='license-statement']//*[local-name()='title']">
1661
+
1662
+ <!-- process in the template 'title' -->
1663
+ <xsl:call-template name="title"/>
1664
+
1665
+ </xsl:template><xsl:template match="*[local-name()='license-statement']//*[local-name()='p']">
1666
+
1667
+ <!-- process in the template 'paragraph' -->
1668
+ <xsl:call-template name="paragraph"/>
1669
+
1670
+ </xsl:template><xsl:template match="*[local-name()='legal-statement']">
1671
+ <fo:block xsl:use-attribute-sets="legal-statement-style">
1672
+ <xsl:apply-templates/>
1673
+ </fo:block>
1674
+ </xsl:template><xsl:template match="*[local-name()='legal-statement']//*[local-name()='title']">
1675
+
1676
+ <!-- process in the template 'title' -->
1677
+ <xsl:call-template name="title"/>
1678
+
1679
+
1680
+ </xsl:template><xsl:template match="*[local-name()='legal-statement']//*[local-name()='p']">
1681
+
1682
+ <!-- process in the template 'paragraph' -->
1683
+ <xsl:call-template name="paragraph"/>
1684
+
1685
+ </xsl:template><xsl:template match="*[local-name()='feedback-statement']">
1686
+ <fo:block xsl:use-attribute-sets="feedback-statement-style">
1687
+ <xsl:apply-templates/>
1688
+ </fo:block>
1689
+ </xsl:template><xsl:template match="*[local-name()='feedback-statement']//*[local-name()='title']">
1690
+
1691
+ <!-- process in the template 'title' -->
1692
+ <xsl:call-template name="title"/>
1693
+
1694
+ </xsl:template><xsl:template match="*[local-name()='feedback-statement']//*[local-name()='p']">
1695
+
1696
+ <!-- process in the template 'paragraph' -->
1697
+ <xsl:call-template name="paragraph"/>
1698
+
1619
1699
  </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1620
1700
  <!-- <xsl:call-template name="add-zero-spaces"/> -->
1621
1701
  <xsl:call-template name="add-zero-spaces-java"/>
@@ -1754,7 +1834,7 @@
1754
1834
  <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
1755
1835
  </xsl:when>
1756
1836
  <xsl:otherwise>
1757
- <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
1837
+ <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer and note that renders separaterely -->
1758
1838
  </xsl:otherwise>
1759
1839
  </xsl:choose>
1760
1840
 
@@ -1971,7 +2051,7 @@
1971
2051
 
1972
2052
  <xsl:variable name="math_text" select="normalize-space(xalan:nodeset($mathml))"/>
1973
2053
  <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
1974
- </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
2054
+ </xsl:template><xsl:template match="*[local-name()='thead']">
1975
2055
  <xsl:param name="cols-count"/>
1976
2056
  <fo:table-header>
1977
2057
 
@@ -1996,13 +2076,13 @@
1996
2076
  <fo:table-body>
1997
2077
  <xsl:apply-templates/>
1998
2078
  </fo:table-body>
1999
- </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
2079
+ </xsl:template><xsl:template match="*[local-name()='tfoot']">
2000
2080
  <xsl:apply-templates/>
2001
2081
  </xsl:template><xsl:template name="insertTableFooter">
2002
2082
  <xsl:param name="cols-count"/>
2003
2083
  <xsl:if test="../*[local-name()='tfoot']">
2004
2084
  <fo:table-footer>
2005
- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
2085
+ <xsl:apply-templates select="../*[local-name()='tfoot']"/>
2006
2086
  </fo:table-footer>
2007
2087
  </xsl:if>
2008
2088
  </xsl:template><xsl:template name="insertTableFooterInSeparateTable">
@@ -2088,7 +2168,7 @@
2088
2168
 
2089
2169
  <!-- except gb and bsi -->
2090
2170
 
2091
- <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
2171
+ <xsl:apply-templates select="../*[local-name()='note']"/>
2092
2172
 
2093
2173
 
2094
2174
 
@@ -2126,7 +2206,7 @@
2126
2206
 
2127
2207
 
2128
2208
 
2129
- <xsl:apply-templates select="../*[local-name()='thead']" mode="process">
2209
+ <xsl:apply-templates select="../*[local-name()='thead']">
2130
2210
  <xsl:with-param name="cols-count" select="$cols-count"/>
2131
2211
  </xsl:apply-templates>
2132
2212
 
@@ -2268,7 +2348,7 @@
2268
2348
  <xsl:apply-templates/>
2269
2349
  </fo:block>
2270
2350
  </fo:table-cell>
2271
- </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
2351
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
2272
2352
 
2273
2353
  <fo:block xsl:use-attribute-sets="table-note-style">
2274
2354
 
@@ -2291,10 +2371,10 @@
2291
2371
 
2292
2372
 
2293
2373
 
2294
- <xsl:apply-templates select="node()[not(local-name() = 'name')]" mode="process"/>
2374
+ <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
2295
2375
  </fo:block>
2296
2376
 
2297
- </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
2377
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
2298
2378
  <xsl:apply-templates/>
2299
2379
  </xsl:template><xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
2300
2380
 
@@ -2823,7 +2903,9 @@
2823
2903
  </td>
2824
2904
  <td>
2825
2905
 
2826
- <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2906
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
2907
+ <xsl:with-param name="process">true</xsl:with-param>
2908
+ </xsl:apply-templates>
2827
2909
 
2828
2910
  </td>
2829
2911
  </tr>
@@ -2850,15 +2932,20 @@
2850
2932
  <fo:block>
2851
2933
 
2852
2934
 
2853
- <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2935
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
2936
+ <xsl:with-param name="process">true</xsl:with-param>
2937
+ </xsl:apply-templates>
2854
2938
  </fo:block>
2855
2939
  </fo:table-cell>
2856
2940
  </fo:table-row>
2857
2941
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
2858
2942
  <xsl:apply-templates/>
2859
- </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
2860
- <xsl:apply-templates select="@language"/>
2861
- <xsl:apply-templates/>
2943
+ </xsl:template><xsl:template match="*[local-name()='dd']">
2944
+ <xsl:param name="process">false</xsl:param>
2945
+ <xsl:if test="$process = 'true'">
2946
+ <xsl:apply-templates select="@language"/>
2947
+ <xsl:apply-templates/>
2948
+ </xsl:if>
2862
2949
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
2863
2950
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
2864
2951
  </xsl:template><xsl:template match="*[local-name()='em']">
@@ -3033,7 +3120,11 @@
3033
3120
  <xsl:with-param name="text" select="substring($text,2)"/>
3034
3121
  </xsl:call-template>
3035
3122
  </xsl:if>
3036
- </xsl:template><xsl:template name="tokenize">
3123
+ </xsl:template><xsl:template match="*[local-name() = 'pagebreak']">
3124
+ <fo:block break-after="page"/>
3125
+ <fo:block> </fo:block>
3126
+ <fo:block break-after="page"/>
3127
+ </xsl:template><xsl:template name="tokenize">
3037
3128
  <xsl:param name="text"/>
3038
3129
  <xsl:param name="separator" select="' '"/>
3039
3130
  <xsl:choose>
@@ -3465,10 +3556,10 @@
3465
3556
  </fo:inline>
3466
3557
  </xsl:template><xsl:template match="*[local-name()='appendix']">
3467
3558
  <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
3468
- <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
3559
+ <xsl:apply-templates select="*[local-name()='title']"/>
3469
3560
  </fo:block>
3470
- <xsl:apply-templates/>
3471
- </xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
3561
+ <xsl:apply-templates select="node()[not(local-name()='title')]"/>
3562
+ </xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" priority="2">
3472
3563
  <xsl:variable name="level">
3473
3564
  <xsl:call-template name="getLevel"/>
3474
3565
  </xsl:variable>
@@ -4086,7 +4177,7 @@
4086
4177
  <xsl:value-of select="."/>
4087
4178
  </xsl:template><xsl:template match="node()" mode="contents">
4088
4179
  <xsl:apply-templates mode="contents"/>
4089
- </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="2" mode="contents">
4180
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="2" mode="contents">
4090
4181
  <xsl:variable name="level">
4091
4182
  <xsl:call-template name="getLevel">
4092
4183
  <xsl:with-param name="depth" select="@depth"/>
@@ -4094,10 +4185,15 @@
4094
4185
  </xsl:variable>
4095
4186
 
4096
4187
  <xsl:variable name="section">
4097
- <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
4188
+ <xsl:choose>
4189
+ <xsl:when test="@type = 'section-title'"/>
4190
+ <xsl:otherwise>
4191
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
4192
+ </xsl:otherwise>
4193
+ </xsl:choose>
4098
4194
  </xsl:variable>
4099
4195
 
4100
- <xsl:variable name="type">floating-title</xsl:variable>
4196
+ <xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
4101
4197
 
4102
4198
  <xsl:variable name="display">
4103
4199
  <xsl:choose>
@@ -4114,7 +4210,16 @@
4114
4210
  <xsl:variable name="title">
4115
4211
  <xsl:choose>
4116
4212
  <xsl:when test="*[local-name() = 'tab']">
4117
- <xsl:copy-of select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
4213
+ <xsl:choose>
4214
+ <xsl:when test="@type = 'section-title'">
4215
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
4216
+ <xsl:text>: </xsl:text>
4217
+ <xsl:copy-of select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
4218
+ </xsl:when>
4219
+ <xsl:otherwise>
4220
+ <xsl:copy-of select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
4221
+ </xsl:otherwise>
4222
+ </xsl:choose>
4118
4223
  </xsl:when>
4119
4224
  <xsl:otherwise>
4120
4225
  <xsl:copy-of select="node()"/>
@@ -5676,7 +5781,7 @@
5676
5781
  </fo:inline>
5677
5782
  </xsl:template><xsl:template match="@language">
5678
5783
  <xsl:copy-of select="."/>
5679
- </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
5784
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="4">
5680
5785
  <xsl:call-template name="title"/>
5681
5786
  </xsl:template><xsl:template match="*[local-name() = 'admonition']">
5682
5787
 
@@ -5736,27 +5841,17 @@
5736
5841
  <xsl:variable name="month" select="substring($date, 6, 2)"/>
5737
5842
  <xsl:variable name="day" select="substring($date, 9, 2)"/>
5738
5843
  <xsl:variable name="monthStr">
5739
- <xsl:choose>
5740
- <xsl:when test="$month = '01'">january</xsl:when>
5741
- <xsl:when test="$month = '02'">february</xsl:when>
5742
- <xsl:when test="$month = '03'">march</xsl:when>
5743
- <xsl:when test="$month = '04'">april</xsl:when>
5744
- <xsl:when test="$month = '05'">may</xsl:when>
5745
- <xsl:when test="$month = '06'">june</xsl:when>
5746
- <xsl:when test="$month = '07'">july</xsl:when>
5747
- <xsl:when test="$month = '08'">august</xsl:when>
5748
- <xsl:when test="$month = '09'">september</xsl:when>
5749
- <xsl:when test="$month = '10'">october</xsl:when>
5750
- <xsl:when test="$month = '11'">november</xsl:when>
5751
- <xsl:when test="$month = '12'">december</xsl:when>
5752
- </xsl:choose>
5844
+ <xsl:call-template name="getMonthByNum">
5845
+ <xsl:with-param name="num" select="$month"/>
5846
+ <xsl:with-param name="lowercase" select="'true'"/>
5847
+ </xsl:call-template>
5753
5848
  </xsl:variable>
5754
5849
  <xsl:variable name="monthStr_localized">
5755
5850
  <xsl:if test="normalize-space($monthStr) != ''"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param></xsl:call-template></xsl:if>
5756
5851
  </xsl:variable>
5757
5852
  <xsl:variable name="result">
5758
5853
  <xsl:choose>
5759
- <xsl:when test="$format = 'ddMMyyyy'">
5854
+ <xsl:when test="$format = 'ddMMyyyy'"> <!-- convert date from format 2007-04-01 to 1 April 2007 -->
5760
5855
  <xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
5761
5856
  <xsl:text> </xsl:text>
5762
5857
  <xsl:value-of select="normalize-space(concat($monthStr_localized, ' ' , $year))"/>
@@ -5769,11 +5864,57 @@
5769
5864
  <xsl:value-of select="normalize-space(concat($monthStr_localized, ' ', $year))"/>
5770
5865
  </xsl:when>
5771
5866
  <xsl:otherwise>
5772
- <xsl:value-of select="normalize-space(concat($monthStr_localized, ' ', $day, ', ' , $year))"/>
5867
+ <xsl:value-of select="normalize-space(concat($monthStr_localized, ' ', $day, ', ' , $year))"/> <!-- January 01, 2022 -->
5773
5868
  </xsl:otherwise>
5774
5869
  </xsl:choose>
5775
5870
  </xsl:variable>
5776
5871
  <xsl:value-of select="$result"/>
5872
+ </xsl:template><xsl:template name="getMonthByNum">
5873
+ <xsl:param name="num"/>
5874
+ <xsl:param name="lang">en</xsl:param>
5875
+ <xsl:param name="lowercase">false</xsl:param> <!-- return 'january' instead of 'January' -->
5876
+ <xsl:variable name="monthStr_">
5877
+ <xsl:choose>
5878
+ <xsl:when test="$lang = 'fr'">
5879
+ <xsl:choose>
5880
+ <xsl:when test="$num = '01'">Janvier</xsl:when>
5881
+ <xsl:when test="$num = '02'">Février</xsl:when>
5882
+ <xsl:when test="$num = '03'">Mars</xsl:when>
5883
+ <xsl:when test="$num = '04'">Avril</xsl:when>
5884
+ <xsl:when test="$num = '05'">Mai</xsl:when>
5885
+ <xsl:when test="$num = '06'">Juin</xsl:when>
5886
+ <xsl:when test="$num = '07'">Juillet</xsl:when>
5887
+ <xsl:when test="$num = '08'">Août</xsl:when>
5888
+ <xsl:when test="$num = '09'">Septembre</xsl:when>
5889
+ <xsl:when test="$num = '10'">Octobre</xsl:when>
5890
+ <xsl:when test="$num = '11'">Novembre</xsl:when>
5891
+ <xsl:when test="$num = '12'">Décembre</xsl:when>
5892
+ </xsl:choose>
5893
+ </xsl:when>
5894
+ <xsl:otherwise>
5895
+ <xsl:choose>
5896
+ <xsl:when test="$num = '01'">January</xsl:when>
5897
+ <xsl:when test="$num = '02'">February</xsl:when>
5898
+ <xsl:when test="$num = '03'">March</xsl:when>
5899
+ <xsl:when test="$num = '04'">April</xsl:when>
5900
+ <xsl:when test="$num = '05'">May</xsl:when>
5901
+ <xsl:when test="$num = '06'">June</xsl:when>
5902
+ <xsl:when test="$num = '07'">July</xsl:when>
5903
+ <xsl:when test="$num = '08'">August</xsl:when>
5904
+ <xsl:when test="$num = '09'">September</xsl:when>
5905
+ <xsl:when test="$num = '10'">October</xsl:when>
5906
+ <xsl:when test="$num = '11'">November</xsl:when>
5907
+ <xsl:when test="$num = '12'">December</xsl:when>
5908
+ </xsl:choose>
5909
+ </xsl:otherwise>
5910
+ </xsl:choose>
5911
+ </xsl:variable>
5912
+ <xsl:choose>
5913
+ <xsl:when test="normalize-space($lowercase) = 'true'">
5914
+ <xsl:value-of select="java:toLowerCase(java:java.lang.String.new($monthStr_))"/>
5915
+ </xsl:when>
5916
+ <xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
5917
+ </xsl:choose>
5777
5918
  </xsl:template><xsl:template name="insertKeywords">
5778
5919
  <xsl:param name="sorting" select="'true'"/>
5779
5920
  <xsl:param name="charAtEnd" select="'.'"/>
@@ -6234,6 +6375,25 @@
6234
6375
  </xsl:otherwise>
6235
6376
  </xsl:choose>
6236
6377
  </xsl:if>
6378
+ </xsl:template><xsl:template name="number-to-ordinal">
6379
+ <xsl:param name="number"/>
6380
+ <xsl:param name="curr_lang"/>
6381
+ <xsl:choose>
6382
+ <xsl:when test="$curr_lang = 'fr'">
6383
+ <xsl:choose>
6384
+ <xsl:when test="$number = '1'">re</xsl:when>
6385
+ <xsl:otherwise>e</xsl:otherwise>
6386
+ </xsl:choose>
6387
+ </xsl:when>
6388
+ <xsl:otherwise>
6389
+ <xsl:choose>
6390
+ <xsl:when test="$number = 1">st</xsl:when>
6391
+ <xsl:when test="$number = 2">nd</xsl:when>
6392
+ <xsl:when test="$number = 3">rd</xsl:when>
6393
+ <xsl:otherwise>th</xsl:otherwise>
6394
+ </xsl:choose>
6395
+ </xsl:otherwise>
6396
+ </xsl:choose>
6237
6397
  </xsl:template><xsl:template name="setAltText">
6238
6398
  <xsl:param name="value"/>
6239
6399
  <xsl:attribute name="fox:alt-text">
@@ -401,9 +401,9 @@
401
401
  <choice>
402
402
  <!-- iso191606 TODO -->
403
403
  <group>
404
- <oneOrMore>
404
+ <zeroOrMore>
405
405
  <ref name="street"/>
406
- </oneOrMore>
406
+ </zeroOrMore>
407
407
  <ref name="city"/>
408
408
  <optional>
409
409
  <ref name="state"/>