metanorma-nist 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/nist/basicdoc.rng +31 -1
- data/lib/asciidoctor/nist/isodoc.rng +108 -8
- data/lib/isodoc/nist/html/nist.css +16 -4
- data/lib/isodoc/nist/html/nist.scss +18 -4
- data/lib/isodoc/nist/html/nist_cswp.css +15 -3
- data/lib/isodoc/nist/html/nist_cswp.scss +17 -3
- data/lib/isodoc/nist/nist.cswp.xsl +467 -183
- data/lib/isodoc/nist/nist.sp.xsl +466 -179
- data/lib/isodoc/nist/render_contributors.rb +1 -1
- data/lib/metanorma/nist/version.rb +1 -1
- metadata +2 -2
data/lib/isodoc/nist/nist.sp.xsl
CHANGED
@@ -1510,7 +1510,12 @@
|
|
1510
1510
|
</xsl:variable>
|
1511
1511
|
<xsl:element name="{$element-name}">
|
1512
1512
|
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
1513
|
-
<xsl:attribute name="font-size">
|
1513
|
+
<xsl:attribute name="font-size">
|
1514
|
+
<xsl:choose>
|
1515
|
+
<xsl:when test="ancestor::*[local-name()='note']">9pt</xsl:when>
|
1516
|
+
<xsl:otherwise>10pt</xsl:otherwise>
|
1517
|
+
</xsl:choose>
|
1518
|
+
</xsl:attribute>
|
1514
1519
|
<xsl:if test="not(ancestor::nist:td)">
|
1515
1520
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1516
1521
|
</xsl:if>
|
@@ -1616,7 +1621,7 @@
|
|
1616
1621
|
|
1617
1622
|
|
1618
1623
|
|
1619
|
-
<xsl:template match="nist:ul | nist:ol">
|
1624
|
+
<xsl:template match="nist:ul | nist:ol" mode="ul_ol">
|
1620
1625
|
<xsl:param name="margin"/>
|
1621
1626
|
<fo:list-block>
|
1622
1627
|
<xsl:attribute name="space-after">
|
@@ -1631,13 +1636,28 @@
|
|
1631
1636
|
</xsl:template>
|
1632
1637
|
|
1633
1638
|
<xsl:template match="nist:ul//nist:note | nist:ol//nist:note" priority="2"/>
|
1634
|
-
|
1639
|
+
|
1640
|
+
<xsl:template match="nist:ul//nist:note | nist:ol//nist:note" mode="process">
|
1641
|
+
<fo:block id="{@id}">
|
1642
|
+
<xsl:apply-templates mode="process"/>
|
1643
|
+
</fo:block>
|
1644
|
+
</xsl:template>
|
1645
|
+
|
1646
|
+
<xsl:template match="nist:ul//nist:note/nist:name | nist:ol//nist:note/nist:name" mode="process" priority="2"/>
|
1647
|
+
|
1648
|
+
<xsl:template match="nist:ul//nist:note/nist:p | nist:ol//nist:note/nist:p" mode="process" priority="2">
|
1635
1649
|
<fo:block font-size="11pt" margin-top="4pt">
|
1636
1650
|
<xsl:apply-templates select="../nist:name" mode="presentation"/>
|
1637
1651
|
<xsl:apply-templates/>
|
1638
1652
|
</fo:block>
|
1639
1653
|
</xsl:template>
|
1640
1654
|
|
1655
|
+
<xsl:template match="nist:ul//nist:note/* | nist:ol//nist:note/*" mode="process">
|
1656
|
+
<fo:block font-size="11pt">
|
1657
|
+
<xsl:apply-templates select="."/>
|
1658
|
+
</fo:block>
|
1659
|
+
</xsl:template>
|
1660
|
+
|
1641
1661
|
<xsl:template match="nist:li">
|
1642
1662
|
<xsl:variable name="level">
|
1643
1663
|
<xsl:variable name="numtmp">
|
@@ -1773,14 +1793,17 @@
|
|
1773
1793
|
<xsl:if test="ancestor::nist:table">
|
1774
1794
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1775
1795
|
</xsl:if>
|
1796
|
+
<xsl:variable name="mathml">
|
1797
|
+
<xsl:apply-templates select="." mode="mathml"/>
|
1798
|
+
</xsl:variable>
|
1776
1799
|
<fo:instream-foreign-object fox:alt-text="Math">
|
1777
|
-
<xsl:copy-of select="."/>
|
1800
|
+
<!-- <xsl:copy-of select="."/> -->
|
1801
|
+
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
1778
1802
|
</fo:instream-foreign-object>
|
1779
1803
|
</fo:inline>
|
1780
1804
|
</xsl:template>
|
1781
1805
|
|
1782
1806
|
|
1783
|
-
|
1784
1807
|
<xsl:template match="nist:terms[nist:term[nist:preferred and nist:definition]]" priority="2">
|
1785
1808
|
<fo:block id="{@id}">
|
1786
1809
|
<fo:table width="100%" table-layout="fixed">
|
@@ -1819,10 +1842,23 @@
|
|
1819
1842
|
|
1820
1843
|
|
1821
1844
|
|
1822
|
-
<xsl:template match="nist:quote" priority="2">
|
1823
|
-
<fo:block-container margin-left="
|
1824
|
-
<xsl:
|
1825
|
-
|
1845
|
+
<xsl:template match="nist:quote" priority="2">
|
1846
|
+
<fo:block-container margin-left="0mm">
|
1847
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
1848
|
+
<xsl:if test="not(ancestor::*[local-name() = 'table'])">
|
1849
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
1850
|
+
</xsl:if>
|
1851
|
+
</xsl:if>
|
1852
|
+
<fo:block-container margin-left="0mm">
|
1853
|
+
|
1854
|
+
<fo:block-container margin-left="7mm" margin-right="7mm">
|
1855
|
+
<fo:block>
|
1856
|
+
<xsl:apply-templates/>
|
1857
|
+
<xsl:apply-templates select="nist:author" mode="process"/>
|
1858
|
+
</fo:block>
|
1859
|
+
</fo:block-container>
|
1860
|
+
|
1861
|
+
</fo:block-container>
|
1826
1862
|
</fo:block-container>
|
1827
1863
|
</xsl:template>
|
1828
1864
|
|
@@ -2179,7 +2215,12 @@
|
|
2179
2215
|
|
2180
2216
|
|
2181
2217
|
|
2182
|
-
<title-source lang="en">
|
2218
|
+
<title-source lang="en">
|
2219
|
+
|
2220
|
+
<xsl:text>SOURCE</xsl:text>
|
2221
|
+
|
2222
|
+
|
2223
|
+
</title-source>
|
2183
2224
|
|
2184
2225
|
<title-keywords lang="en">Keywords</title-keywords>
|
2185
2226
|
|
@@ -2222,6 +2263,10 @@
|
|
2222
2263
|
<title-warning lang="zh">警告</title-warning>
|
2223
2264
|
|
2224
2265
|
<title-amendment lang="en">AMENDMENT</title-amendment>
|
2266
|
+
|
2267
|
+
<title-continued lang="en">(continued)</title-continued>
|
2268
|
+
<title-continued lang="fr">(continué)</title-continued>
|
2269
|
+
|
2225
2270
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
2226
2271
|
<xsl:param name="name"/>
|
2227
2272
|
<xsl:variable name="lang">
|
@@ -2239,6 +2284,7 @@
|
|
2239
2284
|
</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="'
'"/><xsl:attribute-set name="link-style">
|
2240
2285
|
|
2241
2286
|
|
2287
|
+
|
2242
2288
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
2243
2289
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
2244
2290
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -2247,14 +2293,14 @@
|
|
2247
2293
|
|
2248
2294
|
|
2249
2295
|
|
2250
|
-
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
2251
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2296
|
+
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
2252
2297
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
2253
2298
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2254
2299
|
|
2255
2300
|
|
2256
2301
|
|
2257
2302
|
|
2303
|
+
|
2258
2304
|
</xsl:attribute-set><xsl:attribute-set name="permission-style">
|
2259
2305
|
|
2260
2306
|
</xsl:attribute-set><xsl:attribute-set name="permission-name-style">
|
@@ -2300,6 +2346,7 @@
|
|
2300
2346
|
|
2301
2347
|
|
2302
2348
|
|
2349
|
+
|
2303
2350
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2304
2351
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
2305
2352
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -2331,6 +2378,7 @@
|
|
2331
2378
|
|
2332
2379
|
|
2333
2380
|
|
2381
|
+
|
2334
2382
|
|
2335
2383
|
|
2336
2384
|
|
@@ -2386,11 +2434,13 @@
|
|
2386
2434
|
|
2387
2435
|
<xsl:attribute name="color">blue</xsl:attribute>
|
2388
2436
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2389
|
-
|
2437
|
+
|
2438
|
+
|
2390
2439
|
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
2391
2440
|
|
2392
2441
|
|
2393
2442
|
|
2443
|
+
|
2394
2444
|
<xsl:attribute name="color">blue</xsl:attribute>
|
2395
2445
|
|
2396
2446
|
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
@@ -2410,9 +2460,10 @@
|
|
2410
2460
|
|
2411
2461
|
|
2412
2462
|
|
2463
|
+
</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">
|
2464
|
+
|
2413
2465
|
|
2414
2466
|
|
2415
|
-
</xsl:attribute-set><xsl:attribute-set name="note-name-style">
|
2416
2467
|
|
2417
2468
|
|
2418
2469
|
|
@@ -2421,7 +2472,6 @@
|
|
2421
2472
|
|
2422
2473
|
|
2423
2474
|
|
2424
|
-
|
2425
2475
|
|
2426
2476
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
2427
2477
|
|
@@ -2445,6 +2495,8 @@
|
|
2445
2495
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
2446
2496
|
|
2447
2497
|
|
2498
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
2499
|
+
|
2448
2500
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
2449
2501
|
|
2450
2502
|
|
@@ -2465,6 +2517,7 @@
|
|
2465
2517
|
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
2466
2518
|
|
2467
2519
|
|
2520
|
+
|
2468
2521
|
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
2469
2522
|
|
2470
2523
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
@@ -2474,6 +2527,7 @@
|
|
2474
2527
|
|
2475
2528
|
|
2476
2529
|
|
2530
|
+
|
2477
2531
|
|
2478
2532
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2479
2533
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
@@ -2515,11 +2569,14 @@
|
|
2515
2569
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
2516
2570
|
|
2517
2571
|
|
2572
|
+
|
2518
2573
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
2519
2574
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2520
2575
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2521
2576
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
2522
2577
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2578
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
2579
|
+
|
2523
2580
|
</xsl:attribute-set><xsl:attribute-set name="domain-style">
|
2524
2581
|
|
2525
2582
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
@@ -2583,6 +2640,8 @@
|
|
2583
2640
|
|
2584
2641
|
|
2585
2642
|
|
2643
|
+
<!-- $namespace = 'iso' or -->
|
2644
|
+
|
2586
2645
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
2587
2646
|
|
2588
2647
|
|
@@ -2642,7 +2701,7 @@
|
|
2642
2701
|
|
2643
2702
|
|
2644
2703
|
|
2645
|
-
|
2704
|
+
|
2646
2705
|
|
2647
2706
|
|
2648
2707
|
|
@@ -2669,6 +2728,8 @@
|
|
2669
2728
|
|
2670
2729
|
|
2671
2730
|
|
2731
|
+
|
2732
|
+
|
2672
2733
|
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
2673
2734
|
<xsl:choose>
|
2674
2735
|
<xsl:when test=". = 1 or . = 0">
|
@@ -2699,8 +2760,9 @@
|
|
2699
2760
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
2700
2761
|
<xsl:if test="normalize-space() != ''">
|
2701
2762
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
2702
|
-
|
2703
|
-
|
2763
|
+
|
2764
|
+
<xsl:apply-templates/>
|
2765
|
+
</fo:block>
|
2704
2766
|
</xsl:if>
|
2705
2767
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
2706
2768
|
<xsl:param name="table-row"/>
|
@@ -2816,10 +2878,25 @@
|
|
2816
2878
|
</xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
2817
2879
|
<xsl:param name="cols-count"/>
|
2818
2880
|
<!-- font-weight="bold" -->
|
2819
|
-
<fo:table-header>
|
2820
|
-
|
2881
|
+
<fo:table-header>
|
2882
|
+
|
2821
2883
|
<xsl:apply-templates/>
|
2822
2884
|
</fo:table-header>
|
2885
|
+
</xsl:template><xsl:template name="table-header-title">
|
2886
|
+
<xsl:param name="cols-count"/>
|
2887
|
+
<!-- row for title -->
|
2888
|
+
<fo:table-row>
|
2889
|
+
<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">
|
2890
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
|
2891
|
+
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
2892
|
+
<xsl:call-template name="fn_name_display"/>
|
2893
|
+
</xsl:for-each>
|
2894
|
+
<fo:block text-align="right" font-style="italic">
|
2895
|
+
<xsl:text> </xsl:text>
|
2896
|
+
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
2897
|
+
</fo:block>
|
2898
|
+
</fo:table-cell>
|
2899
|
+
</fo:table-row>
|
2823
2900
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
2824
2901
|
<fo:table-body>
|
2825
2902
|
<xsl:apply-templates/>
|
@@ -2883,6 +2960,8 @@
|
|
2883
2960
|
</xsl:choose>
|
2884
2961
|
</xsl:variable>
|
2885
2962
|
|
2963
|
+
|
2964
|
+
|
2886
2965
|
<xsl:apply-templates select="../*[local-name()='thead']" mode="process">
|
2887
2966
|
<xsl:with-param name="cols-count" select="$cols-count"/>
|
2888
2967
|
</xsl:apply-templates>
|
@@ -2892,6 +2971,8 @@
|
|
2892
2971
|
</xsl:call-template>
|
2893
2972
|
|
2894
2973
|
<fo:table-body>
|
2974
|
+
|
2975
|
+
|
2895
2976
|
<xsl:apply-templates/>
|
2896
2977
|
<!-- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/> -->
|
2897
2978
|
|
@@ -2917,6 +2998,8 @@
|
|
2917
2998
|
|
2918
2999
|
</xsl:if>
|
2919
3000
|
|
3001
|
+
|
3002
|
+
|
2920
3003
|
|
2921
3004
|
<xsl:apply-templates/>
|
2922
3005
|
</fo:table-row>
|
@@ -2943,6 +3026,7 @@
|
|
2943
3026
|
|
2944
3027
|
|
2945
3028
|
|
3029
|
+
|
2946
3030
|
<xsl:if test="@colspan">
|
2947
3031
|
<xsl:attribute name="number-columns-spanned">
|
2948
3032
|
<xsl:value-of select="@colspan"/>
|
@@ -2953,10 +3037,22 @@
|
|
2953
3037
|
<xsl:value-of select="@rowspan"/>
|
2954
3038
|
</xsl:attribute>
|
2955
3039
|
</xsl:if>
|
3040
|
+
<xsl:call-template name="display-align"/>
|
2956
3041
|
<fo:block>
|
2957
3042
|
<xsl:apply-templates/>
|
2958
3043
|
</fo:block>
|
2959
3044
|
</fo:table-cell>
|
3045
|
+
</xsl:template><xsl:template name="display-align">
|
3046
|
+
<xsl:if test="@valign">
|
3047
|
+
<xsl:attribute name="display-align">
|
3048
|
+
<xsl:choose>
|
3049
|
+
<xsl:when test="@valign = 'top'">before</xsl:when>
|
3050
|
+
<xsl:when test="@valign = 'middle'">center</xsl:when>
|
3051
|
+
<xsl:when test="@valign = 'bottom'">after</xsl:when>
|
3052
|
+
<xsl:otherwise>before</xsl:otherwise>
|
3053
|
+
</xsl:choose>
|
3054
|
+
</xsl:attribute>
|
3055
|
+
</xsl:if>
|
2960
3056
|
</xsl:template><xsl:template match="*[local-name()='td']">
|
2961
3057
|
<fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
|
2962
3058
|
<xsl:attribute name="text-align">
|
@@ -2976,6 +3072,7 @@
|
|
2976
3072
|
|
2977
3073
|
|
2978
3074
|
|
3075
|
+
|
2979
3076
|
<xsl:if test="ancestor::*[local-name()='thead']">
|
2980
3077
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2981
3078
|
</xsl:if>
|
@@ -2990,8 +3087,8 @@
|
|
2990
3087
|
<xsl:value-of select="@rowspan"/>
|
2991
3088
|
</xsl:attribute>
|
2992
3089
|
</xsl:if>
|
2993
|
-
<
|
2994
|
-
|
3090
|
+
<xsl:call-template name="display-align"/>
|
3091
|
+
<fo:block>
|
2995
3092
|
<xsl:apply-templates/>
|
2996
3093
|
</fo:block>
|
2997
3094
|
</fo:table-cell>
|
@@ -3171,6 +3268,7 @@
|
|
3171
3268
|
|
3172
3269
|
|
3173
3270
|
|
3271
|
+
|
3174
3272
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3175
3273
|
<xsl:attribute name="color">blue</xsl:attribute>
|
3176
3274
|
|
@@ -3187,123 +3285,137 @@
|
|
3187
3285
|
<xsl:apply-templates/>
|
3188
3286
|
</fo:inline>
|
3189
3287
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3190
|
-
<
|
3191
|
-
|
3192
|
-
|
3193
|
-
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3200
|
-
<fo:block margin-bottom="12pt" text-align="left">
|
3201
|
-
|
3202
|
-
<xsl:variable name="title-where">
|
3203
|
-
<xsl:call-template name="getTitle">
|
3204
|
-
<xsl:with-param name="name" select="'title-where'"/>
|
3205
|
-
</xsl:call-template>
|
3206
|
-
</xsl:variable>
|
3207
|
-
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
3208
|
-
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
3209
|
-
<xsl:text/>
|
3210
|
-
<xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
|
3211
|
-
</fo:block>
|
3212
|
-
|
3213
|
-
</xsl:when>
|
3214
|
-
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
3215
|
-
<fo:block margin-bottom="12pt" text-align="left">
|
3216
|
-
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
<xsl:variable name="title-where">
|
3221
|
-
<xsl:call-template name="getTitle">
|
3222
|
-
<xsl:with-param name="name" select="'title-where'"/>
|
3223
|
-
</xsl:call-template>
|
3224
|
-
</xsl:variable>
|
3225
|
-
<xsl:value-of select="$title-where"/>
|
3226
|
-
</fo:block>
|
3227
|
-
</xsl:when>
|
3228
|
-
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
|
3229
|
-
<fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
|
3230
|
-
|
3231
|
-
|
3232
|
-
|
3233
|
-
<xsl:variable name="title-key">
|
3234
|
-
<xsl:call-template name="getTitle">
|
3235
|
-
<xsl:with-param name="name" select="'title-key'"/>
|
3236
|
-
</xsl:call-template>
|
3237
|
-
</xsl:variable>
|
3238
|
-
<xsl:value-of select="$title-key"/>
|
3239
|
-
</fo:block>
|
3240
|
-
</xsl:when>
|
3241
|
-
</xsl:choose>
|
3242
|
-
|
3243
|
-
<!-- a few components -->
|
3244
|
-
<xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
|
3245
|
-
<fo:block>
|
3246
|
-
|
3288
|
+
<fo:block-container margin-left="0mm">
|
3289
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
3290
|
+
<xsl:attribute name="margin-left">
|
3291
|
+
<xsl:choose>
|
3292
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3293
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3294
|
+
</xsl:choose>
|
3295
|
+
</xsl:attribute>
|
3247
3296
|
|
3297
|
+
</xsl:if>
|
3298
|
+
<fo:block-container margin-left="0mm">
|
3299
|
+
|
3300
|
+
<xsl:variable name="parent" select="local-name(..)"/>
|
3248
3301
|
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3302
|
+
<xsl:variable name="key_iso">
|
3303
|
+
<!-- and (not(../@class) or ../@class !='pseudocode') -->
|
3304
|
+
</xsl:variable>
|
3252
3305
|
|
3306
|
+
<xsl:choose>
|
3307
|
+
<xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
|
3308
|
+
|
3309
|
+
|
3310
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
3311
|
+
|
3312
|
+
<xsl:variable name="title-where">
|
3313
|
+
<xsl:call-template name="getTitle">
|
3314
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
3315
|
+
</xsl:call-template>
|
3316
|
+
</xsl:variable>
|
3317
|
+
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
3318
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
3319
|
+
<xsl:text/>
|
3320
|
+
<xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
|
3321
|
+
</fo:block>
|
3322
|
+
|
3323
|
+
</xsl:when>
|
3324
|
+
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
3325
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
3326
|
+
|
3327
|
+
|
3328
|
+
|
3329
|
+
|
3330
|
+
<xsl:variable name="title-where">
|
3331
|
+
<xsl:call-template name="getTitle">
|
3332
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
3333
|
+
</xsl:call-template>
|
3334
|
+
</xsl:variable>
|
3335
|
+
<xsl:value-of select="$title-where"/>
|
3336
|
+
</fo:block>
|
3337
|
+
</xsl:when>
|
3338
|
+
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
|
3339
|
+
<fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
|
3340
|
+
|
3341
|
+
|
3342
|
+
|
3343
|
+
<xsl:variable name="title-key">
|
3344
|
+
<xsl:call-template name="getTitle">
|
3345
|
+
<xsl:with-param name="name" select="'title-key'"/>
|
3346
|
+
</xsl:call-template>
|
3347
|
+
</xsl:variable>
|
3348
|
+
<xsl:value-of select="$title-key"/>
|
3349
|
+
</fo:block>
|
3350
|
+
</xsl:when>
|
3351
|
+
</xsl:choose>
|
3253
3352
|
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
<xsl:attribute name="margin-left">-2.5mm</xsl:attribute>
|
3258
|
-
</xsl:if>
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3262
|
-
|
3263
|
-
<fo:table width="95%" table-layout="fixed">
|
3353
|
+
<!-- a few components -->
|
3354
|
+
<xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
|
3355
|
+
<fo:block>
|
3264
3356
|
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
|
3357
|
+
|
3358
|
+
|
3359
|
+
<xsl:if test="not(.//*[local-name()='dt']//*[local-name()='stem'])">
|
3360
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
3361
|
+
</xsl:if>
|
3362
|
+
|
3363
|
+
|
3364
|
+
<fo:block>
|
3365
|
+
|
3366
|
+
<xsl:if test="not(.//*[local-name()='dt']//*[local-name()='stem'])">
|
3367
|
+
<xsl:attribute name="margin-left">-2.5mm</xsl:attribute>
|
3368
|
+
</xsl:if>
|
3369
|
+
|
3370
|
+
|
3371
|
+
|
3372
|
+
|
3373
|
+
<fo:table width="95%" table-layout="fixed">
|
3271
3374
|
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
</
|
3281
|
-
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3375
|
+
<xsl:choose>
|
3376
|
+
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
|
3377
|
+
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
3378
|
+
</xsl:when>
|
3379
|
+
<xsl:when test="normalize-space($key_iso) = 'true'">
|
3380
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
3381
|
+
|
3382
|
+
</xsl:when>
|
3383
|
+
</xsl:choose>
|
3384
|
+
<!-- create virtual html table for dl/[dt and dd] -->
|
3385
|
+
<xsl:variable name="html-table">
|
3386
|
+
<xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
|
3387
|
+
<xsl:element name="{$ns}:table">
|
3388
|
+
<tbody>
|
3389
|
+
<xsl:apply-templates mode="dl"/>
|
3390
|
+
</tbody>
|
3391
|
+
</xsl:element>
|
3392
|
+
</xsl:variable>
|
3393
|
+
<!-- html-table<xsl:copy-of select="$html-table"/> -->
|
3394
|
+
<xsl:variable name="colwidths">
|
3395
|
+
<xsl:call-template name="calculate-column-widths">
|
3396
|
+
<xsl:with-param name="cols-count" select="2"/>
|
3397
|
+
<xsl:with-param name="table" select="$html-table"/>
|
3398
|
+
</xsl:call-template>
|
3399
|
+
</xsl:variable>
|
3400
|
+
<!-- colwidths=<xsl:value-of select="$colwidths"/> -->
|
3401
|
+
<xsl:variable name="maxlength_dt">
|
3402
|
+
<xsl:call-template name="getMaxLength_dt"/>
|
3403
|
+
</xsl:variable>
|
3404
|
+
<xsl:call-template name="setColumnWidth_dl">
|
3405
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
3406
|
+
<xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
|
3407
|
+
</xsl:call-template>
|
3408
|
+
<fo:table-body>
|
3409
|
+
<xsl:apply-templates>
|
3410
|
+
<xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
|
3411
|
+
</xsl:apply-templates>
|
3412
|
+
</fo:table-body>
|
3413
|
+
</fo:table>
|
3414
|
+
</fo:block>
|
3415
|
+
</fo:block>
|
3416
|
+
</xsl:if>
|
3417
|
+
</fo:block-container>
|
3418
|
+
</fo:block-container>
|
3307
3419
|
</xsl:template><xsl:template name="setColumnWidth_dl">
|
3308
3420
|
<xsl:param name="colwidths"/>
|
3309
3421
|
<xsl:param name="maxlength_dt"/>
|
@@ -3413,6 +3525,7 @@
|
|
3413
3525
|
<xsl:param name="key_iso"/>
|
3414
3526
|
|
3415
3527
|
<fo:table-row>
|
3528
|
+
|
3416
3529
|
<fo:table-cell>
|
3417
3530
|
|
3418
3531
|
<fo:block margin-top="6pt">
|
@@ -3495,6 +3608,31 @@
|
|
3495
3608
|
</fo:inline>
|
3496
3609
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
3497
3610
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
3611
|
+
<xsl:variable name="_font-size">
|
3612
|
+
|
3613
|
+
|
3614
|
+
|
3615
|
+
|
3616
|
+
|
3617
|
+
|
3618
|
+
|
3619
|
+
|
3620
|
+
|
3621
|
+
|
3622
|
+
|
3623
|
+
|
3624
|
+
|
3625
|
+
|
3626
|
+
</xsl:variable>
|
3627
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3628
|
+
<xsl:if test="$font-size != ''">
|
3629
|
+
<xsl:attribute name="font-size">
|
3630
|
+
<xsl:choose>
|
3631
|
+
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3632
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3633
|
+
</xsl:choose>
|
3634
|
+
</xsl:attribute>
|
3635
|
+
</xsl:if>
|
3498
3636
|
<xsl:apply-templates/>
|
3499
3637
|
</fo:inline>
|
3500
3638
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
@@ -3821,10 +3959,23 @@
|
|
3821
3959
|
<xsl:value-of select="substring($str, 2)"/>
|
3822
3960
|
</xsl:template><xsl:template match="mathml:math">
|
3823
3961
|
<fo:inline font-family="STIX2Math">
|
3824
|
-
<
|
3825
|
-
<xsl:
|
3826
|
-
</
|
3962
|
+
<xsl:variable name="mathml">
|
3963
|
+
<xsl:apply-templates select="." mode="mathml"/>
|
3964
|
+
</xsl:variable>
|
3965
|
+
<fo:instream-foreign-object fox:alt-text="Math">
|
3966
|
+
<!-- <xsl:copy-of select="."/> -->
|
3967
|
+
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
3968
|
+
</fo:instream-foreign-object>
|
3827
3969
|
</fo:inline>
|
3970
|
+
</xsl:template><xsl:template match="@*|node()" mode="mathml">
|
3971
|
+
<xsl:copy>
|
3972
|
+
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
3973
|
+
</xsl:copy>
|
3974
|
+
</xsl:template><xsl:template match="mathml:mtext" mode="mathml">
|
3975
|
+
<xsl:copy>
|
3976
|
+
<!-- replace start and end spaces to non-break space -->
|
3977
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
|
3978
|
+
</xsl:copy>
|
3828
3979
|
</xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
3829
3980
|
<xsl:variable name="target">
|
3830
3981
|
<xsl:choose>
|
@@ -3905,9 +4056,22 @@
|
|
3905
4056
|
<xsl:apply-templates/>
|
3906
4057
|
</fo:basic-link>
|
3907
4058
|
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
3908
|
-
<fo:block
|
3909
|
-
<xsl:
|
3910
|
-
|
4059
|
+
<fo:block-container margin-left="0mm">
|
4060
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
4061
|
+
<xsl:attribute name="margin-left">
|
4062
|
+
<xsl:choose>
|
4063
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4064
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4065
|
+
</xsl:choose>
|
4066
|
+
</xsl:attribute>
|
4067
|
+
|
4068
|
+
</xsl:if>
|
4069
|
+
<fo:block-container margin-left="0mm">
|
4070
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
|
4071
|
+
<xsl:apply-templates/>
|
4072
|
+
</fo:block>
|
4073
|
+
</fo:block-container>
|
4074
|
+
</fo:block-container>
|
3911
4075
|
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
|
3912
4076
|
<fo:inline>
|
3913
4077
|
<xsl:apply-templates/>
|
@@ -3967,7 +4131,9 @@
|
|
3967
4131
|
</xsl:choose>
|
3968
4132
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3969
4133
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3970
|
-
<xsl:
|
4134
|
+
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
4135
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
4136
|
+
</fo:inline>
|
3971
4137
|
<xsl:apply-templates/>
|
3972
4138
|
</fo:block>
|
3973
4139
|
</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">
|
@@ -4142,21 +4308,61 @@
|
|
4142
4308
|
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
4143
4309
|
<xsl:text> </xsl:text>
|
4144
4310
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
4145
|
-
|
4146
|
-
|
4147
|
-
|
4148
|
-
|
4149
|
-
|
4311
|
+
|
4312
|
+
<fo:block-container margin-left="0mm">
|
4313
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
4314
|
+
<xsl:attribute name="margin-left">
|
4315
|
+
<xsl:choose>
|
4316
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4317
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4318
|
+
</xsl:choose>
|
4319
|
+
</xsl:attribute>
|
4320
|
+
|
4321
|
+
</xsl:if>
|
4322
|
+
<fo:block-container margin-left="0mm">
|
4323
|
+
|
4324
|
+
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
4325
|
+
<xsl:variable name="_font-size">
|
4326
|
+
|
4327
|
+
|
4328
|
+
|
4329
|
+
|
4330
|
+
|
4331
|
+
|
4332
|
+
|
4333
|
+
|
4334
|
+
|
4335
|
+
10
|
4336
|
+
|
4337
|
+
|
4338
|
+
|
4339
|
+
|
4340
|
+
</xsl:variable>
|
4341
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4342
|
+
<xsl:if test="$font-size != ''">
|
4343
|
+
<xsl:attribute name="font-size">
|
4344
|
+
<xsl:choose>
|
4345
|
+
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4346
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4347
|
+
</xsl:choose>
|
4348
|
+
</xsl:attribute>
|
4349
|
+
</xsl:if>
|
4350
|
+
<xsl:apply-templates/>
|
4351
|
+
</fo:block>
|
4352
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
4353
|
+
|
4354
|
+
</fo:block-container>
|
4355
|
+
</fo:block-container>
|
4356
|
+
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
4150
4357
|
<xsl:variable name="text">
|
4151
4358
|
<xsl:call-template name="add-zero-spaces-equal"/>
|
4152
4359
|
</xsl:variable>
|
4153
|
-
<xsl:call-template name="add-zero-spaces">
|
4360
|
+
<xsl:call-template name="add-zero-spaces-java">
|
4154
4361
|
<xsl:with-param name="text" select="$text"/>
|
4155
4362
|
</xsl:call-template>
|
4156
4363
|
</xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
|
4157
4364
|
<xsl:if test="normalize-space() != ''">
|
4158
|
-
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4159
|
-
|
4365
|
+
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4160
4366
|
<xsl:apply-templates/>
|
4161
4367
|
</fo:block>
|
4162
4368
|
</xsl:if>
|
@@ -4232,9 +4438,9 @@
|
|
4232
4438
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
4233
4439
|
</xsl:if>
|
4234
4440
|
<fo:block-container margin-left="0mm" margin-right="0mm">
|
4235
|
-
<fo:table id="{@id}" table-layout="fixed" width="100%" border="1pt solid black"
|
4441
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
|
4236
4442
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
4237
|
-
<xsl:attribute name="border">0.5pt solid black</xsl:attribute>
|
4443
|
+
<!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
|
4238
4444
|
</xsl:if>
|
4239
4445
|
<xsl:variable name="simple-table">
|
4240
4446
|
<xsl:call-template name="getSimpleTable"/>
|
@@ -4243,8 +4449,8 @@
|
|
4243
4449
|
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
4244
4450
|
<!-- <fo:table-column column-width="35mm"/>
|
4245
4451
|
<fo:table-column column-width="115mm"/> -->
|
4246
|
-
<fo:table-column column-width="
|
4247
|
-
<fo:table-column column-width="
|
4452
|
+
<fo:table-column column-width="30%"/>
|
4453
|
+
<fo:table-column column-width="70%"/>
|
4248
4454
|
</xsl:if>
|
4249
4455
|
<xsl:apply-templates mode="requirement"/>
|
4250
4456
|
</fo:table>
|
@@ -4267,14 +4473,21 @@
|
|
4267
4473
|
<xsl:apply-templates mode="requirement"/>
|
4268
4474
|
</fo:table-body>
|
4269
4475
|
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
4270
|
-
<fo:table-row height="7mm">
|
4271
|
-
<xsl:if test="parent::*[local-name()='thead'] and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission'])
|
4272
|
-
<xsl:attribute name="border">1pt solid black</xsl:attribute>
|
4476
|
+
<fo:table-row height="7mm" border-bottom="0.5pt solid grey">
|
4477
|
+
<xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
|
4478
|
+
<!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
|
4479
|
+
<xsl:attribute name="background-color">rgb(33, 55, 92)</xsl:attribute>
|
4480
|
+
</xsl:if>
|
4481
|
+
<xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
|
4482
|
+
<xsl:attribute name="background-color">rgb(252, 246, 222)</xsl:attribute>
|
4483
|
+
</xsl:if>
|
4484
|
+
<xsl:if test="starts-with(*[local-name()='td'][1], 'Recommendation ')">
|
4485
|
+
<xsl:attribute name="background-color">rgb(233, 235, 239)</xsl:attribute>
|
4273
4486
|
</xsl:if>
|
4274
4487
|
<xsl:apply-templates mode="requirement"/>
|
4275
4488
|
</fo:table-row>
|
4276
4489
|
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
4277
|
-
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black"
|
4490
|
+
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
|
4278
4491
|
<xsl:attribute name="text-align">
|
4279
4492
|
<xsl:choose>
|
4280
4493
|
<xsl:when test="@align">
|
@@ -4293,6 +4506,7 @@
|
|
4293
4506
|
<xsl:value-of select="@rowspan"/>
|
4294
4507
|
</xsl:attribute>
|
4295
4508
|
</xsl:if>
|
4509
|
+
<xsl:call-template name="display-align"/>
|
4296
4510
|
|
4297
4511
|
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
4298
4512
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
@@ -4308,7 +4522,7 @@
|
|
4308
4522
|
</fo:block>
|
4309
4523
|
</fo:table-cell>
|
4310
4524
|
</xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
|
4311
|
-
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black"
|
4525
|
+
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
|
4312
4526
|
<xsl:if test="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
4313
4527
|
<xsl:attribute name="padding">0mm</xsl:attribute>
|
4314
4528
|
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
@@ -4321,6 +4535,9 @@
|
|
4321
4535
|
<xsl:otherwise>left</xsl:otherwise>
|
4322
4536
|
</xsl:choose>
|
4323
4537
|
</xsl:attribute>
|
4538
|
+
<xsl:if test="following-sibling::*[local-name()='td'] and not(preceding-sibling::*[local-name()='td'])">
|
4539
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4540
|
+
</xsl:if>
|
4324
4541
|
<xsl:if test="@colspan">
|
4325
4542
|
<xsl:attribute name="number-columns-spanned">
|
4326
4543
|
<xsl:value-of select="@colspan"/>
|
@@ -4331,6 +4548,7 @@
|
|
4331
4548
|
<xsl:value-of select="@rowspan"/>
|
4332
4549
|
</xsl:attribute>
|
4333
4550
|
</xsl:if>
|
4551
|
+
<xsl:call-template name="display-align"/>
|
4334
4552
|
|
4335
4553
|
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
4336
4554
|
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
@@ -4346,7 +4564,7 @@
|
|
4346
4564
|
</fo:block>
|
4347
4565
|
</fo:table-cell>
|
4348
4566
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4349
|
-
<fo:block font-size="11pt" font-weight="bold"
|
4567
|
+
<fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
|
4350
4568
|
<xsl:apply-templates/>
|
4351
4569
|
</fo:block>
|
4352
4570
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4372,12 +4590,13 @@
|
|
4372
4590
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
4373
4591
|
|
4374
4592
|
<xsl:variable name="element">
|
4375
|
-
block
|
4593
|
+
block
|
4376
4594
|
|
4595
|
+
<xsl:if test=".//*[local-name() = 'table']">block</xsl:if>
|
4377
4596
|
</xsl:variable>
|
4378
4597
|
|
4379
4598
|
<xsl:choose>
|
4380
|
-
<xsl:when test="normalize-space($element)
|
4599
|
+
<xsl:when test="contains(normalize-space($element), 'block')">
|
4381
4600
|
<fo:block xsl:use-attribute-sets="example-body-style">
|
4382
4601
|
<xsl:apply-templates/>
|
4383
4602
|
</fo:block>
|
@@ -4414,25 +4633,44 @@
|
|
4414
4633
|
</xsl:otherwise>
|
4415
4634
|
</xsl:choose>
|
4416
4635
|
|
4417
|
-
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
4418
|
-
|
4636
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
4637
|
+
|
4638
|
+
<xsl:variable name="element">
|
4639
|
+
block
|
4419
4640
|
|
4420
|
-
|
4421
|
-
|
4641
|
+
</xsl:variable>
|
4642
|
+
<xsl:choose>
|
4643
|
+
<xsl:when test="normalize-space($element) = 'block'">
|
4644
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
4645
|
+
|
4646
|
+
<xsl:apply-templates/>
|
4647
|
+
</fo:block>
|
4648
|
+
</xsl:when>
|
4649
|
+
<xsl:otherwise>
|
4650
|
+
<fo:inline xsl:use-attribute-sets="example-p-style">
|
4651
|
+
<xsl:apply-templates/>
|
4652
|
+
</fo:inline>
|
4653
|
+
</xsl:otherwise>
|
4654
|
+
</xsl:choose>
|
4422
4655
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
4423
4656
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4424
4657
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4425
4658
|
<xsl:variable name="termsource_text">
|
4426
4659
|
<xsl:apply-templates/>
|
4427
4660
|
</xsl:variable>
|
4661
|
+
|
4428
4662
|
<xsl:choose>
|
4429
4663
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4430
4664
|
<xsl:apply-templates/>
|
4431
4665
|
</xsl:when>
|
4432
|
-
<xsl:otherwise>
|
4433
|
-
|
4434
|
-
|
4435
|
-
|
4666
|
+
<xsl:otherwise>
|
4667
|
+
|
4668
|
+
<xsl:text>[</xsl:text>
|
4669
|
+
|
4670
|
+
<xsl:apply-templates/>
|
4671
|
+
|
4672
|
+
<xsl:text>]</xsl:text>
|
4673
|
+
|
4436
4674
|
</xsl:otherwise>
|
4437
4675
|
</xsl:choose>
|
4438
4676
|
</fo:block>
|
@@ -4453,18 +4691,29 @@
|
|
4453
4691
|
<xsl:if test="normalize-space() != ''">
|
4454
4692
|
<xsl:value-of select="."/>
|
4455
4693
|
</xsl:if>
|
4456
|
-
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
4694
|
+
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
4695
|
+
<fo:block-container margin-left="0mm">
|
4696
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
4697
|
+
<xsl:if test="not(ancestor::*[local-name() = 'table'])">
|
4698
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
4699
|
+
</xsl:if>
|
4700
|
+
</xsl:if>
|
4701
|
+
|
4702
|
+
<fo:block-container margin-left="0mm">
|
4457
4703
|
|
4458
|
-
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
|
4467
|
-
|
4704
|
+
<fo:block xsl:use-attribute-sets="quote-style">
|
4705
|
+
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4706
|
+
</fo:block>
|
4707
|
+
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4708
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
4709
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
4710
|
+
<xsl:apply-templates select="*[local-name() = 'author']"/>
|
4711
|
+
<xsl:apply-templates select="*[local-name() = 'source']"/>
|
4712
|
+
</fo:block>
|
4713
|
+
</xsl:if>
|
4714
|
+
|
4715
|
+
</fo:block-container>
|
4716
|
+
</fo:block-container>
|
4468
4717
|
</xsl:template><xsl:template match="*[local-name() = 'source']">
|
4469
4718
|
<xsl:if test="../*[local-name() = 'author']">
|
4470
4719
|
<xsl:text>, </xsl:text>
|
@@ -4492,6 +4741,7 @@
|
|
4492
4741
|
<xsl:if test="@type = 'inline'">
|
4493
4742
|
|
4494
4743
|
|
4744
|
+
|
4495
4745
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4496
4746
|
|
4497
4747
|
</xsl:if>
|
@@ -4532,6 +4782,7 @@
|
|
4532
4782
|
|
4533
4783
|
|
4534
4784
|
|
4785
|
+
|
4535
4786
|
</xsl:variable>
|
4536
4787
|
|
4537
4788
|
<xsl:variable name="padding-right">
|
@@ -4652,6 +4903,21 @@
|
|
4652
4903
|
</xsl:template><xsl:template match="*[local-name() = 'name']/text()">
|
4653
4904
|
<!-- 0xA0 to space replacement -->
|
4654
4905
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
4906
|
+
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
4907
|
+
<fo:block-container margin-left="0mm">
|
4908
|
+
<xsl:if test="parent::*[local-name() = 'note']">
|
4909
|
+
<xsl:attribute name="margin-left">
|
4910
|
+
<xsl:choose>
|
4911
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4912
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4913
|
+
</xsl:choose>
|
4914
|
+
</xsl:attribute>
|
4915
|
+
|
4916
|
+
</xsl:if>
|
4917
|
+
<fo:block-container margin-left="0mm">
|
4918
|
+
<xsl:apply-templates select="." mode="ul_ol"/>
|
4919
|
+
</fo:block-container>
|
4920
|
+
</fo:block-container>
|
4655
4921
|
</xsl:template><xsl:template match="*[local-name() = 'errata']">
|
4656
4922
|
<!-- <row>
|
4657
4923
|
<date>05-07-2013</date>
|
@@ -4684,7 +4950,28 @@
|
|
4684
4950
|
<fo:block><xsl:apply-templates/></fo:block>
|
4685
4951
|
</fo:table-cell>
|
4686
4952
|
</xsl:template><xsl:template name="processBibitem">
|
4953
|
+
|
4954
|
+
|
4687
4955
|
|
4956
|
+
|
4957
|
+
</xsl:template><xsl:template name="processBibitemDocId">
|
4958
|
+
<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')]"/>
|
4959
|
+
<xsl:choose>
|
4960
|
+
<xsl:when test="normalize-space($_doc_ident) != ''">
|
4961
|
+
<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"/>
|
4962
|
+
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
4963
|
+
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4964
|
+
</xsl:if>
|
4965
|
+
<xsl:value-of select="$_doc_ident"/>
|
4966
|
+
</xsl:when>
|
4967
|
+
<xsl:otherwise>
|
4968
|
+
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
4969
|
+
<xsl:if test="$type != ''">
|
4970
|
+
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4971
|
+
</xsl:if>
|
4972
|
+
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
4973
|
+
</xsl:otherwise>
|
4974
|
+
</xsl:choose>
|
4688
4975
|
</xsl:template><xsl:template name="processPersonalAuthor">
|
4689
4976
|
<xsl:choose>
|
4690
4977
|
<xsl:when test="*[local-name() = 'name']/*[local-name() = 'completename']">
|