metanorma-itu 2.2.11 → 2.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +24 -9
- data/lib/isodoc/itu/itu.in-force.xsl +24 -9
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +24 -9
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +24 -9
- data/lib/isodoc/itu/itu.recommendation.xsl +24 -9
- data/lib/isodoc/itu/itu.resolution.xsl +24 -9
- data/lib/isodoc/itu/itu.service-publication.xsl +24 -9
- data/lib/isodoc/itu/itu.technical-paper.xsl +24 -9
- data/lib/isodoc/itu/itu.technical-report.xsl +24 -9
- data/lib/metanorma/itu/isodoc.rng +18 -0
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea41e276d7efa64e9e4489ed16a88417f1cf22215d522917ae310f7240050e23
|
|
4
|
+
data.tar.gz: 49155f048e93b91975a584fe697fdb8fc5fb941bef413809f32d9906c414736b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4dede01bf2d871ad3cfe2a4c739005f3a2c1833b8004a4343a40c9ef339aca1b1b0bb2abc4d96ece8208d218265e703f4ab701d37adfa6cb33574796e949a02
|
|
7
|
+
data.tar.gz: 4904eb03e93c518fca9b5ca753b8969e51665fb54f346053f01a926ccc7aa8296e8a86f44d0410eb190d42233dd540b0ffc66b79dd314a3cfc43a6947dcf51f9
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
</xsl:attribute>
|
|
4078
4078
|
</xsl:for-each>
|
|
4079
4079
|
|
|
4080
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4080
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
4081
4081
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
4082
4082
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
4083
4083
|
</xsl:if>
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
4122
4122
|
</xsl:when>
|
|
4123
4123
|
<xsl:otherwise>
|
|
4124
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4124
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
|
4125
4125
|
</xsl:otherwise>
|
|
4126
4126
|
</xsl:choose>
|
|
4127
4127
|
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
<xsl:param name="colwidths"/>
|
|
4640
4640
|
<xsl:param name="colgroup"/>
|
|
4641
4641
|
|
|
4642
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4642
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
|
4643
4643
|
|
|
4644
4644
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
4645
4645
|
|
|
@@ -4722,6 +4722,7 @@
|
|
|
4722
4722
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
4723
4723
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
4724
4724
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
4725
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
4725
4726
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
4726
4727
|
|
|
4727
4728
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -4730,7 +4731,7 @@
|
|
|
4730
4731
|
|
|
4731
4732
|
<!-- horizontal row separator -->
|
|
4732
4733
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
4733
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
4734
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
4734
4735
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
4735
4736
|
|
|
4736
4737
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4995,13 +4996,13 @@
|
|
|
4995
4996
|
</fo:table-cell>
|
|
4996
4997
|
</xsl:template> <!-- td -->
|
|
4997
4998
|
|
|
4998
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4999
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4999
5000
|
|
|
5000
5001
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
5001
5002
|
|
|
5002
5003
|
<xsl:call-template name="refine_table-note-style"/>
|
|
5003
5004
|
|
|
5004
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
5005
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
5005
5006
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
5006
5007
|
|
|
5007
5008
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -5015,7 +5016,7 @@
|
|
|
5015
5016
|
|
|
5016
5017
|
</xsl:template> <!-- table/note -->
|
|
5017
5018
|
|
|
5018
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
5019
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
5019
5020
|
<xsl:apply-templates/>
|
|
5020
5021
|
</xsl:template>
|
|
5021
5022
|
|
|
@@ -6095,10 +6096,15 @@
|
|
|
6095
6096
|
<!-- ========================= -->
|
|
6096
6097
|
<xsl:template match="*[local-name()='em']">
|
|
6097
6098
|
<fo:inline font-style="italic">
|
|
6099
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
6098
6100
|
<xsl:apply-templates/>
|
|
6099
6101
|
</fo:inline>
|
|
6100
6102
|
</xsl:template>
|
|
6101
6103
|
|
|
6104
|
+
<xsl:template name="refine_italic_style">
|
|
6105
|
+
|
|
6106
|
+
</xsl:template>
|
|
6107
|
+
|
|
6102
6108
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
6103
6109
|
<xsl:param name="split_keep-within-line"/>
|
|
6104
6110
|
<fo:inline font-weight="bold">
|
|
@@ -9965,6 +9971,12 @@
|
|
|
9965
9971
|
|
|
9966
9972
|
</xsl:template>
|
|
9967
9973
|
|
|
9974
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9975
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9976
|
+
<xsl:apply-templates/>
|
|
9977
|
+
</fo:inline>
|
|
9978
|
+
</xsl:template>
|
|
9979
|
+
|
|
9968
9980
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9969
9981
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9970
9982
|
|
|
@@ -10545,6 +10557,9 @@
|
|
|
10545
10557
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
10546
10558
|
</xsl:choose>
|
|
10547
10559
|
</xsl:when>
|
|
10560
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
10561
|
+
<xsl:value-of select="@label"/>
|
|
10562
|
+
</xsl:when>
|
|
10548
10563
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
10549
10564
|
|
|
10550
10565
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -10602,10 +10617,10 @@
|
|
|
10602
10617
|
<xsl:when test="$type = 'arabic'">
|
|
10603
10618
|
1)
|
|
10604
10619
|
</xsl:when>
|
|
10605
|
-
<xsl:when test="$type = 'alphabet'">
|
|
10620
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
10606
10621
|
a)
|
|
10607
10622
|
</xsl:when>
|
|
10608
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
10623
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
10609
10624
|
A.
|
|
10610
10625
|
</xsl:when>
|
|
10611
10626
|
<xsl:when test="$type = 'roman'">
|
|
@@ -1012,6 +1012,7 @@
|
|
|
1012
1012
|
<ref name="del"/>
|
|
1013
1013
|
<ref name="span"/>
|
|
1014
1014
|
<ref name="erefstack"/>
|
|
1015
|
+
<ref name="date_inline"/>
|
|
1015
1016
|
</choice>
|
|
1016
1017
|
</define>
|
|
1017
1018
|
<define name="add">
|
|
@@ -1053,6 +1054,23 @@
|
|
|
1053
1054
|
</oneOrMore>
|
|
1054
1055
|
</element>
|
|
1055
1056
|
</define>
|
|
1057
|
+
<define name="date_inline">
|
|
1058
|
+
<element name="date">
|
|
1059
|
+
<attribute name="value"/>
|
|
1060
|
+
<optional>
|
|
1061
|
+
<attribute name="format"/>
|
|
1062
|
+
</optional>
|
|
1063
|
+
<optional>
|
|
1064
|
+
<attribute name="language"/>
|
|
1065
|
+
</optional>
|
|
1066
|
+
<optional>
|
|
1067
|
+
<attribute name="script"/>
|
|
1068
|
+
</optional>
|
|
1069
|
+
<optional>
|
|
1070
|
+
<attribute name="locale"/>
|
|
1071
|
+
</optional>
|
|
1072
|
+
</element>
|
|
1073
|
+
</define>
|
|
1056
1074
|
<define name="concept">
|
|
1057
1075
|
<element name="concept">
|
|
1058
1076
|
<optional>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-itu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-05
|
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: htmlentities
|