metanorma-bipm 2.0.0 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +95 -429
- data/lib/isodoc/bipm/bipm.guide.xsl +95 -429
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +95 -429
- data/lib/isodoc/bipm/bipm.rapport.xsl +95 -429
- data/lib/isodoc/bipm/jcgm.standard.xsl +85 -412
- data/lib/metanorma/bipm/version.rb +1 -1
- data/lib/metanorma-bipm.rb +1 -0
- metadata +2 -2
@@ -1960,22 +1960,18 @@
|
|
1960
1960
|
</fo:block-container>
|
1961
1961
|
</xsl:template>
|
1962
1962
|
|
1963
|
-
<xsl:variable name="
|
1963
|
+
<xsl:variable name="titles_">
|
1964
1964
|
|
1965
1965
|
<title-edition lang="en">
|
1966
1966
|
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1967
|
+
<xsl:text>Edition </xsl:text>
|
1968
|
+
|
1970
1969
|
</title-edition>
|
1971
1970
|
|
1972
1971
|
<title-edition lang="fr">
|
1973
|
-
|
1974
|
-
<xsl:text>Édition </xsl:text>
|
1975
|
-
|
1972
|
+
<xsl:text>Édition </xsl:text>
|
1976
1973
|
</title-edition>
|
1977
1974
|
|
1978
|
-
|
1979
1975
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
1980
1976
|
<title-toc lang="en">
|
1981
1977
|
|
@@ -1983,10 +1979,13 @@
|
|
1983
1979
|
|
1984
1980
|
</title-toc>
|
1985
1981
|
<title-toc lang="fr">
|
1982
|
+
<xsl:text>Sommaire</xsl:text>
|
1983
|
+
</title-toc>
|
1984
|
+
<title-toc lang="zh">
|
1986
1985
|
|
1986
|
+
<xsl:text>Contents</xsl:text>
|
1987
|
+
|
1987
1988
|
</title-toc>
|
1988
|
-
|
1989
|
-
|
1990
1989
|
|
1991
1990
|
<title-descriptors lang="en">Descriptors</title-descriptors>
|
1992
1991
|
|
@@ -2002,12 +2001,8 @@
|
|
2002
2001
|
</title-part>
|
2003
2002
|
<title-part lang="zh">第 # 部分:</title-part>
|
2004
2003
|
|
2005
|
-
<title-subpart lang="en">
|
2006
|
-
|
2007
|
-
</title-subpart>
|
2008
|
-
<title-subpart lang="fr">
|
2009
|
-
|
2010
|
-
</title-subpart>
|
2004
|
+
<title-subpart lang="en">Sub-part #</title-subpart>
|
2005
|
+
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2011
2006
|
|
2012
2007
|
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2013
2008
|
|
@@ -2022,7 +2017,7 @@
|
|
2022
2017
|
<title-continued lang="en">(continued)</title-continued>
|
2023
2018
|
<title-continued lang="fr">(continué)</title-continued>
|
2024
2019
|
|
2025
|
-
</xsl:variable><xsl:variable name="bibdata">
|
2020
|
+
</xsl:variable><xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="bibdata">
|
2026
2021
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
2027
2022
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
2028
2023
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
@@ -2544,30 +2539,11 @@
|
|
2544
2539
|
|
2545
2540
|
|
2546
2541
|
|
2547
|
-
</xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:variable name="ace_tag">ace-tag_</xsl:variable><xsl:template name="
|
2548
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2549
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
2550
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
2551
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
2552
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
2553
|
-
</xsl:template><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2542
|
+
</xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:variable name="ace_tag">ace-tag_</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2554
2543
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
2555
2544
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2556
2545
|
<xsl:apply-templates select="." mode="contents"/>
|
2557
2546
|
</xsl:for-each>
|
2558
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault_Contents">
|
2559
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
2560
|
-
|
2561
|
-
<!-- Normative references -->
|
2562
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]" mode="contents"/>
|
2563
|
-
<!-- Terms and definitions -->
|
2564
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
|
2565
|
-
<!-- Another main sections -->
|
2566
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
|
2567
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
2568
|
-
<!-- Bibliography -->
|
2569
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]" mode="contents"/>
|
2570
|
-
|
2571
2547
|
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
2572
2548
|
|
2573
2549
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]">
|
@@ -2584,29 +2560,11 @@
|
|
2584
2560
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2585
2561
|
<xsl:apply-templates select="." mode="contents"/>
|
2586
2562
|
</xsl:for-each>
|
2587
|
-
</xsl:template><xsl:template name="OLD_processPrefaceSectionsDefault">
|
2588
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
2589
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
2590
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
2591
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
2592
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
2593
2563
|
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
2594
2564
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
2595
2565
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2596
2566
|
<xsl:apply-templates select="."/>
|
2597
2567
|
</xsl:for-each>
|
2598
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault">
|
2599
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
2600
|
-
|
2601
|
-
<!-- Normative references -->
|
2602
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
2603
|
-
<!-- Terms and definitions -->
|
2604
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
|
2605
|
-
<!-- Another main sections -->
|
2606
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
|
2607
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
2608
|
-
<!-- Bibliography -->
|
2609
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
2610
2568
|
</xsl:template><xsl:template name="processMainSectionsDefault">
|
2611
2569
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
2612
2570
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -2654,28 +2612,8 @@
|
|
2654
2612
|
|
2655
2613
|
|
2656
2614
|
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
2615
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
|
2661
2616
|
|
2662
|
-
<!-- <xsl:variable name="cols-count">
|
2663
|
-
<xsl:choose>
|
2664
|
-
<xsl:when test="*[local-name()='thead']">
|
2665
|
-
<xsl:call-template name="calculate-columns-numbers">
|
2666
|
-
<xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
|
2667
|
-
</xsl:call-template>
|
2668
|
-
</xsl:when>
|
2669
|
-
<xsl:otherwise>
|
2670
|
-
<xsl:call-template name="calculate-columns-numbers">
|
2671
|
-
<xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
|
2672
|
-
</xsl:call-template>
|
2673
|
-
</xsl:otherwise>
|
2674
|
-
</xsl:choose>
|
2675
|
-
</xsl:variable> -->
|
2676
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
|
2677
|
-
<!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
|
2678
|
-
|
2679
2617
|
<xsl:variable name="colwidths">
|
2680
2618
|
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
2681
2619
|
<xsl:call-template name="calculate-column-widths">
|
@@ -2686,15 +2624,6 @@
|
|
2686
2624
|
</xsl:variable>
|
2687
2625
|
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
2688
2626
|
|
2689
|
-
<!-- <xsl:variable name="colwidths2">
|
2690
|
-
<xsl:call-template name="calculate-column-widths">
|
2691
|
-
<xsl:with-param name="cols-count" select="$cols-count"/>
|
2692
|
-
</xsl:call-template>
|
2693
|
-
</xsl:variable> -->
|
2694
|
-
|
2695
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/>
|
2696
|
-
colwidthsNew=<xsl:copy-of select="$colwidths"/>
|
2697
|
-
colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
|
2698
2627
|
|
2699
2628
|
<xsl:variable name="margin-left">
|
2700
2629
|
<xsl:choose>
|
@@ -2827,25 +2756,6 @@
|
|
2827
2756
|
</xsl:call-template>
|
2828
2757
|
</xsl:for-each>
|
2829
2758
|
|
2830
|
-
<!-- insert footer as table -->
|
2831
|
-
<!-- <fo:table>
|
2832
|
-
<xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
|
2833
|
-
<xsl:attribute name="{@name}">
|
2834
|
-
<xsl:value-of select="."/>
|
2835
|
-
</xsl:attribute>
|
2836
|
-
</xsl:for-each>
|
2837
|
-
|
2838
|
-
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
2839
|
-
<xsl:choose>
|
2840
|
-
<xsl:when test=". = 1 or . = 0">
|
2841
|
-
<fo:table-column column-width="proportional-column-width(2)"/>
|
2842
|
-
</xsl:when>
|
2843
|
-
<xsl:otherwise>
|
2844
|
-
<fo:table-column column-width="proportional-column-width({.})"/>
|
2845
|
-
</xsl:otherwise>
|
2846
|
-
</xsl:choose>
|
2847
|
-
</xsl:for-each>
|
2848
|
-
</fo:table>-->
|
2849
2759
|
|
2850
2760
|
|
2851
2761
|
|
@@ -2919,7 +2829,6 @@
|
|
2919
2829
|
|
2920
2830
|
<xsl:choose>
|
2921
2831
|
<xsl:when test="$continued = 'true'">
|
2922
|
-
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
2923
2832
|
|
2924
2833
|
<xsl:apply-templates/>
|
2925
2834
|
|
@@ -2984,13 +2893,6 @@
|
|
2984
2893
|
<xsl:for-each select="xalan:nodeset($table)/*/tr">
|
2985
2894
|
<xsl:variable name="td_text">
|
2986
2895
|
<xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
|
2987
|
-
|
2988
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
2989
|
-
<xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
|
2990
|
-
<word><xsl:value-of select="normalize-space(.)"/></word>
|
2991
|
-
</xsl:for-each>
|
2992
|
-
</xsl:if> -->
|
2993
|
-
|
2994
2896
|
</xsl:variable>
|
2995
2897
|
<xsl:variable name="words">
|
2996
2898
|
<xsl:variable name="string_with_added_zerospaces">
|
@@ -3087,14 +2989,13 @@
|
|
3087
2989
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
3088
2990
|
<xsl:call-template name="fn_name_display"/>
|
3089
2991
|
</xsl:for-each>
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
2992
|
+
|
3093
2993
|
<fo:block text-align="right" font-style="italic">
|
3094
2994
|
<xsl:text> </xsl:text>
|
3095
2995
|
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
3096
2996
|
</fo:block>
|
3097
2997
|
|
2998
|
+
|
3098
2999
|
</fo:table-cell>
|
3099
3000
|
</fo:table-row>
|
3100
3001
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -3110,66 +3011,6 @@
|
|
3110
3011
|
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
3111
3012
|
</fo:table-footer>
|
3112
3013
|
</xsl:if>
|
3113
|
-
</xsl:template><xsl:template name="insertTableFooter2">
|
3114
|
-
<xsl:param name="cols-count"/>
|
3115
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
3116
|
-
<xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
3117
|
-
|
3118
|
-
<fo:table-footer>
|
3119
|
-
|
3120
|
-
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
3121
|
-
|
3122
|
-
<!-- if there are note(s) or fn(s) then create footer row -->
|
3123
|
-
<xsl:if test="$isNoteOrFnExist = 'true'">
|
3124
|
-
|
3125
|
-
|
3126
|
-
|
3127
|
-
<fo:table-row>
|
3128
|
-
<fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
3129
|
-
|
3130
|
-
<xsl:attribute name="border-top">solid black 0pt</xsl:attribute>
|
3131
|
-
|
3132
|
-
|
3133
|
-
|
3134
|
-
<!-- fn will be processed inside 'note' processing -->
|
3135
|
-
|
3136
|
-
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
|
3141
|
-
<!-- except gb -->
|
3142
|
-
|
3143
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3144
|
-
|
3145
|
-
|
3146
|
-
<!-- show Note under table in preface (ex. abstract) sections -->
|
3147
|
-
<!-- empty, because notes show at page side in main sections -->
|
3148
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
3149
|
-
<xsl:choose>
|
3150
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
3151
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3152
|
-
</xsl:when>
|
3153
|
-
<xsl:otherwise>
|
3154
|
-
<fo:block/>
|
3155
|
-
</xsl:otherwise>
|
3156
|
-
</xsl:choose>
|
3157
|
-
</xsl:if> -->
|
3158
|
-
|
3159
|
-
|
3160
|
-
<!-- horizontal row separator -->
|
3161
|
-
|
3162
|
-
|
3163
|
-
<!-- fn processing -->
|
3164
|
-
<xsl:call-template name="fn_display"/>
|
3165
|
-
|
3166
|
-
</fo:table-cell>
|
3167
|
-
</fo:table-row>
|
3168
|
-
|
3169
|
-
</xsl:if>
|
3170
|
-
</fo:table-footer>
|
3171
|
-
|
3172
|
-
</xsl:if>
|
3173
3014
|
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
3174
3015
|
<xsl:param name="table_attributes"/>
|
3175
3016
|
<xsl:param name="colwidths"/>
|
@@ -3254,23 +3095,10 @@
|
|
3254
3095
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
3255
3096
|
|
3256
3097
|
|
3257
|
-
<!-- except gb -->
|
3258
|
-
|
3259
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3260
|
-
|
3098
|
+
<!-- except gb and bsi -->
|
3261
3099
|
|
3262
|
-
|
3263
|
-
|
3264
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
3265
|
-
show Note under table in preface (ex. abstract) sections
|
3266
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3267
|
-
</xsl:when>
|
3268
|
-
<xsl:otherwise>
|
3269
|
-
empty, because notes show at page side in main sections
|
3270
|
-
<fo:block/>
|
3271
|
-
</xsl:otherwise>
|
3272
|
-
</xsl:choose>
|
3273
|
-
</xsl:if> -->
|
3100
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3101
|
+
|
3274
3102
|
|
3275
3103
|
|
3276
3104
|
<!-- horizontal row separator -->
|
@@ -3279,7 +3107,6 @@
|
|
3279
3107
|
<!-- fn processing -->
|
3280
3108
|
<xsl:call-template name="fn_display"/>
|
3281
3109
|
|
3282
|
-
|
3283
3110
|
<!-- for PAS display Notes after footnotes -->
|
3284
3111
|
|
3285
3112
|
|
@@ -3365,8 +3192,7 @@
|
|
3365
3192
|
|
3366
3193
|
|
3367
3194
|
<xsl:apply-templates/>
|
3368
|
-
|
3369
|
-
|
3195
|
+
|
3370
3196
|
</fo:table-body>
|
3371
3197
|
|
3372
3198
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
|
@@ -3384,7 +3210,7 @@
|
|
3384
3210
|
<xsl:apply-templates select="."/>
|
3385
3211
|
</xsl:template><xsl:template match="*[local-name()='tr']">
|
3386
3212
|
<xsl:variable name="parent-name" select="local-name(..)"/>
|
3387
|
-
|
3213
|
+
|
3388
3214
|
<fo:table-row min-height="4mm">
|
3389
3215
|
<xsl:if test="$parent-name = 'thead'">
|
3390
3216
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3431,10 +3257,6 @@
|
|
3431
3257
|
|
3432
3258
|
|
3433
3259
|
|
3434
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
3435
|
-
<xsl:attribute name="height">8mm</xsl:attribute>
|
3436
|
-
</xsl:if> -->
|
3437
|
-
|
3438
3260
|
<xsl:apply-templates/>
|
3439
3261
|
</fo:table-row>
|
3440
3262
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
@@ -3443,7 +3265,6 @@
|
|
3443
3265
|
<xsl:choose>
|
3444
3266
|
<xsl:when test="@align">
|
3445
3267
|
<xsl:call-template name="setAlignment"/>
|
3446
|
-
<!-- <xsl:value-of select="@align"/> -->
|
3447
3268
|
</xsl:when>
|
3448
3269
|
<xsl:otherwise>center</xsl:otherwise>
|
3449
3270
|
</xsl:choose>
|
@@ -3498,7 +3319,6 @@
|
|
3498
3319
|
<xsl:choose>
|
3499
3320
|
<xsl:when test="@align">
|
3500
3321
|
<xsl:call-template name="setAlignment"/>
|
3501
|
-
<!-- <xsl:value-of select="@align"/> -->
|
3502
3322
|
</xsl:when>
|
3503
3323
|
<xsl:otherwise>left</xsl:otherwise>
|
3504
3324
|
</xsl:choose>
|
@@ -3721,7 +3541,6 @@
|
|
3721
3541
|
</fo:inline>
|
3722
3542
|
<fo:inline>
|
3723
3543
|
|
3724
|
-
<!-- <xsl:apply-templates /> -->
|
3725
3544
|
<xsl:copy-of select="./node()"/>
|
3726
3545
|
</fo:inline>
|
3727
3546
|
</fo:block>
|
@@ -3734,14 +3553,6 @@
|
|
3734
3553
|
<xsl:apply-templates/>
|
3735
3554
|
</fn>
|
3736
3555
|
</xsl:template><xsl:template name="fn_name_display">
|
3737
|
-
<!-- <xsl:variable name="references">
|
3738
|
-
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
3739
|
-
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
3740
|
-
<xsl:apply-templates />
|
3741
|
-
</fn>
|
3742
|
-
</xsl:for-each>
|
3743
|
-
</xsl:variable>
|
3744
|
-
$references=<xsl:copy-of select="$references"/> -->
|
3745
3556
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
3746
3557
|
<xsl:variable name="reference" select="@reference"/>
|
3747
3558
|
<fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
|
@@ -3778,14 +3589,12 @@
|
|
3778
3589
|
</xsl:otherwise>
|
3779
3590
|
</xsl:choose>
|
3780
3591
|
</xsl:variable>
|
3781
|
-
|
3782
|
-
|
3783
|
-
<
|
3784
|
-
<
|
3785
|
-
|
3786
|
-
|
3787
|
-
</xsl:for-each>
|
3788
|
-
<!-- </xsl:element> -->
|
3592
|
+
|
3593
|
+
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
3594
|
+
<tbody>
|
3595
|
+
<xsl:apply-templates mode="dl"/>
|
3596
|
+
</tbody>
|
3597
|
+
</xsl:for-each>
|
3789
3598
|
</xsl:variable>
|
3790
3599
|
|
3791
3600
|
<xsl:call-template name="calculate-column-widths">
|
@@ -3856,14 +3665,12 @@
|
|
3856
3665
|
</xsl:if>
|
3857
3666
|
|
3858
3667
|
</xsl:template><xsl:template match="*[local-name()='fn']">
|
3859
|
-
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
3860
3668
|
<fo:inline font-size="80%" keep-with-previous.within-line="always">
|
3861
3669
|
|
3862
3670
|
|
3863
3671
|
|
3864
3672
|
<xsl:if test="ancestor::*[local-name()='table']">
|
3865
3673
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
3866
|
-
<!-- <xsl:attribute name="alignment-baseline">hanging</xsl:attribute> -->
|
3867
3674
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
3868
3675
|
</xsl:if>
|
3869
3676
|
|
@@ -3893,10 +3700,10 @@
|
|
3893
3700
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
3894
3701
|
<fo:block-container>
|
3895
3702
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3703
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3704
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3705
|
+
</xsl:if>
|
3706
|
+
|
3900
3707
|
|
3901
3708
|
<xsl:if test="parent::*[local-name() = 'note']">
|
3902
3709
|
<xsl:attribute name="margin-left">
|
@@ -3915,9 +3722,9 @@
|
|
3915
3722
|
|
3916
3723
|
<fo:block-container>
|
3917
3724
|
|
3918
|
-
|
3919
|
-
|
3920
|
-
|
3725
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3726
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3727
|
+
|
3921
3728
|
|
3922
3729
|
<xsl:variable name="parent" select="local-name(..)"/>
|
3923
3730
|
|
@@ -3930,22 +3737,21 @@
|
|
3930
3737
|
<xsl:choose>
|
3931
3738
|
<xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
|
3932
3739
|
|
3933
|
-
|
3934
|
-
|
3935
|
-
|
3936
|
-
|
3937
|
-
|
3938
|
-
|
3939
|
-
|
3940
|
-
|
3941
|
-
</xsl:
|
3942
|
-
|
3943
|
-
|
3944
|
-
|
3945
|
-
|
3946
|
-
|
3947
|
-
|
3948
|
-
|
3740
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
3741
|
+
|
3742
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
3743
|
+
|
3744
|
+
<xsl:variable name="title-where">
|
3745
|
+
<xsl:call-template name="getLocalizedString">
|
3746
|
+
<xsl:with-param name="key">where</xsl:with-param>
|
3747
|
+
</xsl:call-template>
|
3748
|
+
</xsl:variable>
|
3749
|
+
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
3750
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
3751
|
+
<xsl:text/>
|
3752
|
+
<xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
|
3753
|
+
</fo:block>
|
3754
|
+
|
3949
3755
|
</xsl:when>
|
3950
3756
|
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
3951
3757
|
<fo:block margin-bottom="12pt" text-align="left">
|
@@ -4002,9 +3808,7 @@
|
|
4002
3808
|
<fo:table width="95%" table-layout="fixed">
|
4003
3809
|
|
4004
3810
|
<xsl:choose>
|
4005
|
-
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"
|
4006
|
-
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
4007
|
-
</xsl:when>
|
3811
|
+
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"/>
|
4008
3812
|
<xsl:when test="normalize-space($key_iso) = 'true'">
|
4009
3813
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4010
3814
|
|
@@ -4025,12 +3829,9 @@
|
|
4025
3829
|
</xsl:otherwise>
|
4026
3830
|
</xsl:choose>
|
4027
3831
|
</xsl:variable>
|
4028
|
-
|
4029
|
-
|
4030
|
-
|
4031
|
-
<xsl:apply-templates mode="dl"/>
|
4032
|
-
</tbody>
|
4033
|
-
<!-- </xsl:element> -->
|
3832
|
+
<tbody>
|
3833
|
+
<xsl:apply-templates mode="dl"/>
|
3834
|
+
</tbody>
|
4034
3835
|
</xsl:variable>
|
4035
3836
|
<!-- html-table<xsl:copy-of select="$html-table"/> -->
|
4036
3837
|
<xsl:variable name="colwidths">
|
@@ -4110,8 +3911,6 @@
|
|
4110
3911
|
</xsl:for-each>
|
4111
3912
|
</xsl:otherwise>
|
4112
3913
|
</xsl:choose>
|
4113
|
-
<!-- <fo:table-column column-width="15%"/>
|
4114
|
-
<fo:table-column column-width="85%"/> -->
|
4115
3914
|
</xsl:otherwise>
|
4116
3915
|
</xsl:choose>
|
4117
3916
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
@@ -4126,12 +3925,6 @@
|
|
4126
3925
|
</xsl:for-each>
|
4127
3926
|
</xsl:variable>
|
4128
3927
|
<xsl:variable name="maxLength">
|
4129
|
-
<!-- <xsl:for-each select="*[local-name()='dt']">
|
4130
|
-
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
4131
|
-
<xsl:if test="position() = 1">
|
4132
|
-
<xsl:value-of select="string-length(normalize-space(.))"/>
|
4133
|
-
</xsl:if>
|
4134
|
-
</xsl:for-each> -->
|
4135
3928
|
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
4136
3929
|
<xsl:sort select="." data-type="number" order="descending"/>
|
4137
3930
|
<xsl:if test="position() = 1">
|
@@ -4173,9 +3966,8 @@
|
|
4173
3966
|
</td>
|
4174
3967
|
<td>
|
4175
3968
|
|
4176
|
-
|
4177
|
-
|
4178
|
-
|
3969
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
3970
|
+
|
4179
3971
|
</td>
|
4180
3972
|
</tr>
|
4181
3973
|
|
@@ -4205,46 +3997,16 @@
|
|
4205
3997
|
|
4206
3998
|
|
4207
3999
|
<xsl:apply-templates/>
|
4208
|
-
<!-- <xsl:if test="$namespace = 'gb'">
|
4209
|
-
<xsl:if test="ancestor::*[local-name()='formula']">
|
4210
|
-
<xsl:text>—</xsl:text>
|
4211
|
-
</xsl:if>
|
4212
|
-
</xsl:if> -->
|
4213
4000
|
</fo:block>
|
4214
4001
|
</fo:table-cell>
|
4215
4002
|
<fo:table-cell>
|
4216
4003
|
<fo:block>
|
4217
4004
|
|
4218
|
-
|
4219
|
-
|
4220
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
4221
|
-
</xsl:if>
|
4222
|
-
</xsl:if> -->
|
4223
|
-
|
4224
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
4225
|
-
|
4005
|
+
|
4006
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
4226
4007
|
</fo:block>
|
4227
4008
|
</fo:table-cell>
|
4228
4009
|
</fo:table-row>
|
4229
|
-
<!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
4230
|
-
<xsl:if test="local-name(*[1]) = 'stem'">
|
4231
|
-
<fo:table-row>
|
4232
|
-
<fo:table-cell>
|
4233
|
-
<fo:block margin-top="6pt">
|
4234
|
-
<xsl:if test="normalize-space($key_iso) = 'true'">
|
4235
|
-
<xsl:attribute name="margin-top">0</xsl:attribute>
|
4236
|
-
</xsl:if>
|
4237
|
-
<xsl:text> </xsl:text>
|
4238
|
-
</fo:block>
|
4239
|
-
</fo:table-cell>
|
4240
|
-
<fo:table-cell>
|
4241
|
-
<fo:block>
|
4242
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
4243
|
-
</fo:block>
|
4244
|
-
</fo:table-cell>
|
4245
|
-
</fo:table-row>
|
4246
|
-
</xsl:if>
|
4247
|
-
</xsl:if> -->
|
4248
4010
|
</xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
|
4249
4011
|
<xsl:apply-templates/>
|
4250
4012
|
</xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
|
@@ -4360,8 +4122,6 @@
|
|
4360
4122
|
<xsl:variable name="add_width" select="string-length($value) * 20"/>
|
4361
4123
|
<xsl:variable name="maxwidth" select="60 + $add_width"/>
|
4362
4124
|
<fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-20%"><!-- alignment-baseline="middle" -->
|
4363
|
-
<!-- <xsl:attribute name="width">7mm</xsl:attribute>
|
4364
|
-
<xsl:attribute name="content-height">100%</xsl:attribute> -->
|
4365
4125
|
<xsl:attribute name="height">5mm</xsl:attribute>
|
4366
4126
|
<xsl:attribute name="content-width">100%</xsl:attribute>
|
4367
4127
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
@@ -4579,14 +4339,6 @@
|
|
4579
4339
|
|
4580
4340
|
<xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
|
4581
4341
|
|
4582
|
-
<!-- <xsl:choose>
|
4583
|
-
<xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
|
4584
|
-
|
4585
|
-
</xsl:when>
|
4586
|
-
<xsl:otherwise>
|
4587
|
-
<xsl:copy-of select="current()"/>
|
4588
|
-
</xsl:otherwise>
|
4589
|
-
</xsl:choose> -->
|
4590
4342
|
</xsl:variable>
|
4591
4343
|
<xsl:copy-of select="$simple-table"/>
|
4592
4344
|
</xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
|
@@ -4705,8 +4457,6 @@
|
|
4705
4457
|
<xsl:choose>
|
4706
4458
|
<xsl:when test="contains($str2, ' ')">
|
4707
4459
|
<xsl:variable name="substr" select="substring-before($str2, ' ')"/>
|
4708
|
-
<!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
|
4709
|
-
<xsl:value-of select="substring($substr, 2)"/> -->
|
4710
4460
|
<xsl:call-template name="capitalize">
|
4711
4461
|
<xsl:with-param name="str" select="$substr"/>
|
4712
4462
|
</xsl:call-template>
|
@@ -4716,8 +4466,6 @@
|
|
4716
4466
|
</xsl:call-template>
|
4717
4467
|
</xsl:when>
|
4718
4468
|
<xsl:otherwise>
|
4719
|
-
<!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
|
4720
|
-
<xsl:value-of select="substring($str2, 2)"/> -->
|
4721
4469
|
<xsl:call-template name="capitalize">
|
4722
4470
|
<xsl:with-param name="str" select="$str2"/>
|
4723
4471
|
</xsl:call-template>
|
@@ -4776,7 +4524,6 @@
|
|
4776
4524
|
</xsl:attribute>
|
4777
4525
|
|
4778
4526
|
|
4779
|
-
<!-- <xsl:copy-of select="."/> -->
|
4780
4527
|
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
4781
4528
|
</fo:instream-foreign-object>
|
4782
4529
|
</fo:inline>
|
@@ -4933,29 +4680,26 @@
|
|
4933
4680
|
|
4934
4681
|
|
4935
4682
|
<fo:block-container margin-left="0mm">
|
4683
|
+
|
4936
4684
|
|
4937
4685
|
|
4938
4686
|
|
4687
|
+
|
4939
4688
|
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
<fo:block>
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
4689
|
+
<fo:block>
|
4952
4690
|
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4691
|
+
|
4692
|
+
|
4693
|
+
|
4694
|
+
|
4695
|
+
|
4696
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
4697
|
+
|
4698
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
4699
|
+
</fo:inline>
|
4700
|
+
<xsl:apply-templates/>
|
4701
|
+
</fo:block>
|
4702
|
+
|
4959
4703
|
</fo:block-container>
|
4960
4704
|
</fo:block-container>
|
4961
4705
|
|
@@ -5026,7 +4770,6 @@
|
|
5026
4770
|
<xsl:apply-templates/>
|
5027
4771
|
</fo:block>
|
5028
4772
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
5029
|
-
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
5030
4773
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
5031
4774
|
|
5032
4775
|
|
@@ -5042,9 +4785,6 @@
|
|
5042
4785
|
</xsl:variable>
|
5043
4786
|
<fo:inline role="H{$level}">
|
5044
4787
|
<xsl:apply-templates/>
|
5045
|
-
<!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
|
5046
|
-
<xsl:text>.</xsl:text>
|
5047
|
-
</xsl:if> -->
|
5048
4788
|
</fo:inline>
|
5049
4789
|
</xsl:if>
|
5050
4790
|
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
@@ -5067,7 +4807,8 @@
|
|
5067
4807
|
</xsl:for-each>
|
5068
4808
|
|
5069
4809
|
|
5070
|
-
|
4810
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
4811
|
+
|
5071
4812
|
|
5072
4813
|
</fo:block-container>
|
5073
4814
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
@@ -5181,9 +4922,7 @@
|
|
5181
4922
|
<xsl:variable name="bis" select="java:java.io.ByteArrayInputStream.new($fileContent)"/>
|
5182
4923
|
<xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($bis)"/>
|
5183
4924
|
<xsl:variable name="width" select="java:getWidth($bufferedImage)"/>
|
5184
|
-
<!-- width=<xsl:value-of select="$width"/> -->
|
5185
4925
|
<xsl:variable name="height" select="java:getHeight($bufferedImage)"/>
|
5186
|
-
<!-- height=<xsl:value-of select="$height"/> -->
|
5187
4926
|
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="enable-background:new 0 0 595.28 841.89;" height="{$height}" width="{$width}" viewBox="0 0 {$width} {$height}" y="0px" x="0px" id="Layer_1" version="1.1">
|
5188
4927
|
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{@src}" height="{$height}" width="{$width}" style="overflow:visible;"/>
|
5189
4928
|
<xsl:call-template name="svg_cross">
|
@@ -5606,8 +5345,6 @@
|
|
5606
5345
|
|
5607
5346
|
|
5608
5347
|
|
5609
|
-
|
5610
|
-
|
5611
5348
|
</fo:bookmark-tree>
|
5612
5349
|
</xsl:if>
|
5613
5350
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -5694,12 +5431,6 @@
|
|
5694
5431
|
<!-- <xsl:text> </xsl:text> -->
|
5695
5432
|
</xsl:template><xsl:template name="getSection">
|
5696
5433
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
5697
|
-
<!--
|
5698
|
-
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
5699
|
-
<xsl:value-of select="."/>
|
5700
|
-
</xsl:for-each>
|
5701
|
-
-->
|
5702
|
-
|
5703
5434
|
</xsl:template><xsl:template name="getName">
|
5704
5435
|
<xsl:choose>
|
5705
5436
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -5834,7 +5565,7 @@
|
|
5834
5565
|
</fo:block>
|
5835
5566
|
|
5836
5567
|
|
5837
|
-
|
5568
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
5838
5569
|
|
5839
5570
|
|
5840
5571
|
|
@@ -5957,8 +5688,6 @@
|
|
5957
5688
|
</xsl:variable>
|
5958
5689
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
5959
5690
|
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
5960
|
-
<!-- <fo:table-column column-width="35mm"/>
|
5961
|
-
<fo:table-column column-width="115mm"/> -->
|
5962
5691
|
<fo:table-column column-width="30%"/>
|
5963
5692
|
<fo:table-column column-width="70%"/>
|
5964
5693
|
</xsl:if>
|
@@ -5985,7 +5714,6 @@
|
|
5985
5714
|
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
5986
5715
|
<fo:table-row height="7mm" border-bottom="0.5pt solid grey">
|
5987
5716
|
<xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
|
5988
|
-
<!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
|
5989
5717
|
<xsl:attribute name="background-color">rgb(33, 55, 92)</xsl:attribute>
|
5990
5718
|
</xsl:if>
|
5991
5719
|
<xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
|
@@ -6018,15 +5746,6 @@
|
|
6018
5746
|
</xsl:if>
|
6019
5747
|
<xsl:call-template name="display-align"/>
|
6020
5748
|
|
6021
|
-
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
6022
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
6023
|
-
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
6024
|
-
</xsl:if>
|
6025
|
-
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
6026
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
6027
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
6028
|
-
</xsl:if> -->
|
6029
|
-
|
6030
5749
|
<fo:block>
|
6031
5750
|
<xsl:apply-templates/>
|
6032
5751
|
</fo:block>
|
@@ -6060,15 +5779,6 @@
|
|
6060
5779
|
</xsl:if>
|
6061
5780
|
<xsl:call-template name="display-align"/>
|
6062
5781
|
|
6063
|
-
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
6064
|
-
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
6065
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
6066
|
-
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
|
6067
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
6068
|
-
</xsl:if>
|
6069
|
-
</xsl:if> -->
|
6070
|
-
<!-- 2nd line and below -->
|
6071
|
-
|
6072
5782
|
<fo:block>
|
6073
5783
|
<xsl:apply-templates/>
|
6074
5784
|
</fo:block>
|
@@ -6079,7 +5789,7 @@
|
|
6079
5789
|
<xsl:apply-templates/>
|
6080
5790
|
</fo:block>
|
6081
5791
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
6082
|
-
<fo:block>
|
5792
|
+
<fo:block>
|
6083
5793
|
<xsl:apply-templates/>
|
6084
5794
|
</fo:block>
|
6085
5795
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
@@ -6279,7 +5989,6 @@
|
|
6279
5989
|
<fo:block-container margin-left="0mm">
|
6280
5990
|
|
6281
5991
|
<fo:block xsl:use-attribute-sets="quote-style">
|
6282
|
-
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
6283
5992
|
|
6284
5993
|
<xsl:if test="ancestor::*[local-name() = 'boilerplate']">
|
6285
5994
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
@@ -6331,12 +6040,10 @@
|
|
6331
6040
|
<xsl:when test="normalize-space($bibitemid) != ''">
|
6332
6041
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6333
6042
|
<xsl:if test="@type = 'footnote'">
|
6334
|
-
|
6335
|
-
|
6336
|
-
|
6337
|
-
|
6338
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
6339
|
-
|
6043
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
6044
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
6045
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
6046
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6340
6047
|
|
6341
6048
|
</xsl:if>
|
6342
6049
|
|
@@ -6411,7 +6118,6 @@
|
|
6411
6118
|
</xsl:choose>
|
6412
6119
|
</xsl:variable>
|
6413
6120
|
|
6414
|
-
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
6415
6121
|
|
6416
6122
|
<xsl:choose>
|
6417
6123
|
<xsl:when test="$lang = 'zh'">
|
@@ -6468,7 +6174,6 @@
|
|
6468
6174
|
<xsl:apply-templates/>
|
6469
6175
|
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
|
6470
6176
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
6471
|
-
<!-- <fo:block> </fo:block> -->
|
6472
6177
|
<fo:block/>
|
6473
6178
|
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
6474
6179
|
|
@@ -6840,9 +6545,7 @@
|
|
6840
6545
|
|
6841
6546
|
|
6842
6547
|
|
6843
|
-
<!-- end MPFD bibitem processing -->
|
6844
6548
|
|
6845
|
-
<!-- start M3D bibitem processing -->
|
6846
6549
|
|
6847
6550
|
|
6848
6551
|
|
@@ -6975,24 +6678,7 @@
|
|
6975
6678
|
<xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
6976
6679
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
6977
6680
|
<xsl:otherwise><!-- default value -->
|
6978
|
-
|
6979
|
-
|
6980
|
-
|
6981
|
-
|
6982
|
-
|
6983
|
-
|
6984
|
-
|
6985
|
-
|
6986
6681
|
3
|
6987
|
-
|
6988
|
-
|
6989
|
-
|
6990
|
-
|
6991
|
-
|
6992
|
-
|
6993
|
-
|
6994
|
-
|
6995
|
-
|
6996
6682
|
</xsl:otherwise>
|
6997
6683
|
</xsl:choose>
|
6998
6684
|
</xsl:variable><xsl:template match="*[local-name() = 'toc']">
|
@@ -7222,13 +6908,8 @@
|
|
7222
6908
|
<xsl:variable name="title">
|
7223
6909
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
7224
6910
|
|
7225
|
-
|
7226
|
-
|
7227
|
-
<xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'part']"/>
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
6911
|
+
<xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'part']"/>
|
6912
|
+
|
7232
6913
|
</xsl:for-each>
|
7233
6914
|
</xsl:variable>
|
7234
6915
|
<xsl:choose>
|
@@ -7243,18 +6924,15 @@
|
|
7243
6924
|
<dc:creator>
|
7244
6925
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
7245
6926
|
|
7246
|
-
|
7247
|
-
|
7248
|
-
|
7249
|
-
|
6927
|
+
<xsl:value-of select="normalize-space(*[local-name() = 'ext']/*[local-name() = 'editorialgroup']/*[local-name() = 'committee'])"/>
|
6928
|
+
|
7250
6929
|
</xsl:for-each>
|
7251
6930
|
</dc:creator>
|
7252
6931
|
<dc:description>
|
7253
6932
|
<xsl:variable name="abstract">
|
7254
6933
|
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
6934
|
+
<xsl:value-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
|
6935
|
+
|
7258
6936
|
</xsl:variable>
|
7259
6937
|
<xsl:value-of select="normalize-space($abstract)"/>
|
7260
6938
|
</dc:description>
|
@@ -7274,7 +6952,6 @@
|
|
7274
6952
|
<xsl:value-of select="../@id"/>
|
7275
6953
|
</xsl:when>
|
7276
6954
|
<xsl:otherwise>
|
7277
|
-
<!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
|
7278
6955
|
<xsl:value-of select="concat(generate-id(..), '_', text())"/>
|
7279
6956
|
</xsl:otherwise>
|
7280
6957
|
</xsl:choose>
|
@@ -7300,9 +6977,6 @@
|
|
7300
6977
|
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
7301
6978
|
<xsl:value-of select="$level_total - 2"/>
|
7302
6979
|
</xsl:when>
|
7303
|
-
<!-- <xsl:when test="parent::*[local-name() = 'sections']">
|
7304
|
-
<xsl:value-of select="$level_total - 1"/>
|
7305
|
-
</xsl:when> -->
|
7306
6980
|
<xsl:when test="ancestor::*[local-name() = 'sections']">
|
7307
6981
|
<xsl:value-of select="$level_total - 1"/>
|
7308
6982
|
</xsl:when>
|
@@ -7515,7 +7189,6 @@
|
|
7515
7189
|
<xsl:if test="local-name() = 'table'">
|
7516
7190
|
<xsl:attribute name="background-color">rgb(255, 185, 185)</xsl:attribute>
|
7517
7191
|
</xsl:if>
|
7518
|
-
<!-- <xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute> -->
|
7519
7192
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
7520
7193
|
</xsl:if>
|
7521
7194
|
</xsl:otherwise>
|