metanorma-m3aawg 1.8.3 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -32
- data/.gitignore +11 -0
- data/bin/console +1 -1
- data/lib/isodoc/m3aawg/html/htmlstyle.css +36 -23
- data/lib/isodoc/m3aawg/html/htmlstyle.scss +14 -9
- data/lib/isodoc/m3aawg/html/scripts.html +0 -1
- data/lib/isodoc/m3aawg/html/wordstyle.css +30 -18
- data/lib/isodoc/m3aawg/html/wordstyle.scss +30 -18
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +1554 -1275
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +1554 -1275
- data/lib/{asciidoctor → metanorma}/m3aawg/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/m3aawg/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/m3aawg/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/m3aawg/converter.rb +18 -14
- data/lib/{asciidoctor → metanorma}/m3aawg/isodoc.rng +20 -2
- data/lib/{asciidoctor → metanorma}/m3aawg/m3d.rng +0 -0
- data/lib/{asciidoctor → metanorma}/m3aawg/reqt.rng +0 -0
- data/lib/metanorma/m3aawg/version.rb +1 -1
- data/lib/metanorma-m3aawg.rb +1 -1
- data/metanorma-m3d.gemspec +1 -1
- data/metanorma.yml +1 -1
- metadata +12 -13
- data/lib/asciidoctor/m3aawg.rb +0 -5
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
<xsl:key name="kfn" match="
|
12
|
+
<xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" use="@reference"/>
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<xsl:template match="/">
|
41
41
|
<xsl:call-template name="namespaceCheck"/>
|
42
|
-
<fo:root
|
42
|
+
<fo:root xsl:use-attribute-sets="root-style" xml:lang="{$lang}">
|
43
43
|
<fo:layout-master-set>
|
44
44
|
|
45
45
|
<!-- cover page -->
|
@@ -346,11 +346,7 @@
|
|
346
346
|
<!-- ============================= -->
|
347
347
|
<!-- CONTENTS -->
|
348
348
|
<!-- ============================= -->
|
349
|
-
|
350
|
-
<xsl:apply-templates mode="contents"/>
|
351
|
-
</xsl:template>
|
352
|
-
|
353
|
-
|
349
|
+
|
354
350
|
<!-- element with title -->
|
355
351
|
<xsl:template match="*[m3d:title]" mode="contents">
|
356
352
|
<xsl:variable name="level">
|
@@ -363,7 +359,7 @@
|
|
363
359
|
<xsl:choose>
|
364
360
|
<xsl:when test="ancestor-or-self::m3d:preface and $level >= 2">false</xsl:when>
|
365
361
|
<xsl:when test="ancestor::m3d:annex and $level >= 3">false</xsl:when>
|
366
|
-
<xsl:when test="$level <=
|
362
|
+
<xsl:when test="$level <= $toc_level">true</xsl:when>
|
367
363
|
<xsl:otherwise>false</xsl:otherwise>
|
368
364
|
</xsl:choose>
|
369
365
|
</xsl:variable>
|
@@ -403,7 +399,9 @@
|
|
403
399
|
|
404
400
|
<xsl:template name="getListItemFormat">
|
405
401
|
<xsl:choose>
|
406
|
-
<xsl:when test="local-name(..) = 'ul'"
|
402
|
+
<xsl:when test="local-name(..) = 'ul'">
|
403
|
+
<xsl:call-template name="setULLabel"/>
|
404
|
+
</xsl:when>
|
407
405
|
<xsl:otherwise> <!-- for ordered lists -->
|
408
406
|
<xsl:choose>
|
409
407
|
<xsl:when test="../@type = 'arabic'">
|
@@ -473,7 +471,7 @@
|
|
473
471
|
</xsl:template>
|
474
472
|
|
475
473
|
|
476
|
-
<xsl:template match="m3d:title">
|
474
|
+
<xsl:template match="m3d:title" name="title">
|
477
475
|
|
478
476
|
<xsl:variable name="level">
|
479
477
|
<xsl:call-template name="getLevel"/>
|
@@ -533,7 +531,7 @@
|
|
533
531
|
<!-- ====== -->
|
534
532
|
|
535
533
|
|
536
|
-
<xsl:template match="m3d:p">
|
534
|
+
<xsl:template match="m3d:p" name="paragraph">
|
537
535
|
<xsl:param name="inline" select="'false'"/>
|
538
536
|
<xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
|
539
537
|
<xsl:variable name="element-name">
|
@@ -586,113 +584,11 @@
|
|
586
584
|
|
587
585
|
</xsl:template>
|
588
586
|
|
589
|
-
<!--
|
590
|
-
<fn reference="1">
|
591
|
-
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
|
592
|
-
</fn>
|
593
|
-
-->
|
594
|
-
|
595
|
-
<xsl:variable name="p_fn">
|
596
|
-
<xsl:for-each select="//m3d:p/m3d:fn[generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
597
|
-
<!-- copy unique fn -->
|
598
|
-
<fn gen_id="{generate-id(.)}">
|
599
|
-
<xsl:copy-of select="@*"/>
|
600
|
-
<xsl:copy-of select="node()"/>
|
601
|
-
</fn>
|
602
|
-
</xsl:for-each>
|
603
|
-
</xsl:variable>
|
604
|
-
|
605
|
-
<xsl:template match="m3d:p/m3d:fn" priority="2">
|
606
|
-
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
607
|
-
<xsl:variable name="reference" select="@reference"/>
|
608
|
-
<xsl:variable name="number">
|
609
|
-
<xsl:value-of select="count(xalan:nodeset($p_fn)//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
|
610
|
-
</xsl:variable>
|
611
|
-
<xsl:choose>
|
612
|
-
<xsl:when test="xalan:nodeset($p_fn)//fn[@gen_id = $gen_id]">
|
613
|
-
<fo:footnote>
|
614
|
-
<fo:inline font-size="7pt" keep-with-previous.within-line="always" vertical-align="super">
|
615
|
-
<fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
|
616
|
-
<!-- <xsl:value-of select="@reference"/> -->
|
617
|
-
<xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@normative='true' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
|
618
|
-
</fo:basic-link>
|
619
|
-
</fo:inline>
|
620
|
-
<fo:footnote-body>
|
621
|
-
<fo:block font-size="9pt" margin-bottom="12pt">
|
622
|
-
<fo:inline font-size="6pt" id="footnote_{@reference}_{$number}" keep-with-next.within-line="always" vertical-align="super" padding-right="1mm">
|
623
|
-
<xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@normative='true' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
|
624
|
-
</fo:inline>
|
625
|
-
<xsl:for-each select="m3d:p">
|
626
|
-
<xsl:apply-templates/>
|
627
|
-
</xsl:for-each>
|
628
|
-
</fo:block>
|
629
|
-
</fo:footnote-body>
|
630
|
-
</fo:footnote>
|
631
|
-
</xsl:when>
|
632
|
-
<xsl:otherwise>
|
633
|
-
<fo:inline font-size="7pt" keep-with-previous.within-line="always" vertical-align="super">
|
634
|
-
<fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
|
635
|
-
<xsl:value-of select="$number + count(//m3d:bibitem/m3d:note)"/>
|
636
|
-
</fo:basic-link>
|
637
|
-
</fo:inline>
|
638
|
-
</xsl:otherwise>
|
639
|
-
</xsl:choose>
|
640
|
-
</xsl:template>
|
641
|
-
|
642
587
|
<xsl:template match="m3d:p/m3d:fn/m3d:p">
|
643
588
|
<xsl:apply-templates/>
|
644
589
|
</xsl:template>
|
645
590
|
|
646
591
|
|
647
|
-
|
648
|
-
<xsl:template match="m3d:bibitem">
|
649
|
-
<fo:block id="{@id}" margin-bottom="12pt" text-indent="-11.7mm" margin-left="11.7mm"> <!-- 12 pt -->
|
650
|
-
<!-- m3d:docidentifier -->
|
651
|
-
<xsl:if test="m3d:docidentifier">
|
652
|
-
<xsl:choose>
|
653
|
-
<xsl:when test="m3d:docidentifier/@type = 'metanorma'"/>
|
654
|
-
<xsl:otherwise><fo:inline><xsl:value-of select="m3d:docidentifier"/></fo:inline></xsl:otherwise>
|
655
|
-
</xsl:choose>
|
656
|
-
</xsl:if>
|
657
|
-
<xsl:apply-templates select="m3d:note"/>
|
658
|
-
<xsl:if test="m3d:docidentifier">, </xsl:if>
|
659
|
-
<fo:inline font-style="italic">
|
660
|
-
<xsl:choose>
|
661
|
-
<xsl:when test="m3d:title[@type = 'main' and @language = 'en']">
|
662
|
-
<xsl:value-of select="m3d:title[@type = 'main' and @language = 'en']"/>
|
663
|
-
</xsl:when>
|
664
|
-
<xsl:otherwise>
|
665
|
-
<xsl:value-of select="m3d:title"/>
|
666
|
-
</xsl:otherwise>
|
667
|
-
</xsl:choose>
|
668
|
-
</fo:inline>
|
669
|
-
</fo:block>
|
670
|
-
</xsl:template>
|
671
|
-
|
672
|
-
|
673
|
-
<xsl:template match="m3d:bibitem/m3d:note" priority="2">
|
674
|
-
<fo:footnote>
|
675
|
-
<xsl:variable name="number">
|
676
|
-
<xsl:number level="any" count="m3d:bibitem/m3d:note"/>
|
677
|
-
</xsl:variable>
|
678
|
-
<fo:inline font-size="7pt" keep-with-previous.within-line="always" baseline-shift="30%">
|
679
|
-
<fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
|
680
|
-
<xsl:value-of select="$number"/>
|
681
|
-
</fo:basic-link>
|
682
|
-
</fo:inline>
|
683
|
-
<fo:footnote-body>
|
684
|
-
<fo:block font-size="9pt" margin-bottom="4pt" start-indent="0pt">
|
685
|
-
<fo:inline font-size="6pt" id="{generate-id()}" keep-with-next.within-line="always" baseline-shift="30%" padding-right="1mm"><!-- alignment-baseline="hanging" font-size="60%" -->
|
686
|
-
<xsl:value-of select="$number"/>
|
687
|
-
</fo:inline>
|
688
|
-
<xsl:apply-templates/>
|
689
|
-
</fo:block>
|
690
|
-
</fo:footnote-body>
|
691
|
-
</fo:footnote>
|
692
|
-
</xsl:template>
|
693
|
-
|
694
|
-
|
695
|
-
|
696
592
|
<xsl:template match="m3d:ul | m3d:ol" mode="ul_ol">
|
697
593
|
<fo:block-container margin-left="6mm">
|
698
594
|
<fo:block-container margin-left="0mm">
|
@@ -715,10 +611,6 @@
|
|
715
611
|
<fo:list-item id="{@id}">
|
716
612
|
<fo:list-item-label end-indent="label-end()">
|
717
613
|
<fo:block>
|
718
|
-
<xsl:if test="local-name(..) = 'ul'">
|
719
|
-
<xsl:attribute name="font-size">18pt</xsl:attribute>
|
720
|
-
<xsl:attribute name="margin-top">-0.5mm</xsl:attribute><!-- to vertical align big dot -->
|
721
|
-
</xsl:if>
|
722
614
|
<xsl:call-template name="getListItemFormat"/>
|
723
615
|
</fo:block>
|
724
616
|
</fo:list-item-label>
|
@@ -754,9 +646,9 @@
|
|
754
646
|
<fo:block-container margin-left="0mm" margin-top="4pt" line-height="125%">
|
755
647
|
<fo:block>
|
756
648
|
<fo:inline padding-right="1mm">
|
757
|
-
<xsl:apply-templates select="m3d:name"
|
649
|
+
<xsl:apply-templates select="m3d:name"/>
|
758
650
|
</fo:inline>
|
759
|
-
<xsl:apply-templates/>
|
651
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
760
652
|
</fo:block>
|
761
653
|
</fo:block-container>
|
762
654
|
</xsl:template>
|
@@ -769,73 +661,6 @@
|
|
769
661
|
|
770
662
|
|
771
663
|
|
772
|
-
<!-- <xsl:template match="m3d:references[@id = '_bibliography']"> -->
|
773
|
-
<xsl:template match="m3d:references[not(@normative='true')]">
|
774
|
-
<fo:block break-after="page"/>
|
775
|
-
<fo:block id="{@id}">
|
776
|
-
<xsl:apply-templates/>
|
777
|
-
</fo:block>
|
778
|
-
<fo:block-container text-align="center">
|
779
|
-
<fo:block-container margin-left="63mm" width="42mm" border-bottom="2pt solid black">
|
780
|
-
<fo:block> </fo:block>
|
781
|
-
</fo:block-container>
|
782
|
-
</fo:block-container>
|
783
|
-
</xsl:template>
|
784
|
-
|
785
|
-
|
786
|
-
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
787
|
-
<!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem"> -->
|
788
|
-
<xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem">
|
789
|
-
<fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm">
|
790
|
-
<fo:list-item>
|
791
|
-
<fo:list-item-label end-indent="label-end()">
|
792
|
-
<fo:block>
|
793
|
-
<fo:inline id="{@id}">
|
794
|
-
<xsl:number format="[1]"/>
|
795
|
-
</fo:inline>
|
796
|
-
</fo:block>
|
797
|
-
</fo:list-item-label>
|
798
|
-
<fo:list-item-body start-indent="body-start()">
|
799
|
-
<fo:block text-align="justify">
|
800
|
-
<xsl:variable name="docidentifier">
|
801
|
-
<xsl:if test="m3d:docidentifier">
|
802
|
-
<xsl:choose>
|
803
|
-
<xsl:when test="m3d:docidentifier/@type = 'metanorma'"/>
|
804
|
-
<xsl:otherwise><xsl:value-of select="m3d:docidentifier"/></xsl:otherwise>
|
805
|
-
</xsl:choose>
|
806
|
-
</xsl:if>
|
807
|
-
</xsl:variable>
|
808
|
-
<fo:inline><xsl:value-of select="$docidentifier"/></fo:inline>
|
809
|
-
<xsl:apply-templates select="m3d:note"/>
|
810
|
-
<xsl:if test="normalize-space($docidentifier) != ''">, </xsl:if>
|
811
|
-
<xsl:choose>
|
812
|
-
<xsl:when test="m3d:title[@type = 'main' and @language = 'en']">
|
813
|
-
<xsl:apply-templates select="m3d:title[@type = 'main' and @language = 'en']"/>
|
814
|
-
</xsl:when>
|
815
|
-
<xsl:otherwise>
|
816
|
-
<xsl:apply-templates select="m3d:title"/>
|
817
|
-
</xsl:otherwise>
|
818
|
-
</xsl:choose>
|
819
|
-
<xsl:apply-templates select="m3d:formattedref"/>
|
820
|
-
</fo:block>
|
821
|
-
</fo:list-item-body>
|
822
|
-
</fo:list-item>
|
823
|
-
</fo:list-block>
|
824
|
-
</xsl:template>
|
825
|
-
|
826
|
-
<!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem" mode="contents"/> -->
|
827
|
-
<xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem" mode="contents"/>
|
828
|
-
|
829
|
-
<!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem/m3d:title"> -->
|
830
|
-
<xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem/m3d:title">
|
831
|
-
<fo:inline font-style="italic">
|
832
|
-
<xsl:apply-templates/>
|
833
|
-
</fo:inline>
|
834
|
-
</xsl:template>
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
664
|
<xsl:template match="mathml:math" priority="2">
|
840
665
|
<fo:inline font-family="Cambria Math">
|
841
666
|
<xsl:variable name="mathml">
|
@@ -847,31 +672,7 @@
|
|
847
672
|
</fo:instream-foreign-object>
|
848
673
|
</fo:inline>
|
849
674
|
</xsl:template>
|
850
|
-
|
851
|
-
|
852
|
-
<!-- <xsl:template match="m3d:note/m3d:p" name="note">
|
853
|
-
<fo:block-container margin-left="0mm" margin-top="4pt" line-height="125%">
|
854
|
-
<fo:block>
|
855
|
-
<fo:inline >
|
856
|
-
<xsl:apply-templates select="../m3d:name" mode="presentation">
|
857
|
-
<xsl:with-param name="sfx" select="':'"/>
|
858
|
-
</xsl:apply-templates>
|
859
|
-
</fo:inline>
|
860
|
-
<xsl:apply-templates />
|
861
|
-
</fo:block>
|
862
|
-
</fo:block-container>
|
863
|
-
</xsl:template> -->
|
864
675
|
|
865
|
-
|
866
|
-
|
867
|
-
<xsl:template match="m3d:admonition">
|
868
|
-
<fo:block text-align="center" margin-bottom="12pt" font-weight="bold">
|
869
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(@type))"/>
|
870
|
-
</fo:block>
|
871
|
-
<fo:block font-weight="bold">
|
872
|
-
<xsl:apply-templates/>
|
873
|
-
</fo:block>
|
874
|
-
</xsl:template>
|
875
676
|
|
876
677
|
|
877
678
|
<xsl:template match="m3d:formula/m3d:stem">
|
@@ -888,7 +689,7 @@
|
|
888
689
|
</fo:table-cell>
|
889
690
|
<fo:table-cell display-align="center">
|
890
691
|
<fo:block text-align="left">
|
891
|
-
<xsl:apply-templates select="../m3d:name" mode="
|
692
|
+
<xsl:apply-templates select="../m3d:name" mode="formula_number"/>
|
892
693
|
</fo:block>
|
893
694
|
</fo:table-cell>
|
894
695
|
</fo:table-row>
|
@@ -902,29 +703,19 @@
|
|
902
703
|
<xsl:text>iVBORw0KGgoAAAANSUhEUgAAAjUAAAA8CAYAAACehUt5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA99pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ1dWlkOmZhZjViZGQ1LWJhM2QtMTFkYS1hZDMxLWQzM2Q3NTE4MmYxYiIgeG1wTU06RG9jdW1lbnRJRD0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vSewQplRk4CGffKrpLu4WsU2xFMqfgTkuIS+hrErAGQ7eV+RpBtsgMaRI0eOqpNswmSFMlscf1yDdZ5rqVfsk3NFkMJL4HkmbZYabCMMUYsM4wNDz3VFkKzUrNShVr7FUOZ9NShw35f64SwWk60P1I2fJiwW9gDQlGR1cGTSNv0gbYKhLrYvh9WWD5peZ3C5fFLqB3dI7HfDm2YPzqkkhzFChQ+bC2gOAdpwAOpSxzYdOXJUW8m8/VQPKGr7yVHdJbgdKy+GwcowwKvGOsCgFnZZy2jfUtv7DMAXtgDYy4dHFM5Yakzw/AsXBTBqhR3AXAaFzOI7nKfc9pMjR44KTNh+cmc/OaqTRBCxpIbrgO2dVXWoz6DF+ZLJkSNHjuodOZduR44cOXLkyJEDNY4cOXLkyJEjR7WF/O2nDbnvXd9oIzfEjhw5cuTI0W8L1CAA0DauOxw5clQA6khe84PrCkeOHBWS/l+AAQACYD7v73Ou8wAAAABJRU5ErkJggg==</xsl:text>
|
903
704
|
</xsl:variable>
|
904
705
|
|
905
|
-
<xsl:variable name="
|
906
|
-
|
907
|
-
<title-annex lang="en">Annex </title-annex>
|
908
|
-
<title-annex lang="fr">Annexe </title-annex>
|
909
|
-
|
910
|
-
<title-annex lang="zh">Annex </title-annex>
|
911
|
-
|
912
|
-
|
706
|
+
<xsl:variable name="titles_">
|
913
707
|
|
914
708
|
<title-edition lang="en">
|
915
709
|
|
916
|
-
|
917
|
-
|
918
|
-
|
710
|
+
<xsl:text>Version</xsl:text>
|
711
|
+
|
919
712
|
</title-edition>
|
920
713
|
|
921
714
|
<title-edition lang="fr">
|
922
|
-
|
923
|
-
<xsl:text>Édition </xsl:text>
|
924
|
-
|
715
|
+
<xsl:text>Édition </xsl:text>
|
925
716
|
</title-edition>
|
926
717
|
|
927
|
-
|
718
|
+
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
928
719
|
<title-toc lang="en">
|
929
720
|
|
930
721
|
|
@@ -933,24 +724,13 @@
|
|
933
724
|
|
934
725
|
</title-toc>
|
935
726
|
<title-toc lang="fr">
|
727
|
+
<xsl:text>Sommaire</xsl:text>
|
728
|
+
</title-toc>
|
729
|
+
<title-toc lang="zh">
|
936
730
|
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
</title-toc>
|
941
|
-
|
942
|
-
<title-toc lang="zh">Contents</title-toc>
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
<title-page lang="en">Page</title-page>
|
947
|
-
<title-page lang="fr">Page</title-page>
|
948
|
-
|
949
|
-
<title-key lang="en">Key</title-key>
|
950
|
-
<title-key lang="fr">Légende</title-key>
|
951
|
-
|
952
|
-
<title-where lang="en">where</title-where>
|
953
|
-
<title-where lang="fr">où</title-where>
|
731
|
+
<xsl:text>Contents</xsl:text>
|
732
|
+
|
733
|
+
</title-toc>
|
954
734
|
|
955
735
|
<title-descriptors lang="en">Descriptors</title-descriptors>
|
956
736
|
|
@@ -966,32 +746,9 @@
|
|
966
746
|
</title-part>
|
967
747
|
<title-part lang="zh">第 # 部分:</title-part>
|
968
748
|
|
969
|
-
<title-subpart lang="en">
|
970
|
-
|
971
|
-
</title-subpart>
|
972
|
-
<title-subpart lang="fr">
|
973
|
-
|
974
|
-
</title-subpart>
|
975
|
-
|
976
|
-
<title-modified lang="en">modified</title-modified>
|
977
|
-
<title-modified lang="fr">modifiée</title-modified>
|
749
|
+
<title-subpart lang="en">Sub-part #</title-subpart>
|
750
|
+
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
978
751
|
|
979
|
-
<title-modified lang="zh">modified</title-modified>
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
<title-source lang="en">
|
984
|
-
|
985
|
-
<xsl:text>SOURCE</xsl:text>
|
986
|
-
|
987
|
-
|
988
|
-
</title-source>
|
989
|
-
|
990
|
-
<title-keywords lang="en">Keywords</title-keywords>
|
991
|
-
|
992
|
-
<title-deprecated lang="en">DEPRECATED</title-deprecated>
|
993
|
-
<title-deprecated lang="fr">DEPRECATED</title-deprecated>
|
994
|
-
|
995
752
|
<title-list-tables lang="en">List of Tables</title-list-tables>
|
996
753
|
|
997
754
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
@@ -1000,41 +757,12 @@
|
|
1000
757
|
|
1001
758
|
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
1002
759
|
|
1003
|
-
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
1004
|
-
|
1005
|
-
<title-abstract lang="en">Abstract</title-abstract>
|
1006
|
-
|
1007
760
|
<title-summary lang="en">Summary</title-summary>
|
1008
761
|
|
1009
|
-
<title-in lang="en">in </title-in>
|
1010
|
-
|
1011
|
-
<title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
|
1012
|
-
<title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
|
1013
|
-
|
1014
|
-
<title-completion-date lang="en">Completion date for this manuscript</title-completion-date>
|
1015
|
-
<title-completion-date lang="zh">本稿完成日期</title-completion-date>
|
1016
|
-
|
1017
|
-
<title-issuance-date lang="en">Issuance Date: #</title-issuance-date>
|
1018
|
-
<title-issuance-date lang="zh"># 发布</title-issuance-date>
|
1019
|
-
|
1020
|
-
<title-implementation-date lang="en">Implementation Date: #</title-implementation-date>
|
1021
|
-
<title-implementation-date lang="zh"># 实施</title-implementation-date>
|
1022
|
-
|
1023
|
-
<title-obligation-normative lang="en">normative</title-obligation-normative>
|
1024
|
-
<title-obligation-normative lang="zh">规范性附录</title-obligation-normative>
|
1025
|
-
|
1026
|
-
<title-caution lang="en">CAUTION</title-caution>
|
1027
|
-
<title-caution lang="zh">注意</title-caution>
|
1028
|
-
|
1029
|
-
<title-warning lang="en">WARNING</title-warning>
|
1030
|
-
<title-warning lang="zh">警告</title-warning>
|
1031
|
-
|
1032
|
-
<title-amendment lang="en">AMENDMENT</title-amendment>
|
1033
|
-
|
1034
762
|
<title-continued lang="en">(continued)</title-continued>
|
1035
763
|
<title-continued lang="fr">(continué)</title-continued>
|
1036
764
|
|
1037
|
-
</xsl:variable><xsl:variable name="bibdata">
|
765
|
+
</xsl:variable><xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="bibdata">
|
1038
766
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
1039
767
|
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
1040
768
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
@@ -1063,6 +791,23 @@
|
|
1063
791
|
</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="root-style">
|
1064
792
|
|
1065
793
|
|
794
|
+
|
795
|
+
|
796
|
+
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
<xsl:attribute name="font-family">EB Garamond 12</xsl:attribute>
|
803
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
|
1066
811
|
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
1067
812
|
|
1068
813
|
|
@@ -1072,6 +817,9 @@
|
|
1072
817
|
|
1073
818
|
|
1074
819
|
|
820
|
+
</xsl:attribute-set><xsl:attribute-set name="sourcecode-container-style">
|
821
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
822
|
+
|
1075
823
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
1076
824
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
1077
825
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -1082,12 +830,19 @@
|
|
1082
830
|
|
1083
831
|
|
1084
832
|
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
|
1085
838
|
<xsl:attribute name="font-family">Courier New</xsl:attribute>
|
1086
839
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1087
840
|
|
1088
841
|
|
1089
842
|
|
1090
843
|
|
844
|
+
|
845
|
+
|
1091
846
|
</xsl:attribute-set><xsl:attribute-set name="permission-style">
|
1092
847
|
|
1093
848
|
</xsl:attribute-set><xsl:attribute-set name="permission-name-style">
|
@@ -1134,6 +889,7 @@
|
|
1134
889
|
|
1135
890
|
|
1136
891
|
|
892
|
+
|
1137
893
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1138
894
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1139
895
|
|
@@ -1147,7 +903,9 @@
|
|
1147
903
|
|
1148
904
|
|
1149
905
|
|
906
|
+
|
1150
907
|
</xsl:attribute-set><xsl:attribute-set name="example-name-style">
|
908
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1151
909
|
|
1152
910
|
|
1153
911
|
|
@@ -1176,6 +934,7 @@
|
|
1176
934
|
|
1177
935
|
|
1178
936
|
|
937
|
+
|
1179
938
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1180
939
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1181
940
|
|
@@ -1197,288 +956,737 @@
|
|
1197
956
|
|
1198
957
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
1199
958
|
|
1200
|
-
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-
|
1201
|
-
<xsl:attribute name="
|
1202
|
-
|
959
|
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
960
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
961
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1203
962
|
|
1204
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1205
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
1206
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1207
963
|
|
1208
964
|
|
1209
965
|
|
1210
966
|
|
1211
|
-
|
1212
967
|
|
1213
968
|
|
1214
969
|
|
1215
|
-
|
1216
970
|
|
1217
971
|
|
1218
972
|
|
1219
973
|
|
1220
|
-
|
974
|
+
|
1221
975
|
|
1222
|
-
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1223
|
-
|
1224
|
-
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1225
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1226
|
-
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1227
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1228
976
|
|
1229
977
|
|
1230
978
|
|
1231
|
-
</xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
|
1232
979
|
|
1233
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1234
|
-
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1235
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1236
980
|
|
1237
981
|
|
982
|
+
|
1238
983
|
|
1239
|
-
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1240
984
|
|
985
|
+
</xsl:attribute-set><xsl:attribute-set name="table-style">
|
986
|
+
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
987
|
+
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
988
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
989
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1241
990
|
|
1242
991
|
|
1243
992
|
|
1244
993
|
|
1245
|
-
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
1246
994
|
|
1247
995
|
|
1248
996
|
|
1249
997
|
|
1250
998
|
|
1251
999
|
|
1252
|
-
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
1253
1000
|
|
1254
1001
|
|
1002
|
+
|
1255
1003
|
|
1256
1004
|
|
1257
|
-
|
1258
1005
|
|
1259
1006
|
|
1260
1007
|
|
1261
1008
|
|
1262
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1263
|
-
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1264
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1265
|
-
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1266
1009
|
|
1267
1010
|
|
1268
1011
|
|
1012
|
+
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1013
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1014
|
+
|
1269
1015
|
|
1016
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1017
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1018
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1270
1019
|
|
1271
1020
|
|
1272
1021
|
|
1273
1022
|
|
1274
|
-
|
1023
|
+
|
1275
1024
|
|
1276
1025
|
|
1277
1026
|
|
1027
|
+
|
1278
1028
|
|
1279
1029
|
|
1280
1030
|
|
1281
1031
|
|
1032
|
+
</xsl:attribute-set><xsl:attribute-set name="table-row-style">
|
1033
|
+
<xsl:attribute name="min-height">4mm</xsl:attribute>
|
1282
1034
|
|
1283
1035
|
|
1284
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
1285
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1286
1036
|
|
1287
1037
|
|
1038
|
+
</xsl:attribute-set><xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
|
1039
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1288
1040
|
|
1289
1041
|
|
1290
1042
|
|
1291
|
-
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1292
1043
|
|
1293
1044
|
|
1294
1045
|
|
1295
1046
|
|
1296
|
-
|
1047
|
+
|
1297
1048
|
|
1049
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
1298
1050
|
|
1299
1051
|
|
1300
|
-
|
1301
1052
|
|
1053
|
+
</xsl:attribute-set><xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
1054
|
+
|
1055
|
+
</xsl:attribute-set><xsl:attribute-set name="table-header-cell-style">
|
1056
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1057
|
+
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
1058
|
+
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1059
|
+
<xsl:attribute name="display-align">center</xsl:attribute>
|
1302
1060
|
|
1303
1061
|
|
1304
1062
|
|
1305
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1306
|
-
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1307
1063
|
|
1308
1064
|
|
1309
1065
|
|
1310
1066
|
|
1311
1067
|
|
1312
1068
|
|
1313
|
-
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
1314
1069
|
|
1315
1070
|
|
1316
1071
|
|
1317
1072
|
|
1073
|
+
</xsl:attribute-set><xsl:attribute-set name="table-cell-style">
|
1074
|
+
<xsl:attribute name="display-align">center</xsl:attribute>
|
1075
|
+
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
1076
|
+
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1318
1077
|
|
1319
1078
|
|
1320
1079
|
|
1321
|
-
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1322
1080
|
|
1323
|
-
|
1324
1081
|
|
1325
1082
|
|
1326
|
-
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1327
|
-
<xsl:attribute name="role">BlockQuote</xsl:attribute>
|
1328
1083
|
|
1329
1084
|
|
1330
|
-
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1331
|
-
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1332
|
-
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
1333
1085
|
|
1334
1086
|
|
1335
1087
|
|
1336
1088
|
|
1337
1089
|
|
1090
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
1091
|
+
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
1092
|
+
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1093
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1094
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1338
1095
|
|
1339
|
-
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1340
1096
|
|
1341
1097
|
|
1342
|
-
<xsl:attribute name="text-align">right</xsl:attribute>
|
1343
|
-
|
1344
|
-
|
1345
|
-
</xsl:attribute-set><xsl:attribute-set name="termsource-style">
|
1346
1098
|
|
1347
1099
|
|
1348
1100
|
|
1349
1101
|
|
1102
|
+
|
1350
1103
|
|
1351
1104
|
|
1352
1105
|
|
1353
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
1106
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-style">
|
1107
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1108
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
1118
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
1126
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1127
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
1143
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1144
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
1145
|
+
|
1146
|
+
|
1147
|
+
</xsl:attribute-set><xsl:attribute-set name="table-fn-body-style">
|
1148
|
+
|
1149
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-fn-number-style">
|
1150
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1151
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
1152
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1153
|
+
|
1154
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-fn-body-style">
|
1155
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1156
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1157
|
+
|
1158
|
+
</xsl:attribute-set><xsl:attribute-set name="dt-row-style">
|
1159
|
+
|
1160
|
+
|
1161
|
+
</xsl:attribute-set><xsl:attribute-set name="dt-style">
|
1162
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1174
|
+
|
1175
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1176
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1177
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1178
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
|
1183
|
+
|
1184
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1185
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1186
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
|
1195
|
+
|
1196
|
+
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
1197
|
+
|
1198
|
+
|
1199
|
+
|
1200
|
+
|
1201
|
+
|
1202
|
+
|
1203
|
+
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
|
1209
|
+
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1214
|
+
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1215
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1216
|
+
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1217
|
+
|
1218
|
+
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
</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">
|
1226
|
+
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
1233
|
+
|
1234
|
+
|
1235
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
1236
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1237
|
+
|
1238
|
+
|
1239
|
+
|
1240
|
+
|
1241
|
+
|
1242
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1243
|
+
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
1244
|
+
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
1248
|
+
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
|
1254
|
+
|
1255
|
+
|
1256
|
+
|
1257
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1258
|
+
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
1273
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
1278
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1279
|
+
<xsl:attribute name="role">BlockQuote</xsl:attribute>
|
1280
|
+
|
1281
|
+
|
1282
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1283
|
+
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1284
|
+
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1292
|
+
|
1293
|
+
|
1294
|
+
<xsl:attribute name="text-align">right</xsl:attribute>
|
1295
|
+
|
1296
|
+
|
1297
|
+
</xsl:attribute-set><xsl:attribute-set name="termsource-style">
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
|
1304
|
+
|
1305
|
+
</xsl:attribute-set><xsl:attribute-set name="termsource-text-style">
|
1306
|
+
|
1307
|
+
|
1308
|
+
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1309
|
+
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1314
|
+
|
1315
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-style">
|
1316
|
+
|
1317
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
1323
|
+
|
1324
|
+
|
1325
|
+
|
1326
|
+
|
1327
|
+
|
1328
|
+
|
1329
|
+
|
1330
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1331
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1332
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1333
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
|
1339
|
+
|
1340
|
+
|
1341
|
+
|
1342
|
+
|
1343
|
+
</xsl:attribute-set><xsl:attribute-set name="formula-style">
|
1344
|
+
|
1345
|
+
</xsl:attribute-set><xsl:attribute-set name="image-style">
|
1346
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1354
|
+
|
1355
|
+
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1356
|
+
|
1357
|
+
|
1358
|
+
|
1359
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
1360
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
1361
|
+
<xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
|
1362
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1363
|
+
|
1364
|
+
|
1365
|
+
|
1366
|
+
|
1367
|
+
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1368
|
+
|
1369
|
+
|
1370
|
+
<xsl:attribute name="font-family">Courier New</xsl:attribute>
|
1371
|
+
|
1372
|
+
|
1373
|
+
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
1374
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1375
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1376
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1377
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1378
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1379
|
+
|
1380
|
+
</xsl:attribute-set><xsl:attribute-set name="domain-style">
|
1381
|
+
|
1382
|
+
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
1383
|
+
|
1384
|
+
|
1385
|
+
|
1386
|
+
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1387
|
+
|
1388
|
+
|
1389
|
+
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1390
|
+
|
1391
|
+
|
1392
|
+
|
1393
|
+
</xsl:attribute-set><xsl:variable name="color-added-text">
|
1394
|
+
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
1395
|
+
</xsl:variable><xsl:attribute-set name="add-style">
|
1396
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
1397
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1398
|
+
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
1399
|
+
<xsl:attribute name="background-color"><xsl:value-of select="$color-added-text"/></xsl:attribute>
|
1400
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1401
|
+
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
1402
|
+
</xsl:attribute-set><xsl:variable name="color-deleted-text">
|
1403
|
+
<xsl:text>red</xsl:text>
|
1404
|
+
</xsl:variable><xsl:attribute-set name="del-style">
|
1405
|
+
<xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute>
|
1406
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
1407
|
+
</xsl:attribute-set><xsl:attribute-set name="mathml-style">
|
1408
|
+
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
1409
|
+
|
1410
|
+
|
1411
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
1412
|
+
|
1413
|
+
</xsl:attribute-set><xsl:attribute-set name="toc-style">
|
1414
|
+
<xsl:attribute name="line-height">135%</xsl:attribute>
|
1415
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-reference-style">
|
1416
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1417
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1418
|
+
|
1419
|
+
|
1420
|
+
|
1421
|
+
|
1422
|
+
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-style">
|
1427
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1428
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-num-style">
|
1429
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1430
|
+
|
1431
|
+
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
|
1438
|
+
|
1439
|
+
|
1440
|
+
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
1441
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1442
|
+
|
1443
|
+
|
1444
|
+
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
|
1449
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
1450
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1451
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
1452
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1453
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
1454
|
+
|
1455
|
+
|
1456
|
+
|
1457
|
+
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
1463
|
+
|
1464
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1465
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1466
|
+
|
1467
|
+
|
1468
|
+
|
1469
|
+
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
1476
|
+
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
1477
|
+
|
1478
|
+
|
1479
|
+
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
|
1485
|
+
|
1486
|
+
|
1487
|
+
<xsl:attribute name="font-size">6pt</xsl:attribute>
|
1488
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1489
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1490
|
+
|
1491
|
+
|
1492
|
+
|
1493
|
+
|
1494
|
+
|
1495
|
+
|
1496
|
+
|
1497
|
+
|
1498
|
+
</xsl:attribute-set><xsl:attribute-set name="admonition-style">
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
1503
|
+
|
1504
|
+
|
1505
|
+
|
1506
|
+
|
1507
|
+
|
1508
|
+
|
1509
|
+
|
1510
|
+
|
1511
|
+
|
1512
|
+
|
1513
|
+
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
1514
|
+
|
1515
|
+
|
1516
|
+
|
1517
|
+
|
1518
|
+
|
1519
|
+
|
1520
|
+
|
1521
|
+
|
1522
|
+
|
1523
|
+
|
1524
|
+
</xsl:attribute-set><xsl:attribute-set name="admonition-name-style">
|
1525
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1526
|
+
|
1527
|
+
|
1528
|
+
|
1529
|
+
|
1530
|
+
|
1531
|
+
|
1532
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1533
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1534
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1535
|
+
|
1536
|
+
|
1537
|
+
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1543
|
+
</xsl:attribute-set><xsl:attribute-set name="admonition-p-style">
|
1544
|
+
|
1545
|
+
|
1546
|
+
|
1547
|
+
|
1548
|
+
|
1549
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1550
|
+
|
1551
|
+
|
1552
|
+
|
1553
|
+
|
1554
|
+
|
1555
|
+
|
1556
|
+
|
1557
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
|
1558
|
+
|
1354
1559
|
|
1355
1560
|
|
1356
1561
|
|
1357
1562
|
|
1358
|
-
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1359
1563
|
|
1360
|
-
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1361
1564
|
|
1362
1565
|
|
1363
|
-
|
1364
1566
|
|
1365
1567
|
|
1366
1568
|
|
1569
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1570
|
+
<xsl:attribute name="text-indent">-11.7mm</xsl:attribute>
|
1571
|
+
<xsl:attribute name="margin-left">11.7mm</xsl:attribute>
|
1367
1572
|
|
1368
1573
|
|
1369
1574
|
|
1370
1575
|
|
1371
1576
|
|
1372
|
-
|
1373
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
1374
|
-
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1375
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1376
|
-
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1377
1577
|
|
1378
1578
|
|
1379
1579
|
|
1580
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-style">
|
1581
|
+
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
1582
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1380
1583
|
|
1381
|
-
|
1382
1584
|
|
1383
1585
|
|
1384
1586
|
|
1385
|
-
|
1386
|
-
</xsl:attribute-set><xsl:attribute-set name="formula-style">
|
1387
1587
|
|
1388
|
-
</xsl:attribute-set><xsl:attribute-set name="image-style">
|
1389
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
1390
1588
|
|
1391
1589
|
|
1392
1590
|
|
1393
1591
|
|
1394
1592
|
|
1395
1593
|
|
1396
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
1594
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-style">
|
1397
1595
|
|
1398
|
-
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1399
1596
|
|
1400
1597
|
|
1401
1598
|
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1599
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-style">
|
1600
|
+
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
1601
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1406
1602
|
|
1407
1603
|
|
1408
|
-
|
1409
|
-
|
1410
|
-
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1411
1604
|
|
1412
1605
|
|
1413
|
-
<xsl:attribute name="font-family">Courier New</xsl:attribute>
|
1414
1606
|
|
1415
1607
|
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1608
|
+
|
1609
|
+
|
1610
|
+
|
1611
|
+
|
1612
|
+
|
1613
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
1614
|
+
|
1615
|
+
|
1616
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
1617
|
+
|
1618
|
+
|
1619
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
|
1620
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1621
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
1622
|
+
|
1623
|
+
|
1624
|
+
|
1625
|
+
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
|
1632
|
+
|
1633
|
+
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
1634
|
+
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
1635
|
+
|
1636
|
+
|
1637
|
+
|
1638
|
+
|
1639
|
+
|
1640
|
+
|
1641
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-number-style">
|
1642
|
+
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
1643
|
+
|
1644
|
+
|
1645
|
+
|
1646
|
+
|
1647
|
+
|
1648
|
+
|
1649
|
+
|
1650
|
+
|
1651
|
+
|
1652
|
+
|
1653
|
+
|
1654
|
+
<xsl:attribute name="font-size">6pt</xsl:attribute>
|
1655
|
+
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
1656
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1657
|
+
|
1658
|
+
|
1659
|
+
|
1660
|
+
|
1661
|
+
|
1662
|
+
|
1663
|
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-body-style">
|
1664
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1420
1665
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1421
|
-
<xsl:attribute name="
|
1666
|
+
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
1422
1667
|
|
1423
|
-
</xsl:attribute-set><xsl:attribute-set name="domain-style">
|
1424
|
-
|
1425
|
-
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
1426
1668
|
|
1427
1669
|
|
1428
1670
|
|
1429
|
-
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1430
1671
|
|
1431
1672
|
|
1432
|
-
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1433
1673
|
|
1434
1674
|
|
1435
1675
|
|
1436
|
-
|
1437
|
-
|
1438
|
-
</xsl:variable><xsl:attribute-set name="add-style">
|
1439
|
-
<xsl:attribute name="color">red</xsl:attribute>
|
1440
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1441
|
-
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
1442
|
-
<xsl:attribute name="background-color"><xsl:value-of select="$color-added-text"/></xsl:attribute>
|
1443
|
-
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1444
|
-
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
1445
|
-
</xsl:attribute-set><xsl:variable name="color-deleted-text">
|
1446
|
-
<xsl:text>red</xsl:text>
|
1447
|
-
</xsl:variable><xsl:attribute-set name="del-style">
|
1448
|
-
<xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute>
|
1449
|
-
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
1450
|
-
</xsl:attribute-set><xsl:attribute-set name="mathml-style">
|
1451
|
-
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
1676
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1677
|
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
1452
1678
|
|
1453
1679
|
|
1454
|
-
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
1455
1680
|
|
1456
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
1462
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
1463
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
1464
|
-
</xsl:template><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1681
|
+
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
1682
|
+
|
1683
|
+
|
1684
|
+
|
1685
|
+
</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">
|
1465
1686
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
1466
1687
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1467
1688
|
<xsl:apply-templates select="." mode="contents"/>
|
1468
1689
|
</xsl:for-each>
|
1469
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault_Contents">
|
1470
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
1471
|
-
|
1472
|
-
<!-- Normative references -->
|
1473
|
-
<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"/>
|
1474
|
-
<!-- Terms and definitions -->
|
1475
|
-
<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"/>
|
1476
|
-
<!-- Another main sections -->
|
1477
|
-
<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"/>
|
1478
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
1479
|
-
<!-- Bibliography -->
|
1480
|
-
<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"/>
|
1481
|
-
|
1482
1690
|
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1483
1691
|
|
1484
1692
|
<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']]">
|
@@ -1495,33 +1703,11 @@
|
|
1495
1703
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1496
1704
|
<xsl:apply-templates select="." mode="contents"/>
|
1497
1705
|
</xsl:for-each>
|
1498
|
-
</xsl:template><xsl:template name="OLD_processPrefaceSectionsDefault">
|
1499
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
1500
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
1501
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
1502
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
1503
|
-
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
1504
1706
|
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
1505
1707
|
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
1506
1708
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1507
1709
|
<xsl:apply-templates select="."/>
|
1508
1710
|
</xsl:for-each>
|
1509
|
-
</xsl:template><xsl:template name="OLD_processMainSectionsDefault">
|
1510
|
-
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
1511
|
-
|
1512
|
-
<xsl:if test="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
1513
|
-
<fo:block break-after="page"/>
|
1514
|
-
</xsl:if>
|
1515
|
-
|
1516
|
-
<!-- Normative references -->
|
1517
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
1518
|
-
<!-- Terms and definitions -->
|
1519
|
-
<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']]"/>
|
1520
|
-
<!-- Another main sections -->
|
1521
|
-
<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'])]"/>
|
1522
|
-
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
1523
|
-
<!-- Bibliography -->
|
1524
|
-
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
1525
1711
|
</xsl:template><xsl:template name="processMainSectionsDefault">
|
1526
1712
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
1527
1713
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -1564,43 +1750,19 @@
|
|
1564
1750
|
<xsl:call-template name="getSimpleTable"/>
|
1565
1751
|
</xsl:variable>
|
1566
1752
|
|
1567
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
1568
|
-
<fo:block> </fo:block>
|
1569
|
-
</xsl:if> -->
|
1570
|
-
|
1571
1753
|
|
1572
1754
|
<!-- Display table's name before table as standalone block -->
|
1573
1755
|
<!-- $namespace = 'iso' or -->
|
1574
1756
|
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1757
|
+
<xsl:apply-templates select="*[local-name()='name']"/> <!-- table's title rendered before table -->
|
1758
|
+
|
1580
1759
|
|
1581
|
-
<xsl:call-template name="fn_name_display"/>
|
1582
1760
|
|
1761
|
+
<xsl:call-template name="table_name_fn_display"/>
|
1583
1762
|
|
1584
1763
|
|
1585
1764
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
|
1586
1765
|
|
1587
|
-
<!-- <xsl:variable name="cols-count">
|
1588
|
-
<xsl:choose>
|
1589
|
-
<xsl:when test="*[local-name()='thead']">
|
1590
|
-
<xsl:call-template name="calculate-columns-numbers">
|
1591
|
-
<xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
|
1592
|
-
</xsl:call-template>
|
1593
|
-
</xsl:when>
|
1594
|
-
<xsl:otherwise>
|
1595
|
-
<xsl:call-template name="calculate-columns-numbers">
|
1596
|
-
<xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
|
1597
|
-
</xsl:call-template>
|
1598
|
-
</xsl:otherwise>
|
1599
|
-
</xsl:choose>
|
1600
|
-
</xsl:variable> -->
|
1601
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
|
1602
|
-
<!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
|
1603
|
-
|
1604
1766
|
<xsl:variable name="colwidths">
|
1605
1767
|
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
1606
1768
|
<xsl:call-template name="calculate-column-widths">
|
@@ -1611,17 +1773,8 @@
|
|
1611
1773
|
</xsl:variable>
|
1612
1774
|
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
1613
1775
|
|
1614
|
-
<!-- <xsl:variable name="colwidths2">
|
1615
|
-
<xsl:call-template name="calculate-column-widths">
|
1616
|
-
<xsl:with-param name="cols-count" select="$cols-count"/>
|
1617
|
-
</xsl:call-template>
|
1618
|
-
</xsl:variable> -->
|
1619
|
-
|
1620
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/>
|
1621
|
-
colwidthsNew=<xsl:copy-of select="$colwidths"/>
|
1622
|
-
colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
|
1623
1776
|
|
1624
|
-
<xsl:variable name="margin-
|
1777
|
+
<xsl:variable name="margin-side">
|
1625
1778
|
<xsl:choose>
|
1626
1779
|
<xsl:when test="sum(xalan:nodeset($colwidths)//column) > 75">15</xsl:when>
|
1627
1780
|
<xsl:otherwise>0</xsl:otherwise>
|
@@ -1629,63 +1782,67 @@
|
|
1629
1782
|
</xsl:variable>
|
1630
1783
|
|
1631
1784
|
|
1632
|
-
<fo:block-container
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1785
|
+
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
1786
|
+
|
1639
1787
|
|
1788
|
+
<xsl:attribute name="margin-left"><xsl:value-of select="-$margin-side"/>mm</xsl:attribute>
|
1789
|
+
<xsl:attribute name="margin-right"><xsl:value-of select="-$margin-side"/>mm</xsl:attribute>
|
1640
1790
|
|
1641
|
-
|
1791
|
+
|
1642
1792
|
|
1793
|
+
|
1643
1794
|
|
1795
|
+
|
1644
1796
|
|
1645
1797
|
|
1646
1798
|
|
1799
|
+
|
1647
1800
|
|
1648
1801
|
|
1649
1802
|
|
1650
1803
|
|
1651
1804
|
|
1805
|
+
<!-- end table block-container attributes -->
|
1652
1806
|
|
1653
1807
|
<!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
|
1654
1808
|
|
1655
1809
|
|
1810
|
+
<xsl:variable name="table_width_default">100%</xsl:variable>
|
1656
1811
|
<xsl:variable name="table_width">
|
1657
1812
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1813
|
+
<xsl:value-of select="$table_width_default"/>
|
1661
1814
|
</xsl:variable>
|
1662
1815
|
|
1816
|
+
|
1663
1817
|
<xsl:variable name="table_attributes">
|
1664
|
-
|
1665
|
-
<
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1818
|
+
|
1819
|
+
<xsl:element name="table_attributes" use-attribute-sets="table-style">
|
1820
|
+
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
1821
|
+
|
1822
|
+
|
1823
|
+
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
1824
|
+
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
1825
|
+
|
1826
|
+
|
1827
|
+
|
1828
|
+
|
1829
|
+
|
1830
|
+
|
1831
|
+
|
1832
|
+
|
1833
|
+
|
1834
|
+
|
1835
|
+
|
1836
|
+
|
1837
|
+
|
1838
|
+
</xsl:element>
|
1682
1839
|
</xsl:variable>
|
1683
1840
|
|
1684
1841
|
|
1685
|
-
<fo:table id="{@id}"
|
1842
|
+
<fo:table id="{@id}">
|
1686
1843
|
|
1687
|
-
<xsl:for-each select="xalan:nodeset($table_attributes)/
|
1688
|
-
<xsl:attribute name="{
|
1844
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
1845
|
+
<xsl:attribute name="{local-name()}">
|
1689
1846
|
<xsl:value-of select="."/>
|
1690
1847
|
</xsl:attribute>
|
1691
1848
|
</xsl:for-each>
|
@@ -1696,7 +1853,6 @@
|
|
1696
1853
|
</xsl:if>
|
1697
1854
|
|
1698
1855
|
|
1699
|
-
|
1700
1856
|
<xsl:choose>
|
1701
1857
|
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
1702
1858
|
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
@@ -1722,7 +1878,7 @@
|
|
1722
1878
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
1723
1879
|
</xsl:when>
|
1724
1880
|
<xsl:otherwise>
|
1725
|
-
<xsl:apply-templates/>
|
1881
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
1726
1882
|
</xsl:otherwise>
|
1727
1883
|
</xsl:choose>
|
1728
1884
|
|
@@ -1737,25 +1893,6 @@
|
|
1737
1893
|
</xsl:call-template>
|
1738
1894
|
</xsl:for-each>
|
1739
1895
|
|
1740
|
-
<!-- insert footer as table -->
|
1741
|
-
<!-- <fo:table>
|
1742
|
-
<xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
|
1743
|
-
<xsl:attribute name="{@name}">
|
1744
|
-
<xsl:value-of select="."/>
|
1745
|
-
</xsl:attribute>
|
1746
|
-
</xsl:for-each>
|
1747
|
-
|
1748
|
-
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1749
|
-
<xsl:choose>
|
1750
|
-
<xsl:when test=". = 1 or . = 0">
|
1751
|
-
<fo:table-column column-width="proportional-column-width(2)"/>
|
1752
|
-
</xsl:when>
|
1753
|
-
<xsl:otherwise>
|
1754
|
-
<fo:table-column column-width="proportional-column-width({.})"/>
|
1755
|
-
</xsl:otherwise>
|
1756
|
-
</xsl:choose>
|
1757
|
-
</xsl:for-each>
|
1758
|
-
</fo:table>-->
|
1759
1896
|
|
1760
1897
|
|
1761
1898
|
|
@@ -1816,18 +1953,17 @@
|
|
1816
1953
|
</xsl:otherwise>
|
1817
1954
|
</xsl:choose>
|
1818
1955
|
|
1819
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"
|
1956
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
1820
1957
|
<xsl:param name="continued"/>
|
1821
1958
|
<xsl:if test="normalize-space() != ''">
|
1822
1959
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1823
|
-
|
1960
|
+
|
1824
1961
|
|
1825
1962
|
|
1826
1963
|
|
1827
1964
|
|
1828
1965
|
<xsl:choose>
|
1829
1966
|
<xsl:when test="$continued = 'true'">
|
1830
|
-
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
1831
1967
|
|
1832
1968
|
</xsl:when>
|
1833
1969
|
<xsl:otherwise>
|
@@ -1890,13 +2026,6 @@
|
|
1890
2026
|
<xsl:for-each select="xalan:nodeset($table)/*/tr">
|
1891
2027
|
<xsl:variable name="td_text">
|
1892
2028
|
<xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
|
1893
|
-
|
1894
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
1895
|
-
<xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
|
1896
|
-
<word><xsl:value-of select="normalize-space(.)"/></word>
|
1897
|
-
</xsl:for-each>
|
1898
|
-
</xsl:if> -->
|
1899
|
-
|
1900
2029
|
</xsl:variable>
|
1901
2030
|
<xsl:variable name="words">
|
1902
2031
|
<xsl:variable name="string_with_added_zerospaces">
|
@@ -1933,7 +2062,6 @@
|
|
1933
2062
|
</xsl:otherwise>
|
1934
2063
|
</xsl:choose>
|
1935
2064
|
</xsl:variable>
|
1936
|
-
|
1937
2065
|
|
1938
2066
|
<column>
|
1939
2067
|
<xsl:for-each select="xalan:nodeset($widths)//width">
|
@@ -1966,100 +2094,40 @@
|
|
1966
2094
|
</xsl:variable>
|
1967
2095
|
|
1968
2096
|
<xsl:variable name="math_text" select="normalize-space(xalan:nodeset($mathml))"/>
|
1969
|
-
<xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
|
1970
|
-
</xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
1971
|
-
<xsl:param name="cols-count"/>
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
</xsl:template><xsl:template
|
1998
|
-
<xsl:
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
<fo:table-footer>
|
2003
|
-
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
2004
|
-
</fo:table-footer>
|
2005
|
-
</xsl:if>
|
2006
|
-
</xsl:template><xsl:template name="insertTableFooter2">
|
2007
|
-
<xsl:param name="cols-count"/>
|
2008
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
2009
|
-
<xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
2010
|
-
|
2011
|
-
<fo:table-footer>
|
2012
|
-
|
2013
|
-
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
2014
|
-
|
2015
|
-
<!-- if there are note(s) or fn(s) then create footer row -->
|
2016
|
-
<xsl:if test="$isNoteOrFnExist = 'true'">
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
<fo:table-row>
|
2021
|
-
<fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
<!-- fn will be processed inside 'note' processing -->
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
<!-- except gb -->
|
2033
|
-
|
2034
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
2035
|
-
|
2036
|
-
|
2037
|
-
<!-- show Note under table in preface (ex. abstract) sections -->
|
2038
|
-
<!-- empty, because notes show at page side in main sections -->
|
2039
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
2040
|
-
<xsl:choose>
|
2041
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
2042
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
2043
|
-
</xsl:when>
|
2044
|
-
<xsl:otherwise>
|
2045
|
-
<fo:block/>
|
2046
|
-
</xsl:otherwise>
|
2047
|
-
</xsl:choose>
|
2048
|
-
</xsl:if> -->
|
2049
|
-
|
2050
|
-
|
2051
|
-
<!-- horizontal row separator -->
|
2052
|
-
|
2053
|
-
|
2054
|
-
<!-- fn processing -->
|
2055
|
-
<xsl:call-template name="fn_display"/>
|
2056
|
-
|
2057
|
-
</fo:table-cell>
|
2058
|
-
</fo:table-row>
|
2059
|
-
|
2060
|
-
</xsl:if>
|
2097
|
+
<xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
|
2098
|
+
</xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
2099
|
+
<xsl:param name="cols-count"/>
|
2100
|
+
<fo:table-header>
|
2101
|
+
|
2102
|
+
|
2103
|
+
<xsl:apply-templates/>
|
2104
|
+
</fo:table-header>
|
2105
|
+
</xsl:template><xsl:template name="table-header-title">
|
2106
|
+
<xsl:param name="cols-count"/>
|
2107
|
+
<!-- row for title -->
|
2108
|
+
<fo:table-row>
|
2109
|
+
<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">
|
2110
|
+
|
2111
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
2112
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
2113
|
+
</xsl:apply-templates>
|
2114
|
+
|
2115
|
+
|
2116
|
+
|
2117
|
+
</fo:table-cell>
|
2118
|
+
</fo:table-row>
|
2119
|
+
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
2120
|
+
<fo:table-body>
|
2121
|
+
<xsl:apply-templates/>
|
2122
|
+
</fo:table-body>
|
2123
|
+
</xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
|
2124
|
+
<xsl:apply-templates/>
|
2125
|
+
</xsl:template><xsl:template name="insertTableFooter">
|
2126
|
+
<xsl:param name="cols-count"/>
|
2127
|
+
<xsl:if test="../*[local-name()='tfoot']">
|
2128
|
+
<fo:table-footer>
|
2129
|
+
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
2061
2130
|
</fo:table-footer>
|
2062
|
-
|
2063
2131
|
</xsl:if>
|
2064
2132
|
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
2065
2133
|
<xsl:param name="table_attributes"/>
|
@@ -2086,17 +2154,18 @@
|
|
2086
2154
|
</xsl:variable>
|
2087
2155
|
|
2088
2156
|
<fo:table keep-with-previous="always">
|
2089
|
-
<xsl:for-each select="xalan:nodeset($table_attributes)/
|
2157
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
2158
|
+
<xsl:variable name="name" select="local-name()"/>
|
2090
2159
|
<xsl:choose>
|
2091
|
-
<xsl:when test="
|
2092
|
-
<xsl:attribute name="{
|
2160
|
+
<xsl:when test="$name = 'border-top'">
|
2161
|
+
<xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
|
2093
2162
|
</xsl:when>
|
2094
|
-
<xsl:when test="
|
2095
|
-
<xsl:attribute name="{
|
2163
|
+
<xsl:when test="$name = 'border'">
|
2164
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
2096
2165
|
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
2097
2166
|
</xsl:when>
|
2098
2167
|
<xsl:otherwise>
|
2099
|
-
<xsl:attribute name="{
|
2168
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
2100
2169
|
</xsl:otherwise>
|
2101
2170
|
</xsl:choose>
|
2102
2171
|
</xsl:for-each>
|
@@ -2125,9 +2194,10 @@
|
|
2125
2194
|
|
2126
2195
|
<fo:table-body>
|
2127
2196
|
<fo:table-row>
|
2128
|
-
<fo:table-cell
|
2197
|
+
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
2129
2198
|
|
2130
2199
|
|
2200
|
+
|
2131
2201
|
|
2132
2202
|
|
2133
2203
|
<!-- fn will be processed inside 'note' processing -->
|
@@ -2137,37 +2207,20 @@
|
|
2137
2207
|
|
2138
2208
|
|
2139
2209
|
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
2210
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2144
2211
|
|
2145
2212
|
|
2146
|
-
<!-- except gb -->
|
2147
|
-
|
2148
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
2213
|
+
<!-- except gb and bsi -->
|
2149
2214
|
|
2150
|
-
|
2151
|
-
|
2152
|
-
<xsl:choose>
|
2153
|
-
<xsl:when test="ancestor::*[local-name()='preface']">
|
2154
|
-
show Note under table in preface (ex. abstract) sections
|
2155
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
2156
|
-
</xsl:when>
|
2157
|
-
<xsl:otherwise>
|
2158
|
-
empty, because notes show at page side in main sections
|
2159
|
-
<fo:block/>
|
2160
|
-
</xsl:otherwise>
|
2161
|
-
</xsl:choose>
|
2162
|
-
</xsl:if> -->
|
2215
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
2216
|
+
|
2163
2217
|
|
2164
2218
|
|
2165
2219
|
<!-- horizontal row separator -->
|
2166
2220
|
|
2167
2221
|
|
2168
2222
|
<!-- fn processing -->
|
2169
|
-
<xsl:call-template name="
|
2170
|
-
|
2223
|
+
<xsl:call-template name="table_fn_display"/>
|
2171
2224
|
|
2172
2225
|
<!-- for PAS display Notes after footnotes -->
|
2173
2226
|
|
@@ -2209,78 +2262,57 @@
|
|
2209
2262
|
|
2210
2263
|
|
2211
2264
|
<xsl:apply-templates/>
|
2212
|
-
|
2213
|
-
|
2265
|
+
|
2214
2266
|
</fo:table-body>
|
2215
2267
|
|
2216
|
-
</xsl:template><xsl:template match="*[local-name()='
|
2217
|
-
<xsl:
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/node()" mode="presentation_name">
|
2228
|
-
<xsl:apply-templates select="."/>
|
2229
|
-
</xsl:template><xsl:template match="*[local-name()='tr']">
|
2230
|
-
<xsl:variable name="parent-name" select="local-name(..)"/>
|
2231
|
-
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
2232
|
-
<fo:table-row min-height="4mm">
|
2233
|
-
<xsl:if test="$parent-name = 'thead'">
|
2234
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
</xsl:if>
|
2244
|
-
<xsl:if test="$parent-name = 'tfoot'">
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
</xsl:if>
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
<!-- <xsl:if test="$namespace = 'bipm'">
|
2260
|
-
<xsl:attribute name="height">8mm</xsl:attribute>
|
2261
|
-
</xsl:if> -->
|
2262
|
-
|
2268
|
+
</xsl:template><xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
|
2269
|
+
<fo:table-row xsl:use-attribute-sets="table-header-row-style">
|
2270
|
+
|
2271
|
+
|
2272
|
+
|
2273
|
+
|
2274
|
+
|
2275
|
+
|
2276
|
+
|
2277
|
+
<xsl:call-template name="setTableRowAttributes"/>
|
2278
|
+
|
2263
2279
|
<xsl:apply-templates/>
|
2264
2280
|
</fo:table-row>
|
2265
|
-
</xsl:template><xsl:template match="*[local-name()='
|
2266
|
-
<fo:table-
|
2267
|
-
<xsl:attribute name="text-align">
|
2268
|
-
<xsl:choose>
|
2269
|
-
<xsl:when test="@align">
|
2270
|
-
<xsl:call-template name="setAlignment"/>
|
2271
|
-
<!-- <xsl:value-of select="@align"/> -->
|
2272
|
-
</xsl:when>
|
2273
|
-
<xsl:otherwise>center</xsl:otherwise>
|
2274
|
-
</xsl:choose>
|
2275
|
-
</xsl:attribute>
|
2276
|
-
|
2281
|
+
</xsl:template><xsl:template match="*[local-name()='tfoot']/*[local-name()='tr']" priority="2">
|
2282
|
+
<fo:table-row xsl:use-attribute-sets="table-footer-row-style">
|
2277
2283
|
|
2284
|
+
<xsl:call-template name="setTableRowAttributes"/>
|
2285
|
+
<xsl:apply-templates/>
|
2286
|
+
</fo:table-row>
|
2287
|
+
</xsl:template><xsl:template match="*[local-name()='tr']">
|
2288
|
+
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
2289
|
+
|
2278
2290
|
|
2291
|
+
|
2279
2292
|
|
2293
|
+
|
2294
|
+
<xsl:call-template name="setTableRowAttributes"/>
|
2295
|
+
<xsl:apply-templates/>
|
2296
|
+
</fo:table-row>
|
2297
|
+
</xsl:template><xsl:template name="setTableRowAttributes">
|
2298
|
+
|
2299
|
+
|
2300
|
+
|
2301
|
+
|
2302
|
+
|
2303
|
+
|
2304
|
+
|
2305
|
+
|
2306
|
+
</xsl:template><xsl:template match="*[local-name()='th']">
|
2307
|
+
<fo:table-cell xsl:use-attribute-sets="table-header-cell-style"> <!-- text-align="{@align}" -->
|
2308
|
+
<xsl:call-template name="setTextAlignment">
|
2309
|
+
<xsl:with-param name="default">center</xsl:with-param>
|
2310
|
+
</xsl:call-template>
|
2280
2311
|
|
2281
2312
|
|
2282
2313
|
|
2283
2314
|
|
2315
|
+
|
2284
2316
|
|
2285
2317
|
|
2286
2318
|
|
@@ -2289,21 +2321,25 @@
|
|
2289
2321
|
<xsl:if test="$lang = 'ar'">
|
2290
2322
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2291
2323
|
</xsl:if>
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
</xsl:attribute>
|
2296
|
-
</xsl:if>
|
2297
|
-
<xsl:if test="@rowspan">
|
2298
|
-
<xsl:attribute name="number-rows-spanned">
|
2299
|
-
<xsl:value-of select="@rowspan"/>
|
2300
|
-
</xsl:attribute>
|
2301
|
-
</xsl:if>
|
2302
|
-
<xsl:call-template name="display-align"/>
|
2324
|
+
|
2325
|
+
<xsl:call-template name="setTableCellAttributes"/>
|
2326
|
+
|
2303
2327
|
<fo:block>
|
2304
2328
|
<xsl:apply-templates/>
|
2305
2329
|
</fo:block>
|
2306
2330
|
</fo:table-cell>
|
2331
|
+
</xsl:template><xsl:template name="setTableCellAttributes">
|
2332
|
+
<xsl:if test="@colspan">
|
2333
|
+
<xsl:attribute name="number-columns-spanned">
|
2334
|
+
<xsl:value-of select="@colspan"/>
|
2335
|
+
</xsl:attribute>
|
2336
|
+
</xsl:if>
|
2337
|
+
<xsl:if test="@rowspan">
|
2338
|
+
<xsl:attribute name="number-rows-spanned">
|
2339
|
+
<xsl:value-of select="@rowspan"/>
|
2340
|
+
</xsl:attribute>
|
2341
|
+
</xsl:if>
|
2342
|
+
<xsl:call-template name="display-align"/>
|
2307
2343
|
</xsl:template><xsl:template name="display-align">
|
2308
2344
|
<xsl:if test="@valign">
|
2309
2345
|
<xsl:attribute name="display-align">
|
@@ -2316,22 +2352,18 @@
|
|
2316
2352
|
</xsl:attribute>
|
2317
2353
|
</xsl:if>
|
2318
2354
|
</xsl:template><xsl:template match="*[local-name()='td']">
|
2319
|
-
<fo:table-cell text-align="{@align}"
|
2320
|
-
<xsl:
|
2321
|
-
<xsl:
|
2322
|
-
|
2323
|
-
|
2324
|
-
<!-- <xsl:value-of select="@align"/> -->
|
2325
|
-
</xsl:when>
|
2326
|
-
<xsl:otherwise>left</xsl:otherwise>
|
2327
|
-
</xsl:choose>
|
2328
|
-
</xsl:attribute>
|
2355
|
+
<fo:table-cell xsl:use-attribute-sets="table-cell-style"> <!-- text-align="{@align}" -->
|
2356
|
+
<xsl:call-template name="setTextAlignment">
|
2357
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
2358
|
+
</xsl:call-template>
|
2359
|
+
|
2329
2360
|
<xsl:if test="$lang = 'ar'">
|
2330
2361
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2331
2362
|
</xsl:if>
|
2332
2363
|
|
2333
2364
|
|
2334
2365
|
|
2366
|
+
<!-- bsi -->
|
2335
2367
|
|
2336
2368
|
|
2337
2369
|
|
@@ -2340,34 +2372,36 @@
|
|
2340
2372
|
|
2341
2373
|
|
2342
2374
|
|
2375
|
+
|
2376
|
+
|
2343
2377
|
|
2344
2378
|
|
2345
2379
|
|
2346
2380
|
|
2347
2381
|
|
2348
|
-
<xsl:if test=".//*[local-name() = 'table']">
|
2382
|
+
<xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
|
2349
2383
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2350
2384
|
</xsl:if>
|
2351
|
-
|
2352
|
-
|
2353
|
-
|
2354
|
-
</xsl:attribute>
|
2355
|
-
</xsl:if>
|
2356
|
-
<xsl:if test="@rowspan">
|
2357
|
-
<xsl:attribute name="number-rows-spanned">
|
2358
|
-
<xsl:value-of select="@rowspan"/>
|
2359
|
-
</xsl:attribute>
|
2360
|
-
</xsl:if>
|
2361
|
-
<xsl:call-template name="display-align"/>
|
2385
|
+
|
2386
|
+
<xsl:call-template name="setTableCellAttributes"/>
|
2387
|
+
|
2362
2388
|
<fo:block>
|
2363
|
-
|
2389
|
+
|
2390
|
+
|
2391
|
+
|
2364
2392
|
<xsl:apply-templates/>
|
2365
2393
|
</fo:block>
|
2366
2394
|
</fo:table-cell>
|
2367
2395
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
|
2396
|
+
|
2397
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
2398
|
+
|
2399
|
+
|
2400
|
+
|
2401
|
+
|
2368
2402
|
|
2369
|
-
|
2370
|
-
<fo:
|
2403
|
+
<!-- Table's note name (NOTE, for example) -->
|
2404
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
2371
2405
|
|
2372
2406
|
|
2373
2407
|
|
@@ -2375,27 +2409,113 @@
|
|
2375
2409
|
|
2376
2410
|
|
2377
2411
|
|
2378
|
-
|
2379
|
-
<!-- Table's note name (NOTE, for example) -->
|
2380
|
-
|
2381
|
-
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
2412
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
2382
2413
|
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
</fo:inline>
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
<xsl:apply-templates mode="process"/>
|
2394
|
-
</fo:block>
|
2414
|
+
</fo:inline>
|
2415
|
+
|
2416
|
+
|
2417
|
+
|
2418
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]" mode="process"/>
|
2419
|
+
</fo:block>
|
2395
2420
|
|
2396
2421
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2397
2422
|
<xsl:apply-templates/>
|
2398
|
-
</xsl:template><xsl:template name="
|
2423
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
|
2424
|
+
|
2425
|
+
<!-- list of footnotes to calculate actual footnotes number -->
|
2426
|
+
<xsl:variable name="p_fn_">
|
2427
|
+
<xsl:choose>
|
2428
|
+
<xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
|
2429
|
+
<fn gen_id="{generate-id(.)}">
|
2430
|
+
<xsl:copy-of select="@*"/>
|
2431
|
+
<xsl:copy-of select="node()"/>
|
2432
|
+
</fn>
|
2433
|
+
</xsl:when>
|
2434
|
+
<xsl:otherwise>
|
2435
|
+
<!-- itetation for:
|
2436
|
+
footnotes in bibdata/title
|
2437
|
+
footnotes in bibliography
|
2438
|
+
footnotes in document's body (except table's head/body/foot and figure text)
|
2439
|
+
-->
|
2440
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
|
2441
|
+
<fn gen_id="{generate-id(.)}">
|
2442
|
+
<xsl:copy-of select="@*"/>
|
2443
|
+
<xsl:copy-of select="node()"/>
|
2444
|
+
</fn>
|
2445
|
+
</xsl:for-each>
|
2446
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
2447
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
2448
|
+
<xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
2449
|
+
<!-- copy unique fn -->
|
2450
|
+
<fn gen_id="{generate-id(.)}">
|
2451
|
+
<xsl:copy-of select="@*"/>
|
2452
|
+
<xsl:copy-of select="node()"/>
|
2453
|
+
</fn>
|
2454
|
+
</xsl:for-each>
|
2455
|
+
</xsl:for-each>
|
2456
|
+
</xsl:otherwise>
|
2457
|
+
</xsl:choose>
|
2458
|
+
</xsl:variable>
|
2459
|
+
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
2460
|
+
|
2461
|
+
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
2462
|
+
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
2463
|
+
<xsl:variable name="reference" select="@reference"/>
|
2464
|
+
<!-- fn sequence number in document -->
|
2465
|
+
<xsl:variable name="current_fn_number">
|
2466
|
+
<xsl:choose>
|
2467
|
+
<xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
|
2468
|
+
<xsl:otherwise>
|
2469
|
+
<xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
|
2470
|
+
</xsl:otherwise>
|
2471
|
+
</xsl:choose>
|
2472
|
+
</xsl:variable>
|
2473
|
+
<xsl:variable name="current_fn_number_text">
|
2474
|
+
<xsl:value-of select="$current_fn_number"/>
|
2475
|
+
|
2476
|
+
|
2477
|
+
</xsl:variable>
|
2478
|
+
|
2479
|
+
<xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
|
2480
|
+
<xsl:variable name="footnote_inline">
|
2481
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
2482
|
+
|
2483
|
+
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
2484
|
+
<xsl:value-of select="$current_fn_number_text"/>
|
2485
|
+
</fo:basic-link>
|
2486
|
+
</fo:inline>
|
2487
|
+
</xsl:variable>
|
2488
|
+
<!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
|
2489
|
+
gen_id=<xsl:value-of select="$gen_id"/> -->
|
2490
|
+
<xsl:choose>
|
2491
|
+
<xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
|
2492
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2493
|
+
</xsl:when>
|
2494
|
+
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
|
2495
|
+
<fo:footnote xsl:use-attribute-sets="fn-style">
|
2496
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2497
|
+
<fo:footnote-body>
|
2498
|
+
|
2499
|
+
<fo:block-container xsl:use-attribute-sets="fn-container-body-style">
|
2500
|
+
|
2501
|
+
<fo:block xsl:use-attribute-sets="fn-body-style">
|
2502
|
+
|
2503
|
+
|
2504
|
+
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
2505
|
+
|
2506
|
+
<xsl:value-of select="$current_fn_number_text"/>
|
2507
|
+
</fo:inline>
|
2508
|
+
<xsl:apply-templates/>
|
2509
|
+
</fo:block>
|
2510
|
+
</fo:block-container>
|
2511
|
+
</fo:footnote-body>
|
2512
|
+
</fo:footnote>
|
2513
|
+
</xsl:when>
|
2514
|
+
<xsl:otherwise>
|
2515
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2516
|
+
</xsl:otherwise>
|
2517
|
+
</xsl:choose>
|
2518
|
+
</xsl:template><xsl:template name="table_fn_display">
|
2399
2519
|
<xsl:variable name="references">
|
2400
2520
|
|
2401
2521
|
<xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
|
@@ -2406,33 +2526,26 @@
|
|
2406
2526
|
<xsl:for-each select="xalan:nodeset($references)//fn">
|
2407
2527
|
<xsl:variable name="reference" select="@reference"/>
|
2408
2528
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2409
|
-
<fo:block
|
2529
|
+
<fo:block xsl:use-attribute-sets="table-fn-style">
|
2410
2530
|
|
2411
2531
|
|
2412
2532
|
|
2413
|
-
|
2414
|
-
|
2415
|
-
|
2416
|
-
|
2417
|
-
<fo:inline font-size="80%" padding-right="5mm" id="{@id}">
|
2533
|
+
<fo:inline id="{@id}" xsl:use-attribute-sets="table-fn-number-style">
|
2418
2534
|
|
2419
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2420
2535
|
|
2421
2536
|
|
2422
2537
|
|
2423
2538
|
|
2539
|
+
<xsl:value-of select="@reference"/>
|
2424
2540
|
|
2425
2541
|
|
2426
2542
|
|
2427
2543
|
|
2428
|
-
<xsl:value-of select="@reference"/>
|
2429
2544
|
|
2430
2545
|
|
2431
2546
|
|
2432
2547
|
</fo:inline>
|
2433
|
-
<fo:inline>
|
2434
|
-
|
2435
|
-
<!-- <xsl:apply-templates /> -->
|
2548
|
+
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
2436
2549
|
<xsl:copy-of select="./node()"/>
|
2437
2550
|
</fo:inline>
|
2438
2551
|
</fo:block>
|
@@ -2444,15 +2557,7 @@
|
|
2444
2557
|
|
2445
2558
|
<xsl:apply-templates/>
|
2446
2559
|
</fn>
|
2447
|
-
</xsl:template><xsl:template name="
|
2448
|
-
<!-- <xsl:variable name="references">
|
2449
|
-
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
2450
|
-
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
2451
|
-
<xsl:apply-templates />
|
2452
|
-
</fn>
|
2453
|
-
</xsl:for-each>
|
2454
|
-
</xsl:variable>
|
2455
|
-
$references=<xsl:copy-of select="$references"/> -->
|
2560
|
+
</xsl:template><xsl:template name="table_name_fn_display">
|
2456
2561
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
2457
2562
|
<xsl:variable name="reference" select="@reference"/>
|
2458
2563
|
<fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
|
@@ -2461,9 +2566,7 @@
|
|
2461
2566
|
</fo:block>
|
2462
2567
|
</xsl:for-each>
|
2463
2568
|
</xsl:template><xsl:template name="fn_display_figure">
|
2464
|
-
|
2465
|
-
<!-- and (not(@class) or @class !='pseudocode') -->
|
2466
|
-
</xsl:variable>
|
2569
|
+
|
2467
2570
|
<xsl:variable name="references">
|
2468
2571
|
<xsl:for-each select=".//*[local-name()='fn'][not(parent::*[local-name()='name'])]">
|
2469
2572
|
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
@@ -2471,50 +2574,52 @@
|
|
2471
2574
|
</fn>
|
2472
2575
|
</xsl:for-each>
|
2473
2576
|
</xsl:variable>
|
2577
|
+
|
2578
|
+
<xsl:if test="xalan:nodeset($references)//fn">
|
2474
2579
|
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2580
|
+
<xsl:variable name="key_iso">
|
2581
|
+
|
2582
|
+
</xsl:variable>
|
2583
|
+
|
2584
|
+
<!-- current hierarchy is 'figure' element -->
|
2585
|
+
<xsl:variable name="following_dl_colwidths">
|
2586
|
+
<xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
|
2587
|
+
<xsl:variable name="html-table">
|
2588
|
+
<xsl:variable name="doc_ns">
|
2589
|
+
|
2590
|
+
</xsl:variable>
|
2591
|
+
<xsl:variable name="ns">
|
2592
|
+
<xsl:choose>
|
2593
|
+
<xsl:when test="normalize-space($doc_ns) != ''">
|
2594
|
+
<xsl:value-of select="normalize-space($doc_ns)"/>
|
2595
|
+
</xsl:when>
|
2596
|
+
<xsl:otherwise>
|
2597
|
+
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
2598
|
+
</xsl:otherwise>
|
2599
|
+
</xsl:choose>
|
2600
|
+
</xsl:variable>
|
2480
2601
|
|
2481
|
-
</xsl:variable>
|
2482
|
-
<xsl:variable name="ns">
|
2483
|
-
<xsl:choose>
|
2484
|
-
<xsl:when test="normalize-space($doc_ns) != ''">
|
2485
|
-
<xsl:value-of select="normalize-space($doc_ns)"/>
|
2486
|
-
</xsl:when>
|
2487
|
-
<xsl:otherwise>
|
2488
|
-
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
2489
|
-
</xsl:otherwise>
|
2490
|
-
</xsl:choose>
|
2491
|
-
</xsl:variable>
|
2492
|
-
<!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
|
2493
|
-
<!-- <xsl:element name="{$ns}:table"> -->
|
2494
2602
|
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
2495
2603
|
<tbody>
|
2496
2604
|
<xsl:apply-templates mode="dl"/>
|
2497
2605
|
</tbody>
|
2498
2606
|
</xsl:for-each>
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
</xsl:
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
</xsl:variable>
|
2516
|
-
|
2517
|
-
<xsl:if test="xalan:nodeset($references)//fn">
|
2607
|
+
</xsl:variable>
|
2608
|
+
|
2609
|
+
<xsl:call-template name="calculate-column-widths">
|
2610
|
+
<xsl:with-param name="cols-count" select="2"/>
|
2611
|
+
<xsl:with-param name="table" select="$html-table"/>
|
2612
|
+
</xsl:call-template>
|
2613
|
+
|
2614
|
+
</xsl:if>
|
2615
|
+
</xsl:variable>
|
2616
|
+
|
2617
|
+
<xsl:variable name="maxlength_dt">
|
2618
|
+
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
2619
|
+
<xsl:call-template name="getMaxLength_dt"/>
|
2620
|
+
</xsl:for-each>
|
2621
|
+
</xsl:variable>
|
2622
|
+
|
2518
2623
|
<fo:block>
|
2519
2624
|
<fo:table width="95%" table-layout="fixed">
|
2520
2625
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -2541,20 +2646,18 @@
|
|
2541
2646
|
<fo:table-row>
|
2542
2647
|
<fo:table-cell>
|
2543
2648
|
<fo:block>
|
2544
|
-
<fo:inline
|
2545
|
-
|
2649
|
+
<fo:inline id="{@id}" xsl:use-attribute-sets="figure-fn-number-style">
|
2546
2650
|
<xsl:value-of select="@reference"/>
|
2547
2651
|
</fo:inline>
|
2548
2652
|
</fo:block>
|
2549
2653
|
</fo:table-cell>
|
2550
2654
|
<fo:table-cell>
|
2551
|
-
<fo:block
|
2552
|
-
|
2655
|
+
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
2553
2656
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2554
|
-
|
2657
|
+
|
2658
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
2659
|
+
|
2555
2660
|
</xsl:if>
|
2556
|
-
|
2557
|
-
<!-- <xsl:apply-templates /> -->
|
2558
2661
|
<xsl:copy-of select="./node()"/>
|
2559
2662
|
</fo:block>
|
2560
2663
|
</fo:table-cell>
|
@@ -2567,14 +2670,8 @@
|
|
2567
2670
|
</xsl:if>
|
2568
2671
|
|
2569
2672
|
</xsl:template><xsl:template match="*[local-name()='fn']">
|
2570
|
-
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2673
|
+
<fo:inline xsl:use-attribute-sets="fn-reference-style">
|
2674
|
+
|
2578
2675
|
|
2579
2676
|
|
2580
2677
|
|
@@ -2587,6 +2684,8 @@
|
|
2587
2684
|
|
2588
2685
|
</fo:basic-link>
|
2589
2686
|
</fo:inline>
|
2687
|
+
</xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
|
2688
|
+
<fo:inline><xsl:value-of select="."/></fo:inline>
|
2590
2689
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
2591
2690
|
<fo:inline>
|
2592
2691
|
<xsl:apply-templates/>
|
@@ -2596,10 +2695,10 @@
|
|
2596
2695
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
2597
2696
|
<fo:block-container>
|
2598
2697
|
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2698
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
2699
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2700
|
+
</xsl:if>
|
2701
|
+
|
2603
2702
|
|
2604
2703
|
<xsl:if test="parent::*[local-name() = 'note']">
|
2605
2704
|
<xsl:attribute name="margin-left">
|
@@ -2616,11 +2715,11 @@
|
|
2616
2715
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
2617
2716
|
</xsl:call-template>
|
2618
2717
|
|
2619
|
-
<fo:block-container>
|
2620
|
-
|
2621
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2622
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2718
|
+
<fo:block-container margin-left="0mm">
|
2719
|
+
|
2623
2720
|
|
2721
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2722
|
+
|
2624
2723
|
|
2625
2724
|
<xsl:variable name="parent" select="local-name(..)"/>
|
2626
2725
|
|
@@ -2631,23 +2730,19 @@
|
|
2631
2730
|
<xsl:choose>
|
2632
2731
|
<xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
|
2633
2732
|
|
2634
|
-
|
2635
|
-
<fo:block margin-bottom="12pt" text-align="left">
|
2636
|
-
|
2637
|
-
<xsl:variable name="title-where">
|
2733
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
2638
2734
|
|
2639
|
-
|
2640
|
-
<xsl:call-template name="
|
2641
|
-
<xsl:with-param name="
|
2735
|
+
<xsl:variable name="title-where">
|
2736
|
+
<xsl:call-template name="getLocalizedString">
|
2737
|
+
<xsl:with-param name="key">where</xsl:with-param>
|
2642
2738
|
</xsl:call-template>
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2739
|
+
</xsl:variable>
|
2740
|
+
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
2741
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
2742
|
+
<xsl:text/>
|
2743
|
+
<xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
|
2744
|
+
</fo:block>
|
2745
|
+
|
2651
2746
|
</xsl:when>
|
2652
2747
|
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
2653
2748
|
<fo:block margin-bottom="12pt" text-align="left">
|
@@ -2656,12 +2751,9 @@
|
|
2656
2751
|
|
2657
2752
|
|
2658
2753
|
<xsl:variable name="title-where">
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
<xsl:with-param name="name" select="'title-where'"/>
|
2663
|
-
</xsl:call-template>
|
2664
|
-
|
2754
|
+
<xsl:call-template name="getLocalizedString">
|
2755
|
+
<xsl:with-param name="key">where</xsl:with-param>
|
2756
|
+
</xsl:call-template>
|
2665
2757
|
</xsl:variable>
|
2666
2758
|
<xsl:value-of select="$title-where"/>
|
2667
2759
|
</fo:block>
|
@@ -2673,12 +2765,9 @@
|
|
2673
2765
|
|
2674
2766
|
|
2675
2767
|
<xsl:variable name="title-key">
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
<xsl:with-param name="name" select="'title-key'"/>
|
2680
|
-
</xsl:call-template>
|
2681
|
-
|
2768
|
+
<xsl:call-template name="getLocalizedString">
|
2769
|
+
<xsl:with-param name="key">key</xsl:with-param>
|
2770
|
+
</xsl:call-template>
|
2682
2771
|
</xsl:variable>
|
2683
2772
|
<xsl:value-of select="$title-key"/>
|
2684
2773
|
</fo:block>
|
@@ -2700,9 +2789,7 @@
|
|
2700
2789
|
<fo:table width="95%" table-layout="fixed">
|
2701
2790
|
|
2702
2791
|
<xsl:choose>
|
2703
|
-
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"
|
2704
|
-
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
2705
|
-
</xsl:when>
|
2792
|
+
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"/>
|
2706
2793
|
<xsl:when test="normalize-space($key_iso) = 'true'">
|
2707
2794
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2708
2795
|
|
@@ -2723,12 +2810,9 @@
|
|
2723
2810
|
</xsl:otherwise>
|
2724
2811
|
</xsl:choose>
|
2725
2812
|
</xsl:variable>
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
<xsl:apply-templates mode="dl"/>
|
2730
|
-
</tbody>
|
2731
|
-
<!-- </xsl:element> -->
|
2813
|
+
<tbody>
|
2814
|
+
<xsl:apply-templates mode="dl"/>
|
2815
|
+
</tbody>
|
2732
2816
|
</xsl:variable>
|
2733
2817
|
<!-- html-table<xsl:copy-of select="$html-table"/> -->
|
2734
2818
|
<xsl:variable name="colwidths">
|
@@ -2808,8 +2892,6 @@
|
|
2808
2892
|
</xsl:for-each>
|
2809
2893
|
</xsl:otherwise>
|
2810
2894
|
</xsl:choose>
|
2811
|
-
<!-- <fo:table-column column-width="15%"/>
|
2812
|
-
<fo:table-column column-width="85%"/> -->
|
2813
2895
|
</xsl:otherwise>
|
2814
2896
|
</xsl:choose>
|
2815
2897
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
@@ -2824,12 +2906,6 @@
|
|
2824
2906
|
</xsl:for-each>
|
2825
2907
|
</xsl:variable>
|
2826
2908
|
<xsl:variable name="maxLength">
|
2827
|
-
<!-- <xsl:for-each select="*[local-name()='dt']">
|
2828
|
-
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
2829
|
-
<xsl:if test="position() = 1">
|
2830
|
-
<xsl:value-of select="string-length(normalize-space(.))"/>
|
2831
|
-
</xsl:if>
|
2832
|
-
</xsl:for-each> -->
|
2833
2909
|
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
2834
2910
|
<xsl:sort select="." data-type="number" order="descending"/>
|
2835
2911
|
<xsl:if test="position() = 1">
|
@@ -2855,12 +2931,12 @@
|
|
2855
2931
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2856
2932
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
2857
2933
|
</xsl:if>
|
2858
|
-
<xsl:apply-templates select="*[local-name() = 'name']"
|
2934
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
2859
2935
|
</fo:block>
|
2860
2936
|
</fo:table-cell>
|
2861
2937
|
<fo:table-cell>
|
2862
2938
|
<fo:block>
|
2863
|
-
<xsl:apply-templates/>
|
2939
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
2864
2940
|
</fo:block>
|
2865
2941
|
</fo:table-cell>
|
2866
2942
|
</fo:table-row>
|
@@ -2871,79 +2947,41 @@
|
|
2871
2947
|
</td>
|
2872
2948
|
<td>
|
2873
2949
|
|
2874
|
-
|
2875
|
-
|
2876
|
-
|
2950
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2951
|
+
|
2877
2952
|
</td>
|
2878
2953
|
</tr>
|
2879
2954
|
|
2880
2955
|
</xsl:template><xsl:template match="*[local-name()='dt']">
|
2881
2956
|
<xsl:param name="key_iso"/>
|
2882
2957
|
|
2883
|
-
<fo:table-row>
|
2884
|
-
|
2885
|
-
|
2958
|
+
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
2886
2959
|
<fo:table-cell>
|
2887
2960
|
|
2888
|
-
<fo:block
|
2961
|
+
<fo:block xsl:use-attribute-sets="dt-style">
|
2889
2962
|
<xsl:copy-of select="@id"/>
|
2890
2963
|
|
2891
|
-
|
2892
2964
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2893
2965
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
2894
|
-
|
2895
2966
|
</xsl:if>
|
2896
2967
|
|
2897
2968
|
|
2898
2969
|
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
2970
|
<xsl:apply-templates/>
|
2904
|
-
<!-- <xsl:if test="$namespace = 'gb'">
|
2905
|
-
<xsl:if test="ancestor::*[local-name()='formula']">
|
2906
|
-
<xsl:text>—</xsl:text>
|
2907
|
-
</xsl:if>
|
2908
|
-
</xsl:if> -->
|
2909
2971
|
</fo:block>
|
2910
2972
|
</fo:table-cell>
|
2911
2973
|
<fo:table-cell>
|
2912
2974
|
<fo:block>
|
2913
2975
|
|
2914
|
-
|
2915
|
-
|
2916
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2917
|
-
</xsl:if>
|
2918
|
-
</xsl:if> -->
|
2919
|
-
|
2920
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2921
|
-
|
2976
|
+
|
2977
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2922
2978
|
</fo:block>
|
2923
2979
|
</fo:table-cell>
|
2924
2980
|
</fo:table-row>
|
2925
|
-
<!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
2926
|
-
<xsl:if test="local-name(*[1]) = 'stem'">
|
2927
|
-
<fo:table-row>
|
2928
|
-
<fo:table-cell>
|
2929
|
-
<fo:block margin-top="6pt">
|
2930
|
-
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2931
|
-
<xsl:attribute name="margin-top">0</xsl:attribute>
|
2932
|
-
</xsl:if>
|
2933
|
-
<xsl:text> </xsl:text>
|
2934
|
-
</fo:block>
|
2935
|
-
</fo:table-cell>
|
2936
|
-
<fo:table-cell>
|
2937
|
-
<fo:block>
|
2938
|
-
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2939
|
-
</fo:block>
|
2940
|
-
</fo:table-cell>
|
2941
|
-
</fo:table-row>
|
2942
|
-
</xsl:if>
|
2943
|
-
</xsl:if> -->
|
2944
2981
|
</xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
|
2945
2982
|
<xsl:apply-templates/>
|
2946
2983
|
</xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
|
2984
|
+
<xsl:apply-templates select="@language"/>
|
2947
2985
|
<xsl:apply-templates/>
|
2948
2986
|
</xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
|
2949
2987
|
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
@@ -2968,6 +3006,7 @@
|
|
2968
3006
|
</fo:inline>
|
2969
3007
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
2970
3008
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
3009
|
+
|
2971
3010
|
<xsl:variable name="_font-size">
|
2972
3011
|
|
2973
3012
|
|
@@ -3009,7 +3048,22 @@
|
|
3009
3048
|
<xsl:apply-templates/>
|
3010
3049
|
</fo:inline>
|
3011
3050
|
</xsl:template><xsl:template match="*[local-name()='add']">
|
3051
|
+
<xsl:param name="skip">true</xsl:param>
|
3012
3052
|
<xsl:choose>
|
3053
|
+
<xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start -->
|
3054
|
+
<xsl:choose>
|
3055
|
+
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab'])) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
|
3056
|
+
<xsl:otherwise>
|
3057
|
+
<fo:inline>
|
3058
|
+
<xsl:call-template name="insertTag">
|
3059
|
+
<xsl:with-param name="type" select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end -->
|
3060
|
+
<xsl:with-param name="kind" select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
|
3061
|
+
<xsl:with-param name="value" select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
|
3062
|
+
</xsl:call-template>
|
3063
|
+
</fo:inline>
|
3064
|
+
</xsl:otherwise>
|
3065
|
+
</xsl:choose>
|
3066
|
+
</xsl:when>
|
3013
3067
|
<xsl:when test="@amendment">
|
3014
3068
|
<fo:inline>
|
3015
3069
|
<xsl:call-template name="insertTag">
|
@@ -3044,7 +3098,6 @@
|
|
3044
3098
|
</fo:inline>
|
3045
3099
|
</xsl:otherwise>
|
3046
3100
|
</xsl:choose>
|
3047
|
-
|
3048
3101
|
</xsl:template><xsl:template name="insertTag">
|
3049
3102
|
<xsl:param name="type"/>
|
3050
3103
|
<xsl:param name="kind"/>
|
@@ -3052,22 +3105,20 @@
|
|
3052
3105
|
<xsl:variable name="add_width" select="string-length($value) * 20"/>
|
3053
3106
|
<xsl:variable name="maxwidth" select="60 + $add_width"/>
|
3054
3107
|
<fo:instream-foreign-object fox:alt-text="OpeningTag" baseline-shift="-20%"><!-- alignment-baseline="middle" -->
|
3055
|
-
<!-- <xsl:attribute name="width">7mm</xsl:attribute>
|
3056
|
-
<xsl:attribute name="content-height">100%</xsl:attribute> -->
|
3057
3108
|
<xsl:attribute name="height">5mm</xsl:attribute>
|
3058
3109
|
<xsl:attribute name="content-width">100%</xsl:attribute>
|
3059
3110
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
3060
3111
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
3061
3112
|
<svg xmlns="http://www.w3.org/2000/svg" width="{$maxwidth + 32}" height="80">
|
3062
3113
|
<g>
|
3063
|
-
<xsl:if test="$type = 'closing'">
|
3114
|
+
<xsl:if test="$type = 'closing' or $type = 'end'">
|
3064
3115
|
<xsl:attribute name="transform">scale(-1 1) translate(-<xsl:value-of select="$maxwidth + 32"/>,0)</xsl:attribute>
|
3065
3116
|
</xsl:if>
|
3066
3117
|
<polyline points="0,0 {$maxwidth},0 {$maxwidth + 30},40 {$maxwidth},80 0,80 " stroke="black" stroke-width="5" fill="white"/>
|
3067
3118
|
<line x1="0" y1="0" x2="0" y2="80" stroke="black" stroke-width="20"/>
|
3068
3119
|
</g>
|
3069
3120
|
<text font-family="Arial" x="15" y="57" font-size="40pt">
|
3070
|
-
<xsl:if test="$type = 'closing'">
|
3121
|
+
<xsl:if test="$type = 'closing' or $type = 'end'">
|
3071
3122
|
<xsl:attribute name="x">25</xsl:attribute>
|
3072
3123
|
</xsl:if>
|
3073
3124
|
<xsl:value-of select="$kind"/><tspan dy="10" font-size="30pt"><xsl:value-of select="$value"/></tspan>
|
@@ -3271,14 +3322,6 @@
|
|
3271
3322
|
|
3272
3323
|
<xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
|
3273
3324
|
|
3274
|
-
<!-- <xsl:choose>
|
3275
|
-
<xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
|
3276
|
-
|
3277
|
-
</xsl:when>
|
3278
|
-
<xsl:otherwise>
|
3279
|
-
<xsl:copy-of select="current()"/>
|
3280
|
-
</xsl:otherwise>
|
3281
|
-
</xsl:choose> -->
|
3282
3325
|
</xsl:variable>
|
3283
3326
|
<xsl:copy-of select="$simple-table"/>
|
3284
3327
|
</xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
|
@@ -3397,8 +3440,6 @@
|
|
3397
3440
|
<xsl:choose>
|
3398
3441
|
<xsl:when test="contains($str2, ' ')">
|
3399
3442
|
<xsl:variable name="substr" select="substring-before($str2, ' ')"/>
|
3400
|
-
<!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
|
3401
|
-
<xsl:value-of select="substring($substr, 2)"/> -->
|
3402
3443
|
<xsl:call-template name="capitalize">
|
3403
3444
|
<xsl:with-param name="str" select="$substr"/>
|
3404
3445
|
</xsl:call-template>
|
@@ -3408,8 +3449,6 @@
|
|
3408
3449
|
</xsl:call-template>
|
3409
3450
|
</xsl:when>
|
3410
3451
|
<xsl:otherwise>
|
3411
|
-
<!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
|
3412
|
-
<xsl:value-of select="substring($str2, 2)"/> -->
|
3413
3452
|
<xsl:call-template name="capitalize">
|
3414
3453
|
<xsl:with-param name="str" select="$str2"/>
|
3415
3454
|
</xsl:call-template>
|
@@ -3437,6 +3476,7 @@
|
|
3437
3476
|
<xsl:apply-templates select="." mode="mathml"/>
|
3438
3477
|
</xsl:variable>
|
3439
3478
|
<fo:instream-foreign-object fox:alt-text="Math">
|
3479
|
+
|
3440
3480
|
|
3441
3481
|
|
3442
3482
|
<xsl:variable name="comment_text_following" select="following-sibling::node()[1][self::comment()]"/>
|
@@ -3468,7 +3508,7 @@
|
|
3468
3508
|
</xsl:attribute>
|
3469
3509
|
|
3470
3510
|
|
3471
|
-
|
3511
|
+
|
3472
3512
|
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
3473
3513
|
</fo:instream-foreign-object>
|
3474
3514
|
</fo:inline>
|
@@ -3527,6 +3567,10 @@
|
|
3527
3567
|
|
3528
3568
|
|
3529
3569
|
|
3570
|
+
|
3571
|
+
|
3572
|
+
|
3573
|
+
|
3530
3574
|
<xsl:choose>
|
3531
3575
|
<xsl:when test="$target_text = ''">
|
3532
3576
|
<xsl:apply-templates/>
|
@@ -3560,9 +3604,9 @@
|
|
3560
3604
|
<fo:inline role="H{$level}"><xsl:apply-templates/></fo:inline>
|
3561
3605
|
</xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
|
3562
3606
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
3563
|
-
<xsl:apply-templates select="*[local-name()='name']"
|
3607
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
3564
3608
|
</fo:block>
|
3565
|
-
<xsl:apply-templates/>
|
3609
|
+
<xsl:apply-templates select="node()[not(local-name()='name')]"/>
|
3566
3610
|
</xsl:template><xsl:template match="*[local-name() = 'callout']">
|
3567
3611
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}"><<xsl:apply-templates/>></fo:basic-link>
|
3568
3612
|
</xsl:template><xsl:template match="*[local-name() = 'annotation']">
|
@@ -3582,25 +3626,8 @@
|
|
3582
3626
|
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
3583
3627
|
<xsl:apply-templates/>
|
3584
3628
|
</fo:inline>
|
3585
|
-
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
3586
|
-
<xsl:variable name="title-modified">
|
3587
|
-
|
3588
|
-
|
3589
|
-
<xsl:call-template name="getTitle">
|
3590
|
-
<xsl:with-param name="name" select="'title-modified'"/>
|
3591
|
-
</xsl:call-template>
|
3592
|
-
|
3593
|
-
</xsl:variable>
|
3594
|
-
|
3595
|
-
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
3596
|
-
<xsl:choose>
|
3597
|
-
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
|
3598
|
-
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
|
3599
|
-
</xsl:choose>
|
3600
|
-
<xsl:apply-templates/>
|
3601
3629
|
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
3602
3630
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
3603
|
-
|
3604
3631
|
<xsl:apply-templates/>
|
3605
3632
|
</fo:basic-link>
|
3606
3633
|
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
@@ -3628,49 +3655,64 @@
|
|
3628
3655
|
<fo:inline>
|
3629
3656
|
<xsl:apply-templates/>
|
3630
3657
|
</fo:inline>
|
3631
|
-
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="
|
3658
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="formula_number"> <!-- show by demand -->
|
3632
3659
|
<xsl:if test="normalize-space() != ''">
|
3633
3660
|
<xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
|
3634
3661
|
</xsl:if>
|
3635
3662
|
</xsl:template><xsl:template match="*[local-name() = 'note']" name="note">
|
3636
3663
|
|
3637
3664
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
3665
|
+
|
3666
|
+
|
3638
3667
|
|
3639
3668
|
|
3640
3669
|
|
3641
3670
|
|
3642
3671
|
|
3672
|
+
|
3673
|
+
|
3674
|
+
|
3675
|
+
|
3643
3676
|
<fo:block-container margin-left="0mm">
|
3677
|
+
|
3644
3678
|
|
3645
3679
|
|
3646
3680
|
|
3681
|
+
|
3647
3682
|
|
3648
|
-
|
3649
|
-
|
3650
|
-
|
3651
|
-
|
3652
|
-
<fo:block>
|
3653
|
-
|
3654
|
-
|
3655
|
-
|
3656
|
-
|
3657
|
-
|
3683
|
+
<fo:block>
|
3684
|
+
|
3685
|
+
|
3658
3686
|
|
3659
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3660
3687
|
|
3661
|
-
|
3662
|
-
|
3663
|
-
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3688
|
+
|
3689
|
+
|
3690
|
+
|
3691
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3692
|
+
|
3693
|
+
|
3694
|
+
|
3695
|
+
<!-- if note contains only one element and first and last childs are `add` ace-tag, then move start ace-tag before NOTE's name-->
|
3696
|
+
<xsl:if test="count(*[not(local-name() = 'name')]) = 1 and *[not(local-name() = 'name')]/node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
3697
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')]/node()[1][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
3698
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
3699
|
+
</xsl:apply-templates>
|
3700
|
+
</xsl:if>
|
3701
|
+
|
3702
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
3703
|
+
|
3704
|
+
</fo:inline>
|
3705
|
+
|
3706
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3707
|
+
</fo:block>
|
3708
|
+
|
3667
3709
|
</fo:block-container>
|
3668
3710
|
</fo:block-container>
|
3669
3711
|
|
3670
3712
|
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
|
3671
3713
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
3672
3714
|
<xsl:choose>
|
3673
|
-
<xsl:when test="$num = 1">
|
3715
|
+
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
3674
3716
|
<fo:inline xsl:use-attribute-sets="note-p-style">
|
3675
3717
|
<xsl:apply-templates/>
|
3676
3718
|
</fo:inline>
|
@@ -3685,12 +3727,16 @@
|
|
3685
3727
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3686
3728
|
|
3687
3729
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3730
|
+
|
3731
|
+
|
3732
|
+
|
3733
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
3688
3734
|
|
3689
|
-
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3690
3735
|
</fo:inline>
|
3691
|
-
|
3736
|
+
|
3737
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3692
3738
|
</fo:block>
|
3693
|
-
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']
|
3739
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']">
|
3694
3740
|
<xsl:param name="sfx"/>
|
3695
3741
|
<xsl:variable name="suffix">
|
3696
3742
|
<xsl:choose>
|
@@ -3709,7 +3755,7 @@
|
|
3709
3755
|
<xsl:apply-templates/>
|
3710
3756
|
<xsl:value-of select="$suffix"/>
|
3711
3757
|
</xsl:if>
|
3712
|
-
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']"
|
3758
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']">
|
3713
3759
|
<xsl:param name="sfx"/>
|
3714
3760
|
<xsl:variable name="suffix">
|
3715
3761
|
<xsl:choose>
|
@@ -3734,29 +3780,27 @@
|
|
3734
3780
|
<xsl:apply-templates/>
|
3735
3781
|
</fo:block>
|
3736
3782
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3737
|
-
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3738
3783
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3739
3784
|
|
3740
3785
|
|
3741
3786
|
<fo:block keep-with-next="always" margin-top="10pt" margin-bottom="8pt" line-height="1.1">
|
3742
|
-
<xsl:apply-templates select="m3d:name"
|
3787
|
+
<xsl:apply-templates select="m3d:name"/>
|
3743
3788
|
</fo:block>
|
3744
3789
|
|
3790
|
+
|
3791
|
+
|
3745
3792
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3746
3793
|
|
3747
3794
|
</xsl:if>
|
3748
|
-
<xsl:apply-templates/>
|
3795
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3749
3796
|
</fo:block>
|
3750
|
-
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"
|
3797
|
+
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
|
3751
3798
|
<xsl:if test="normalize-space() != ''">
|
3752
3799
|
<xsl:variable name="level">
|
3753
3800
|
<xsl:call-template name="getLevelTermName"/>
|
3754
3801
|
</xsl:variable>
|
3755
3802
|
<fo:inline role="H{$level}">
|
3756
3803
|
<xsl:apply-templates/>
|
3757
|
-
<!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
|
3758
|
-
<xsl:text>.</xsl:text>
|
3759
|
-
</xsl:if> -->
|
3760
3804
|
</fo:inline>
|
3761
3805
|
</xsl:if>
|
3762
3806
|
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
@@ -3769,9 +3813,10 @@
|
|
3769
3813
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
3770
3814
|
</xsl:call-template>
|
3771
3815
|
|
3772
|
-
|
3773
|
-
|
3774
|
-
|
3816
|
+
|
3817
|
+
|
3818
|
+
<fo:block xsl:use-attribute-sets="figure-style">
|
3819
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3775
3820
|
</fo:block>
|
3776
3821
|
<xsl:call-template name="fn_display_figure"/>
|
3777
3822
|
<xsl:for-each select="*[local-name() = 'note']">
|
@@ -3779,14 +3824,15 @@
|
|
3779
3824
|
</xsl:for-each>
|
3780
3825
|
|
3781
3826
|
|
3782
|
-
|
3827
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
|
3828
|
+
|
3783
3829
|
|
3784
3830
|
</fo:block-container>
|
3785
3831
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3786
3832
|
<fo:block id="{@id}">
|
3787
|
-
<xsl:apply-templates/>
|
3833
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
3788
3834
|
</fo:block>
|
3789
|
-
<xsl:apply-templates select="*[local-name() = 'name']"
|
3835
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
3790
3836
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
|
3791
3837
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
3792
3838
|
<xsl:apply-templates/>
|
@@ -3893,9 +3939,7 @@
|
|
3893
3939
|
<xsl:variable name="bis" select="java:java.io.ByteArrayInputStream.new($fileContent)"/>
|
3894
3940
|
<xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($bis)"/>
|
3895
3941
|
<xsl:variable name="width" select="java:getWidth($bufferedImage)"/>
|
3896
|
-
<!-- width=<xsl:value-of select="$width"/> -->
|
3897
3942
|
<xsl:variable name="height" select="java:getHeight($bufferedImage)"/>
|
3898
|
-
<!-- height=<xsl:value-of select="$height"/> -->
|
3899
3943
|
<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">
|
3900
3944
|
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{@src}" height="{$height}" width="{$width}" style="overflow:visible;"/>
|
3901
3945
|
<xsl:call-template name="svg_cross">
|
@@ -4165,7 +4209,7 @@
|
|
4165
4209
|
</fo:basic-link>
|
4166
4210
|
</fo:block>
|
4167
4211
|
</fo:block-container>
|
4168
|
-
</xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']
|
4212
|
+
</xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4169
4213
|
<xsl:apply-templates mode="contents"/>
|
4170
4214
|
<xsl:text> </xsl:text>
|
4171
4215
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
|
@@ -4177,11 +4221,58 @@
|
|
4177
4221
|
<xsl:value-of select="."/>
|
4178
4222
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4179
4223
|
<xsl:apply-templates mode="contents"/>
|
4224
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="2" mode="contents">
|
4225
|
+
<xsl:variable name="level">
|
4226
|
+
<xsl:call-template name="getLevel">
|
4227
|
+
<xsl:with-param name="depth" select="@depth"/>
|
4228
|
+
</xsl:call-template>
|
4229
|
+
</xsl:variable>
|
4230
|
+
|
4231
|
+
<xsl:variable name="section">
|
4232
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
4233
|
+
</xsl:variable>
|
4234
|
+
|
4235
|
+
<xsl:variable name="type">floating-title</xsl:variable>
|
4236
|
+
|
4237
|
+
<xsl:variable name="display">
|
4238
|
+
<xsl:choose>
|
4239
|
+
<xsl:when test="normalize-space(@id) = ''">false</xsl:when>
|
4240
|
+
<xsl:when test="$level <= $toc_level">true</xsl:when>
|
4241
|
+
<xsl:otherwise>false</xsl:otherwise>
|
4242
|
+
</xsl:choose>
|
4243
|
+
</xsl:variable>
|
4244
|
+
|
4245
|
+
<xsl:variable name="skip">false</xsl:variable>
|
4246
|
+
|
4247
|
+
<xsl:if test="$skip = 'false'">
|
4248
|
+
|
4249
|
+
<xsl:variable name="title">
|
4250
|
+
<xsl:choose>
|
4251
|
+
<xsl:when test="*[local-name() = 'tab']">
|
4252
|
+
<xsl:copy-of select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
4253
|
+
</xsl:when>
|
4254
|
+
<xsl:otherwise>
|
4255
|
+
<xsl:copy-of select="node()"/>
|
4256
|
+
</xsl:otherwise>
|
4257
|
+
</xsl:choose>
|
4258
|
+
</xsl:variable>
|
4259
|
+
|
4260
|
+
<xsl:variable name="root">
|
4261
|
+
<xsl:if test="ancestor-or-self::*[local-name() = 'preface']">preface</xsl:if>
|
4262
|
+
<xsl:if test="ancestor-or-self::*[local-name() = 'annex']">annex</xsl:if>
|
4263
|
+
</xsl:variable>
|
4264
|
+
|
4265
|
+
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
4266
|
+
<title>
|
4267
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
4268
|
+
</title>
|
4269
|
+
</item>
|
4270
|
+
</xsl:if>
|
4180
4271
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
4181
4272
|
<xsl:apply-templates mode="bookmarks"/>
|
4182
4273
|
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
4183
4274
|
<xsl:apply-templates select="."/>
|
4184
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
4275
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'references']/*[local-name() = 'bibitem']" mode="contents"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
4185
4276
|
<xsl:apply-templates mode="bookmarks"/>
|
4186
4277
|
</xsl:template><xsl:template name="addBookmarks">
|
4187
4278
|
<xsl:param name="contents"/>
|
@@ -4271,8 +4362,6 @@
|
|
4271
4362
|
|
4272
4363
|
|
4273
4364
|
|
4274
|
-
|
4275
|
-
|
4276
4365
|
</fo:bookmark-tree>
|
4277
4366
|
</xsl:if>
|
4278
4367
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -4343,7 +4432,7 @@
|
|
4343
4432
|
<xsl:apply-templates mode="bookmark"/>
|
4344
4433
|
</xsl:otherwise>
|
4345
4434
|
</xsl:choose>
|
4346
|
-
</xsl:template><xsl:template match="title" mode="bookmark"/><xsl:template match="text()" mode="bookmark"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']"
|
4435
|
+
</xsl:template><xsl:template match="title" mode="bookmark"/><xsl:template match="text()" mode="bookmark"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']">
|
4347
4436
|
<xsl:if test="normalize-space() != ''">
|
4348
4437
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
4349
4438
|
|
@@ -4352,16 +4441,13 @@
|
|
4352
4441
|
</fo:block>
|
4353
4442
|
</xsl:if>
|
4354
4443
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/><xsl:template match="*[local-name() = 'title']" mode="contents_item">
|
4355
|
-
<xsl:
|
4444
|
+
<xsl:param name="mode">bookmarks</xsl:param>
|
4445
|
+
<xsl:apply-templates mode="contents_item">
|
4446
|
+
<xsl:with-param name="mode" select="$mode"/>
|
4447
|
+
</xsl:apply-templates>
|
4356
4448
|
<!-- <xsl:text> </xsl:text> -->
|
4357
4449
|
</xsl:template><xsl:template name="getSection">
|
4358
4450
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
4359
|
-
<!--
|
4360
|
-
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
4361
|
-
<xsl:value-of select="."/>
|
4362
|
-
</xsl:for-each>
|
4363
|
-
-->
|
4364
|
-
|
4365
4451
|
</xsl:template><xsl:template name="getName">
|
4366
4452
|
<xsl:choose>
|
4367
4453
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -4425,9 +4511,26 @@
|
|
4425
4511
|
<xsl:copy-of select="."/>
|
4426
4512
|
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
4427
4513
|
<xsl:text> </xsl:text>
|
4514
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']" mode="contents_item">
|
4515
|
+
<xsl:param name="mode">bookmarks</xsl:param>
|
4516
|
+
<xsl:apply-templates mode="contents_item">
|
4517
|
+
<xsl:with-param name="mode" select="$mode"/>
|
4518
|
+
</xsl:apply-templates>
|
4519
|
+
</xsl:template><xsl:template match="*[local-name() = 'add']" mode="contents_item">
|
4520
|
+
<xsl:param name="mode">bookmarks</xsl:param>
|
4521
|
+
<xsl:choose>
|
4522
|
+
<xsl:when test="starts-with(text(), $ace_tag)">
|
4523
|
+
<xsl:if test="$mode = 'contents'">
|
4524
|
+
<xsl:copy>
|
4525
|
+
<xsl:apply-templates mode="contents_item"/>
|
4526
|
+
</xsl:copy>
|
4527
|
+
</xsl:if>
|
4528
|
+
</xsl:when>
|
4529
|
+
<xsl:otherwise><xsl:apply-templates mode="contents_item"/></xsl:otherwise>
|
4530
|
+
</xsl:choose>
|
4428
4531
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
4429
4532
|
|
4430
|
-
<fo:block-container
|
4533
|
+
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
|
4431
4534
|
<xsl:copy-of select="@id"/>
|
4432
4535
|
|
4433
4536
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -4464,6 +4567,7 @@
|
|
4464
4567
|
|
4465
4568
|
|
4466
4569
|
</xsl:variable>
|
4570
|
+
|
4467
4571
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4468
4572
|
<xsl:if test="$font-size != ''">
|
4469
4573
|
<xsl:attribute name="font-size">
|
@@ -4480,11 +4584,11 @@
|
|
4480
4584
|
|
4481
4585
|
|
4482
4586
|
|
4483
|
-
<xsl:apply-templates/>
|
4587
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4484
4588
|
</fo:block>
|
4485
4589
|
|
4486
4590
|
|
4487
|
-
|
4591
|
+
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
4488
4592
|
|
4489
4593
|
|
4490
4594
|
|
@@ -4498,7 +4602,7 @@
|
|
4498
4602
|
<xsl:call-template name="add-zero-spaces-java">
|
4499
4603
|
<xsl:with-param name="text" select="$text"/>
|
4500
4604
|
</xsl:call-template>
|
4501
|
-
</xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"
|
4605
|
+
</xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']">
|
4502
4606
|
<xsl:if test="normalize-space() != ''">
|
4503
4607
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4504
4608
|
<xsl:apply-templates/>
|
@@ -4506,10 +4610,10 @@
|
|
4506
4610
|
</xsl:if>
|
4507
4611
|
</xsl:template><xsl:template match="*[local-name() = 'permission']">
|
4508
4612
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
4509
|
-
<xsl:apply-templates select="*[local-name()='name']"
|
4510
|
-
<xsl:apply-templates/>
|
4613
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
4614
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4511
4615
|
</fo:block>
|
4512
|
-
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']"
|
4616
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']">
|
4513
4617
|
<xsl:if test="normalize-space() != ''">
|
4514
4618
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
4515
4619
|
<xsl:apply-templates/>
|
@@ -4522,13 +4626,13 @@
|
|
4522
4626
|
</fo:block>
|
4523
4627
|
</xsl:template><xsl:template match="*[local-name() = 'requirement']">
|
4524
4628
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
4525
|
-
<xsl:apply-templates select="*[local-name()='name']"
|
4526
|
-
<xsl:apply-templates select="*[local-name()='label']"
|
4527
|
-
<xsl:apply-templates select="@obligation"
|
4528
|
-
<xsl:apply-templates select="*[local-name()='subject']"
|
4529
|
-
<xsl:apply-templates/>
|
4629
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
4630
|
+
<xsl:apply-templates select="*[local-name()='label']"/>
|
4631
|
+
<xsl:apply-templates select="@obligation"/>
|
4632
|
+
<xsl:apply-templates select="*[local-name()='subject']"/>
|
4633
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'label') and not(local-name() = 'subject')]"/>
|
4530
4634
|
</fo:block>
|
4531
|
-
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']"
|
4635
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']">
|
4532
4636
|
<xsl:if test="normalize-space() != ''">
|
4533
4637
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4534
4638
|
|
@@ -4536,20 +4640,24 @@
|
|
4536
4640
|
|
4537
4641
|
</fo:block>
|
4538
4642
|
</xsl:if>
|
4539
|
-
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']"
|
4643
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']">
|
4540
4644
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
4541
4645
|
<xsl:apply-templates/>
|
4542
4646
|
</fo:block>
|
4543
|
-
</xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation"
|
4647
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation">
|
4544
4648
|
<fo:block>
|
4545
4649
|
<fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
|
4546
4650
|
</fo:block>
|
4651
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" priority="2">
|
4652
|
+
<fo:block xsl:use-attribute-sets="subject-style">
|
4653
|
+
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
|
4654
|
+
</fo:block>
|
4547
4655
|
</xsl:template><xsl:template match="*[local-name() = 'recommendation']">
|
4548
4656
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
4549
|
-
<xsl:apply-templates select="*[local-name()='name']"
|
4550
|
-
<xsl:apply-templates/>
|
4657
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
4658
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4551
4659
|
</fo:block>
|
4552
|
-
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']"
|
4660
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
|
4553
4661
|
<xsl:if test="normalize-space() != ''">
|
4554
4662
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
4555
4663
|
<xsl:apply-templates/>
|
@@ -4560,10 +4668,6 @@
|
|
4560
4668
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
4561
4669
|
<xsl:apply-templates/>
|
4562
4670
|
</fo:block>
|
4563
|
-
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" priority="2"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" mode="presentation">
|
4564
|
-
<fo:block xsl:use-attribute-sets="subject-style">
|
4565
|
-
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
|
4566
|
-
</fo:block>
|
4567
4671
|
</xsl:template><xsl:template match="*[local-name() = 'subject']">
|
4568
4672
|
<fo:block xsl:use-attribute-sets="subject-style">
|
4569
4673
|
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
|
@@ -4607,8 +4711,6 @@
|
|
4607
4711
|
</xsl:variable>
|
4608
4712
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
4609
4713
|
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
4610
|
-
<!-- <fo:table-column column-width="35mm"/>
|
4611
|
-
<fo:table-column column-width="115mm"/> -->
|
4612
4714
|
<fo:table-column column-width="30%"/>
|
4613
4715
|
<fo:table-column column-width="70%"/>
|
4614
4716
|
</xsl:if>
|
@@ -4618,7 +4720,7 @@
|
|
4618
4720
|
<xsl:if test=".//*[local-name() = 'fn']">
|
4619
4721
|
<xsl:for-each select="*[local-name() = 'tbody']">
|
4620
4722
|
<fo:block font-size="90%" border-bottom="1pt solid black">
|
4621
|
-
<xsl:call-template name="
|
4723
|
+
<xsl:call-template name="table_fn_display"/>
|
4622
4724
|
</fo:block>
|
4623
4725
|
</xsl:for-each>
|
4624
4726
|
</xsl:if>
|
@@ -4635,7 +4737,6 @@
|
|
4635
4737
|
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
4636
4738
|
<fo:table-row height="7mm" border-bottom="0.5pt solid grey">
|
4637
4739
|
<xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
|
4638
|
-
<!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
|
4639
4740
|
<xsl:attribute name="background-color">rgb(33, 55, 92)</xsl:attribute>
|
4640
4741
|
</xsl:if>
|
4641
4742
|
<xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
|
@@ -4648,34 +4749,11 @@
|
|
4648
4749
|
</fo:table-row>
|
4649
4750
|
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
4650
4751
|
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
|
4651
|
-
<xsl:
|
4652
|
-
<xsl:
|
4653
|
-
|
4654
|
-
<xsl:value-of select="@align"/>
|
4655
|
-
</xsl:when>
|
4656
|
-
<xsl:otherwise>left</xsl:otherwise>
|
4657
|
-
</xsl:choose>
|
4658
|
-
</xsl:attribute>
|
4659
|
-
<xsl:if test="@colspan">
|
4660
|
-
<xsl:attribute name="number-columns-spanned">
|
4661
|
-
<xsl:value-of select="@colspan"/>
|
4662
|
-
</xsl:attribute>
|
4663
|
-
</xsl:if>
|
4664
|
-
<xsl:if test="@rowspan">
|
4665
|
-
<xsl:attribute name="number-rows-spanned">
|
4666
|
-
<xsl:value-of select="@rowspan"/>
|
4667
|
-
</xsl:attribute>
|
4668
|
-
</xsl:if>
|
4669
|
-
<xsl:call-template name="display-align"/>
|
4752
|
+
<xsl:call-template name="setTextAlignment">
|
4753
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
4754
|
+
</xsl:call-template>
|
4670
4755
|
|
4671
|
-
|
4672
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
4673
|
-
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
4674
|
-
</xsl:if>
|
4675
|
-
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
4676
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
4677
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
4678
|
-
</xsl:if> -->
|
4756
|
+
<xsl:call-template name="setTableCellAttributes"/>
|
4679
4757
|
|
4680
4758
|
<fo:block>
|
4681
4759
|
<xsl:apply-templates/>
|
@@ -4687,37 +4765,15 @@
|
|
4687
4765
|
<xsl:attribute name="padding">0mm</xsl:attribute>
|
4688
4766
|
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
4689
4767
|
</xsl:if>
|
4690
|
-
<xsl:
|
4691
|
-
<xsl:
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
</xsl:choose>
|
4697
|
-
</xsl:attribute>
|
4698
|
-
<xsl:if test="following-sibling::*[local-name()='td'] and not(preceding-sibling::*[local-name()='td'])">
|
4699
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4700
|
-
</xsl:if>
|
4701
|
-
<xsl:if test="@colspan">
|
4702
|
-
<xsl:attribute name="number-columns-spanned">
|
4703
|
-
<xsl:value-of select="@colspan"/>
|
4704
|
-
</xsl:attribute>
|
4705
|
-
</xsl:if>
|
4706
|
-
<xsl:if test="@rowspan">
|
4707
|
-
<xsl:attribute name="number-rows-spanned">
|
4708
|
-
<xsl:value-of select="@rowspan"/>
|
4709
|
-
</xsl:attribute>
|
4768
|
+
<xsl:call-template name="setTextAlignment">
|
4769
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
4770
|
+
</xsl:call-template>
|
4771
|
+
|
4772
|
+
<xsl:if test="following-sibling::*[local-name()='td'] and not(preceding-sibling::*[local-name()='td'])">
|
4773
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4710
4774
|
</xsl:if>
|
4711
|
-
<xsl:call-template name="display-align"/>
|
4712
4775
|
|
4713
|
-
|
4714
|
-
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
4715
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
4716
|
-
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
|
4717
|
-
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
4718
|
-
</xsl:if>
|
4719
|
-
</xsl:if> -->
|
4720
|
-
<!-- 2nd line and below -->
|
4776
|
+
<xsl:call-template name="setTableCellAttributes"/>
|
4721
4777
|
|
4722
4778
|
<fo:block>
|
4723
4779
|
<xsl:apply-templates/>
|
@@ -4729,15 +4785,15 @@
|
|
4729
4785
|
<xsl:apply-templates/>
|
4730
4786
|
</fo:block>
|
4731
4787
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
4732
|
-
<fo:block>
|
4788
|
+
<fo:block>
|
4733
4789
|
<xsl:apply-templates/>
|
4734
4790
|
</fo:block>
|
4735
4791
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
4736
4792
|
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
4737
|
-
<xsl:apply-templates select="*[local-name()='name']"
|
4738
|
-
<xsl:apply-templates/>
|
4793
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
4794
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4739
4795
|
</fo:block>
|
4740
|
-
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']"
|
4796
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']">
|
4741
4797
|
<xsl:if test="normalize-space() != ''">
|
4742
4798
|
<fo:inline xsl:use-attribute-sets="termexample-name-style">
|
4743
4799
|
<xsl:apply-templates/>
|
@@ -4761,42 +4817,46 @@
|
|
4761
4817
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
4762
4818
|
|
4763
4819
|
|
4764
|
-
<xsl:
|
4765
|
-
|
4766
|
-
<xsl:variable name="element">
|
4767
|
-
|
4820
|
+
<xsl:variable name="fo_element">
|
4821
|
+
<xsl:if test=".//*[local-name() = 'table'] or .//*[local-name() = 'dl']">block</xsl:if>
|
4768
4822
|
inline
|
4769
|
-
<xsl:if test=".//*[local-name() = 'table']">block</xsl:if>
|
4770
4823
|
</xsl:variable>
|
4771
4824
|
|
4825
|
+
<!-- display 'EXAMPLE' -->
|
4826
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
4827
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
4828
|
+
</xsl:apply-templates>
|
4829
|
+
|
4772
4830
|
<xsl:choose>
|
4773
|
-
<xsl:when test="contains(normalize-space($
|
4774
|
-
<fo:block xsl:use-attribute-sets="example-body-style">
|
4775
|
-
<
|
4776
|
-
|
4831
|
+
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
4832
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
4833
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
4834
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
4835
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
4836
|
+
</xsl:apply-templates>
|
4837
|
+
</fo:block-container>
|
4838
|
+
</fo:block-container>
|
4777
4839
|
</xsl:when>
|
4778
4840
|
<xsl:otherwise>
|
4779
4841
|
<fo:inline>
|
4780
|
-
<xsl:apply-templates
|
4842
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
4843
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
4844
|
+
</xsl:apply-templates>
|
4781
4845
|
</fo:inline>
|
4782
4846
|
</xsl:otherwise>
|
4783
4847
|
</xsl:choose>
|
4784
4848
|
|
4785
4849
|
</fo:block>
|
4786
|
-
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']"
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
inline
|
4791
|
-
<xsl:if test="following-sibling::*[1][local-name() = 'table']">block</xsl:if>
|
4792
|
-
</xsl:variable>
|
4850
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']">
|
4851
|
+
<xsl:param name="fo_element">block</xsl:param>
|
4852
|
+
|
4793
4853
|
<xsl:choose>
|
4794
4854
|
<xsl:when test="ancestor::*[local-name() = 'appendix']">
|
4795
4855
|
<fo:inline>
|
4796
4856
|
<xsl:apply-templates/>
|
4797
4857
|
</fo:inline>
|
4798
4858
|
</xsl:when>
|
4799
|
-
<xsl:when test="contains(normalize-space($
|
4859
|
+
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
4800
4860
|
<fo:block xsl:use-attribute-sets="example-name-style">
|
4801
4861
|
<xsl:apply-templates/>
|
4802
4862
|
</fo:block>
|
@@ -4809,14 +4869,15 @@
|
|
4809
4869
|
</xsl:choose>
|
4810
4870
|
|
4811
4871
|
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
4872
|
+
<xsl:param name="fo_element">block</xsl:param>
|
4873
|
+
|
4812
4874
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
4813
4875
|
<xsl:variable name="element">
|
4814
|
-
block
|
4815
|
-
|
4816
4876
|
|
4877
|
+
<xsl:value-of select="$fo_element"/>
|
4817
4878
|
</xsl:variable>
|
4818
4879
|
<xsl:choose>
|
4819
|
-
<xsl:when test="normalize-space($element)
|
4880
|
+
<xsl:when test="starts-with(normalize-space($element), 'block')">
|
4820
4881
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
4821
4882
|
|
4822
4883
|
<xsl:apply-templates/>
|
@@ -4831,49 +4892,70 @@
|
|
4831
4892
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4832
4893
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4833
4894
|
|
4895
|
+
|
4896
|
+
|
4834
4897
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4835
4898
|
<xsl:variable name="termsource_text">
|
4836
4899
|
<xsl:apply-templates/>
|
4837
4900
|
</xsl:variable>
|
4838
|
-
|
4839
|
-
<xsl:choose>
|
4901
|
+
<xsl:copy-of select="$termsource_text"/>
|
4902
|
+
<!-- <xsl:choose>
|
4840
4903
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4841
|
-
<!-- <xsl:apply-templates /> -->
|
4842
4904
|
<xsl:copy-of select="$termsource_text"/>
|
4843
4905
|
</xsl:when>
|
4844
4906
|
<xsl:otherwise>
|
4845
|
-
|
4846
|
-
|
4907
|
+
<xsl:if test="$namespace = 'bsi'">
|
4908
|
+
<xsl:choose>
|
4909
|
+
<xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
|
4910
|
+
<xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
|
4911
|
+
</xsl:choose>
|
4912
|
+
</xsl:if>
|
4913
|
+
<xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
|
4847
4914
|
<xsl:text>[</xsl:text>
|
4848
|
-
|
4849
|
-
<!-- <xsl:apply-templates /> -->
|
4915
|
+
</xsl:if>
|
4850
4916
|
<xsl:copy-of select="$termsource_text"/>
|
4851
|
-
|
4852
|
-
|
4917
|
+
<xsl:if test="$namespace = 'bsi'">
|
4918
|
+
<xsl:choose>
|
4919
|
+
<xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
|
4920
|
+
<xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
|
4921
|
+
</xsl:choose>
|
4922
|
+
</xsl:if>
|
4923
|
+
<xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
|
4853
4924
|
<xsl:text>]</xsl:text>
|
4854
|
-
|
4925
|
+
</xsl:if>
|
4855
4926
|
</xsl:otherwise>
|
4856
|
-
</xsl:choose>
|
4927
|
+
</xsl:choose> -->
|
4857
4928
|
</fo:block>
|
4858
4929
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
|
4859
4930
|
<xsl:if test="normalize-space() != ''">
|
4860
4931
|
<xsl:value-of select="."/>
|
4861
4932
|
</xsl:if>
|
4862
|
-
</xsl:template><xsl:
|
4863
|
-
<xsl:
|
4864
|
-
<xsl:
|
4865
|
-
</
|
4866
|
-
</xsl:
|
4933
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
|
4934
|
+
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4935
|
+
<xsl:value-of select="."/>
|
4936
|
+
</fo:inline>
|
4937
|
+
</xsl:template><xsl:template match="*[local-name() = 'origin']">
|
4867
4938
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4868
4939
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4869
4940
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4870
4941
|
</xsl:if>
|
4871
|
-
|
4872
4942
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4873
4943
|
<xsl:apply-templates/>
|
4874
4944
|
</fo:inline>
|
4875
|
-
|
4876
|
-
|
4945
|
+
</fo:basic-link>
|
4946
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
4947
|
+
<xsl:variable name="title-modified">
|
4948
|
+
<xsl:call-template name="getLocalizedString">
|
4949
|
+
<xsl:with-param name="key">modified</xsl:with-param>
|
4950
|
+
</xsl:call-template>
|
4951
|
+
</xsl:variable>
|
4952
|
+
|
4953
|
+
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
4954
|
+
<xsl:choose>
|
4955
|
+
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
|
4956
|
+
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
|
4957
|
+
</xsl:choose>
|
4958
|
+
<xsl:apply-templates/>
|
4877
4959
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
|
4878
4960
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
4879
4961
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
@@ -4892,7 +4974,6 @@
|
|
4892
4974
|
<fo:block-container margin-left="0mm">
|
4893
4975
|
|
4894
4976
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4895
|
-
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4896
4977
|
|
4897
4978
|
<xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4898
4979
|
</fo:block>
|
@@ -4935,15 +5016,15 @@
|
|
4935
5016
|
</xsl:variable>
|
4936
5017
|
|
4937
5018
|
<xsl:choose>
|
4938
|
-
<xsl:when test="normalize-space($bibitemid) != ''">
|
5019
|
+
<xsl:when test="normalize-space($bibitemid) != ''"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link -->
|
4939
5020
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
4940
5021
|
<xsl:if test="@type = 'footnote'">
|
4941
|
-
|
5022
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
5023
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
5024
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5025
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4942
5026
|
|
4943
|
-
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
4944
5027
|
<xsl:attribute name="font-size">50%</xsl:attribute>
|
4945
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
4946
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4947
5028
|
|
4948
5029
|
</xsl:if>
|
4949
5030
|
|
@@ -4960,7 +5041,6 @@
|
|
4960
5041
|
|
4961
5042
|
|
4962
5043
|
|
4963
|
-
|
4964
5044
|
</xsl:if>
|
4965
5045
|
|
4966
5046
|
|
@@ -5021,8 +5101,6 @@
|
|
5021
5101
|
</xsl:choose>
|
5022
5102
|
</xsl:variable>
|
5023
5103
|
|
5024
|
-
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
5025
|
-
|
5026
5104
|
<xsl:choose>
|
5027
5105
|
<xsl:when test="$lang = 'zh'">
|
5028
5106
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
@@ -5057,12 +5135,9 @@
|
|
5057
5135
|
</fo:block>
|
5058
5136
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
5059
5137
|
<xsl:variable name="title-deprecated">
|
5060
|
-
|
5061
|
-
<xsl:
|
5062
|
-
|
5063
|
-
</xsl:call-template>
|
5064
|
-
|
5065
|
-
|
5138
|
+
<xsl:call-template name="getLocalizedString">
|
5139
|
+
<xsl:with-param name="key">deprecated</xsl:with-param>
|
5140
|
+
</xsl:call-template>
|
5066
5141
|
</xsl:variable>
|
5067
5142
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5068
5143
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
@@ -5071,6 +5146,8 @@
|
|
5071
5146
|
<xsl:if test="*[local-name() = 'strong']">
|
5072
5147
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5073
5148
|
</xsl:if>
|
5149
|
+
</xsl:template><xsl:template match="*[local-name() = 'preferred']/text()[contains(., ';')] | *[local-name() = 'preferred']/*[local-name() = 'strong']/text()[contains(., ';')]">
|
5150
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.), ';', $linebreak)"/>
|
5074
5151
|
</xsl:template><xsl:template match="*[local-name() = 'definition']">
|
5075
5152
|
<fo:block xsl:use-attribute-sets="definition-style">
|
5076
5153
|
<xsl:apply-templates/>
|
@@ -5079,7 +5156,6 @@
|
|
5079
5156
|
<xsl:apply-templates/>
|
5080
5157
|
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
|
5081
5158
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
5082
|
-
<!-- <fo:block> </fo:block> -->
|
5083
5159
|
<fo:block/>
|
5084
5160
|
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
5085
5161
|
|
@@ -5122,11 +5198,6 @@
|
|
5122
5198
|
<xsl:apply-templates/>
|
5123
5199
|
</fo:block>
|
5124
5200
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
5125
|
-
<fo:block id="{@id}">
|
5126
|
-
<xsl:apply-templates/>
|
5127
|
-
</fo:block>
|
5128
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
5129
|
-
|
5130
5201
|
<fo:block id="{@id}">
|
5131
5202
|
<xsl:apply-templates/>
|
5132
5203
|
</fo:block>
|
@@ -5143,6 +5214,51 @@
|
|
5143
5214
|
</xsl:template><xsl:template match="*[local-name() = 'name']/text()">
|
5144
5215
|
<!-- 0xA0 to space replacement -->
|
5145
5216
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
5217
|
+
</xsl:template><xsl:variable name="ul_labels_">
|
5218
|
+
|
5219
|
+
|
5220
|
+
|
5221
|
+
|
5222
|
+
|
5223
|
+
|
5224
|
+
|
5225
|
+
|
5226
|
+
|
5227
|
+
<label font-size="18pt" margin-top="-0.5mm">•</label> <!-- margin-top to vertical align big dot -->
|
5228
|
+
|
5229
|
+
|
5230
|
+
|
5231
|
+
|
5232
|
+
|
5233
|
+
|
5234
|
+
|
5235
|
+
|
5236
|
+
|
5237
|
+
</xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
|
5238
|
+
<xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
|
5239
|
+
<xsl:variable name="list_level">
|
5240
|
+
<xsl:choose>
|
5241
|
+
<xsl:when test="$list_level_ <= 3"><xsl:value-of select="$list_level_"/></xsl:when>
|
5242
|
+
<xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
|
5243
|
+
</xsl:choose>
|
5244
|
+
</xsl:variable>
|
5245
|
+
<xsl:choose>
|
5246
|
+
<xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
|
5247
|
+
<xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
|
5248
|
+
</xsl:when>
|
5249
|
+
<xsl:when test="$list_level mod 3 = 0">
|
5250
|
+
<xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
|
5251
|
+
</xsl:when>
|
5252
|
+
<xsl:when test="$list_level mod 2 = 0">
|
5253
|
+
<xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
|
5254
|
+
</xsl:when>
|
5255
|
+
<xsl:otherwise>
|
5256
|
+
<xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
|
5257
|
+
</xsl:otherwise>
|
5258
|
+
</xsl:choose>
|
5259
|
+
</xsl:template><xsl:template match="label" mode="ul_labels">
|
5260
|
+
<xsl:copy-of select="@*[not(local-name() = 'level')]"/>
|
5261
|
+
<xsl:value-of select="."/>
|
5146
5262
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
5147
5263
|
<xsl:choose>
|
5148
5264
|
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
@@ -5349,20 +5465,109 @@
|
|
5349
5465
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
5350
5466
|
<fo:block><xsl:apply-templates/></fo:block>
|
5351
5467
|
</fo:table-cell>
|
5352
|
-
</xsl:template><xsl:template name="
|
5468
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/><xsl:template match="*[local-name() = 'references'][@normative='true']" priority="2">
|
5469
|
+
|
5470
|
+
|
5471
|
+
|
5472
|
+
<fo:block id="{@id}">
|
5473
|
+
<xsl:apply-templates/>
|
5474
|
+
</fo:block>
|
5475
|
+
</xsl:template><xsl:template match="*[local-name() = 'references']">
|
5476
|
+
<xsl:if test="not(ancestor::*[local-name() = 'annex'])">
|
5477
|
+
|
5478
|
+
<fo:block break-after="page"/>
|
5479
|
+
|
5480
|
+
</xsl:if>
|
5481
|
+
|
5482
|
+
<!-- <xsl:if test="ancestor::*[local-name() = 'annex']">
|
5483
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'itu'">
|
5484
|
+
<fo:block break-after="page"/>
|
5485
|
+
</xsl:if>
|
5486
|
+
</xsl:if> -->
|
5487
|
+
|
5488
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="references-non-normative-style">
|
5489
|
+
<xsl:apply-templates/>
|
5490
|
+
</fo:block>
|
5353
5491
|
|
5354
5492
|
|
5493
|
+
<!-- horizontal line -->
|
5494
|
+
<fo:block-container text-align="center">
|
5495
|
+
<fo:block-container margin-left="63mm" width="42mm" border-bottom="2pt solid black">
|
5496
|
+
<fo:block> </fo:block>
|
5497
|
+
</fo:block-container>
|
5498
|
+
</fo:block-container>
|
5355
5499
|
|
5356
|
-
|
5357
5500
|
|
5358
5501
|
|
5359
|
-
|
5502
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']">
|
5503
|
+
<xsl:call-template name="bibitem"/>
|
5504
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
5360
5505
|
|
5506
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
5507
|
+
<xsl:call-template name="processBibitem"/>
|
5508
|
+
</fo:block>
|
5509
|
+
|
5510
|
+
|
5511
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
5512
|
+
|
5513
|
+
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
5514
|
+
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
5515
|
+
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
5516
|
+
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
5517
|
+
<fo:list-item>
|
5518
|
+
<fo:list-item-label end-indent="label-end()">
|
5519
|
+
<fo:block>
|
5520
|
+
<fo:inline>
|
5521
|
+
|
5522
|
+
<xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
|
5523
|
+
<xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
|
5524
|
+
<xsl:number format="[1]"/>
|
5525
|
+
</xsl:if>
|
5526
|
+
|
5527
|
+
</fo:inline>
|
5528
|
+
</fo:block>
|
5529
|
+
</fo:list-item-label>
|
5530
|
+
<fo:list-item-body start-indent="body-start()">
|
5531
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style">
|
5532
|
+
<xsl:call-template name="processBibitem"/>
|
5533
|
+
</fo:block>
|
5534
|
+
</fo:list-item-body>
|
5535
|
+
</fo:list-item>
|
5536
|
+
</fo:list-block>
|
5537
|
+
|
5361
5538
|
|
5539
|
+
</xsl:template><xsl:template name="processBibitem">
|
5362
5540
|
|
5363
5541
|
|
5542
|
+
<!-- start bibitem processing -->
|
5543
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
5544
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5545
|
+
</xsl:if>
|
5546
|
+
<xsl:variable name="docidentifier">
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="*[local-name() = 'docidentifier']/@type = 'metanorma'"/>
|
5549
|
+
<xsl:otherwise><xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma-ordinal')]"/></xsl:otherwise>
|
5550
|
+
</xsl:choose>
|
5551
|
+
</xsl:variable>
|
5552
|
+
<fo:inline><xsl:value-of select="$docidentifier"/></fo:inline>
|
5553
|
+
<xsl:apply-templates select="*[local-name() = 'note']"/>
|
5554
|
+
<xsl:if test="normalize-space($docidentifier) != ''">, </xsl:if>
|
5555
|
+
<xsl:choose>
|
5556
|
+
<xsl:when test="*[local-name() = 'title'][@type = 'main' and @language = $lang]">
|
5557
|
+
<xsl:apply-templates select="*[local-name() = 'title'][@type = 'main' and @language = $lang]"/>
|
5558
|
+
</xsl:when>
|
5559
|
+
<xsl:when test="*[local-name() = 'title'][@type = 'main' and @language = 'en']">
|
5560
|
+
<xsl:apply-templates select="*[local-name() = 'title'][@type = 'main' and @language = 'en']"/>
|
5561
|
+
</xsl:when>
|
5562
|
+
<xsl:otherwise>
|
5563
|
+
<xsl:apply-templates select="*[local-name() = 'title']"/>
|
5564
|
+
</xsl:otherwise>
|
5565
|
+
</xsl:choose>
|
5566
|
+
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
5567
|
+
<!-- end bibitem processing -->
|
5568
|
+
|
5364
5569
|
</xsl:template><xsl:template name="processBibitemDocId">
|
5365
|
-
<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')]"/>
|
5570
|
+
<xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
|
5366
5571
|
<xsl:choose>
|
5367
5572
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
5368
5573
|
<!-- <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"/>
|
@@ -5376,7 +5581,7 @@
|
|
5376
5581
|
<xsl:if test="$type != ''">
|
5377
5582
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
5378
5583
|
</xsl:if> -->
|
5379
|
-
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
5584
|
+
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma') and not(@type = 'metanorma-ordinal')]"/>
|
5380
5585
|
</xsl:otherwise>
|
5381
5586
|
</xsl:choose>
|
5382
5587
|
</xsl:template><xsl:template name="processPersonalAuthor">
|
@@ -5417,6 +5622,48 @@
|
|
5417
5622
|
<xsl:value-of select="substring(.,1,1)"/>
|
5418
5623
|
</xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
|
5419
5624
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
5625
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'title']" priority="2">
|
5626
|
+
<!-- <fo:inline><xsl:apply-templates /></fo:inline> -->
|
5627
|
+
<fo:inline font-style="italic"> <!-- BIPM BSI CSD CSA GB IEC IHO ISO ITU JCGM -->
|
5628
|
+
<xsl:apply-templates/>
|
5629
|
+
</fo:inline>
|
5630
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'note']" priority="2">
|
5631
|
+
<fo:footnote>
|
5632
|
+
<xsl:variable name="number">
|
5633
|
+
|
5634
|
+
<xsl:number level="any" count="*[local-name() = 'bibitem']/*[local-name() = 'note']"/>
|
5635
|
+
|
5636
|
+
</xsl:variable>
|
5637
|
+
<fo:inline xsl:use-attribute-sets="bibitem-note-fn-style">
|
5638
|
+
<fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
|
5639
|
+
<xsl:value-of select="$number"/>
|
5640
|
+
|
5641
|
+
</fo:basic-link>
|
5642
|
+
</fo:inline>
|
5643
|
+
<fo:footnote-body>
|
5644
|
+
<fo:block xsl:use-attribute-sets="bibitem-note-fn-body-style">
|
5645
|
+
<fo:inline id="{generate-id()}" xsl:use-attribute-sets="bibitem-note-fn-number-style">
|
5646
|
+
<xsl:value-of select="$number"/>
|
5647
|
+
|
5648
|
+
</fo:inline>
|
5649
|
+
<xsl:apply-templates/>
|
5650
|
+
</fo:block>
|
5651
|
+
</fo:footnote-body>
|
5652
|
+
</fo:footnote>
|
5653
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'edition']"> <!-- for iho -->
|
5654
|
+
<xsl:text> edition </xsl:text>
|
5655
|
+
<xsl:value-of select="."/>
|
5656
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'uri']"> <!-- for iho -->
|
5657
|
+
<xsl:text> (</xsl:text>
|
5658
|
+
<fo:inline xsl:use-attribute-sets="link-style">
|
5659
|
+
<fo:basic-link external-destination="." fox:alt-text=".">
|
5660
|
+
<xsl:value-of select="."/>
|
5661
|
+
</fo:basic-link>
|
5662
|
+
</fo:inline>
|
5663
|
+
<xsl:text>)</xsl:text>
|
5664
|
+
</xsl:template><xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/><xsl:template match="*[local-name() = 'formattedref']">
|
5665
|
+
|
5666
|
+
<xsl:apply-templates/>
|
5420
5667
|
</xsl:template><xsl:template match="*[local-name() = 'form']">
|
5421
5668
|
<fo:block>
|
5422
5669
|
<xsl:apply-templates/>
|
@@ -5481,7 +5728,18 @@
|
|
5481
5728
|
<fo:block-container border="1pt solid black" width="50%">
|
5482
5729
|
<fo:block> </fo:block>
|
5483
5730
|
</fo:block-container>
|
5484
|
-
</xsl:template><xsl:
|
5731
|
+
</xsl:template><xsl:variable name="toc_level">
|
5732
|
+
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
5733
|
+
<xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
|
5734
|
+
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
5735
|
+
<xsl:choose>
|
5736
|
+
<xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
5737
|
+
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
5738
|
+
<xsl:otherwise><!-- default value -->
|
5739
|
+
3
|
5740
|
+
</xsl:otherwise>
|
5741
|
+
</xsl:choose>
|
5742
|
+
</xsl:variable><xsl:template match="*[local-name() = 'toc']">
|
5485
5743
|
<xsl:param name="colwidths"/>
|
5486
5744
|
<xsl:variable name="colwidths_">
|
5487
5745
|
<xsl:choose>
|
@@ -5561,7 +5819,7 @@
|
|
5561
5819
|
</td>
|
5562
5820
|
</xsl:for-each>
|
5563
5821
|
<td>333</td> <!-- page number, just for fill -->
|
5564
|
-
</xsl:template><xsl:template match="*[local-name() = 'variant-title']
|
5822
|
+
</xsl:template><xsl:template match="*[local-name() = 'variant-title']"/><xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
|
5565
5823
|
<fo:inline padding-right="5mm"> </fo:inline>
|
5566
5824
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
5567
5825
|
</xsl:template><xsl:template match="*[local-name() = 'blacksquare']" name="blacksquare">
|
@@ -5572,6 +5830,61 @@
|
|
5572
5830
|
</svg>
|
5573
5831
|
</fo:instream-foreign-object>
|
5574
5832
|
</fo:inline>
|
5833
|
+
</xsl:template><xsl:template match="@language">
|
5834
|
+
<xsl:copy-of select="."/>
|
5835
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
|
5836
|
+
<xsl:call-template name="title"/>
|
5837
|
+
</xsl:template><xsl:template match="*[local-name() = 'admonition']">
|
5838
|
+
|
5839
|
+
|
5840
|
+
|
5841
|
+
|
5842
|
+
|
5843
|
+
<!-- text in the box -->
|
5844
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
5845
|
+
|
5846
|
+
|
5847
|
+
|
5848
|
+
|
5849
|
+
|
5850
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
5851
|
+
|
5852
|
+
|
5853
|
+
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
5854
|
+
<xsl:call-template name="displayAdmonitionName"/>
|
5855
|
+
</fo:block>
|
5856
|
+
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
5857
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
5858
|
+
</fo:block>
|
5859
|
+
|
5860
|
+
</fo:block-container>
|
5861
|
+
|
5862
|
+
</fo:block-container>
|
5863
|
+
|
5864
|
+
</xsl:template><xsl:template name="displayAdmonitionName">
|
5865
|
+
|
5866
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
5867
|
+
<xsl:if test="not(*[local-name() = 'name'])">
|
5868
|
+
<xsl:apply-templates select="@type"/>
|
5869
|
+
</xsl:if>
|
5870
|
+
|
5871
|
+
</xsl:template><xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'name']">
|
5872
|
+
<xsl:apply-templates/>
|
5873
|
+
</xsl:template><xsl:template match="*[local-name() = 'admonition']/@type">
|
5874
|
+
<xsl:variable name="admonition_type_">
|
5875
|
+
<xsl:call-template name="getLocalizedString">
|
5876
|
+
<xsl:with-param name="key">admonition.<xsl:value-of select="."/></xsl:with-param>
|
5877
|
+
</xsl:call-template>
|
5878
|
+
</xsl:variable>
|
5879
|
+
<xsl:variable name="admonition_type" select="normalize-space(java:toUpperCase(java:java.lang.String.new($admonition_type_)))"/>
|
5880
|
+
<xsl:value-of select="$admonition_type"/>
|
5881
|
+
<xsl:if test="$admonition_type = ''">
|
5882
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
|
5883
|
+
</xsl:if>
|
5884
|
+
</xsl:template><xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
|
5885
|
+
<!-- processing for admonition/p found in the template for 'p' -->
|
5886
|
+
<xsl:call-template name="paragraph"/>
|
5887
|
+
|
5575
5888
|
</xsl:template><xsl:template name="convertDate">
|
5576
5889
|
<xsl:param name="date"/>
|
5577
5890
|
<xsl:param name="format" select="'short'"/>
|
@@ -5580,78 +5893,39 @@
|
|
5580
5893
|
<xsl:variable name="day" select="substring($date, 9, 2)"/>
|
5581
5894
|
<xsl:variable name="monthStr">
|
5582
5895
|
<xsl:choose>
|
5583
|
-
<xsl:when test="$month = '01'">
|
5584
|
-
<xsl:when test="$month = '02'">
|
5585
|
-
<xsl:when test="$month = '03'">
|
5586
|
-
<xsl:when test="$month = '04'">
|
5587
|
-
<xsl:when test="$month = '05'">
|
5588
|
-
<xsl:when test="$month = '06'">
|
5589
|
-
<xsl:when test="$month = '07'">
|
5590
|
-
<xsl:when test="$month = '08'">
|
5591
|
-
<xsl:when test="$month = '09'">
|
5592
|
-
<xsl:when test="$month = '10'">
|
5593
|
-
<xsl:when test="$month = '11'">
|
5594
|
-
<xsl:when test="$month = '12'">
|
5595
|
-
</xsl:choose>
|
5596
|
-
</xsl:variable>
|
5597
|
-
<xsl:variable name="result">
|
5598
|
-
<xsl:choose>
|
5599
|
-
<xsl:when test="$format = 'ddMMyyyy'">
|
5600
|
-
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5601
|
-
<xsl:text> </xsl:text>
|
5602
|
-
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
5603
|
-
</xsl:when>
|
5604
|
-
<xsl:when test="$format = 'ddMM'">
|
5605
|
-
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5606
|
-
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
5607
|
-
</xsl:when>
|
5608
|
-
<xsl:when test="$format = 'short' or $day = ''">
|
5609
|
-
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
5610
|
-
</xsl:when>
|
5611
|
-
<xsl:otherwise>
|
5612
|
-
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
|
5613
|
-
</xsl:otherwise>
|
5896
|
+
<xsl:when test="$month = '01'">january</xsl:when>
|
5897
|
+
<xsl:when test="$month = '02'">february</xsl:when>
|
5898
|
+
<xsl:when test="$month = '03'">march</xsl:when>
|
5899
|
+
<xsl:when test="$month = '04'">april</xsl:when>
|
5900
|
+
<xsl:when test="$month = '05'">may</xsl:when>
|
5901
|
+
<xsl:when test="$month = '06'">june</xsl:when>
|
5902
|
+
<xsl:when test="$month = '07'">july</xsl:when>
|
5903
|
+
<xsl:when test="$month = '08'">august</xsl:when>
|
5904
|
+
<xsl:when test="$month = '09'">september</xsl:when>
|
5905
|
+
<xsl:when test="$month = '10'">october</xsl:when>
|
5906
|
+
<xsl:when test="$month = '11'">november</xsl:when>
|
5907
|
+
<xsl:when test="$month = '12'">december</xsl:when>
|
5614
5908
|
</xsl:choose>
|
5615
5909
|
</xsl:variable>
|
5616
|
-
<xsl:
|
5617
|
-
|
5618
|
-
<xsl:param name="date"/>
|
5619
|
-
<xsl:param name="format" select="'short'"/>
|
5620
|
-
<xsl:variable name="year" select="substring($date, 1, 4)"/>
|
5621
|
-
<xsl:variable name="month" select="substring($date, 6, 2)"/>
|
5622
|
-
<xsl:variable name="day" select="substring($date, 9, 2)"/>
|
5623
|
-
<xsl:variable name="monthStr">
|
5624
|
-
<xsl:choose>
|
5625
|
-
<xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when>
|
5626
|
-
<xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when>
|
5627
|
-
<xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when>
|
5628
|
-
<xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when>
|
5629
|
-
<xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when>
|
5630
|
-
<xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when>
|
5631
|
-
<xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when>
|
5632
|
-
<xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when>
|
5633
|
-
<xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when>
|
5634
|
-
<xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when>
|
5635
|
-
<xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when>
|
5636
|
-
<xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when>
|
5637
|
-
</xsl:choose>
|
5910
|
+
<xsl:variable name="monthStr_localized">
|
5911
|
+
<xsl:if test="normalize-space($monthStr) != ''"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param></xsl:call-template></xsl:if>
|
5638
5912
|
</xsl:variable>
|
5639
5913
|
<xsl:variable name="result">
|
5640
5914
|
<xsl:choose>
|
5641
5915
|
<xsl:when test="$format = 'ddMMyyyy'">
|
5642
5916
|
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5643
5917
|
<xsl:text> </xsl:text>
|
5644
|
-
<xsl:value-of select="normalize-space(concat($
|
5918
|
+
<xsl:value-of select="normalize-space(concat($monthStr_localized, ' ' , $year))"/>
|
5645
5919
|
</xsl:when>
|
5646
5920
|
<xsl:when test="$format = 'ddMM'">
|
5647
5921
|
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5648
|
-
<xsl:text> </xsl:text><xsl:value-of select="$
|
5922
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr_localized"/>
|
5649
5923
|
</xsl:when>
|
5650
5924
|
<xsl:when test="$format = 'short' or $day = ''">
|
5651
|
-
<xsl:value-of select="normalize-space(concat($
|
5925
|
+
<xsl:value-of select="normalize-space(concat($monthStr_localized, ' ', $year))"/>
|
5652
5926
|
</xsl:when>
|
5653
5927
|
<xsl:otherwise>
|
5654
|
-
<xsl:value-of select="normalize-space(concat($
|
5928
|
+
<xsl:value-of select="normalize-space(concat($monthStr_localized, ' ', $day, ', ' , $year))"/>
|
5655
5929
|
</xsl:otherwise>
|
5656
5930
|
</xsl:choose>
|
5657
5931
|
</xsl:variable>
|
@@ -5704,13 +5978,8 @@
|
|
5704
5978
|
<xsl:variable name="title">
|
5705
5979
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
5706
5980
|
|
5707
|
-
|
5708
|
-
|
5709
|
-
|
5710
|
-
|
5711
|
-
<xsl:value-of select="*[local-name() = 'title']"/>
|
5712
|
-
|
5713
|
-
|
5981
|
+
<xsl:value-of select="*[local-name() = 'title']"/>
|
5982
|
+
|
5714
5983
|
</xsl:for-each>
|
5715
5984
|
</xsl:variable>
|
5716
5985
|
<xsl:choose>
|
@@ -5725,21 +5994,18 @@
|
|
5725
5994
|
<dc:creator>
|
5726
5995
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
5727
5996
|
|
5728
|
-
|
5729
|
-
|
5730
|
-
|
5731
|
-
|
5732
|
-
|
5733
|
-
|
5734
|
-
|
5997
|
+
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
|
5998
|
+
<xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
|
5999
|
+
<xsl:if test="position() != last()">; </xsl:if>
|
6000
|
+
</xsl:for-each>
|
6001
|
+
|
5735
6002
|
</xsl:for-each>
|
5736
6003
|
</dc:creator>
|
5737
6004
|
<dc:description>
|
5738
6005
|
<xsl:variable name="abstract">
|
5739
6006
|
|
5740
|
-
|
5741
|
-
|
5742
|
-
|
6007
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
|
6008
|
+
|
5743
6009
|
</xsl:variable>
|
5744
6010
|
<xsl:value-of select="normalize-space($abstract)"/>
|
5745
6011
|
</dc:description>
|
@@ -5759,7 +6025,6 @@
|
|
5759
6025
|
<xsl:value-of select="../@id"/>
|
5760
6026
|
</xsl:when>
|
5761
6027
|
<xsl:otherwise>
|
5762
|
-
<!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
|
5763
6028
|
<xsl:value-of select="concat(generate-id(..), '_', text())"/>
|
5764
6029
|
</xsl:otherwise>
|
5765
6030
|
</xsl:choose>
|
@@ -5785,9 +6050,6 @@
|
|
5785
6050
|
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
5786
6051
|
<xsl:value-of select="$level_total - 2"/>
|
5787
6052
|
</xsl:when>
|
5788
|
-
<!-- <xsl:when test="parent::*[local-name() = 'sections']">
|
5789
|
-
<xsl:value-of select="$level_total - 1"/>
|
5790
|
-
</xsl:when> -->
|
5791
6053
|
<xsl:when test="ancestor::*[local-name() = 'sections']">
|
5792
6054
|
<xsl:value-of select="$level_total - 1"/>
|
5793
6055
|
</xsl:when>
|
@@ -5929,9 +6191,15 @@
|
|
5929
6191
|
</xsl:template><xsl:template name="getLocalizedString">
|
5930
6192
|
<xsl:param name="key"/>
|
5931
6193
|
<xsl:param name="formatted">false</xsl:param>
|
6194
|
+
<xsl:param name="lang"/>
|
5932
6195
|
|
5933
6196
|
<xsl:variable name="curr_lang">
|
5934
|
-
<xsl:
|
6197
|
+
<xsl:choose>
|
6198
|
+
<xsl:when test="$lang != ''"><xsl:value-of select="$lang"/></xsl:when>
|
6199
|
+
<xsl:otherwise>
|
6200
|
+
<xsl:call-template name="getLang"/>
|
6201
|
+
</xsl:otherwise>
|
6202
|
+
</xsl:choose>
|
5935
6203
|
</xsl:variable>
|
5936
6204
|
|
5937
6205
|
<xsl:variable name="data_value">
|
@@ -5971,7 +6239,6 @@
|
|
5971
6239
|
<xsl:value-of select="$key_"/>
|
5972
6240
|
</xsl:otherwise>
|
5973
6241
|
</xsl:choose>
|
5974
|
-
|
5975
6242
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
5976
6243
|
<xsl:param name="isAdded"/>
|
5977
6244
|
<xsl:param name="isDeleted"/>
|
@@ -5994,7 +6261,6 @@
|
|
5994
6261
|
<xsl:if test="local-name() = 'table'">
|
5995
6262
|
<xsl:attribute name="background-color">rgb(255, 185, 185)</xsl:attribute>
|
5996
6263
|
</xsl:if>
|
5997
|
-
<!-- <xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute> -->
|
5998
6264
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
5999
6265
|
</xsl:if>
|
6000
6266
|
</xsl:otherwise>
|
@@ -6014,15 +6280,18 @@
|
|
6014
6280
|
</xsl:choose>
|
6015
6281
|
</xsl:template><xsl:template name="setTextAlignment">
|
6016
6282
|
<xsl:param name="default">left</xsl:param>
|
6283
|
+
<xsl:variable name="align" select="normalize-space(@align)"/>
|
6017
6284
|
<xsl:attribute name="text-align">
|
6018
6285
|
<xsl:choose>
|
6019
|
-
<xsl:when test="
|
6286
|
+
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
|
6287
|
+
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
|
6288
|
+
<xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
|
6020
6289
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
6021
6290
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
6022
6291
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
6023
6292
|
</xsl:choose>
|
6024
6293
|
</xsl:attribute>
|
6025
|
-
<xsl:if test="
|
6294
|
+
<xsl:if test="$align = 'indent'">
|
6026
6295
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
6027
6296
|
</xsl:if>
|
6028
6297
|
</xsl:template><xsl:template name="number-to-words">
|
@@ -6121,4 +6390,14 @@
|
|
6121
6390
|
</xsl:otherwise>
|
6122
6391
|
</xsl:choose>
|
6123
6392
|
</xsl:if>
|
6393
|
+
</xsl:template><xsl:template name="setAltText">
|
6394
|
+
<xsl:param name="value"/>
|
6395
|
+
<xsl:attribute name="fox:alt-text">
|
6396
|
+
<xsl:choose>
|
6397
|
+
<xsl:when test="normalize-space($value) != ''">
|
6398
|
+
<xsl:value-of select="$value"/>
|
6399
|
+
</xsl:when>
|
6400
|
+
<xsl:otherwise>_</xsl:otherwise>
|
6401
|
+
</xsl:choose>
|
6402
|
+
</xsl:attribute>
|
6124
6403
|
</xsl:template></xsl:stylesheet>
|