metanorma-iec 1.2.2 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,11 @@
70
70
  <xsl:when test="$stage-abbreviation = 'AWI'">APPROVED WORK ITEM</xsl:when>
71
71
  <xsl:when test="$stage-abbreviation = 'WD'">WORKING DRAFT</xsl:when>
72
72
  <xsl:when test="$stage-abbreviation = 'CD'">COMMITTEE DRAFT</xsl:when>
73
+ <xsl:when test="$stage-abbreviation = 'CD-TSTR'">COMMITTEE DRAFT</xsl:when>
73
74
  <xsl:when test="$stage-abbreviation = 'CDV'">COMMITTEE DRAFT FOR VOTE</xsl:when>
75
+ <xsl:when test="$stage-abbreviation = 'DTS'">DRAFT TECHNICAL SPECIFICATION</xsl:when>
76
+ <xsl:when test="$stage-abbreviation = 'DTR'">DRAFT TECHNICAL REPORT</xsl:when>
77
+ <xsl:when test="$stage-abbreviation = 'DPAS'">DRAFT PUBLICLY AVAILABLE SPECIFICATION</xsl:when>
74
78
  <xsl:when test="$stage-abbreviation = 'DIS'">DRAFT INTERNATIONAL STANDARD</xsl:when>
75
79
  <xsl:when test="$stage-abbreviation = 'FDIS'">FINAL DRAFT INTERNATIONAL STANDARD</xsl:when>
76
80
  <xsl:otherwise><xsl:value-of select="$doctype_uppercased"/></xsl:otherwise>
@@ -508,7 +512,7 @@
508
512
  </xsl:if>
509
513
 
510
514
  <!-- for non-published documents insert cover page (2nd for FDIS) ) -->
511
- <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 = 'FDIS'">
515
+ <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'">
512
516
  <!-- circulation cover page -->
513
517
  <fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
514
518
  <fo:static-content flow-name="footer-FDIS">
@@ -685,119 +689,132 @@
685
689
  </fo:block>
686
690
  </fo:table-cell>
687
691
  </fo:table-row>
688
- <fo:table-row height="12mm">
692
+ <fo:table-row height="12mm">
689
693
  <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
694
+ <xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
695
+ <xsl:attribute name="number-columns-spanned">2</xsl:attribute>
696
+ </xsl:if>
690
697
  <fo:block font-size="6.5pt" margin-bottom="6pt">
691
698
  <xsl:call-template name="addLetterSpacingSmallCaps">
692
699
  <xsl:with-param name="text" select="'Of interest to the following committees:'"/>
693
700
  </xsl:call-template>
694
701
  </fo:block>
695
702
  </fo:table-cell>
696
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
697
- <fo:block font-size="6.5pt" margin-bottom="6pt">
698
- <xsl:if test="$stage-abbreviation = 'FDIS'">
703
+ <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
704
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
705
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
706
+ <xsl:if test="$stage-abbreviation = 'FDIS'">
707
+ <xsl:call-template name="addLetterSpacingSmallCaps">
708
+ <xsl:with-param name="text" select="'horizontal standard:'"/>
709
+ </xsl:call-template>
710
+ </xsl:if>
711
+ <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
712
+ <xsl:call-template name="addLetterSpacingSmallCaps">
713
+ <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
714
+ </xsl:call-template>
715
+ </xsl:if>
716
+ </fo:block>
717
+
718
+ <fo:block>
719
+ <xsl:call-template name="insertCheckBoxOff"/>
720
+ </fo:block>
721
+
722
+ <xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
723
+ <fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
724
+ <fo:block-container margin-left="1mm" margin-right="1mm">
725
+ <fo:block font-size="8pt" padding="2mm">
726
+ <xsl:call-template name="addLetterSpacing">
727
+ <xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
728
+ </xsl:call-template>
729
+ </fo:block>
730
+ </fo:block-container>
731
+ </fo:block-container>
732
+ </xsl:if>
733
+ </fo:table-cell>
734
+ </xsl:if>
735
+ </fo:table-row>
736
+
737
+ <xsl:if test="not($stage-abbreviation = 'DPAS')">
738
+ <fo:table-row height="10mm">
739
+ <fo:table-cell padding="1.5mm" padding-bottom="0mm">
740
+ <fo:block font-size="6.5pt" margin-bottom="4pt">
699
741
  <xsl:call-template name="addLetterSpacingSmallCaps">
700
- <xsl:with-param name="text" select="'horizontal standard:'"/>
742
+ <xsl:with-param name="text" select="'Functions concerned:'"/>
701
743
  </xsl:call-template>
702
- </xsl:if>
703
- <xsl:if test="$stage-abbreviation = 'CDV'">
744
+ </fo:block>
745
+ <fo:block font-size="6.5pt">
746
+ <xsl:call-template name="insertCheckBoxOff"/>
704
747
  <xsl:call-template name="addLetterSpacingSmallCaps">
705
- <xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
748
+ <xsl:with-param name="text" select="'EMC'"/>
706
749
  </xsl:call-template>
707
- </xsl:if>
708
- </fo:block>
709
- <fo:block>
710
- <xsl:call-template name="insertCheckBoxOff"/>
711
- </fo:block>
712
- <xsl:if test="$stage-abbreviation = 'CDV'">
713
- <fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
714
- <fo:block-container margin-left="1mm" margin-right="1mm">
715
- <fo:block font-size="8pt" padding="2mm">
716
- <xsl:call-template name="addLetterSpacing">
717
- <xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
718
- </xsl:call-template>
719
- </fo:block>
720
- </fo:block-container>
721
- </fo:block-container>
722
- </xsl:if>
723
- </fo:table-cell>
724
- </fo:table-row>
725
- <fo:table-row height="10mm">
726
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
727
- <fo:block font-size="6.5pt" margin-bottom="4pt">
728
- <xsl:call-template name="addLetterSpacingSmallCaps">
729
- <xsl:with-param name="text" select="'Functions concerned:'"/>
730
- </xsl:call-template>
731
- </fo:block>
732
- <fo:block font-size="6.5pt">
733
- <xsl:call-template name="insertCheckBoxOff"/>
734
- <xsl:call-template name="addLetterSpacingSmallCaps">
735
- <xsl:with-param name="text" select="'EMC'"/>
736
- </xsl:call-template>
737
- <fo:inline padding-right="33mm"> </fo:inline>
738
- <xsl:call-template name="insertCheckBoxOff"/>
739
- <xsl:call-template name="addLetterSpacingSmallCaps">
740
- <xsl:with-param name="text" select="'Environment'"/>
741
- </xsl:call-template>
742
- </fo:block>
743
- </fo:table-cell>
744
- <fo:table-cell padding="1.5mm" padding-bottom="0mm">
745
- <fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
746
- <fo:block font-size="6.5pt">
747
- <xsl:call-template name="insertCheckBoxOff"/>
748
- <xsl:call-template name="addLetterSpacingSmallCaps">
749
- <xsl:with-param name="text" select="'Quality assurance'"/>
750
- </xsl:call-template>
751
- <fo:inline padding-right="13mm"> </fo:inline>
752
- <xsl:call-template name="insertCheckBoxOn"/>
753
- <xsl:call-template name="addLetterSpacingSmallCaps">
754
- <xsl:with-param name="text" select="'Safety'"/>
755
- </xsl:call-template>
756
- </fo:block>
757
- </fo:table-cell>
758
- </fo:table-row>
759
- <fo:table-row>
760
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
761
- <fo:block font-size="6.5pt" margin-bottom="12pt">
762
- <xsl:call-template name="insertCheckBoxOn"/>
763
- <xsl:call-template name="addLetterSpacingSmallCaps">
764
- <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
765
- </xsl:call-template>
766
- </fo:block>
767
- <fo:block font-size="8pt" font-weight="bold" margin-bottom="10pt">
768
- <xsl:call-template name="addLetterSpacing">
769
- <xsl:with-param name="text" select="'Attention IEC-CENELEC parallel voting'"/>
770
- </xsl:call-template>
771
- </fo:block>
772
-
773
-
774
- <fo:block font-size="8pt" margin-bottom="10pt" text-align="justify">
775
- <xsl:if test="$stage-abbreviation = 'FDIS'">
750
+ <fo:inline padding-right="33mm"> </fo:inline>
751
+ <xsl:call-template name="insertCheckBoxOff"/>
752
+ <xsl:call-template name="addLetterSpacingSmallCaps">
753
+ <xsl:with-param name="text" select="'Environment'"/>
754
+ </xsl:call-template>
755
+ </fo:block>
756
+ </fo:table-cell>
757
+ <fo:table-cell padding="1.5mm" padding-bottom="0mm">
758
+ <fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
759
+ <fo:block font-size="6.5pt">
760
+ <xsl:call-template name="insertCheckBoxOff"/>
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:call-template name="insertCheckBoxOn"/>
766
+ <xsl:call-template name="addLetterSpacingSmallCaps">
767
+ <xsl:with-param name="text" select="'Safety'"/>
768
+ </xsl:call-template>
769
+ </fo:block>
770
+ </fo:table-cell>
771
+ </fo:table-row>
772
+ </xsl:if>
773
+
774
+ <xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
775
+
776
+ <fo:table-row>
777
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
778
+ <fo:block font-size="6.5pt" margin-bottom="12pt">
779
+ <xsl:call-template name="insertCheckBoxOn"/>
780
+ <xsl:call-template name="addLetterSpacingSmallCaps">
781
+ <xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
782
+ </xsl:call-template>
783
+ </fo:block>
784
+ <fo:block font-size="8pt" font-weight="bold" margin-bottom="10pt">
776
785
  <xsl:call-template name="addLetterSpacing">
777
- <xsl:with-param name="text" select="'The attention of IEC National Committees, members of CENELEC, is drawn to the fact that this Final Draft International Standard (FDIS) is submitted for parallel voting.'"/>
786
+ <xsl:with-param name="text" select="'Attention IEC-CENELEC parallel voting'"/>
778
787
  </xsl:call-template>
779
- </xsl:if>
780
- <xsl:if test="$stage-abbreviation = 'CDV'">
788
+ </fo:block>
789
+
790
+ <fo:block font-size="8pt" margin-bottom="10pt" text-align="justify">
791
+ <xsl:if test="$stage-abbreviation = 'FDIS'">
792
+ <xsl:call-template name="addLetterSpacing">
793
+ <xsl:with-param name="text" select="'The attention of IEC National Committees, members of CENELEC, is drawn to the fact that this Final Draft International Standard (FDIS) is submitted for parallel voting.'"/>
794
+ </xsl:call-template>
795
+ </xsl:if>
796
+ <xsl:if test="$stage-abbreviation = 'CDV'">
797
+ <xsl:call-template name="addLetterSpacing">
798
+ <xsl:with-param name="text" select="'The attention of IEC National Committees, members of CENELEC, is drawn to the fact that this Committee Draft for Vote (CDV) is submitted for parallel voting.'"/>
799
+ </xsl:call-template>
800
+ </xsl:if>
801
+ </fo:block>
802
+ <fo:block font-size="8pt" margin-bottom="10pt">
781
803
  <xsl:call-template name="addLetterSpacing">
782
- <xsl:with-param name="text" select="'The attention of IEC National Committees, members of CENELEC, is drawn to the fact that this Committee Draft for Vote (CDV) is submitted for parallel voting.'"/>
804
+ <xsl:with-param name="text" select="'The CENELEC members are invited to vote through the CENELEC online voting system.'"/>
783
805
  </xsl:call-template>
784
- </xsl:if>
785
- </fo:block>
786
- <fo:block font-size="8pt" margin-bottom="10pt">
787
- <xsl:call-template name="addLetterSpacing">
788
- <xsl:with-param name="text" select="'The CENELEC members are invited to vote through the CENELEC online voting system.'"/>
789
- </xsl:call-template>
790
- </fo:block>
791
- </fo:table-cell>
792
- <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
793
- <fo:block font-size="6.5pt" margin-bottom="6pt">
794
- <xsl:call-template name="insertCheckBoxOff"/>
795
- <xsl:call-template name="addLetterSpacingSmallCaps">
796
- <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
797
- </xsl:call-template>
798
- </fo:block>
799
- </fo:table-cell>
800
- </fo:table-row>
806
+ </fo:block>
807
+ </fo:table-cell>
808
+ <fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
809
+ <fo:block font-size="6.5pt" margin-bottom="6pt">
810
+ <xsl:call-template name="insertCheckBoxOff"/>
811
+ <xsl:call-template name="addLetterSpacingSmallCaps">
812
+ <xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
813
+ </xsl:call-template>
814
+ </fo:block>
815
+ </fo:table-cell>
816
+ </fo:table-row>
817
+ </xsl:if>
801
818
  </fo:table-body>
802
819
  </fo:table>
803
820
  </fo:block-container>
@@ -821,7 +838,7 @@
821
838
  </xsl:call-template>
822
839
  </fo:block>
823
840
  </xsl:if>
824
- <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'">
841
+ <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'">
825
842
  <fo:block margin-bottom="6pt">
826
843
  <xsl:call-template name="addLetterSpacing">
827
844
  <xsl:with-param name="text">This document is still under study and subject to change. It should not be used for reference purposes.</xsl:with-param>
@@ -848,7 +865,7 @@
848
865
  </fo:block>
849
866
  </fo:block-container>
850
867
 
851
- <xsl:if test="$stage-abbreviation = 'FDIS'">
868
+ <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS'">
852
869
  <fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" height="6.5mm" padding="1mm" margin-top="3mm" display-align="center">
853
870
  <fo:block font-size="6.5pt">
854
871
  <xsl:call-template name="addLetterSpacing">
@@ -1762,7 +1779,7 @@
1762
1779
 
1763
1780
 
1764
1781
 
1765
- <xsl:template match="iec:ul | iec:ol">
1782
+ <xsl:template match="iec:ul | iec:ol" mode="ul_ol">
1766
1783
  <fo:list-block provisional-distance-between-starts="6mm" margin-bottom="12pt">
1767
1784
  <xsl:if test="ancestor::iec:ul or ancestor::iec:ol">
1768
1785
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
@@ -1836,11 +1853,6 @@
1836
1853
  </xsl:template>
1837
1854
 
1838
1855
 
1839
-
1840
-
1841
-
1842
-
1843
- <!-- <xsl:template match="iec:references[@id = '_bibliography']"> -->
1844
1856
  <xsl:template match="iec:references[not(@normative='true')]">
1845
1857
  <fo:block break-after="page"/>
1846
1858
  <fo:block id="{@id}">
@@ -1853,14 +1865,12 @@
1853
1865
 
1854
1866
 
1855
1867
  <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
1856
- <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem"> -->
1857
1868
  <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem">
1858
- <fo:list-block margin-top="5pt" margin-bottom="14pt" provisional-distance-between-starts="0mm"> <!-- provisional-distance-between-starts="12mm" -->
1869
+ <fo:list-block margin-top="5pt" margin-bottom="14pt" provisional-distance-between-starts="12mm"> <!-- provisional-distance-between-starts="0mm" -->
1859
1870
  <fo:list-item>
1860
1871
  <fo:list-item-label end-indent="label-end()">
1861
- <fo:block font-size="1pt">
1862
- <fo:inline id="{@id}"> </fo:inline>
1863
- <!-- <xsl:number format="[1]"/> -->
1872
+ <fo:block id="{@id}">
1873
+ <xsl:number format="[1]"/>
1864
1874
  </fo:block>
1865
1875
  </fo:list-item-label>
1866
1876
  <fo:list-item-body start-indent="body-start()">
@@ -1886,10 +1896,8 @@
1886
1896
  </fo:list-block>
1887
1897
  </xsl:template>
1888
1898
 
1889
- <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem" mode="contents"/> -->
1890
1899
  <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem" mode="contents"/>
1891
1900
 
1892
- <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem/iec:title"> -->
1893
1901
  <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem/iec:title">
1894
1902
  <fo:inline font-style="italic">
1895
1903
  <xsl:apply-templates/>
@@ -2174,7 +2182,12 @@
2174
2182
 
2175
2183
 
2176
2184
 
2177
- <title-source lang="en">SOURCE</title-source>
2185
+ <title-source lang="en">
2186
+
2187
+ <xsl:text>SOURCE</xsl:text>
2188
+
2189
+
2190
+ </title-source>
2178
2191
 
2179
2192
  <title-keywords lang="en">Keywords</title-keywords>
2180
2193
 
@@ -2217,6 +2230,10 @@
2217
2230
  <title-warning lang="zh">警告</title-warning>
2218
2231
 
2219
2232
  <title-amendment lang="en">AMENDMENT</title-amendment>
2233
+
2234
+ <title-continued lang="en">(continued)</title-continued>
2235
+ <title-continued lang="fr">(continué)</title-continued>
2236
+
2220
2237
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
2221
2238
  <xsl:param name="name"/>
2222
2239
  <xsl:variable name="lang">
@@ -2234,6 +2251,7 @@
2234
2251
  </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'&#8232;'"/><xsl:attribute-set name="link-style">
2235
2252
 
2236
2253
 
2254
+
2237
2255
  </xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
2238
2256
  <xsl:attribute name="white-space">pre</xsl:attribute>
2239
2257
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
@@ -2241,8 +2259,7 @@
2241
2259
 
2242
2260
 
2243
2261
 
2244
- <xsl:attribute name="font-family">Courier</xsl:attribute>
2245
- <xsl:attribute name="font-size">9pt</xsl:attribute>
2262
+ <xsl:attribute name="font-family">Courier</xsl:attribute>
2246
2263
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
2247
2264
  <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
2248
2265
 
@@ -2250,6 +2267,7 @@
2250
2267
 
2251
2268
 
2252
2269
 
2270
+
2253
2271
  </xsl:attribute-set><xsl:attribute-set name="permission-style">
2254
2272
 
2255
2273
  </xsl:attribute-set><xsl:attribute-set name="permission-name-style">
@@ -2294,6 +2312,7 @@
2294
2312
 
2295
2313
 
2296
2314
 
2315
+
2297
2316
  </xsl:attribute-set><xsl:attribute-set name="example-body-style">
2298
2317
 
2299
2318
 
@@ -2314,6 +2333,7 @@
2314
2333
 
2315
2334
 
2316
2335
 
2336
+
2317
2337
 
2318
2338
 
2319
2339
 
@@ -2374,11 +2394,13 @@
2374
2394
 
2375
2395
  </xsl:attribute-set><xsl:attribute-set name="xref-style">
2376
2396
 
2377
-
2397
+
2398
+
2378
2399
  </xsl:attribute-set><xsl:attribute-set name="eref-style">
2379
2400
 
2380
2401
 
2381
2402
 
2403
+
2382
2404
  </xsl:attribute-set><xsl:attribute-set name="note-style">
2383
2405
 
2384
2406
 
@@ -2397,27 +2419,26 @@
2397
2419
 
2398
2420
 
2399
2421
 
2422
+ </xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
2400
2423
 
2401
2424
 
2402
- </xsl:attribute-set><xsl:attribute-set name="note-name-style">
2403
2425
 
2404
2426
 
2427
+ <xsl:attribute name="padding-right">6mm</xsl:attribute>
2405
2428
 
2406
2429
 
2407
- <xsl:attribute name="padding-right">6mm</xsl:attribute>
2408
2430
 
2409
2431
 
2410
2432
 
2411
2433
 
2412
2434
 
2413
-
2414
2435
 
2415
- </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2416
2436
 
2437
+ </xsl:attribute-set><xsl:attribute-set name="note-p-style">
2417
2438
 
2418
2439
 
2419
2440
 
2420
- <xsl:attribute name="font-size">8pt</xsl:attribute>
2441
+
2421
2442
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
2422
2443
 
2423
2444
 
@@ -2439,6 +2460,8 @@
2439
2460
 
2440
2461
 
2441
2462
 
2463
+ </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2464
+
2442
2465
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2443
2466
 
2444
2467
 
@@ -2472,12 +2495,14 @@
2472
2495
  </xsl:attribute-set><xsl:attribute-set name="origin-style">
2473
2496
 
2474
2497
 
2498
+
2475
2499
  </xsl:attribute-set><xsl:attribute-set name="term-style">
2476
2500
 
2477
2501
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
2478
2502
 
2479
2503
 
2480
2504
 
2505
+
2481
2506
 
2482
2507
  <xsl:attribute name="font-weight">bold</xsl:attribute>
2483
2508
  <xsl:attribute name="text-align">center</xsl:attribute>
@@ -2521,14 +2546,16 @@
2521
2546
  </xsl:attribute-set><xsl:attribute-set name="tt-style">
2522
2547
 
2523
2548
 
2524
- <xsl:attribute name="font-family">Courier</xsl:attribute>
2525
- <xsl:attribute name="font-size">10pt</xsl:attribute>
2549
+ <xsl:attribute name="font-family">Courier</xsl:attribute>
2550
+
2526
2551
 
2527
2552
  </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
2528
2553
  <xsl:attribute name="font-size">11pt</xsl:attribute>
2529
2554
  <xsl:attribute name="font-weight">bold</xsl:attribute>
2530
2555
  <xsl:attribute name="text-align">center</xsl:attribute>
2531
2556
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2557
+ <xsl:attribute name="keep-with-previous">always</xsl:attribute>
2558
+
2532
2559
  </xsl:attribute-set><xsl:attribute-set name="domain-style">
2533
2560
 
2534
2561
  </xsl:attribute-set><xsl:attribute-set name="admitted-style">
@@ -2598,6 +2625,8 @@
2598
2625
 
2599
2626
 
2600
2627
 
2628
+ <!-- $namespace = 'iso' or -->
2629
+
2601
2630
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
2602
2631
 
2603
2632
 
@@ -2662,7 +2691,7 @@
2662
2691
 
2663
2692
 
2664
2693
 
2665
-
2694
+
2666
2695
 
2667
2696
 
2668
2697
 
@@ -2679,11 +2708,13 @@
2679
2708
 
2680
2709
 
2681
2710
 
2711
+
2682
2712
  <!-- <xsl:if test="ancestor::*[local-name()='preface']"> -->
2683
2713
  <xsl:attribute name="font-size">8pt</xsl:attribute>
2684
2714
 
2685
2715
 
2686
2716
 
2717
+
2687
2718
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
2688
2719
  <xsl:choose>
2689
2720
  <xsl:when test=". = 1 or . = 0">
@@ -2714,8 +2745,9 @@
2714
2745
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
2715
2746
  <xsl:if test="normalize-space() != ''">
2716
2747
  <fo:block xsl:use-attribute-sets="table-name-style">
2717
- <xsl:apply-templates/>
2718
- </fo:block>
2748
+
2749
+ <xsl:apply-templates/>
2750
+ </fo:block>
2719
2751
  </xsl:if>
2720
2752
  </xsl:template><xsl:template name="calculate-columns-numbers">
2721
2753
  <xsl:param name="table-row"/>
@@ -2831,10 +2863,25 @@
2831
2863
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
2832
2864
  <xsl:param name="cols-count"/>
2833
2865
  <!-- font-weight="bold" -->
2834
- <fo:table-header>
2835
-
2866
+ <fo:table-header>
2867
+
2836
2868
  <xsl:apply-templates/>
2837
2869
  </fo:table-header>
2870
+ </xsl:template><xsl:template name="table-header-title">
2871
+ <xsl:param name="cols-count"/>
2872
+ <!-- row for title -->
2873
+ <fo:table-row>
2874
+ <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
2875
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
2876
+ <xsl:for-each select="ancestor::*[local-name()='table'][1]">
2877
+ <xsl:call-template name="fn_name_display"/>
2878
+ </xsl:for-each>
2879
+ <fo:block text-align="right" font-style="italic">
2880
+ <xsl:text> </xsl:text>
2881
+ <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
2882
+ </fo:block>
2883
+ </fo:table-cell>
2884
+ </fo:table-row>
2838
2885
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
2839
2886
  <fo:table-body>
2840
2887
  <xsl:apply-templates/>
@@ -2910,6 +2957,8 @@
2910
2957
  </xsl:choose>
2911
2958
  </xsl:variable>
2912
2959
 
2960
+
2961
+
2913
2962
  <xsl:apply-templates select="../*[local-name()='thead']" mode="process">
2914
2963
  <xsl:with-param name="cols-count" select="$cols-count"/>
2915
2964
  </xsl:apply-templates>
@@ -2919,6 +2968,8 @@
2919
2968
  </xsl:call-template>
2920
2969
 
2921
2970
  <fo:table-body>
2971
+
2972
+
2922
2973
  <xsl:apply-templates/>
2923
2974
  <!-- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/> -->
2924
2975
 
@@ -2947,6 +2998,8 @@
2947
2998
 
2948
2999
  </xsl:if>
2949
3000
 
3001
+
3002
+
2950
3003
 
2951
3004
  <xsl:apply-templates/>
2952
3005
  </fo:table-row>
@@ -2977,6 +3030,7 @@
2977
3030
 
2978
3031
 
2979
3032
 
3033
+
2980
3034
  <xsl:if test="@colspan">
2981
3035
  <xsl:attribute name="number-columns-spanned">
2982
3036
  <xsl:value-of select="@colspan"/>
@@ -2987,10 +3041,22 @@
2987
3041
  <xsl:value-of select="@rowspan"/>
2988
3042
  </xsl:attribute>
2989
3043
  </xsl:if>
3044
+ <xsl:call-template name="display-align"/>
2990
3045
  <fo:block>
2991
3046
  <xsl:apply-templates/>
2992
3047
  </fo:block>
2993
3048
  </fo:table-cell>
3049
+ </xsl:template><xsl:template name="display-align">
3050
+ <xsl:if test="@valign">
3051
+ <xsl:attribute name="display-align">
3052
+ <xsl:choose>
3053
+ <xsl:when test="@valign = 'top'">before</xsl:when>
3054
+ <xsl:when test="@valign = 'middle'">center</xsl:when>
3055
+ <xsl:when test="@valign = 'bottom'">after</xsl:when>
3056
+ <xsl:otherwise>before</xsl:otherwise>
3057
+ </xsl:choose>
3058
+ </xsl:attribute>
3059
+ </xsl:if>
2994
3060
  </xsl:template><xsl:template match="*[local-name()='td']">
2995
3061
  <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
2996
3062
  <xsl:attribute name="text-align">
@@ -3021,6 +3087,7 @@
3021
3087
 
3022
3088
 
3023
3089
 
3090
+
3024
3091
  <xsl:if test="@colspan">
3025
3092
  <xsl:attribute name="number-columns-spanned">
3026
3093
  <xsl:value-of select="@colspan"/>
@@ -3031,8 +3098,8 @@
3031
3098
  <xsl:value-of select="@rowspan"/>
3032
3099
  </xsl:attribute>
3033
3100
  </xsl:if>
3034
- <fo:block>
3035
-
3101
+ <xsl:call-template name="display-align"/>
3102
+ <fo:block>
3036
3103
  <xsl:apply-templates/>
3037
3104
  </fo:block>
3038
3105
  </fo:table-cell>
@@ -3233,6 +3300,7 @@
3233
3300
 
3234
3301
 
3235
3302
 
3303
+
3236
3304
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
3237
3305
 
3238
3306
  <xsl:value-of select="@reference"/>
@@ -3243,131 +3311,145 @@
3243
3311
  <xsl:apply-templates/>
3244
3312
  </fo:inline>
3245
3313
  </xsl:template><xsl:template match="*[local-name()='dl']">
3246
- <xsl:variable name="parent" select="local-name(..)"/>
3247
-
3248
- <xsl:variable name="key_iso">
3249
-
3250
- <xsl:if test="$parent = 'figure' or $parent = 'formula'">true</xsl:if>
3251
- <!-- and (not(../@class) or ../@class !='pseudocode') -->
3252
- </xsl:variable>
3253
-
3254
- <xsl:choose>
3255
- <xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
3314
+ <fo:block-container margin-left="0mm">
3315
+ <xsl:if test="parent::*[local-name() = 'note']">
3316
+ <xsl:attribute name="margin-left">
3317
+ <xsl:choose>
3318
+ <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
3319
+ <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
3320
+ </xsl:choose>
3321
+ </xsl:attribute>
3322
+
3323
+ </xsl:if>
3324
+ <fo:block-container margin-left="0mm">
3325
+
3326
+ <xsl:variable name="parent" select="local-name(..)"/>
3256
3327
 
3257
- <fo:block text-align="left">
3328
+ <xsl:variable name="key_iso">
3329
+
3330
+ <xsl:if test="$parent = 'figure' or $parent = 'formula'">true</xsl:if>
3331
+ <!-- and (not(../@class) or ../@class !='pseudocode') -->
3332
+ </xsl:variable>
3333
+
3334
+ <xsl:choose>
3335
+ <xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
3258
3336
 
3259
- <xsl:attribute name="margin-bottom">15pt</xsl:attribute>
3337
+ <fo:block text-align="left">
3338
+
3339
+ <xsl:attribute name="margin-bottom">15pt</xsl:attribute>
3340
+
3341
+
3342
+ <xsl:variable name="title-where">
3343
+ <xsl:call-template name="getTitle">
3344
+ <xsl:with-param name="name" select="'title-where'"/>
3345
+ </xsl:call-template>
3346
+ </xsl:variable>
3347
+ <xsl:value-of select="$title-where"/>
3348
+ </fo:block>
3349
+ <fo:block>
3350
+
3351
+ <xsl:apply-templates select="*[local-name()='dt']/*"/>
3352
+
3353
+ <xsl:text> </xsl:text>
3354
+ <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
3355
+ </fo:block>
3260
3356
 
3261
3357
 
3262
- <xsl:variable name="title-where">
3263
- <xsl:call-template name="getTitle">
3264
- <xsl:with-param name="name" select="'title-where'"/>
3265
- </xsl:call-template>
3266
- </xsl:variable>
3267
- <xsl:value-of select="$title-where"/>
3268
- </fo:block>
3358
+ </xsl:when>
3359
+ <xsl:when test="$parent = 'formula'"> <!-- a few components -->
3360
+ <fo:block margin-bottom="12pt" text-align="left">
3361
+
3362
+
3363
+ <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
3364
+
3365
+
3366
+
3367
+ <xsl:variable name="title-where">
3368
+ <xsl:call-template name="getTitle">
3369
+ <xsl:with-param name="name" select="'title-where'"/>
3370
+ </xsl:call-template>
3371
+ </xsl:variable>
3372
+ <xsl:value-of select="$title-where"/>
3373
+ </fo:block>
3374
+ </xsl:when>
3375
+ <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
3376
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
3377
+
3378
+
3379
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
3380
+ <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
3381
+
3382
+
3383
+ <xsl:variable name="title-key">
3384
+ <xsl:call-template name="getTitle">
3385
+ <xsl:with-param name="name" select="'title-key'"/>
3386
+ </xsl:call-template>
3387
+ </xsl:variable>
3388
+ <xsl:value-of select="$title-key"/>
3389
+ </fo:block>
3390
+ </xsl:when>
3391
+ </xsl:choose>
3392
+
3393
+ <!-- a few components -->
3394
+ <xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
3269
3395
  <fo:block>
3270
3396
 
3271
- <xsl:apply-templates select="*[local-name()='dt']/*"/>
3272
3397
 
3273
- <xsl:text> </xsl:text>
3274
- <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
3275
- </fo:block>
3276
-
3277
-
3278
- </xsl:when>
3279
- <xsl:when test="$parent = 'formula'"> <!-- a few components -->
3280
- <fo:block margin-bottom="12pt" text-align="left">
3281
-
3282
-
3283
- <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
3284
-
3285
-
3286
-
3287
- <xsl:variable name="title-where">
3288
- <xsl:call-template name="getTitle">
3289
- <xsl:with-param name="name" select="'title-where'"/>
3290
- </xsl:call-template>
3291
- </xsl:variable>
3292
- <xsl:value-of select="$title-where"/>
3293
- </fo:block>
3294
- </xsl:when>
3295
- <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
3296
- <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
3297
-
3298
-
3299
- <xsl:attribute name="font-size">8pt</xsl:attribute>
3300
- <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
3301
-
3302
-
3303
- <xsl:variable name="title-key">
3304
- <xsl:call-template name="getTitle">
3305
- <xsl:with-param name="name" select="'title-key'"/>
3306
- </xsl:call-template>
3307
- </xsl:variable>
3308
- <xsl:value-of select="$title-key"/>
3309
- </fo:block>
3310
- </xsl:when>
3311
- </xsl:choose>
3312
-
3313
- <!-- a few components -->
3314
- <xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
3315
- <fo:block>
3316
-
3317
-
3318
-
3319
-
3320
- <fo:block>
3321
-
3322
-
3323
-
3324
-
3325
- <fo:table width="95%" table-layout="fixed">
3326
3398
 
3327
- <xsl:choose>
3328
- <xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
3329
- <!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
3330
- </xsl:when>
3331
- <xsl:when test="normalize-space($key_iso) = 'true'">
3332
- <xsl:attribute name="font-size">10pt</xsl:attribute>
3333
-
3334
- <xsl:attribute name="font-size">8pt</xsl:attribute>
3399
+
3400
+ <fo:block>
3401
+
3402
+
3403
+
3404
+
3405
+ <fo:table width="95%" table-layout="fixed">
3335
3406
 
3336
- </xsl:when>
3337
- </xsl:choose>
3338
- <!-- create virtual html table for dl/[dt and dd] -->
3339
- <xsl:variable name="html-table">
3340
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
3341
- <xsl:element name="{$ns}:table">
3342
- <tbody>
3343
- <xsl:apply-templates mode="dl"/>
3344
- </tbody>
3345
- </xsl:element>
3346
- </xsl:variable>
3347
- <!-- html-table<xsl:copy-of select="$html-table"/> -->
3348
- <xsl:variable name="colwidths">
3349
- <xsl:call-template name="calculate-column-widths">
3350
- <xsl:with-param name="cols-count" select="2"/>
3351
- <xsl:with-param name="table" select="$html-table"/>
3352
- </xsl:call-template>
3353
- </xsl:variable>
3354
- <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
3355
- <xsl:variable name="maxlength_dt">
3356
- <xsl:call-template name="getMaxLength_dt"/>
3357
- </xsl:variable>
3358
- <xsl:call-template name="setColumnWidth_dl">
3359
- <xsl:with-param name="colwidths" select="$colwidths"/>
3360
- <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
3361
- </xsl:call-template>
3362
- <fo:table-body>
3363
- <xsl:apply-templates>
3364
- <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
3365
- </xsl:apply-templates>
3366
- </fo:table-body>
3367
- </fo:table>
3368
- </fo:block>
3369
- </fo:block>
3370
- </xsl:if>
3407
+ <xsl:choose>
3408
+ <xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
3409
+ <!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
3410
+ </xsl:when>
3411
+ <xsl:when test="normalize-space($key_iso) = 'true'">
3412
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
3413
+
3414
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
3415
+
3416
+ </xsl:when>
3417
+ </xsl:choose>
3418
+ <!-- create virtual html table for dl/[dt and dd] -->
3419
+ <xsl:variable name="html-table">
3420
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
3421
+ <xsl:element name="{$ns}:table">
3422
+ <tbody>
3423
+ <xsl:apply-templates mode="dl"/>
3424
+ </tbody>
3425
+ </xsl:element>
3426
+ </xsl:variable>
3427
+ <!-- html-table<xsl:copy-of select="$html-table"/> -->
3428
+ <xsl:variable name="colwidths">
3429
+ <xsl:call-template name="calculate-column-widths">
3430
+ <xsl:with-param name="cols-count" select="2"/>
3431
+ <xsl:with-param name="table" select="$html-table"/>
3432
+ </xsl:call-template>
3433
+ </xsl:variable>
3434
+ <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
3435
+ <xsl:variable name="maxlength_dt">
3436
+ <xsl:call-template name="getMaxLength_dt"/>
3437
+ </xsl:variable>
3438
+ <xsl:call-template name="setColumnWidth_dl">
3439
+ <xsl:with-param name="colwidths" select="$colwidths"/>
3440
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
3441
+ </xsl:call-template>
3442
+ <fo:table-body>
3443
+ <xsl:apply-templates>
3444
+ <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
3445
+ </xsl:apply-templates>
3446
+ </fo:table-body>
3447
+ </fo:table>
3448
+ </fo:block>
3449
+ </fo:block>
3450
+ </xsl:if>
3451
+ </fo:block-container>
3452
+ </fo:block-container>
3371
3453
  </xsl:template><xsl:template name="setColumnWidth_dl">
3372
3454
  <xsl:param name="colwidths"/>
3373
3455
  <xsl:param name="maxlength_dt"/>
@@ -3464,6 +3546,7 @@
3464
3546
  <xsl:param name="key_iso"/>
3465
3547
 
3466
3548
  <fo:table-row>
3549
+
3467
3550
  <fo:table-cell>
3468
3551
 
3469
3552
  <fo:block margin-top="6pt">
@@ -3493,14 +3576,36 @@
3493
3576
  <fo:table-cell>
3494
3577
  <fo:block>
3495
3578
 
3496
-
3579
+ <!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
3580
+ <xsl:if test="local-name(*[1]) != 'stem'">
3581
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
3582
+ </xsl:if>
3583
+ </xsl:if> -->
3497
3584
 
3498
3585
  <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
3499
3586
 
3500
3587
  </fo:block>
3501
3588
  </fo:table-cell>
3502
3589
  </fo:table-row>
3503
-
3590
+ <!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
3591
+ <xsl:if test="local-name(*[1]) = 'stem'">
3592
+ <fo:table-row>
3593
+ <fo:table-cell>
3594
+ <fo:block margin-top="6pt">
3595
+ <xsl:if test="normalize-space($key_iso) = 'true'">
3596
+ <xsl:attribute name="margin-top">0</xsl:attribute>
3597
+ </xsl:if>
3598
+ <xsl:text>&#xA0;</xsl:text>
3599
+ </fo:block>
3600
+ </fo:table-cell>
3601
+ <fo:table-cell>
3602
+ <fo:block>
3603
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
3604
+ </fo:block>
3605
+ </fo:table-cell>
3606
+ </fo:table-row>
3607
+ </xsl:if>
3608
+ </xsl:if> -->
3504
3609
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
3505
3610
  <xsl:apply-templates/>
3506
3611
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
@@ -3525,6 +3630,31 @@
3525
3630
  </fo:inline>
3526
3631
  </xsl:template><xsl:template match="*[local-name()='tt']">
3527
3632
  <fo:inline xsl:use-attribute-sets="tt-style">
3633
+ <xsl:variable name="_font-size">
3634
+
3635
+
3636
+
3637
+ 10
3638
+
3639
+
3640
+
3641
+
3642
+
3643
+
3644
+
3645
+
3646
+
3647
+
3648
+ </xsl:variable>
3649
+ <xsl:variable name="font-size" select="normalize-space($_font-size)"/>
3650
+ <xsl:if test="$font-size != ''">
3651
+ <xsl:attribute name="font-size">
3652
+ <xsl:choose>
3653
+ <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
3654
+ <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
3655
+ </xsl:choose>
3656
+ </xsl:attribute>
3657
+ </xsl:if>
3528
3658
  <xsl:apply-templates/>
3529
3659
  </fo:inline>
3530
3660
  </xsl:template><xsl:template match="*[local-name()='del']">
@@ -3851,10 +3981,23 @@
3851
3981
  <xsl:value-of select="substring($str, 2)"/>
3852
3982
  </xsl:template><xsl:template match="mathml:math">
3853
3983
  <fo:inline font-family="STIX2Math">
3854
- <fo:instream-foreign-object fox:alt-text="Math">
3855
- <xsl:copy-of select="."/>
3856
- </fo:instream-foreign-object>
3984
+ <xsl:variable name="mathml">
3985
+ <xsl:apply-templates select="." mode="mathml"/>
3986
+ </xsl:variable>
3987
+ <fo:instream-foreign-object fox:alt-text="Math">
3988
+ <!-- <xsl:copy-of select="."/> -->
3989
+ <xsl:copy-of select="xalan:nodeset($mathml)"/>
3990
+ </fo:instream-foreign-object>
3857
3991
  </fo:inline>
3992
+ </xsl:template><xsl:template match="@*|node()" mode="mathml">
3993
+ <xsl:copy>
3994
+ <xsl:apply-templates select="@*|node()" mode="mathml"/>
3995
+ </xsl:copy>
3996
+ </xsl:template><xsl:template match="mathml:mtext" mode="mathml">
3997
+ <xsl:copy>
3998
+ <!-- replace start and end spaces to non-break space -->
3999
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
4000
+ </xsl:copy>
3858
4001
  </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
3859
4002
  <xsl:variable name="target">
3860
4003
  <xsl:choose>
@@ -3935,9 +4078,22 @@
3935
4078
  <xsl:apply-templates/>
3936
4079
  </fo:basic-link>
3937
4080
  </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
3938
- <fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
3939
- <xsl:apply-templates/>
3940
- </fo:block>
4081
+ <fo:block-container margin-left="0mm">
4082
+ <xsl:if test="parent::*[local-name() = 'note']">
4083
+ <xsl:attribute name="margin-left">
4084
+ <xsl:choose>
4085
+ <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
4086
+ <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
4087
+ </xsl:choose>
4088
+ </xsl:attribute>
4089
+
4090
+ </xsl:if>
4091
+ <fo:block-container margin-left="0mm">
4092
+ <fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
4093
+ <xsl:apply-templates/>
4094
+ </fo:block>
4095
+ </fo:block-container>
4096
+ </fo:block-container>
3941
4097
  </xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
3942
4098
  <fo:inline>
3943
4099
  <xsl:apply-templates/>
@@ -3997,7 +4153,9 @@
3997
4153
  </xsl:choose>
3998
4154
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
3999
4155
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4000
- <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4156
+ <fo:inline xsl:use-attribute-sets="termnote-name-style">
4157
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4158
+ </fo:inline>
4001
4159
  <xsl:apply-templates/>
4002
4160
  </fo:block>
4003
4161
  </xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name'] | *[local-name() = 'termnote']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']" mode="presentation">
@@ -4166,21 +4324,61 @@
4166
4324
  </xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
4167
4325
  <xsl:text> </xsl:text>
4168
4326
  </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
4169
- <fo:block xsl:use-attribute-sets="sourcecode-style">
4170
- <xsl:apply-templates/>
4171
- </fo:block>
4172
- <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4173
- </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()">
4327
+
4328
+ <fo:block-container margin-left="0mm">
4329
+ <xsl:if test="parent::*[local-name() = 'note']">
4330
+ <xsl:attribute name="margin-left">
4331
+ <xsl:choose>
4332
+ <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
4333
+ <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
4334
+ </xsl:choose>
4335
+ </xsl:attribute>
4336
+
4337
+ </xsl:if>
4338
+ <fo:block-container margin-left="0mm">
4339
+
4340
+ <fo:block xsl:use-attribute-sets="sourcecode-style">
4341
+ <xsl:variable name="_font-size">
4342
+
4343
+
4344
+
4345
+ 9
4346
+
4347
+
4348
+
4349
+
4350
+
4351
+
4352
+
4353
+
4354
+
4355
+
4356
+ </xsl:variable>
4357
+ <xsl:variable name="font-size" select="normalize-space($_font-size)"/>
4358
+ <xsl:if test="$font-size != ''">
4359
+ <xsl:attribute name="font-size">
4360
+ <xsl:choose>
4361
+ <xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
4362
+ <xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
4363
+ </xsl:choose>
4364
+ </xsl:attribute>
4365
+ </xsl:if>
4366
+ <xsl:apply-templates/>
4367
+ </fo:block>
4368
+ <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4369
+
4370
+ </fo:block-container>
4371
+ </fo:block-container>
4372
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
4174
4373
  <xsl:variable name="text">
4175
4374
  <xsl:call-template name="add-zero-spaces-equal"/>
4176
4375
  </xsl:variable>
4177
- <xsl:call-template name="add-zero-spaces">
4376
+ <xsl:call-template name="add-zero-spaces-java">
4178
4377
  <xsl:with-param name="text" select="$text"/>
4179
4378
  </xsl:call-template>
4180
4379
  </xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
4181
4380
  <xsl:if test="normalize-space() != ''">
4182
- <fo:block xsl:use-attribute-sets="sourcecode-name-style">
4183
-
4381
+ <fo:block xsl:use-attribute-sets="sourcecode-name-style">
4184
4382
  <xsl:apply-templates/>
4185
4383
  </fo:block>
4186
4384
  </xsl:if>
@@ -4250,22 +4448,30 @@
4250
4448
  </fo:block>
4251
4449
  </xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
4252
4450
  <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
4451
+ <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
4452
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
4453
+ </xsl:if>
4253
4454
  <fo:block-container margin-left="0mm" margin-right="0mm">
4254
- <fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
4455
+ <fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
4456
+ <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
4457
+ <!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
4458
+ </xsl:if>
4255
4459
  <xsl:variable name="simple-table">
4256
4460
  <xsl:call-template name="getSimpleTable"/>
4257
4461
  </xsl:variable>
4258
4462
  <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
4259
4463
  <xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
4260
- <fo:table-column column-width="35mm"/>
4261
- <fo:table-column column-width="115mm"/>
4464
+ <!-- <fo:table-column column-width="35mm"/>
4465
+ <fo:table-column column-width="115mm"/> -->
4466
+ <fo:table-column column-width="30%"/>
4467
+ <fo:table-column column-width="70%"/>
4262
4468
  </xsl:if>
4263
4469
  <xsl:apply-templates mode="requirement"/>
4264
4470
  </fo:table>
4265
4471
  <!-- fn processing -->
4266
4472
  <xsl:if test=".//*[local-name() = 'fn']">
4267
4473
  <xsl:for-each select="*[local-name() = 'tbody']">
4268
- <fo:block font-size="90%" border-bottom="1.pt solid black">
4474
+ <fo:block font-size="90%" border-bottom="1pt solid black">
4269
4475
  <xsl:call-template name="fn_display"/>
4270
4476
  </fo:block>
4271
4477
  </xsl:for-each>
@@ -4281,17 +4487,27 @@
4281
4487
  <xsl:apply-templates mode="requirement"/>
4282
4488
  </fo:table-body>
4283
4489
  </xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
4284
- <fo:table-row>
4490
+ <fo:table-row height="7mm" border-bottom="0.5pt solid grey">
4491
+ <xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
4492
+ <!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
4493
+ <xsl:attribute name="background-color">rgb(33, 55, 92)</xsl:attribute>
4494
+ </xsl:if>
4495
+ <xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
4496
+ <xsl:attribute name="background-color">rgb(252, 246, 222)</xsl:attribute>
4497
+ </xsl:if>
4498
+ <xsl:if test="starts-with(*[local-name()='td'][1], 'Recommendation ')">
4499
+ <xsl:attribute name="background-color">rgb(233, 235, 239)</xsl:attribute>
4500
+ </xsl:if>
4285
4501
  <xsl:apply-templates mode="requirement"/>
4286
4502
  </fo:table-row>
4287
4503
  </xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
4288
- <fo:table-cell text-align="{@align}">
4504
+ <fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
4289
4505
  <xsl:attribute name="text-align">
4290
4506
  <xsl:choose>
4291
4507
  <xsl:when test="@align">
4292
4508
  <xsl:value-of select="@align"/>
4293
4509
  </xsl:when>
4294
- <xsl:otherwise>center</xsl:otherwise>
4510
+ <xsl:otherwise>left</xsl:otherwise>
4295
4511
  </xsl:choose>
4296
4512
  </xsl:attribute>
4297
4513
  <xsl:if test="@colspan">
@@ -4304,22 +4520,27 @@
4304
4520
  <xsl:value-of select="@rowspan"/>
4305
4521
  </xsl:attribute>
4306
4522
  </xsl:if>
4523
+ <xsl:call-template name="display-align"/>
4307
4524
 
4308
- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4525
+ <!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4309
4526
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4310
4527
  <xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
4311
4528
  </xsl:if>
4312
4529
  <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
4313
4530
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4314
4531
  <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
4315
- </xsl:if>
4532
+ </xsl:if> -->
4316
4533
 
4317
4534
  <fo:block>
4318
4535
  <xsl:apply-templates/>
4319
4536
  </fo:block>
4320
4537
  </fo:table-cell>
4321
4538
  </xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
4322
- <fo:table-cell text-align="{@align}">
4539
+ <fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
4540
+ <xsl:if test="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
4541
+ <xsl:attribute name="padding">0mm</xsl:attribute>
4542
+ <xsl:attribute name="padding-left">0mm</xsl:attribute>
4543
+ </xsl:if>
4323
4544
  <xsl:attribute name="text-align">
4324
4545
  <xsl:choose>
4325
4546
  <xsl:when test="@align">
@@ -4328,6 +4549,9 @@
4328
4549
  <xsl:otherwise>left</xsl:otherwise>
4329
4550
  </xsl:choose>
4330
4551
  </xsl:attribute>
4552
+ <xsl:if test="following-sibling::*[local-name()='td'] and not(preceding-sibling::*[local-name()='td'])">
4553
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
4554
+ </xsl:if>
4331
4555
  <xsl:if test="@colspan">
4332
4556
  <xsl:attribute name="number-columns-spanned">
4333
4557
  <xsl:value-of select="@colspan"/>
@@ -4338,25 +4562,27 @@
4338
4562
  <xsl:value-of select="@rowspan"/>
4339
4563
  </xsl:attribute>
4340
4564
  </xsl:if>
4565
+ <xsl:call-template name="display-align"/>
4341
4566
 
4342
- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4567
+ <!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4343
4568
  <xsl:attribute name="padding-left">0.5mm</xsl:attribute>
4344
- <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4345
- <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
4569
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4570
+ <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
4346
4571
  <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
4347
4572
  </xsl:if>
4348
- </xsl:if>
4573
+ </xsl:if> -->
4574
+ <!-- 2nd line and below -->
4349
4575
 
4350
4576
  <fo:block>
4351
4577
  <xsl:apply-templates/>
4352
4578
  </fo:block>
4353
4579
  </fo:table-cell>
4354
4580
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
4355
- <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
4581
+ <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
4356
4582
  <xsl:apply-templates/>
4357
4583
  </fo:block>
4358
- </xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
4359
- <fo:block margin-bottom="10pt">
4584
+ </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
4585
+ <fo:block> <!-- margin-bottom="10pt" -->
4360
4586
  <xsl:apply-templates/>
4361
4587
  </fo:block>
4362
4588
  </xsl:template><xsl:template match="*[local-name() = 'termexample']">
@@ -4378,12 +4604,13 @@
4378
4604
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4379
4605
 
4380
4606
  <xsl:variable name="element">
4381
-
4607
+
4382
4608
  inline
4609
+ <xsl:if test=".//*[local-name() = 'table']">block</xsl:if>
4383
4610
  </xsl:variable>
4384
4611
 
4385
4612
  <xsl:choose>
4386
- <xsl:when test="normalize-space($element) = 'block'">
4613
+ <xsl:when test="contains(normalize-space($element), 'block')">
4387
4614
  <fo:block xsl:use-attribute-sets="example-body-style">
4388
4615
  <xsl:apply-templates/>
4389
4616
  </fo:block>
@@ -4420,25 +4647,44 @@
4420
4647
  </xsl:otherwise>
4421
4648
  </xsl:choose>
4422
4649
 
4423
- </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
4424
- <fo:block xsl:use-attribute-sets="example-p-style">
4650
+ </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
4651
+
4652
+ <xsl:variable name="element">
4653
+ block
4425
4654
 
4426
- <xsl:apply-templates/>
4427
- </fo:block>
4655
+ </xsl:variable>
4656
+ <xsl:choose>
4657
+ <xsl:when test="normalize-space($element) = 'block'">
4658
+ <fo:block xsl:use-attribute-sets="example-p-style">
4659
+
4660
+ <xsl:apply-templates/>
4661
+ </fo:block>
4662
+ </xsl:when>
4663
+ <xsl:otherwise>
4664
+ <fo:inline xsl:use-attribute-sets="example-p-style">
4665
+ <xsl:apply-templates/>
4666
+ </fo:inline>
4667
+ </xsl:otherwise>
4668
+ </xsl:choose>
4428
4669
  </xsl:template><xsl:template match="*[local-name() = 'termsource']">
4429
4670
  <fo:block xsl:use-attribute-sets="termsource-style">
4430
4671
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4431
4672
  <xsl:variable name="termsource_text">
4432
4673
  <xsl:apply-templates/>
4433
4674
  </xsl:variable>
4675
+
4434
4676
  <xsl:choose>
4435
4677
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4436
4678
  <xsl:apply-templates/>
4437
4679
  </xsl:when>
4438
- <xsl:otherwise>
4439
- <xsl:text>[</xsl:text>
4440
- <xsl:apply-templates/>
4441
- <xsl:text>]</xsl:text>
4680
+ <xsl:otherwise>
4681
+
4682
+ <xsl:text>[</xsl:text>
4683
+
4684
+ <xsl:apply-templates/>
4685
+
4686
+ <xsl:text>]</xsl:text>
4687
+
4442
4688
  </xsl:otherwise>
4443
4689
  </xsl:choose>
4444
4690
  </fo:block>
@@ -4449,10 +4695,13 @@
4449
4695
  </xsl:template><xsl:template match="*[local-name() = 'origin']">
4450
4696
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4451
4697
 
4452
- <xsl:call-template name="getTitle">
4453
- <xsl:with-param name="name" select="'title-source'"/>
4454
- </xsl:call-template>
4455
- <xsl:text>: </xsl:text>
4698
+ <fo:inline>
4699
+
4700
+ <xsl:call-template name="getTitle">
4701
+ <xsl:with-param name="name" select="'title-source'"/>
4702
+ </xsl:call-template>
4703
+ <xsl:text>: </xsl:text>
4704
+ </fo:inline>
4456
4705
 
4457
4706
  <fo:inline xsl:use-attribute-sets="origin-style">
4458
4707
  <xsl:apply-templates/>
@@ -4464,18 +4713,29 @@
4464
4713
  <xsl:if test="normalize-space() != ''">
4465
4714
  <xsl:value-of select="."/>
4466
4715
  </xsl:if>
4467
- </xsl:template><xsl:template match="*[local-name() = 'quote']">
4716
+ </xsl:template><xsl:template match="*[local-name() = 'quote']">
4717
+ <fo:block-container margin-left="0mm">
4718
+ <xsl:if test="parent::*[local-name() = 'note']">
4719
+ <xsl:if test="not(ancestor::*[local-name() = 'table'])">
4720
+ <xsl:attribute name="margin-left">5mm</xsl:attribute>
4721
+ </xsl:if>
4722
+ </xsl:if>
4723
+
4724
+ <fo:block-container margin-left="0mm">
4468
4725
 
4469
- <fo:block xsl:use-attribute-sets="quote-style">
4470
- <xsl:apply-templates select=".//*[local-name() = 'p']"/>
4471
- </fo:block>
4472
- <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
4473
- <fo:block xsl:use-attribute-sets="quote-source-style">
4474
- <!-- — ISO, ISO 7301:2011, Clause 1 -->
4475
- <xsl:apply-templates select="*[local-name() = 'author']"/>
4476
- <xsl:apply-templates select="*[local-name() = 'source']"/>
4477
- </fo:block>
4478
- </xsl:if>
4726
+ <fo:block xsl:use-attribute-sets="quote-style">
4727
+ <xsl:apply-templates select=".//*[local-name() = 'p']"/>
4728
+ </fo:block>
4729
+ <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
4730
+ <fo:block xsl:use-attribute-sets="quote-source-style">
4731
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
4732
+ <xsl:apply-templates select="*[local-name() = 'author']"/>
4733
+ <xsl:apply-templates select="*[local-name() = 'source']"/>
4734
+ </fo:block>
4735
+ </xsl:if>
4736
+
4737
+ </fo:block-container>
4738
+ </fo:block-container>
4479
4739
  </xsl:template><xsl:template match="*[local-name() = 'source']">
4480
4740
  <xsl:if test="../*[local-name() = 'author']">
4481
4741
  <xsl:text>, </xsl:text>
@@ -4503,6 +4763,7 @@
4503
4763
  <xsl:if test="@type = 'inline'">
4504
4764
 
4505
4765
 
4766
+
4506
4767
  </xsl:if>
4507
4768
 
4508
4769
 
@@ -4542,6 +4803,7 @@
4542
4803
 
4543
4804
 
4544
4805
 
4806
+
4545
4807
  </xsl:variable>
4546
4808
 
4547
4809
  <xsl:variable name="padding-right">
@@ -4656,6 +4918,21 @@
4656
4918
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
4657
4919
  <!-- 0xA0 to space replacement -->
4658
4920
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
4921
+ </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
4922
+ <fo:block-container margin-left="0mm">
4923
+ <xsl:if test="parent::*[local-name() = 'note']">
4924
+ <xsl:attribute name="margin-left">
4925
+ <xsl:choose>
4926
+ <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
4927
+ <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
4928
+ </xsl:choose>
4929
+ </xsl:attribute>
4930
+
4931
+ </xsl:if>
4932
+ <fo:block-container margin-left="0mm">
4933
+ <xsl:apply-templates select="." mode="ul_ol"/>
4934
+ </fo:block-container>
4935
+ </fo:block-container>
4659
4936
  </xsl:template><xsl:template match="*[local-name() = 'errata']">
4660
4937
  <!-- <row>
4661
4938
  <date>05-07-2013</date>
@@ -4687,6 +4964,65 @@
4687
4964
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
4688
4965
  <fo:block><xsl:apply-templates/></fo:block>
4689
4966
  </fo:table-cell>
4967
+ </xsl:template><xsl:template name="processBibitem">
4968
+
4969
+
4970
+
4971
+
4972
+ </xsl:template><xsl:template name="processBibitemDocId">
4973
+ <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
4974
+ <xsl:choose>
4975
+ <xsl:when test="normalize-space($_doc_ident) != ''">
4976
+ <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
4977
+ <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
4978
+ <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4979
+ </xsl:if>
4980
+ <xsl:value-of select="$_doc_ident"/>
4981
+ </xsl:when>
4982
+ <xsl:otherwise>
4983
+ <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
4984
+ <xsl:if test="$type != ''">
4985
+ <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4986
+ </xsl:if>
4987
+ <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
4988
+ </xsl:otherwise>
4989
+ </xsl:choose>
4990
+ </xsl:template><xsl:template name="processPersonalAuthor">
4991
+ <xsl:choose>
4992
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'completename']">
4993
+ <author>
4994
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'completename']"/>
4995
+ </author>
4996
+ </xsl:when>
4997
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'initial']">
4998
+ <author>
4999
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
5000
+ <xsl:text> </xsl:text>
5001
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'initial']" mode="strip"/>
5002
+ </author>
5003
+ </xsl:when>
5004
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'forename']">
5005
+ <author>
5006
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
5007
+ <xsl:text> </xsl:text>
5008
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'forename']" mode="strip"/>
5009
+ </author>
5010
+ </xsl:when>
5011
+ <xsl:otherwise>
5012
+ <xsl:apply-templates/>
5013
+ </xsl:otherwise>
5014
+ </xsl:choose>
5015
+ </xsl:template><xsl:template name="renderDate">
5016
+ <xsl:if test="normalize-space(*[local-name() = 'on']) != ''">
5017
+ <xsl:value-of select="*[local-name() = 'on']"/>
5018
+ </xsl:if>
5019
+ <xsl:if test="normalize-space(*[local-name() = 'from']) != ''">
5020
+ <xsl:value-of select="concat(*[local-name() = 'from'], '–', *[local-name() = 'to'])"/>
5021
+ </xsl:if>
5022
+ </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'initial']/text()" mode="strip">
5023
+ <xsl:value-of select="translate(.,'. ','')"/>
5024
+ </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
5025
+ <xsl:value-of select="substring(.,1,1)"/>
4690
5026
  </xsl:template><xsl:template name="convertDate">
4691
5027
  <xsl:param name="date"/>
4692
5028
  <xsl:param name="format" select="'short'"/>