metanorma-itu 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/itu/basicdoc.rng +18 -3
- data/lib/asciidoctor/itu/isodoc.rng +7 -0
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +92 -8
- data/lib/isodoc/itu/itu.recommendation.xsl +92 -8
- data/lib/isodoc/itu/itu.resolution.xsl +92 -8
- data/lib/isodoc/itu/itu.technical-paper.xsl +92 -8
- data/lib/isodoc/itu/itu.technical-report.xsl +92 -8
- data/lib/metanorma/itu/processor.rb +10 -0
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +2 -2
- metadata +6 -7
- data/lib/metanorma/itu/fonts_manifest.yaml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5e5576a553c84c8a975e21c6f7187fb3d959486fb82da54caa4bae59bc70e4
|
4
|
+
data.tar.gz: 06e43014128a730fe43d6e602a6a1c83280d09043c458620ecf7c3488e8d29c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9c3c73670e489535e88bb5abed0956a53dcc692d6fbb95b11507b085f3e8e01342be19fd4ee7ab3d55a11d08fe8566cb643670af29e1ef72979f3653f5b5f0
|
7
|
+
data.tar.gz: b2996860abd9e0354985b288a2c562b19d8456c0b7b6d4afcdb208f4c29d9efbabc559eb266dcc879fd23569a0fa3542335384d9f7d91567d7de830a6f0ad54a
|
@@ -729,12 +729,27 @@
|
|
729
729
|
</define>
|
730
730
|
<define name="index">
|
731
731
|
<element name="index">
|
732
|
-
<attribute name="
|
732
|
+
<attribute name="to">
|
733
|
+
<data type="IDREF"/>
|
734
|
+
</attribute>
|
735
|
+
<element name="primary">
|
736
|
+
<oneOrMore>
|
737
|
+
<ref name="PureTextElement"/>
|
738
|
+
</oneOrMore>
|
739
|
+
</element>
|
733
740
|
<optional>
|
734
|
-
<
|
741
|
+
<element name="secondary">
|
742
|
+
<oneOrMore>
|
743
|
+
<ref name="PureTextElement"/>
|
744
|
+
</oneOrMore>
|
745
|
+
</element>
|
735
746
|
</optional>
|
736
747
|
<optional>
|
737
|
-
<
|
748
|
+
<element name="tertiary">
|
749
|
+
<oneOrMore>
|
750
|
+
<ref name="PureTextElement"/>
|
751
|
+
</oneOrMore>
|
752
|
+
</element>
|
738
753
|
</optional>
|
739
754
|
</element>
|
740
755
|
</define>
|
@@ -55,6 +55,13 @@
|
|
55
55
|
<param name="pattern">\i\c*|\c+#\c+</param>
|
56
56
|
</data>
|
57
57
|
</attribute>
|
58
|
+
<optional>
|
59
|
+
<attribute name="to">
|
60
|
+
<data type="string">
|
61
|
+
<param name="pattern">\i\c*|\c+#\c+</param>
|
62
|
+
</data>
|
63
|
+
</attribute>
|
64
|
+
</optional>
|
58
65
|
<optional>
|
59
66
|
<attribute name="type">
|
60
67
|
<ref name="ReferenceFormat"/>
|
@@ -1970,6 +1970,7 @@
|
|
1970
1970
|
|
1971
1971
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1972
1972
|
|
1973
|
+
|
1973
1974
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1974
1975
|
|
1975
1976
|
|
@@ -3028,7 +3029,9 @@
|
|
3028
3029
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3029
3030
|
<fo:block-container>
|
3030
3031
|
|
3031
|
-
<xsl:
|
3032
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3033
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3034
|
+
</xsl:if>
|
3032
3035
|
|
3033
3036
|
|
3034
3037
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -3043,6 +3046,7 @@
|
|
3043
3046
|
<fo:block-container>
|
3044
3047
|
|
3045
3048
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3049
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3046
3050
|
|
3047
3051
|
|
3048
3052
|
<xsl:variable name="parent" select="local-name(..)"/>
|
@@ -3235,12 +3239,32 @@
|
|
3235
3239
|
</xsl:otherwise>
|
3236
3240
|
</xsl:choose>
|
3237
3241
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3238
|
-
<xsl:
|
3239
|
-
<xsl:
|
3240
|
-
|
3241
|
-
<xsl:
|
3242
|
-
|
3243
|
-
|
3242
|
+
<xsl:variable name="lengths">
|
3243
|
+
<xsl:for-each select="*[local-name()='dt']">
|
3244
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
3245
|
+
<xsl:variable name="attributes">
|
3246
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
3247
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
3248
|
+
</xsl:variable>
|
3249
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
3250
|
+
</xsl:for-each>
|
3251
|
+
</xsl:variable>
|
3252
|
+
<xsl:variable name="maxLength">
|
3253
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
3254
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
3255
|
+
<xsl:if test="position() = 1">
|
3256
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3257
|
+
</xsl:if>
|
3258
|
+
</xsl:for-each> -->
|
3259
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
3260
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
3261
|
+
<xsl:if test="position() = 1">
|
3262
|
+
<xsl:value-of select="."/>
|
3263
|
+
</xsl:if>
|
3264
|
+
</xsl:for-each>
|
3265
|
+
</xsl:variable>
|
3266
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
3267
|
+
<xsl:value-of select="$maxLength"/>
|
3244
3268
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3245
3269
|
<xsl:param name="key_iso"/>
|
3246
3270
|
|
@@ -4055,6 +4079,8 @@
|
|
4055
4079
|
<xsl:variable name="bookmark-title_">
|
4056
4080
|
<xsl:call-template name="getLangVersion">
|
4057
4081
|
<xsl:with-param name="lang" select="@lang"/>
|
4082
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4083
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4058
4084
|
</xsl:call-template>
|
4059
4085
|
</xsl:variable>
|
4060
4086
|
<xsl:choose>
|
@@ -4072,13 +4098,34 @@
|
|
4072
4098
|
</xsl:choose>
|
4073
4099
|
</fo:bookmark-title>
|
4074
4100
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4101
|
+
|
4102
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4103
|
+
<xsl:with-param name="contents" select="contents"/>
|
4104
|
+
</xsl:call-template>
|
4105
|
+
|
4106
|
+
<xsl:call-template name="insertTableBookmarks">
|
4107
|
+
<xsl:with-param name="contents" select="contents"/>
|
4108
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4109
|
+
</xsl:call-template>
|
4110
|
+
|
4075
4111
|
</fo:bookmark>
|
4076
4112
|
|
4077
4113
|
</xsl:for-each>
|
4078
4114
|
</xsl:when>
|
4079
4115
|
<xsl:otherwise>
|
4080
4116
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4117
|
+
|
4081
4118
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4119
|
+
|
4120
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4121
|
+
<xsl:with-param name="contents" select="contents"/>
|
4122
|
+
</xsl:call-template>
|
4123
|
+
|
4124
|
+
<xsl:call-template name="insertTableBookmarks">
|
4125
|
+
<xsl:with-param name="contents" select="contents"/>
|
4126
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4127
|
+
</xsl:call-template>
|
4128
|
+
|
4082
4129
|
</xsl:for-each>
|
4083
4130
|
</xsl:otherwise>
|
4084
4131
|
</xsl:choose>
|
@@ -4097,8 +4144,44 @@
|
|
4097
4144
|
|
4098
4145
|
</fo:bookmark-tree>
|
4099
4146
|
</xsl:if>
|
4147
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4148
|
+
<xsl:param name="contents"/>
|
4149
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4150
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4151
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4152
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4153
|
+
<fo:bookmark internal-destination="{@id}">
|
4154
|
+
<fo:bookmark-title>
|
4155
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4156
|
+
</fo:bookmark-title>
|
4157
|
+
</fo:bookmark>
|
4158
|
+
</xsl:for-each>
|
4159
|
+
</fo:bookmark>
|
4160
|
+
</xsl:if>
|
4161
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4162
|
+
<xsl:param name="contents"/>
|
4163
|
+
<xsl:param name="lang"/>
|
4164
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4165
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4166
|
+
<fo:bookmark-title>
|
4167
|
+
<xsl:choose>
|
4168
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4169
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4170
|
+
</xsl:choose>
|
4171
|
+
</fo:bookmark-title>
|
4172
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4173
|
+
<fo:bookmark internal-destination="{@id}">
|
4174
|
+
<fo:bookmark-title>
|
4175
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4176
|
+
</fo:bookmark-title>
|
4177
|
+
</fo:bookmark>
|
4178
|
+
</xsl:for-each>
|
4179
|
+
</fo:bookmark>
|
4180
|
+
</xsl:if>
|
4100
4181
|
</xsl:template><xsl:template name="getLangVersion">
|
4101
4182
|
<xsl:param name="lang"/>
|
4183
|
+
<xsl:param name="doctype" select="''"/>
|
4184
|
+
<xsl:param name="title" select="''"/>
|
4102
4185
|
<xsl:choose>
|
4103
4186
|
<xsl:when test="$lang = 'en'">
|
4104
4187
|
|
@@ -4581,7 +4664,8 @@
|
|
4581
4664
|
<fo:block-container margin-left="0mm">
|
4582
4665
|
|
4583
4666
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4584
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4667
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4668
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4585
4669
|
</fo:block>
|
4586
4670
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4587
4671
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -1970,6 +1970,7 @@
|
|
1970
1970
|
|
1971
1971
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1972
1972
|
|
1973
|
+
|
1973
1974
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1974
1975
|
|
1975
1976
|
|
@@ -3028,7 +3029,9 @@
|
|
3028
3029
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3029
3030
|
<fo:block-container>
|
3030
3031
|
|
3031
|
-
<xsl:
|
3032
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3033
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3034
|
+
</xsl:if>
|
3032
3035
|
|
3033
3036
|
|
3034
3037
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -3043,6 +3046,7 @@
|
|
3043
3046
|
<fo:block-container>
|
3044
3047
|
|
3045
3048
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3049
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3046
3050
|
|
3047
3051
|
|
3048
3052
|
<xsl:variable name="parent" select="local-name(..)"/>
|
@@ -3235,12 +3239,32 @@
|
|
3235
3239
|
</xsl:otherwise>
|
3236
3240
|
</xsl:choose>
|
3237
3241
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3238
|
-
<xsl:
|
3239
|
-
<xsl:
|
3240
|
-
|
3241
|
-
<xsl:
|
3242
|
-
|
3243
|
-
|
3242
|
+
<xsl:variable name="lengths">
|
3243
|
+
<xsl:for-each select="*[local-name()='dt']">
|
3244
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
3245
|
+
<xsl:variable name="attributes">
|
3246
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
3247
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
3248
|
+
</xsl:variable>
|
3249
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
3250
|
+
</xsl:for-each>
|
3251
|
+
</xsl:variable>
|
3252
|
+
<xsl:variable name="maxLength">
|
3253
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
3254
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
3255
|
+
<xsl:if test="position() = 1">
|
3256
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3257
|
+
</xsl:if>
|
3258
|
+
</xsl:for-each> -->
|
3259
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
3260
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
3261
|
+
<xsl:if test="position() = 1">
|
3262
|
+
<xsl:value-of select="."/>
|
3263
|
+
</xsl:if>
|
3264
|
+
</xsl:for-each>
|
3265
|
+
</xsl:variable>
|
3266
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
3267
|
+
<xsl:value-of select="$maxLength"/>
|
3244
3268
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3245
3269
|
<xsl:param name="key_iso"/>
|
3246
3270
|
|
@@ -4055,6 +4079,8 @@
|
|
4055
4079
|
<xsl:variable name="bookmark-title_">
|
4056
4080
|
<xsl:call-template name="getLangVersion">
|
4057
4081
|
<xsl:with-param name="lang" select="@lang"/>
|
4082
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4083
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4058
4084
|
</xsl:call-template>
|
4059
4085
|
</xsl:variable>
|
4060
4086
|
<xsl:choose>
|
@@ -4072,13 +4098,34 @@
|
|
4072
4098
|
</xsl:choose>
|
4073
4099
|
</fo:bookmark-title>
|
4074
4100
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4101
|
+
|
4102
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4103
|
+
<xsl:with-param name="contents" select="contents"/>
|
4104
|
+
</xsl:call-template>
|
4105
|
+
|
4106
|
+
<xsl:call-template name="insertTableBookmarks">
|
4107
|
+
<xsl:with-param name="contents" select="contents"/>
|
4108
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4109
|
+
</xsl:call-template>
|
4110
|
+
|
4075
4111
|
</fo:bookmark>
|
4076
4112
|
|
4077
4113
|
</xsl:for-each>
|
4078
4114
|
</xsl:when>
|
4079
4115
|
<xsl:otherwise>
|
4080
4116
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4117
|
+
|
4081
4118
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4119
|
+
|
4120
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4121
|
+
<xsl:with-param name="contents" select="contents"/>
|
4122
|
+
</xsl:call-template>
|
4123
|
+
|
4124
|
+
<xsl:call-template name="insertTableBookmarks">
|
4125
|
+
<xsl:with-param name="contents" select="contents"/>
|
4126
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4127
|
+
</xsl:call-template>
|
4128
|
+
|
4082
4129
|
</xsl:for-each>
|
4083
4130
|
</xsl:otherwise>
|
4084
4131
|
</xsl:choose>
|
@@ -4097,8 +4144,44 @@
|
|
4097
4144
|
|
4098
4145
|
</fo:bookmark-tree>
|
4099
4146
|
</xsl:if>
|
4147
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4148
|
+
<xsl:param name="contents"/>
|
4149
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4150
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4151
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4152
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4153
|
+
<fo:bookmark internal-destination="{@id}">
|
4154
|
+
<fo:bookmark-title>
|
4155
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4156
|
+
</fo:bookmark-title>
|
4157
|
+
</fo:bookmark>
|
4158
|
+
</xsl:for-each>
|
4159
|
+
</fo:bookmark>
|
4160
|
+
</xsl:if>
|
4161
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4162
|
+
<xsl:param name="contents"/>
|
4163
|
+
<xsl:param name="lang"/>
|
4164
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4165
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4166
|
+
<fo:bookmark-title>
|
4167
|
+
<xsl:choose>
|
4168
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4169
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4170
|
+
</xsl:choose>
|
4171
|
+
</fo:bookmark-title>
|
4172
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4173
|
+
<fo:bookmark internal-destination="{@id}">
|
4174
|
+
<fo:bookmark-title>
|
4175
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4176
|
+
</fo:bookmark-title>
|
4177
|
+
</fo:bookmark>
|
4178
|
+
</xsl:for-each>
|
4179
|
+
</fo:bookmark>
|
4180
|
+
</xsl:if>
|
4100
4181
|
</xsl:template><xsl:template name="getLangVersion">
|
4101
4182
|
<xsl:param name="lang"/>
|
4183
|
+
<xsl:param name="doctype" select="''"/>
|
4184
|
+
<xsl:param name="title" select="''"/>
|
4102
4185
|
<xsl:choose>
|
4103
4186
|
<xsl:when test="$lang = 'en'">
|
4104
4187
|
|
@@ -4581,7 +4664,8 @@
|
|
4581
4664
|
<fo:block-container margin-left="0mm">
|
4582
4665
|
|
4583
4666
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4584
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4667
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4668
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4585
4669
|
</fo:block>
|
4586
4670
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4587
4671
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -1970,6 +1970,7 @@
|
|
1970
1970
|
|
1971
1971
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1972
1972
|
|
1973
|
+
|
1973
1974
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1974
1975
|
|
1975
1976
|
|
@@ -3028,7 +3029,9 @@
|
|
3028
3029
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3029
3030
|
<fo:block-container>
|
3030
3031
|
|
3031
|
-
<xsl:
|
3032
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3033
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3034
|
+
</xsl:if>
|
3032
3035
|
|
3033
3036
|
|
3034
3037
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -3043,6 +3046,7 @@
|
|
3043
3046
|
<fo:block-container>
|
3044
3047
|
|
3045
3048
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3049
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3046
3050
|
|
3047
3051
|
|
3048
3052
|
<xsl:variable name="parent" select="local-name(..)"/>
|
@@ -3235,12 +3239,32 @@
|
|
3235
3239
|
</xsl:otherwise>
|
3236
3240
|
</xsl:choose>
|
3237
3241
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3238
|
-
<xsl:
|
3239
|
-
<xsl:
|
3240
|
-
|
3241
|
-
<xsl:
|
3242
|
-
|
3243
|
-
|
3242
|
+
<xsl:variable name="lengths">
|
3243
|
+
<xsl:for-each select="*[local-name()='dt']">
|
3244
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
3245
|
+
<xsl:variable name="attributes">
|
3246
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
3247
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
3248
|
+
</xsl:variable>
|
3249
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
3250
|
+
</xsl:for-each>
|
3251
|
+
</xsl:variable>
|
3252
|
+
<xsl:variable name="maxLength">
|
3253
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
3254
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
3255
|
+
<xsl:if test="position() = 1">
|
3256
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3257
|
+
</xsl:if>
|
3258
|
+
</xsl:for-each> -->
|
3259
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
3260
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
3261
|
+
<xsl:if test="position() = 1">
|
3262
|
+
<xsl:value-of select="."/>
|
3263
|
+
</xsl:if>
|
3264
|
+
</xsl:for-each>
|
3265
|
+
</xsl:variable>
|
3266
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
3267
|
+
<xsl:value-of select="$maxLength"/>
|
3244
3268
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3245
3269
|
<xsl:param name="key_iso"/>
|
3246
3270
|
|
@@ -4055,6 +4079,8 @@
|
|
4055
4079
|
<xsl:variable name="bookmark-title_">
|
4056
4080
|
<xsl:call-template name="getLangVersion">
|
4057
4081
|
<xsl:with-param name="lang" select="@lang"/>
|
4082
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4083
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4058
4084
|
</xsl:call-template>
|
4059
4085
|
</xsl:variable>
|
4060
4086
|
<xsl:choose>
|
@@ -4072,13 +4098,34 @@
|
|
4072
4098
|
</xsl:choose>
|
4073
4099
|
</fo:bookmark-title>
|
4074
4100
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4101
|
+
|
4102
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4103
|
+
<xsl:with-param name="contents" select="contents"/>
|
4104
|
+
</xsl:call-template>
|
4105
|
+
|
4106
|
+
<xsl:call-template name="insertTableBookmarks">
|
4107
|
+
<xsl:with-param name="contents" select="contents"/>
|
4108
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4109
|
+
</xsl:call-template>
|
4110
|
+
|
4075
4111
|
</fo:bookmark>
|
4076
4112
|
|
4077
4113
|
</xsl:for-each>
|
4078
4114
|
</xsl:when>
|
4079
4115
|
<xsl:otherwise>
|
4080
4116
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4117
|
+
|
4081
4118
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4119
|
+
|
4120
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4121
|
+
<xsl:with-param name="contents" select="contents"/>
|
4122
|
+
</xsl:call-template>
|
4123
|
+
|
4124
|
+
<xsl:call-template name="insertTableBookmarks">
|
4125
|
+
<xsl:with-param name="contents" select="contents"/>
|
4126
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4127
|
+
</xsl:call-template>
|
4128
|
+
|
4082
4129
|
</xsl:for-each>
|
4083
4130
|
</xsl:otherwise>
|
4084
4131
|
</xsl:choose>
|
@@ -4097,8 +4144,44 @@
|
|
4097
4144
|
|
4098
4145
|
</fo:bookmark-tree>
|
4099
4146
|
</xsl:if>
|
4147
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4148
|
+
<xsl:param name="contents"/>
|
4149
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4150
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4151
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4152
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4153
|
+
<fo:bookmark internal-destination="{@id}">
|
4154
|
+
<fo:bookmark-title>
|
4155
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4156
|
+
</fo:bookmark-title>
|
4157
|
+
</fo:bookmark>
|
4158
|
+
</xsl:for-each>
|
4159
|
+
</fo:bookmark>
|
4160
|
+
</xsl:if>
|
4161
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4162
|
+
<xsl:param name="contents"/>
|
4163
|
+
<xsl:param name="lang"/>
|
4164
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4165
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4166
|
+
<fo:bookmark-title>
|
4167
|
+
<xsl:choose>
|
4168
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4169
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4170
|
+
</xsl:choose>
|
4171
|
+
</fo:bookmark-title>
|
4172
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4173
|
+
<fo:bookmark internal-destination="{@id}">
|
4174
|
+
<fo:bookmark-title>
|
4175
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4176
|
+
</fo:bookmark-title>
|
4177
|
+
</fo:bookmark>
|
4178
|
+
</xsl:for-each>
|
4179
|
+
</fo:bookmark>
|
4180
|
+
</xsl:if>
|
4100
4181
|
</xsl:template><xsl:template name="getLangVersion">
|
4101
4182
|
<xsl:param name="lang"/>
|
4183
|
+
<xsl:param name="doctype" select="''"/>
|
4184
|
+
<xsl:param name="title" select="''"/>
|
4102
4185
|
<xsl:choose>
|
4103
4186
|
<xsl:when test="$lang = 'en'">
|
4104
4187
|
|
@@ -4581,7 +4664,8 @@
|
|
4581
4664
|
<fo:block-container margin-left="0mm">
|
4582
4665
|
|
4583
4666
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4584
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4667
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4668
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4585
4669
|
</fo:block>
|
4586
4670
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4587
4671
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -1970,6 +1970,7 @@
|
|
1970
1970
|
|
1971
1971
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1972
1972
|
|
1973
|
+
|
1973
1974
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1974
1975
|
|
1975
1976
|
|
@@ -3028,7 +3029,9 @@
|
|
3028
3029
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3029
3030
|
<fo:block-container>
|
3030
3031
|
|
3031
|
-
<xsl:
|
3032
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3033
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3034
|
+
</xsl:if>
|
3032
3035
|
|
3033
3036
|
|
3034
3037
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -3043,6 +3046,7 @@
|
|
3043
3046
|
<fo:block-container>
|
3044
3047
|
|
3045
3048
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3049
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3046
3050
|
|
3047
3051
|
|
3048
3052
|
<xsl:variable name="parent" select="local-name(..)"/>
|
@@ -3235,12 +3239,32 @@
|
|
3235
3239
|
</xsl:otherwise>
|
3236
3240
|
</xsl:choose>
|
3237
3241
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3238
|
-
<xsl:
|
3239
|
-
<xsl:
|
3240
|
-
|
3241
|
-
<xsl:
|
3242
|
-
|
3243
|
-
|
3242
|
+
<xsl:variable name="lengths">
|
3243
|
+
<xsl:for-each select="*[local-name()='dt']">
|
3244
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
3245
|
+
<xsl:variable name="attributes">
|
3246
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
3247
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
3248
|
+
</xsl:variable>
|
3249
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
3250
|
+
</xsl:for-each>
|
3251
|
+
</xsl:variable>
|
3252
|
+
<xsl:variable name="maxLength">
|
3253
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
3254
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
3255
|
+
<xsl:if test="position() = 1">
|
3256
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3257
|
+
</xsl:if>
|
3258
|
+
</xsl:for-each> -->
|
3259
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
3260
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
3261
|
+
<xsl:if test="position() = 1">
|
3262
|
+
<xsl:value-of select="."/>
|
3263
|
+
</xsl:if>
|
3264
|
+
</xsl:for-each>
|
3265
|
+
</xsl:variable>
|
3266
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
3267
|
+
<xsl:value-of select="$maxLength"/>
|
3244
3268
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3245
3269
|
<xsl:param name="key_iso"/>
|
3246
3270
|
|
@@ -4055,6 +4079,8 @@
|
|
4055
4079
|
<xsl:variable name="bookmark-title_">
|
4056
4080
|
<xsl:call-template name="getLangVersion">
|
4057
4081
|
<xsl:with-param name="lang" select="@lang"/>
|
4082
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4083
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4058
4084
|
</xsl:call-template>
|
4059
4085
|
</xsl:variable>
|
4060
4086
|
<xsl:choose>
|
@@ -4072,13 +4098,34 @@
|
|
4072
4098
|
</xsl:choose>
|
4073
4099
|
</fo:bookmark-title>
|
4074
4100
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4101
|
+
|
4102
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4103
|
+
<xsl:with-param name="contents" select="contents"/>
|
4104
|
+
</xsl:call-template>
|
4105
|
+
|
4106
|
+
<xsl:call-template name="insertTableBookmarks">
|
4107
|
+
<xsl:with-param name="contents" select="contents"/>
|
4108
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4109
|
+
</xsl:call-template>
|
4110
|
+
|
4075
4111
|
</fo:bookmark>
|
4076
4112
|
|
4077
4113
|
</xsl:for-each>
|
4078
4114
|
</xsl:when>
|
4079
4115
|
<xsl:otherwise>
|
4080
4116
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4117
|
+
|
4081
4118
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4119
|
+
|
4120
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4121
|
+
<xsl:with-param name="contents" select="contents"/>
|
4122
|
+
</xsl:call-template>
|
4123
|
+
|
4124
|
+
<xsl:call-template name="insertTableBookmarks">
|
4125
|
+
<xsl:with-param name="contents" select="contents"/>
|
4126
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4127
|
+
</xsl:call-template>
|
4128
|
+
|
4082
4129
|
</xsl:for-each>
|
4083
4130
|
</xsl:otherwise>
|
4084
4131
|
</xsl:choose>
|
@@ -4097,8 +4144,44 @@
|
|
4097
4144
|
|
4098
4145
|
</fo:bookmark-tree>
|
4099
4146
|
</xsl:if>
|
4147
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4148
|
+
<xsl:param name="contents"/>
|
4149
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4150
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4151
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4152
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4153
|
+
<fo:bookmark internal-destination="{@id}">
|
4154
|
+
<fo:bookmark-title>
|
4155
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4156
|
+
</fo:bookmark-title>
|
4157
|
+
</fo:bookmark>
|
4158
|
+
</xsl:for-each>
|
4159
|
+
</fo:bookmark>
|
4160
|
+
</xsl:if>
|
4161
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4162
|
+
<xsl:param name="contents"/>
|
4163
|
+
<xsl:param name="lang"/>
|
4164
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4165
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4166
|
+
<fo:bookmark-title>
|
4167
|
+
<xsl:choose>
|
4168
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4169
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4170
|
+
</xsl:choose>
|
4171
|
+
</fo:bookmark-title>
|
4172
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4173
|
+
<fo:bookmark internal-destination="{@id}">
|
4174
|
+
<fo:bookmark-title>
|
4175
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4176
|
+
</fo:bookmark-title>
|
4177
|
+
</fo:bookmark>
|
4178
|
+
</xsl:for-each>
|
4179
|
+
</fo:bookmark>
|
4180
|
+
</xsl:if>
|
4100
4181
|
</xsl:template><xsl:template name="getLangVersion">
|
4101
4182
|
<xsl:param name="lang"/>
|
4183
|
+
<xsl:param name="doctype" select="''"/>
|
4184
|
+
<xsl:param name="title" select="''"/>
|
4102
4185
|
<xsl:choose>
|
4103
4186
|
<xsl:when test="$lang = 'en'">
|
4104
4187
|
|
@@ -4581,7 +4664,8 @@
|
|
4581
4664
|
<fo:block-container margin-left="0mm">
|
4582
4665
|
|
4583
4666
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4584
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4667
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4668
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4585
4669
|
</fo:block>
|
4586
4670
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4587
4671
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -1970,6 +1970,7 @@
|
|
1970
1970
|
|
1971
1971
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1972
1972
|
|
1973
|
+
|
1973
1974
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1974
1975
|
|
1975
1976
|
|
@@ -3028,7 +3029,9 @@
|
|
3028
3029
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3029
3030
|
<fo:block-container>
|
3030
3031
|
|
3031
|
-
<xsl:
|
3032
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3033
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3034
|
+
</xsl:if>
|
3032
3035
|
|
3033
3036
|
|
3034
3037
|
<xsl:if test="parent::*[local-name() = 'note']">
|
@@ -3043,6 +3046,7 @@
|
|
3043
3046
|
<fo:block-container>
|
3044
3047
|
|
3045
3048
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3049
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3046
3050
|
|
3047
3051
|
|
3048
3052
|
<xsl:variable name="parent" select="local-name(..)"/>
|
@@ -3235,12 +3239,32 @@
|
|
3235
3239
|
</xsl:otherwise>
|
3236
3240
|
</xsl:choose>
|
3237
3241
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3238
|
-
<xsl:
|
3239
|
-
<xsl:
|
3240
|
-
|
3241
|
-
<xsl:
|
3242
|
-
|
3243
|
-
|
3242
|
+
<xsl:variable name="lengths">
|
3243
|
+
<xsl:for-each select="*[local-name()='dt']">
|
3244
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
3245
|
+
<xsl:variable name="attributes">
|
3246
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
3247
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
3248
|
+
</xsl:variable>
|
3249
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
3250
|
+
</xsl:for-each>
|
3251
|
+
</xsl:variable>
|
3252
|
+
<xsl:variable name="maxLength">
|
3253
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
3254
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
3255
|
+
<xsl:if test="position() = 1">
|
3256
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3257
|
+
</xsl:if>
|
3258
|
+
</xsl:for-each> -->
|
3259
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
3260
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
3261
|
+
<xsl:if test="position() = 1">
|
3262
|
+
<xsl:value-of select="."/>
|
3263
|
+
</xsl:if>
|
3264
|
+
</xsl:for-each>
|
3265
|
+
</xsl:variable>
|
3266
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
3267
|
+
<xsl:value-of select="$maxLength"/>
|
3244
3268
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3245
3269
|
<xsl:param name="key_iso"/>
|
3246
3270
|
|
@@ -4055,6 +4079,8 @@
|
|
4055
4079
|
<xsl:variable name="bookmark-title_">
|
4056
4080
|
<xsl:call-template name="getLangVersion">
|
4057
4081
|
<xsl:with-param name="lang" select="@lang"/>
|
4082
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4083
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4058
4084
|
</xsl:call-template>
|
4059
4085
|
</xsl:variable>
|
4060
4086
|
<xsl:choose>
|
@@ -4072,13 +4098,34 @@
|
|
4072
4098
|
</xsl:choose>
|
4073
4099
|
</fo:bookmark-title>
|
4074
4100
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4101
|
+
|
4102
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4103
|
+
<xsl:with-param name="contents" select="contents"/>
|
4104
|
+
</xsl:call-template>
|
4105
|
+
|
4106
|
+
<xsl:call-template name="insertTableBookmarks">
|
4107
|
+
<xsl:with-param name="contents" select="contents"/>
|
4108
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4109
|
+
</xsl:call-template>
|
4110
|
+
|
4075
4111
|
</fo:bookmark>
|
4076
4112
|
|
4077
4113
|
</xsl:for-each>
|
4078
4114
|
</xsl:when>
|
4079
4115
|
<xsl:otherwise>
|
4080
4116
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4117
|
+
|
4081
4118
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4119
|
+
|
4120
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4121
|
+
<xsl:with-param name="contents" select="contents"/>
|
4122
|
+
</xsl:call-template>
|
4123
|
+
|
4124
|
+
<xsl:call-template name="insertTableBookmarks">
|
4125
|
+
<xsl:with-param name="contents" select="contents"/>
|
4126
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4127
|
+
</xsl:call-template>
|
4128
|
+
|
4082
4129
|
</xsl:for-each>
|
4083
4130
|
</xsl:otherwise>
|
4084
4131
|
</xsl:choose>
|
@@ -4097,8 +4144,44 @@
|
|
4097
4144
|
|
4098
4145
|
</fo:bookmark-tree>
|
4099
4146
|
</xsl:if>
|
4147
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4148
|
+
<xsl:param name="contents"/>
|
4149
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4150
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4151
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4152
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4153
|
+
<fo:bookmark internal-destination="{@id}">
|
4154
|
+
<fo:bookmark-title>
|
4155
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4156
|
+
</fo:bookmark-title>
|
4157
|
+
</fo:bookmark>
|
4158
|
+
</xsl:for-each>
|
4159
|
+
</fo:bookmark>
|
4160
|
+
</xsl:if>
|
4161
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4162
|
+
<xsl:param name="contents"/>
|
4163
|
+
<xsl:param name="lang"/>
|
4164
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4165
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4166
|
+
<fo:bookmark-title>
|
4167
|
+
<xsl:choose>
|
4168
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4169
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4170
|
+
</xsl:choose>
|
4171
|
+
</fo:bookmark-title>
|
4172
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4173
|
+
<fo:bookmark internal-destination="{@id}">
|
4174
|
+
<fo:bookmark-title>
|
4175
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4176
|
+
</fo:bookmark-title>
|
4177
|
+
</fo:bookmark>
|
4178
|
+
</xsl:for-each>
|
4179
|
+
</fo:bookmark>
|
4180
|
+
</xsl:if>
|
4100
4181
|
</xsl:template><xsl:template name="getLangVersion">
|
4101
4182
|
<xsl:param name="lang"/>
|
4183
|
+
<xsl:param name="doctype" select="''"/>
|
4184
|
+
<xsl:param name="title" select="''"/>
|
4102
4185
|
<xsl:choose>
|
4103
4186
|
<xsl:when test="$lang = 'en'">
|
4104
4187
|
|
@@ -4581,7 +4664,8 @@
|
|
4581
4664
|
<fo:block-container margin-left="0mm">
|
4582
4665
|
|
4583
4666
|
<fo:block xsl:use-attribute-sets="quote-style">
|
4584
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
4667
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
4668
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
4585
4669
|
</fo:block>
|
4586
4670
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
4587
4671
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -18,6 +18,16 @@ module Metanorma
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
+
def fonts_manifest
|
22
|
+
{
|
23
|
+
"Arial" => nil,
|
24
|
+
"Courier" => nil,
|
25
|
+
"Courier New" => nil,
|
26
|
+
"Times New Roman" => nil,
|
27
|
+
"STIX Two Math" => nil,
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
21
31
|
def version
|
22
32
|
"Metanorma::ITU #{Metanorma::ITU::VERSION}"
|
23
33
|
end
|
data/metanorma-itu.gemspec
CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
28
28
|
spec.add_dependency "ruby-jing"
|
29
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
30
|
-
spec.add_dependency "isodoc", "~> 1.
|
29
|
+
spec.add_dependency "metanorma-standoc", "~> 1.7.0"
|
30
|
+
spec.add_dependency "isodoc", "~> 1.4.0"
|
31
31
|
spec.add_dependency "twitter_cldr"
|
32
32
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
33
33
|
|
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: 1.2.
|
4
|
+
version: 1.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.7.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.7.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: isodoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.4.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: twitter_cldr
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,7 +336,6 @@ files:
|
|
336
336
|
- lib/isodoc/itu/xref.rb
|
337
337
|
- lib/metanorma-itu.rb
|
338
338
|
- lib/metanorma/itu.rb
|
339
|
-
- lib/metanorma/itu/fonts_manifest.yaml
|
340
339
|
- lib/metanorma/itu/processor.rb
|
341
340
|
- lib/metanorma/itu/version.rb
|
342
341
|
- metanorma-itu.gemspec
|