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
@@ -4661,22 +4661,18 @@
|
|
4661
4661
|
|
4662
4662
|
|
4663
4663
|
|
4664
|
-
<xsl:variable name="
|
4664
|
+
<xsl:variable name="titles_">
|
4665
4665
|
|
4666
4666
|
<title-edition lang="en">
|
4667
4667
|
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4668
|
+
<xsl:text>Edition </xsl:text>
|
4669
|
+
|
4671
4670
|
</title-edition>
|
4672
4671
|
|
4673
4672
|
<title-edition lang="fr">
|
4674
|
-
|
4675
|
-
<xsl:text>Édition </xsl:text>
|
4676
|
-
|
4673
|
+
<xsl:text>Édition </xsl:text>
|
4677
4674
|
</title-edition>
|
4678
4675
|
|
4679
|
-
|
4680
4676
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
4681
4677
|
<title-toc lang="en">
|
4682
4678
|
|
@@ -4684,10 +4680,13 @@
|
|
4684
4680
|
|
4685
4681
|
</title-toc>
|
4686
4682
|
<title-toc lang="fr">
|
4683
|
+
<xsl:text>Sommaire</xsl:text>
|
4684
|
+
</title-toc>
|
4685
|
+
<title-toc lang="zh">
|
4687
4686
|
|
4687
|
+
<xsl:text>Contents</xsl:text>
|
4688
|
+
|
4688
4689
|
</title-toc>
|
4689
|
-
|
4690
|
-
|
4691
4690
|
|
4692
4691
|
<title-descriptors lang="en">Descriptors</title-descriptors>
|
4693
4692
|
|
@@ -4707,16 +4706,8 @@
|
|
4707
4706
|
</title-part>
|
4708
4707
|
<title-part lang="zh">第 # 部分:</title-part>
|
4709
4708
|
|
4710
|
-
<title-subpart lang="en">
|
4711
|
-
|
4712
|
-
<xsl:text>Sub-part #</xsl:text>
|
4713
|
-
|
4714
|
-
</title-subpart>
|
4715
|
-
<title-subpart lang="fr">
|
4716
|
-
|
4717
|
-
<xsl:text>Partie de sub #</xsl:text>
|
4718
|
-
|
4719
|
-
</title-subpart>
|
4709
|
+
<title-subpart lang="en">Sub-part #</title-subpart>
|
4710
|
+
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
4720
4711
|
|
4721
4712
|
<title-list-tables lang="en">List of Tables</title-list-tables>
|
4722
4713
|
|
@@ -4731,7 +4722,7 @@
|
|
4731
4722
|
<title-continued lang="en">(continued)</title-continued>
|
4732
4723
|
<title-continued lang="fr">(continué)</title-continued>
|
4733
4724
|
|
4734
|
-
</xsl:variable><xsl:variable name="bibdata">
|
4725
|
+
</xsl:variable><xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="bibdata">
|
4735
4726
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
4736
4727
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
4737
4728
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
@@ -5202,30 +5193,11 @@
|
|
5202
5193
|
|
5203
5194
|
|
5204
5195
|
|
5205
|
-
</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="
|
5206
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
5207
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
5208
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
5209
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
5210
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
5211
|
-
</xsl:template><xsl:template name="processPrefaceSectionsDefault_Contents">
|
5196
|
+
</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">
|
5212
5197
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
5213
5198
|
<xsl:sort select="@displayorder" data-type="number"/>
|
5214
5199
|
<xsl:apply-templates select="." mode="contents"/>
|
5215
5200
|
</xsl:for-each>
|
5216
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault_Contents">
|
5217
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
5218
|
-
|
5219
|
-
<!-- Normative references -->
|
5220
|
-
<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"/>
|
5221
|
-
<!-- Terms and definitions -->
|
5222
|
-
<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"/>
|
5223
|
-
<!-- Another main sections -->
|
5224
|
-
<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"/>
|
5225
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
5226
|
-
<!-- Bibliography -->
|
5227
|
-
<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"/>
|
5228
|
-
|
5229
5201
|
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
5230
5202
|
|
5231
5203
|
<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']]">
|
@@ -5242,29 +5214,11 @@
|
|
5242
5214
|
<xsl:sort select="@displayorder" data-type="number"/>
|
5243
5215
|
<xsl:apply-templates select="." mode="contents"/>
|
5244
5216
|
</xsl:for-each>
|
5245
|
-
</xsl:template><xsl:template name="OLD_processPrefaceSectionsDefault">
|
5246
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
5247
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
5248
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
5249
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
5250
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
5251
5217
|
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
5252
5218
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
5253
5219
|
<xsl:sort select="@displayorder" data-type="number"/>
|
5254
5220
|
<xsl:apply-templates select="."/>
|
5255
5221
|
</xsl:for-each>
|
5256
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault">
|
5257
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
5258
|
-
|
5259
|
-
<!-- Normative references -->
|
5260
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
5261
|
-
<!-- Terms and definitions -->
|
5262
|
-
<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']]"/>
|
5263
|
-
<!-- Another main sections -->
|
5264
|
-
<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'])]"/>
|
5265
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
5266
|
-
<!-- Bibliography -->
|
5267
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
5268
5222
|
</xsl:template><xsl:template name="processMainSectionsDefault">
|
5269
5223
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
5270
5224
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -5309,35 +5263,15 @@
|
|
5309
5263
|
<!-- Display table's name before table as standalone block -->
|
5310
5264
|
<!-- $namespace = 'iso' or -->
|
5311
5265
|
|
5312
|
-
|
5313
|
-
|
5314
|
-
|
5315
|
-
|
5316
|
-
|
5266
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
5267
|
+
|
5317
5268
|
|
5318
|
-
<xsl:call-template name="fn_name_display"/>
|
5319
5269
|
|
5270
|
+
<xsl:call-template name="fn_name_display"/>
|
5320
5271
|
|
5321
5272
|
|
5322
5273
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
|
5323
5274
|
|
5324
|
-
<!-- <xsl:variable name="cols-count">
|
5325
|
-
<xsl:choose>
|
5326
|
-
<xsl:when test="*[local-name()='thead']">
|
5327
|
-
<xsl:call-template name="calculate-columns-numbers">
|
5328
|
-
<xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
|
5329
|
-
</xsl:call-template>
|
5330
|
-
</xsl:when>
|
5331
|
-
<xsl:otherwise>
|
5332
|
-
<xsl:call-template name="calculate-columns-numbers">
|
5333
|
-
<xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
|
5334
|
-
</xsl:call-template>
|
5335
|
-
</xsl:otherwise>
|
5336
|
-
</xsl:choose>
|
5337
|
-
</xsl:variable> -->
|
5338
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
|
5339
|
-
<!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
|
5340
|
-
|
5341
5275
|
<xsl:variable name="colwidths">
|
5342
5276
|
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
5343
5277
|
<xsl:call-template name="calculate-column-widths">
|
@@ -5348,15 +5282,6 @@
|
|
5348
5282
|
</xsl:variable>
|
5349
5283
|
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
5350
5284
|
|
5351
|
-
<!-- <xsl:variable name="colwidths2">
|
5352
|
-
<xsl:call-template name="calculate-column-widths">
|
5353
|
-
<xsl:with-param name="cols-count" select="$cols-count"/>
|
5354
|
-
</xsl:call-template>
|
5355
|
-
</xsl:variable> -->
|
5356
|
-
|
5357
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/>
|
5358
|
-
colwidthsNew=<xsl:copy-of select="$colwidths"/>
|
5359
|
-
colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
|
5360
5285
|
|
5361
5286
|
<xsl:variable name="margin-left">
|
5362
5287
|
<xsl:choose>
|
@@ -5499,25 +5424,6 @@
|
|
5499
5424
|
</xsl:call-template>
|
5500
5425
|
</xsl:for-each>
|
5501
5426
|
|
5502
|
-
<!-- insert footer as table -->
|
5503
|
-
<!-- <fo:table>
|
5504
|
-
<xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
|
5505
|
-
<xsl:attribute name="{@name}">
|
5506
|
-
<xsl:value-of select="."/>
|
5507
|
-
</xsl:attribute>
|
5508
|
-
</xsl:for-each>
|
5509
|
-
|
5510
|
-
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
5511
|
-
<xsl:choose>
|
5512
|
-
<xsl:when test=". = 1 or . = 0">
|
5513
|
-
<fo:table-column column-width="proportional-column-width(2)"/>
|
5514
|
-
</xsl:when>
|
5515
|
-
<xsl:otherwise>
|
5516
|
-
<fo:table-column column-width="proportional-column-width({.})"/>
|
5517
|
-
</xsl:otherwise>
|
5518
|
-
</xsl:choose>
|
5519
|
-
</xsl:for-each>
|
5520
|
-
</fo:table>-->
|
5521
5427
|
|
5522
5428
|
|
5523
5429
|
|
@@ -5593,7 +5499,6 @@
|
|
5593
5499
|
|
5594
5500
|
<xsl:choose>
|
5595
5501
|
<xsl:when test="$continued = 'true'">
|
5596
|
-
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
5597
5502
|
|
5598
5503
|
</xsl:when>
|
5599
5504
|
<xsl:otherwise>
|
@@ -5656,13 +5561,6 @@
|
|
5656
5561
|
<xsl:for-each select="xalan:nodeset($table)/*/tr">
|
5657
5562
|
<xsl:variable name="td_text">
|
5658
5563
|
<xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
|
5659
|
-
|
5660
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
5661
|
-
<xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
|
5662
|
-
<word><xsl:value-of select="normalize-space(.)"/></word>
|
5663
|
-
</xsl:for-each>
|
5664
|
-
</xsl:if> -->
|
5665
|
-
|
5666
5564
|
</xsl:variable>
|
5667
5565
|
<xsl:variable name="words">
|
5668
5566
|
<xsl:variable name="string_with_added_zerospaces">
|
@@ -5753,7 +5651,6 @@
|
|
5753
5651
|
|
5754
5652
|
|
5755
5653
|
|
5756
|
-
|
5757
5654
|
</fo:table-cell>
|
5758
5655
|
</fo:table-row>
|
5759
5656
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -5769,66 +5666,6 @@
|
|
5769
5666
|
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
5770
5667
|
</fo:table-footer>
|
5771
5668
|
</xsl:if>
|
5772
|
-
</xsl:template><xsl:template name="insertTableFooter2">
|
5773
|
-
<xsl:param name="cols-count"/>
|
5774
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
5775
|
-
<xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
5776
|
-
|
5777
|
-
<fo:table-footer>
|
5778
|
-
|
5779
|
-
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
5780
|
-
|
5781
|
-
<!-- if there are note(s) or fn(s) then create footer row -->
|
5782
|
-
<xsl:if test="$isNoteOrFnExist = 'true'">
|
5783
|
-
|
5784
|
-
|
5785
|
-
|
5786
|
-
<fo:table-row>
|
5787
|
-
<fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
5788
|
-
|
5789
|
-
|
5790
|
-
|
5791
|
-
<!-- fn will be processed inside 'note' processing -->
|
5792
|
-
|
5793
|
-
|
5794
|
-
|
5795
|
-
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
5796
|
-
|
5797
|
-
|
5798
|
-
|
5799
|
-
|
5800
|
-
<!-- except gb -->
|
5801
|
-
|
5802
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
5803
|
-
|
5804
|
-
|
5805
|
-
<!-- show Note under table in preface (ex. abstract) sections -->
|
5806
|
-
<!-- empty, because notes show at page side in main sections -->
|
5807
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
5808
|
-
<xsl:choose>
|
5809
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
5810
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
5811
|
-
</xsl:when>
|
5812
|
-
<xsl:otherwise>
|
5813
|
-
<fo:block/>
|
5814
|
-
</xsl:otherwise>
|
5815
|
-
</xsl:choose>
|
5816
|
-
</xsl:if> -->
|
5817
|
-
|
5818
|
-
|
5819
|
-
<!-- horizontal row separator -->
|
5820
|
-
|
5821
|
-
|
5822
|
-
<!-- fn processing -->
|
5823
|
-
<xsl:call-template name="fn_display"/>
|
5824
|
-
|
5825
|
-
</fo:table-cell>
|
5826
|
-
</fo:table-row>
|
5827
|
-
|
5828
|
-
</xsl:if>
|
5829
|
-
</fo:table-footer>
|
5830
|
-
|
5831
|
-
</xsl:if>
|
5832
5669
|
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
5833
5670
|
<xsl:param name="table_attributes"/>
|
5834
5671
|
<xsl:param name="colwidths"/>
|
@@ -5923,23 +5760,10 @@
|
|
5923
5760
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
5924
5761
|
|
5925
5762
|
|
5926
|
-
<!-- except gb -->
|
5927
|
-
|
5928
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
5763
|
+
<!-- except gb and bsi -->
|
5929
5764
|
|
5930
|
-
|
5931
|
-
|
5932
|
-
<xsl:choose>
|
5933
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
5934
|
-
show Note under table in preface (ex. abstract) sections
|
5935
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
5936
|
-
</xsl:when>
|
5937
|
-
<xsl:otherwise>
|
5938
|
-
empty, because notes show at page side in main sections
|
5939
|
-
<fo:block/>
|
5940
|
-
</xsl:otherwise>
|
5941
|
-
</xsl:choose>
|
5942
|
-
</xsl:if> -->
|
5765
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
5766
|
+
|
5943
5767
|
|
5944
5768
|
|
5945
5769
|
<!-- horizontal row separator -->
|
@@ -5948,7 +5772,6 @@
|
|
5948
5772
|
<!-- fn processing -->
|
5949
5773
|
<xsl:call-template name="fn_display"/>
|
5950
5774
|
|
5951
|
-
|
5952
5775
|
<!-- for PAS display Notes after footnotes -->
|
5953
5776
|
|
5954
5777
|
|
@@ -5989,8 +5812,7 @@
|
|
5989
5812
|
|
5990
5813
|
|
5991
5814
|
<xsl:apply-templates/>
|
5992
|
-
|
5993
|
-
|
5815
|
+
|
5994
5816
|
</fo:table-body>
|
5995
5817
|
|
5996
5818
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
|
@@ -6008,7 +5830,7 @@
|
|
6008
5830
|
<xsl:apply-templates select="."/>
|
6009
5831
|
</xsl:template><xsl:template match="*[local-name()='tr']">
|
6010
5832
|
<xsl:variable name="parent-name" select="local-name(..)"/>
|
6011
|
-
|
5833
|
+
|
6012
5834
|
<fo:table-row min-height="4mm">
|
6013
5835
|
<xsl:if test="$parent-name = 'thead'">
|
6014
5836
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -6043,10 +5865,6 @@
|
|
6043
5865
|
|
6044
5866
|
|
6045
5867
|
|
6046
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
6047
|
-
<xsl:attribute name="height">8mm</xsl:attribute>
|
6048
|
-
</xsl:if> -->
|
6049
|
-
|
6050
5868
|
<xsl:apply-templates/>
|
6051
5869
|
</fo:table-row>
|
6052
5870
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
@@ -6055,7 +5873,6 @@
|
|
6055
5873
|
<xsl:choose>
|
6056
5874
|
<xsl:when test="@align">
|
6057
5875
|
<xsl:call-template name="setAlignment"/>
|
6058
|
-
<!-- <xsl:value-of select="@align"/> -->
|
6059
5876
|
</xsl:when>
|
6060
5877
|
<xsl:otherwise>center</xsl:otherwise>
|
6061
5878
|
</xsl:choose>
|
@@ -6130,7 +5947,6 @@
|
|
6130
5947
|
<xsl:choose>
|
6131
5948
|
<xsl:when test="@align">
|
6132
5949
|
<xsl:call-template name="setAlignment"/>
|
6133
|
-
<!-- <xsl:value-of select="@align"/> -->
|
6134
5950
|
</xsl:when>
|
6135
5951
|
<xsl:otherwise>left</xsl:otherwise>
|
6136
5952
|
</xsl:choose>
|
@@ -6383,7 +6199,6 @@
|
|
6383
6199
|
</fo:inline>
|
6384
6200
|
<fo:inline>
|
6385
6201
|
|
6386
|
-
<!-- <xsl:apply-templates /> -->
|
6387
6202
|
<xsl:copy-of select="./node()"/>
|
6388
6203
|
</fo:inline>
|
6389
6204
|
</fo:block>
|
@@ -6396,14 +6211,6 @@
|
|
6396
6211
|
<xsl:apply-templates/>
|
6397
6212
|
</fn>
|
6398
6213
|
</xsl:template><xsl:template name="fn_name_display">
|
6399
|
-
<!-- <xsl:variable name="references">
|
6400
|
-
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
6401
|
-
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
6402
|
-
<xsl:apply-templates />
|
6403
|
-
</fn>
|
6404
|
-
</xsl:for-each>
|
6405
|
-
</xsl:variable>
|
6406
|
-
$references=<xsl:copy-of select="$references"/> -->
|
6407
6214
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
6408
6215
|
<xsl:variable name="reference" select="@reference"/>
|
6409
6216
|
<fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
|
@@ -6440,14 +6247,12 @@
|
|
6440
6247
|
</xsl:otherwise>
|
6441
6248
|
</xsl:choose>
|
6442
6249
|
</xsl:variable>
|
6443
|
-
|
6444
|
-
|
6445
|
-
<
|
6446
|
-
<
|
6447
|
-
|
6448
|
-
|
6449
|
-
</xsl:for-each>
|
6450
|
-
<!-- </xsl:element> -->
|
6250
|
+
|
6251
|
+
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
6252
|
+
<tbody>
|
6253
|
+
<xsl:apply-templates mode="dl"/>
|
6254
|
+
</tbody>
|
6255
|
+
</xsl:for-each>
|
6451
6256
|
</xsl:variable>
|
6452
6257
|
|
6453
6258
|
<xsl:call-template name="calculate-column-widths">
|
@@ -6518,7 +6323,6 @@
|
|
6518
6323
|
</xsl:if>
|
6519
6324
|
|
6520
6325
|
</xsl:template><xsl:template match="*[local-name()='fn']">
|
6521
|
-
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
6522
6326
|
<fo:inline font-size="80%" keep-with-previous.within-line="always">
|
6523
6327
|
|
6524
6328
|
|
@@ -6557,13 +6361,13 @@
|
|
6557
6361
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
6558
6362
|
<fo:block-container>
|
6559
6363
|
|
6560
|
-
|
6561
|
-
|
6562
|
-
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6364
|
+
<xsl:if test="not(ancestor::*[local-name() = 'li'])">
|
6365
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
6366
|
+
</xsl:if>
|
6367
|
+
<xsl:if test="ancestor::*[local-name() = 'li']">
|
6368
|
+
<xsl:attribute name="margin-left">6.5mm</xsl:attribute><!-- 8 mm -->
|
6369
|
+
</xsl:if>
|
6370
|
+
|
6567
6371
|
|
6568
6372
|
<xsl:if test="parent::*[local-name() = 'note']">
|
6569
6373
|
<xsl:attribute name="margin-left">
|
@@ -6582,10 +6386,8 @@
|
|
6582
6386
|
|
6583
6387
|
<fo:block-container>
|
6584
6388
|
|
6585
|
-
|
6586
|
-
<!-- <xsl:if test="not(ancestor::*[local-name() = 'li'])"> -->
|
6587
6389
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
6588
|
-
|
6390
|
+
|
6589
6391
|
|
6590
6392
|
<xsl:variable name="parent" select="local-name(..)"/>
|
6591
6393
|
|
@@ -6596,20 +6398,19 @@
|
|
6596
6398
|
<xsl:choose>
|
6597
6399
|
<xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
|
6598
6400
|
|
6599
|
-
|
6600
|
-
|
6601
|
-
|
6602
|
-
|
6603
|
-
|
6604
|
-
|
6605
|
-
</xsl:
|
6606
|
-
|
6607
|
-
|
6608
|
-
|
6609
|
-
|
6610
|
-
|
6611
|
-
|
6612
|
-
|
6401
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
6402
|
+
|
6403
|
+
<xsl:variable name="title-where">
|
6404
|
+
<xsl:call-template name="getLocalizedString">
|
6405
|
+
<xsl:with-param name="key">where</xsl:with-param>
|
6406
|
+
</xsl:call-template>
|
6407
|
+
</xsl:variable>
|
6408
|
+
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
6409
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
6410
|
+
<xsl:text/>
|
6411
|
+
<xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
|
6412
|
+
</fo:block>
|
6413
|
+
|
6613
6414
|
</xsl:when>
|
6614
6415
|
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
6615
6416
|
<fo:block margin-bottom="12pt" text-align="left">
|
@@ -6656,9 +6457,7 @@
|
|
6656
6457
|
<fo:table width="95%" table-layout="fixed">
|
6657
6458
|
|
6658
6459
|
<xsl:choose>
|
6659
|
-
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"
|
6660
|
-
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
6661
|
-
</xsl:when>
|
6460
|
+
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"/>
|
6662
6461
|
<xsl:when test="normalize-space($key_iso) = 'true'">
|
6663
6462
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
6664
6463
|
|
@@ -6679,12 +6478,9 @@
|
|
6679
6478
|
</xsl:otherwise>
|
6680
6479
|
</xsl:choose>
|
6681
6480
|
</xsl:variable>
|
6682
|
-
|
6683
|
-
|
6684
|
-
|
6685
|
-
<xsl:apply-templates mode="dl"/>
|
6686
|
-
</tbody>
|
6687
|
-
<!-- </xsl:element> -->
|
6481
|
+
<tbody>
|
6482
|
+
<xsl:apply-templates mode="dl"/>
|
6483
|
+
</tbody>
|
6688
6484
|
</xsl:variable>
|
6689
6485
|
<!-- html-table<xsl:copy-of select="$html-table"/> -->
|
6690
6486
|
<xsl:variable name="colwidths">
|
@@ -6764,8 +6560,6 @@
|
|
6764
6560
|
</xsl:for-each>
|
6765
6561
|
</xsl:otherwise>
|
6766
6562
|
</xsl:choose>
|
6767
|
-
<!-- <fo:table-column column-width="15%"/>
|
6768
|
-
<fo:table-column column-width="85%"/> -->
|
6769
6563
|
</xsl:otherwise>
|
6770
6564
|
</xsl:choose>
|
6771
6565
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
@@ -6780,12 +6574,6 @@
|
|
6780
6574
|
</xsl:for-each>
|
6781
6575
|
</xsl:variable>
|
6782
6576
|
<xsl:variable name="maxLength">
|
6783
|
-
<!-- <xsl:for-each select="*[local-name()='dt']">
|
6784
|
-
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
6785
|
-
<xsl:if test="position() = 1">
|
6786
|
-
<xsl:value-of select="string-length(normalize-space(.))"/>
|
6787
|
-
</xsl:if>
|
6788
|
-
</xsl:for-each> -->
|
6789
6577
|
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
6790
6578
|
<xsl:sort select="." data-type="number" order="descending"/>
|
6791
6579
|
<xsl:if test="position() = 1">
|
@@ -6827,9 +6615,8 @@
|
|
6827
6615
|
</td>
|
6828
6616
|
<td>
|
6829
6617
|
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6618
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
6619
|
+
|
6833
6620
|
</td>
|
6834
6621
|
</tr>
|
6835
6622
|
|
@@ -6860,46 +6647,16 @@
|
|
6860
6647
|
|
6861
6648
|
|
6862
6649
|
<xsl:apply-templates/>
|
6863
|
-
<!-- <xsl:if test="$namespace = 'gb'">
|
6864
|
-
<xsl:if test="ancestor::*[local-name()='formula']">
|
6865
|
-
<xsl:text>—</xsl:text>
|
6866
|
-
</xsl:if>
|
6867
|
-
</xsl:if> -->
|
6868
6650
|
</fo:block>
|
6869
6651
|
</fo:table-cell>
|
6870
6652
|
<fo:table-cell>
|
6871
6653
|
<fo:block>
|
6872
6654
|
|
6873
|
-
|
6874
|
-
|
6875
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
6876
|
-
</xsl:if>
|
6877
|
-
</xsl:if> -->
|
6878
|
-
|
6879
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
6880
|
-
|
6655
|
+
|
6656
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
6881
6657
|
</fo:block>
|
6882
6658
|
</fo:table-cell>
|
6883
6659
|
</fo:table-row>
|
6884
|
-
<!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
6885
|
-
<xsl:if test="local-name(*[1]) = 'stem'">
|
6886
|
-
<fo:table-row>
|
6887
|
-
<fo:table-cell>
|
6888
|
-
<fo:block margin-top="6pt">
|
6889
|
-
<xsl:if test="normalize-space($key_iso) = 'true'">
|
6890
|
-
<xsl:attribute name="margin-top">0</xsl:attribute>
|
6891
|
-
</xsl:if>
|
6892
|
-
<xsl:text> </xsl:text>
|
6893
|
-
</fo:block>
|
6894
|
-
</fo:table-cell>
|
6895
|
-
<fo:table-cell>
|
6896
|
-
<fo:block>
|
6897
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
6898
|
-
</fo:block>
|
6899
|
-
</fo:table-cell>
|
6900
|
-
</fo:table-row>
|
6901
|
-
</xsl:if>
|
6902
|
-
</xsl:if> -->
|
6903
6660
|
</xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
|
6904
6661
|
<xsl:apply-templates/>
|
6905
6662
|
</xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
|
@@ -7015,8 +6772,6 @@
|
|
7015
6772
|
<xsl:variable name="add_width" select="string-length($value) * 20"/>
|
7016
6773
|
<xsl:variable name="maxwidth" select="60 + $add_width"/>
|
7017
6774
|
<fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-20%"><!-- alignment-baseline="middle" -->
|
7018
|
-
<!-- <xsl:attribute name="width">7mm</xsl:attribute>
|
7019
|
-
<xsl:attribute name="content-height">100%</xsl:attribute> -->
|
7020
6775
|
<xsl:attribute name="height">5mm</xsl:attribute>
|
7021
6776
|
<xsl:attribute name="content-width">100%</xsl:attribute>
|
7022
6777
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
@@ -7234,14 +6989,6 @@
|
|
7234
6989
|
|
7235
6990
|
<xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
|
7236
6991
|
|
7237
|
-
<!-- <xsl:choose>
|
7238
|
-
<xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
|
7239
|
-
|
7240
|
-
</xsl:when>
|
7241
|
-
<xsl:otherwise>
|
7242
|
-
<xsl:copy-of select="current()"/>
|
7243
|
-
</xsl:otherwise>
|
7244
|
-
</xsl:choose> -->
|
7245
6992
|
</xsl:variable>
|
7246
6993
|
<xsl:copy-of select="$simple-table"/>
|
7247
6994
|
</xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
|
@@ -7360,8 +7107,6 @@
|
|
7360
7107
|
<xsl:choose>
|
7361
7108
|
<xsl:when test="contains($str2, ' ')">
|
7362
7109
|
<xsl:variable name="substr" select="substring-before($str2, ' ')"/>
|
7363
|
-
<!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
|
7364
|
-
<xsl:value-of select="substring($substr, 2)"/> -->
|
7365
7110
|
<xsl:call-template name="capitalize">
|
7366
7111
|
<xsl:with-param name="str" select="$substr"/>
|
7367
7112
|
</xsl:call-template>
|
@@ -7371,8 +7116,6 @@
|
|
7371
7116
|
</xsl:call-template>
|
7372
7117
|
</xsl:when>
|
7373
7118
|
<xsl:otherwise>
|
7374
|
-
<!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
|
7375
|
-
<xsl:value-of select="substring($str2, 2)"/> -->
|
7376
7119
|
<xsl:call-template name="capitalize">
|
7377
7120
|
<xsl:with-param name="str" select="$str2"/>
|
7378
7121
|
</xsl:call-template>
|
@@ -7419,12 +7162,10 @@
|
|
7419
7162
|
<xsl:if test="$add_math_as_text = 'true'">
|
7420
7163
|
<!-- <xsl:variable name="comment_text" select="following-sibling::node()[1][self::comment()]"/> -->
|
7421
7164
|
<xsl:variable name="comment_text" select="normalize-space(translate(.,' ',' '))"/>
|
7422
|
-
<!-- <xsl:variable name="comment_text" select="normalize-space(.)"/> -->
|
7423
7165
|
<xsl:if test="normalize-space($comment_text) != ''">
|
7424
7166
|
<!-- put Mathin Alternate Text -->
|
7425
7167
|
<xsl:attribute name="fox:alt-text">
|
7426
7168
|
<xsl:value-of select="java:org.metanorma.fop.Util.unescape($comment_text)"/>
|
7427
|
-
<!-- <xsl:value-of select="$comment_text"/> -->
|
7428
7169
|
</xsl:attribute>
|
7429
7170
|
</xsl:if>
|
7430
7171
|
</xsl:if>
|
@@ -7459,7 +7200,6 @@
|
|
7459
7200
|
</xsl:attribute>
|
7460
7201
|
|
7461
7202
|
|
7462
|
-
<!-- <xsl:copy-of select="."/> -->
|
7463
7203
|
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
7464
7204
|
</fo:instream-foreign-object>
|
7465
7205
|
</fo:inline>
|
@@ -7621,36 +7361,33 @@
|
|
7621
7361
|
</xsl:if>
|
7622
7362
|
|
7623
7363
|
<fo:block-container margin-left="0mm">
|
7364
|
+
|
7624
7365
|
|
7625
7366
|
|
7626
7367
|
|
7368
|
+
|
7627
7369
|
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
|
7632
|
-
<fo:block>
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
<xsl:if test="@parent-type = 'quote'">
|
7638
|
-
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
7639
|
-
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
7640
|
-
<xsl:attribute name="line-height">130%</xsl:attribute>
|
7641
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
7642
|
-
</xsl:if>
|
7643
|
-
|
7644
|
-
|
7645
|
-
|
7646
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
7370
|
+
<fo:block>
|
7647
7371
|
|
7648
|
-
|
7649
|
-
|
7650
|
-
|
7651
|
-
|
7652
|
-
|
7653
|
-
|
7372
|
+
|
7373
|
+
|
7374
|
+
|
7375
|
+
<xsl:if test="@parent-type = 'quote'">
|
7376
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
7377
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
7378
|
+
<xsl:attribute name="line-height">130%</xsl:attribute>
|
7379
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
7380
|
+
</xsl:if>
|
7381
|
+
|
7382
|
+
|
7383
|
+
|
7384
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
7385
|
+
|
7386
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
7387
|
+
</fo:inline>
|
7388
|
+
<xsl:apply-templates/>
|
7389
|
+
</fo:block>
|
7390
|
+
|
7654
7391
|
</fo:block-container>
|
7655
7392
|
</fo:block-container>
|
7656
7393
|
|
@@ -7723,7 +7460,6 @@
|
|
7723
7460
|
<xsl:apply-templates/>
|
7724
7461
|
</fo:block>
|
7725
7462
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
7726
|
-
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
7727
7463
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
7728
7464
|
|
7729
7465
|
|
@@ -7739,9 +7475,6 @@
|
|
7739
7475
|
</xsl:variable>
|
7740
7476
|
<fo:inline role="H{$level}">
|
7741
7477
|
<xsl:apply-templates/>
|
7742
|
-
<!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
|
7743
|
-
<xsl:text>.</xsl:text>
|
7744
|
-
</xsl:if> -->
|
7745
7478
|
</fo:inline>
|
7746
7479
|
</xsl:if>
|
7747
7480
|
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
@@ -7768,7 +7501,8 @@
|
|
7768
7501
|
</xsl:for-each>
|
7769
7502
|
|
7770
7503
|
|
7771
|
-
|
7504
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
7505
|
+
|
7772
7506
|
|
7773
7507
|
</fo:block-container>
|
7774
7508
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
@@ -7882,9 +7616,7 @@
|
|
7882
7616
|
<xsl:variable name="bis" select="java:java.io.ByteArrayInputStream.new($fileContent)"/>
|
7883
7617
|
<xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($bis)"/>
|
7884
7618
|
<xsl:variable name="width" select="java:getWidth($bufferedImage)"/>
|
7885
|
-
<!-- width=<xsl:value-of select="$width"/> -->
|
7886
7619
|
<xsl:variable name="height" select="java:getHeight($bufferedImage)"/>
|
7887
|
-
<!-- height=<xsl:value-of select="$height"/> -->
|
7888
7620
|
<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">
|
7889
7621
|
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{@src}" height="{$height}" width="{$width}" style="overflow:visible;"/>
|
7890
7622
|
<xsl:call-template name="svg_cross">
|
@@ -8307,8 +8039,6 @@
|
|
8307
8039
|
|
8308
8040
|
|
8309
8041
|
|
8310
|
-
|
8311
|
-
|
8312
8042
|
</fo:bookmark-tree>
|
8313
8043
|
</xsl:if>
|
8314
8044
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -8409,12 +8139,6 @@
|
|
8409
8139
|
<!-- <xsl:text> </xsl:text> -->
|
8410
8140
|
</xsl:template><xsl:template name="getSection">
|
8411
8141
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
8412
|
-
<!--
|
8413
|
-
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
8414
|
-
<xsl:value-of select="."/>
|
8415
|
-
</xsl:for-each>
|
8416
|
-
-->
|
8417
|
-
|
8418
8142
|
</xsl:template><xsl:template name="getName">
|
8419
8143
|
<xsl:choose>
|
8420
8144
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -8549,7 +8273,7 @@
|
|
8549
8273
|
</fo:block>
|
8550
8274
|
|
8551
8275
|
|
8552
|
-
|
8276
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
8553
8277
|
|
8554
8278
|
|
8555
8279
|
|
@@ -8672,8 +8396,6 @@
|
|
8672
8396
|
</xsl:variable>
|
8673
8397
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
8674
8398
|
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
8675
|
-
<!-- <fo:table-column column-width="35mm"/>
|
8676
|
-
<fo:table-column column-width="115mm"/> -->
|
8677
8399
|
<fo:table-column column-width="30%"/>
|
8678
8400
|
<fo:table-column column-width="70%"/>
|
8679
8401
|
</xsl:if>
|
@@ -8700,7 +8422,6 @@
|
|
8700
8422
|
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
8701
8423
|
<fo:table-row height="7mm" border-bottom="0.5pt solid grey">
|
8702
8424
|
<xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
|
8703
|
-
<!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
|
8704
8425
|
<xsl:attribute name="background-color">rgb(33, 55, 92)</xsl:attribute>
|
8705
8426
|
</xsl:if>
|
8706
8427
|
<xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
|
@@ -8733,15 +8454,6 @@
|
|
8733
8454
|
</xsl:if>
|
8734
8455
|
<xsl:call-template name="display-align"/>
|
8735
8456
|
|
8736
|
-
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
8737
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
8738
|
-
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
8739
|
-
</xsl:if>
|
8740
|
-
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
8741
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
8742
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
8743
|
-
</xsl:if> -->
|
8744
|
-
|
8745
8457
|
<fo:block>
|
8746
8458
|
<xsl:apply-templates/>
|
8747
8459
|
</fo:block>
|
@@ -8775,15 +8487,6 @@
|
|
8775
8487
|
</xsl:if>
|
8776
8488
|
<xsl:call-template name="display-align"/>
|
8777
8489
|
|
8778
|
-
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
8779
|
-
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
8780
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
8781
|
-
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
|
8782
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
8783
|
-
</xsl:if>
|
8784
|
-
</xsl:if> -->
|
8785
|
-
<!-- 2nd line and below -->
|
8786
|
-
|
8787
8490
|
<fo:block>
|
8788
8491
|
<xsl:apply-templates/>
|
8789
8492
|
</fo:block>
|
@@ -8794,7 +8497,7 @@
|
|
8794
8497
|
<xsl:apply-templates/>
|
8795
8498
|
</fo:block>
|
8796
8499
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
8797
|
-
<fo:block>
|
8500
|
+
<fo:block>
|
8798
8501
|
<xsl:apply-templates/>
|
8799
8502
|
</fo:block>
|
8800
8503
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
@@ -8985,7 +8688,6 @@
|
|
8985
8688
|
<fo:block-container margin-left="0mm">
|
8986
8689
|
|
8987
8690
|
<fo:block xsl:use-attribute-sets="quote-style">
|
8988
|
-
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
8989
8691
|
|
8990
8692
|
<xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
8991
8693
|
</fo:block>
|
@@ -9031,12 +8733,10 @@
|
|
9031
8733
|
<xsl:when test="normalize-space($bibitemid) != ''">
|
9032
8734
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
9033
8735
|
<xsl:if test="@type = 'footnote'">
|
9034
|
-
|
9035
|
-
|
9036
|
-
|
9037
|
-
|
9038
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
9039
|
-
|
8736
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
8737
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
8738
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
8739
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
9040
8740
|
|
9041
8741
|
</xsl:if>
|
9042
8742
|
|
@@ -9120,7 +8820,6 @@
|
|
9120
8820
|
</xsl:choose>
|
9121
8821
|
</xsl:variable>
|
9122
8822
|
|
9123
|
-
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
9124
8823
|
|
9125
8824
|
<xsl:choose>
|
9126
8825
|
<xsl:when test="$lang = 'zh'">
|
@@ -9177,7 +8876,6 @@
|
|
9177
8876
|
<xsl:apply-templates/>
|
9178
8877
|
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
|
9179
8878
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
9180
|
-
<!-- <fo:block> </fo:block> -->
|
9181
8879
|
<fo:block/>
|
9182
8880
|
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
9183
8881
|
|
@@ -9539,9 +9237,7 @@
|
|
9539
9237
|
|
9540
9238
|
|
9541
9239
|
|
9542
|
-
<!-- end MPFD bibitem processing -->
|
9543
9240
|
|
9544
|
-
<!-- start M3D bibitem processing -->
|
9545
9241
|
|
9546
9242
|
|
9547
9243
|
|
@@ -9675,23 +9371,6 @@
|
|
9675
9371
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
9676
9372
|
<xsl:otherwise><!-- default value -->
|
9677
9373
|
3
|
9678
|
-
|
9679
|
-
|
9680
|
-
|
9681
|
-
|
9682
|
-
|
9683
|
-
|
9684
|
-
|
9685
|
-
|
9686
|
-
|
9687
|
-
|
9688
|
-
|
9689
|
-
|
9690
|
-
|
9691
|
-
|
9692
|
-
|
9693
|
-
|
9694
|
-
|
9695
9374
|
</xsl:otherwise>
|
9696
9375
|
</xsl:choose>
|
9697
9376
|
</xsl:variable><xsl:template match="*[local-name() = 'toc']">
|
@@ -9921,13 +9600,8 @@
|
|
9921
9600
|
<xsl:variable name="title">
|
9922
9601
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
9923
9602
|
|
9924
|
-
|
9925
|
-
|
9926
|
-
|
9927
|
-
|
9928
|
-
|
9929
|
-
|
9930
|
-
|
9603
|
+
<xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
|
9604
|
+
|
9931
9605
|
</xsl:for-each>
|
9932
9606
|
</xsl:variable>
|
9933
9607
|
<xsl:choose>
|
@@ -9942,21 +9616,18 @@
|
|
9942
9616
|
<dc:creator>
|
9943
9617
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
9944
9618
|
|
9945
|
-
|
9946
|
-
|
9947
|
-
|
9948
|
-
|
9949
|
-
|
9950
|
-
|
9951
|
-
|
9619
|
+
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
|
9620
|
+
<xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
|
9621
|
+
<xsl:if test="position() != last()">; </xsl:if>
|
9622
|
+
</xsl:for-each>
|
9623
|
+
|
9952
9624
|
</xsl:for-each>
|
9953
9625
|
</dc:creator>
|
9954
9626
|
<dc:description>
|
9955
9627
|
<xsl:variable name="abstract">
|
9956
9628
|
|
9957
|
-
|
9958
|
-
|
9959
|
-
|
9629
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
|
9630
|
+
|
9960
9631
|
</xsl:variable>
|
9961
9632
|
<xsl:value-of select="normalize-space($abstract)"/>
|
9962
9633
|
</dc:description>
|
@@ -9976,7 +9647,6 @@
|
|
9976
9647
|
<xsl:value-of select="../@id"/>
|
9977
9648
|
</xsl:when>
|
9978
9649
|
<xsl:otherwise>
|
9979
|
-
<!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
|
9980
9650
|
<xsl:value-of select="concat(generate-id(..), '_', text())"/>
|
9981
9651
|
</xsl:otherwise>
|
9982
9652
|
</xsl:choose>
|
@@ -10002,9 +9672,6 @@
|
|
10002
9672
|
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
10003
9673
|
<xsl:value-of select="$level_total - 2"/>
|
10004
9674
|
</xsl:when>
|
10005
|
-
<!-- <xsl:when test="parent::*[local-name() = 'sections']">
|
10006
|
-
<xsl:value-of select="$level_total - 1"/>
|
10007
|
-
</xsl:when> -->
|
10008
9675
|
<xsl:when test="ancestor::*[local-name() = 'sections']">
|
10009
9676
|
<xsl:value-of select="$level_total - 1"/>
|
10010
9677
|
</xsl:when>
|
@@ -10217,7 +9884,6 @@
|
|
10217
9884
|
<xsl:if test="local-name() = 'table'">
|
10218
9885
|
<xsl:attribute name="background-color">rgb(255, 185, 185)</xsl:attribute>
|
10219
9886
|
</xsl:if>
|
10220
|
-
<!-- <xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute> -->
|
10221
9887
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
10222
9888
|
</xsl:if>
|
10223
9889
|
</xsl:otherwise>
|