metanorma-iso 3.1.7 → 3.2.0
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/iso/i18n-de.yaml +2 -0
- data/lib/isodoc/iso/i18n-en.yaml +3 -0
- data/lib/isodoc/iso/i18n-fr.yaml +3 -1
- data/lib/isodoc/iso/i18n-ja.yaml +2 -2
- data/lib/isodoc/iso/i18n-ru.yaml +3 -1
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +2 -0
- data/lib/isodoc/iso/iso.amendment.xsl +373 -249
- data/lib/isodoc/iso/iso.international-standard.xsl +373 -249
- data/lib/isodoc/iso/presentation_xml_convert.rb +2 -2
- data/lib/isodoc/iso/xref.rb +15 -1
- data/lib/metanorma/iso/cleanup.rb +1 -2
- data/lib/metanorma/iso/converter.rb +2 -0
- data/lib/metanorma/iso/front.rb +1 -2
- data/lib/metanorma/iso/front_contributor.rb +0 -2
- data/lib/metanorma/iso/log.rb +148 -0
- data/lib/metanorma/iso/validate.rb +10 -17
- data/lib/metanorma/iso/validate_section.rb +24 -48
- data/lib/metanorma/iso/validate_style.rb +1 -1
- data/lib/metanorma/iso/validate_title.rb +13 -16
- data/lib/metanorma/iso/validate_xref.rb +8 -18
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/relaton/render/config.yml +11 -11
- data/metanorma-iso.gemspec +2 -1
- metadata +19 -4
|
@@ -3080,9 +3080,8 @@
|
|
|
3080
3080
|
<xsl:template name="insertLogoImages2024">
|
|
3081
3081
|
<xsl:variable name="content-height">20</xsl:variable>
|
|
3082
3082
|
<xsl:choose>
|
|
3083
|
-
<xsl:when test="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization">
|
|
3084
|
-
<xsl:for-each select="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization">
|
|
3085
|
-
|
|
3083
|
+
<xsl:when test="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization[mn:abbreviation]">
|
|
3084
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization[mn:abbreviation]">
|
|
3086
3085
|
<xsl:variable name="items">
|
|
3087
3086
|
<xsl:call-template name="split_abbreviation"/>
|
|
3088
3087
|
</xsl:variable>
|
|
@@ -4122,15 +4121,9 @@
|
|
|
4122
4121
|
<xsl:call-template name="titleAmendment"/>
|
|
4123
4122
|
</xsl:when>
|
|
4124
4123
|
<xsl:otherwise>
|
|
4125
|
-
<fo:block
|
|
4126
|
-
<xsl:call-template name="
|
|
4127
|
-
|
|
4128
|
-
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
|
4129
|
-
<!-- <xsl:attribute name="margin-bottom">52pt</xsl:attribute> -->
|
|
4130
|
-
</xsl:if>
|
|
4131
|
-
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
4132
|
-
<xsl:attribute name="span">all</xsl:attribute>
|
|
4133
|
-
</xsl:if>
|
|
4124
|
+
<fo:block xsl:use-attribute-sets="annex-title-style">
|
|
4125
|
+
<xsl:call-template name="refine_annex-title-style"/>
|
|
4126
|
+
|
|
4134
4127
|
<xsl:apply-templates/>
|
|
4135
4128
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
|
4136
4129
|
</fo:block>
|
|
@@ -4145,15 +4138,9 @@
|
|
|
4145
4138
|
<xsl:call-template name="titleAmendment"/>
|
|
4146
4139
|
</xsl:when>
|
|
4147
4140
|
<xsl:otherwise>
|
|
4148
|
-
<fo:block
|
|
4149
|
-
<xsl:
|
|
4150
|
-
|
|
4151
|
-
<xsl:attribute name="span">all</xsl:attribute>
|
|
4152
|
-
</xsl:if>
|
|
4153
|
-
<xsl:if test="$layoutVersion = '2024'">
|
|
4154
|
-
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
4155
|
-
<xsl:attribute name="margin-bottom">30pt</xsl:attribute>
|
|
4156
|
-
</xsl:if>
|
|
4141
|
+
<fo:block xsl:use-attribute-sets="references-non-normative-title-style">
|
|
4142
|
+
<xsl:call-template name="refine_references-non-normative-title-style"/>
|
|
4143
|
+
|
|
4157
4144
|
<xsl:apply-templates/>
|
|
4158
4145
|
</fo:block>
|
|
4159
4146
|
</xsl:otherwise>
|
|
@@ -4167,68 +4154,6 @@
|
|
|
4167
4154
|
<xsl:call-template name="getLevel"/>
|
|
4168
4155
|
</xsl:variable>
|
|
4169
4156
|
|
|
4170
|
-
<xsl:variable name="font-size">
|
|
4171
|
-
<xsl:choose>
|
|
4172
|
-
<xsl:when test="$layoutVersion = '1951'">
|
|
4173
|
-
<xsl:choose>
|
|
4174
|
-
<xsl:when test="$level = 1 and ancestor::mn:preface and $revision_date_num >= 19680101">9.5pt</xsl:when> <!-- BRIEF HISTORY, FOREWORD -->
|
|
4175
|
-
<xsl:when test="$level = 1 and ancestor::mn:preface">13pt</xsl:when>
|
|
4176
|
-
<xsl:when test="$revision_date_num < 19680101 and ancestor::mn:sections and not(ancestor::mn:introduction)">9pt</xsl:when>
|
|
4177
|
-
<!-- <xsl:when test="$level = 1">9pt</xsl:when> -->
|
|
4178
|
-
<xsl:otherwise>inherit</xsl:otherwise>
|
|
4179
|
-
<!-- <xsl:when test="$level = 2">10pt</xsl:when>
|
|
4180
|
-
<xsl:when test="$level >= 3">9pt</xsl:when> -->
|
|
4181
|
-
</xsl:choose>
|
|
4182
|
-
</xsl:when>
|
|
4183
|
-
<xsl:when test="$layoutVersion = '1972'">
|
|
4184
|
-
<xsl:choose>
|
|
4185
|
-
<xsl:when test="$level = 1">9pt</xsl:when>
|
|
4186
|
-
<xsl:otherwise>9pt</xsl:otherwise>
|
|
4187
|
-
</xsl:choose>
|
|
4188
|
-
</xsl:when>
|
|
4189
|
-
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))">
|
|
4190
|
-
<xsl:choose>
|
|
4191
|
-
<xsl:when test="$level = 1">11pt</xsl:when>
|
|
4192
|
-
<xsl:when test="$level = 2">10pt</xsl:when>
|
|
4193
|
-
<xsl:when test="$level >= 3">9pt</xsl:when>
|
|
4194
|
-
</xsl:choose>
|
|
4195
|
-
</xsl:when>
|
|
4196
|
-
<xsl:when test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
4197
|
-
<xsl:choose>
|
|
4198
|
-
<xsl:when test="ancestor::mn:annex and $level = 2">12pt</xsl:when>
|
|
4199
|
-
<xsl:when test="ancestor::mn:annex and $level = 3">11pt</xsl:when>
|
|
4200
|
-
<xsl:when test="ancestor::mn:introduction and $level >= 2">10pt</xsl:when>
|
|
4201
|
-
<xsl:when test="ancestor::mn:preface">14pt</xsl:when>
|
|
4202
|
-
<xsl:when test="$level = 2">10pt</xsl:when>
|
|
4203
|
-
<xsl:when test="$level >= 3">10pt</xsl:when>
|
|
4204
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
|
4205
|
-
</xsl:choose>
|
|
4206
|
-
</xsl:when>
|
|
4207
|
-
<!-- <xsl:when test="$layoutVersion = '2024'">
|
|
4208
|
-
<xsl:choose>
|
|
4209
|
-
<xsl:when test="ancestor::mn:annex and $level = 2">12.5pt</xsl:when>
|
|
4210
|
-
<xsl:when test="ancestor::mn:annex and $level = 3">11.5pt</xsl:when>
|
|
4211
|
-
<xsl:when test="ancestor::mn:introduction and $level >= 2">10.5pt</xsl:when>
|
|
4212
|
-
<xsl:when test="ancestor::mn:preface">15.3pt</xsl:when>
|
|
4213
|
-
<xsl:when test="$level = 2">11.5pt</xsl:when>
|
|
4214
|
-
<xsl:when test="$level >= 3">10.5pt</xsl:when>
|
|
4215
|
-
<xsl:otherwise>12.5pt</xsl:otherwise>
|
|
4216
|
-
</xsl:choose>
|
|
4217
|
-
</xsl:when> -->
|
|
4218
|
-
<xsl:otherwise>
|
|
4219
|
-
<xsl:choose>
|
|
4220
|
-
<xsl:when test="ancestor::mn:annex and $level = 2">13pt</xsl:when>
|
|
4221
|
-
<xsl:when test="ancestor::mn:annex and $level = 3">12pt</xsl:when>
|
|
4222
|
-
<xsl:when test="ancestor::mn:introduction and $level >= 2">11pt</xsl:when>
|
|
4223
|
-
<xsl:when test="ancestor::mn:preface">16pt</xsl:when>
|
|
4224
|
-
<xsl:when test="$level = 2">12pt</xsl:when>
|
|
4225
|
-
<xsl:when test="$level >= 3">11pt</xsl:when>
|
|
4226
|
-
<xsl:otherwise>13pt</xsl:otherwise>
|
|
4227
|
-
</xsl:choose>
|
|
4228
|
-
</xsl:otherwise>
|
|
4229
|
-
</xsl:choose>
|
|
4230
|
-
</xsl:variable> <!-- font-size -->
|
|
4231
|
-
|
|
4232
4157
|
<xsl:variable name="element-name">
|
|
4233
4158
|
<xsl:choose>
|
|
4234
4159
|
<xsl:when test="@inline-header = 'true'">fo:inline</xsl:when>
|
|
@@ -4237,6 +4162,8 @@
|
|
|
4237
4162
|
</xsl:choose>
|
|
4238
4163
|
</xsl:variable>
|
|
4239
4164
|
|
|
4165
|
+
<xsl:variable name="title_styles"><styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template></styles></xsl:variable>
|
|
4166
|
+
|
|
4240
4167
|
<xsl:choose>
|
|
4241
4168
|
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum')) and parent::mn:foreword"><!-- skip Foreword title --></xsl:when>
|
|
4242
4169
|
<xsl:when test="$doctype = 'amendment' and not(ancestor::mn:preface)">
|
|
@@ -4259,97 +4186,12 @@
|
|
|
4259
4186
|
</xsl:if>
|
|
4260
4187
|
|
|
4261
4188
|
<xsl:element name="{$element-name}">
|
|
4189
|
+
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
4262
4190
|
|
|
4263
|
-
<xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
4264
|
-
<!-- copy @id from empty preceding clause -->
|
|
4265
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:clause and count(node()) = 0]/@id"/>
|
|
4266
|
-
</xsl:if>
|
|
4267
|
-
|
|
4268
|
-
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
|
4269
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
4270
|
-
<xsl:variable name="attribute-name-before">
|
|
4271
|
-
<xsl:choose>
|
|
4272
|
-
<xsl:when test="ancestor::mn:preface and $level = 1">margin-top</xsl:when> <!-- for Foreword and Introduction titles -->
|
|
4273
|
-
<xsl:otherwise>space-before</xsl:otherwise>
|
|
4274
|
-
</xsl:choose>
|
|
4275
|
-
</xsl:variable>
|
|
4276
|
-
<xsl:attribute name="{$attribute-name-before}"> <!-- space-before or margin-top -->
|
|
4277
|
-
<xsl:choose>
|
|
4278
|
-
<xsl:when test="$layoutVersion = '1951' and ancestor::mn:preface and $level = 1">20mm</xsl:when>
|
|
4279
|
-
<xsl:when test="$layoutVersion = '1951' and $level = 1 and $revision_date_num >= 19680101">12pt</xsl:when>
|
|
4280
|
-
<xsl:when test="ancestor::mn:introduction and $level >= 2 and ../preceding-sibling::mn:clause">30pt</xsl:when>
|
|
4281
|
-
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum')) and ancestor::mn:preface and $level = 1">10mm</xsl:when>
|
|
4282
|
-
<xsl:when test="($layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or ($layoutVersion = '1989' and $revision_date_num <= 19981231)) and ancestor::mn:preface and $level = 1">62mm</xsl:when>
|
|
4283
|
-
<xsl:when test="$layoutVersion = '1972' and $level = 1">30pt</xsl:when>
|
|
4284
|
-
<xsl:when test="$layoutVersion = '1989' and ancestor::mn:preface and $level = 1">56pt</xsl:when>
|
|
4285
|
-
<xsl:when test="$layoutVersion = '2024' and ancestor::mn:preface and $level = 1">0pt</xsl:when>
|
|
4286
|
-
<xsl:when test="ancestor::mn:preface">8pt</xsl:when>
|
|
4287
|
-
<xsl:when test="$level = 2 and ancestor::mn:annex">18pt</xsl:when>
|
|
4288
|
-
<xsl:when test="$level = 1">18pt</xsl:when>
|
|
4289
|
-
<xsl:when test="($level = 2 or $level = 3) and not(../preceding-sibling::mn:clause) and $layoutVersion = '2024'">12pt</xsl:when> <!-- first title in 3rd level clause -->
|
|
4290
|
-
<xsl:when test="($level = 2 or $level = 3) and not(../preceding-sibling::mn:clause)">14pt</xsl:when> <!-- first title in 3rd level clause -->
|
|
4291
|
-
<xsl:when test="$level = 3">14pt</xsl:when>
|
|
4292
|
-
<xsl:when test="$level > 3">3pt</xsl:when>
|
|
4293
|
-
<xsl:when test="$level = ''">6pt</xsl:when>
|
|
4294
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
|
4295
|
-
</xsl:choose>
|
|
4296
|
-
</xsl:attribute>
|
|
4297
|
-
<xsl:attribute name="space-after"> <!-- margin-bottom -->
|
|
4298
|
-
<xsl:choose>
|
|
4299
|
-
<xsl:when test="$layoutVersion = '1951' and $level = 1 and ancestor::mn:preface">14.7mm</xsl:when>
|
|
4300
|
-
<xsl:when test="$layoutVersion = '1951' and parent::mn:introduction and $revision_date_num < 19680101">6mm</xsl:when>
|
|
4301
|
-
<xsl:when test="$layoutVersion = '1951' and parent::mn:introduction">2mm</xsl:when>
|
|
4302
|
-
<!-- <xsl:when test="$layoutVersion = '1951' and $revision_date_num >= 19680101">4pt</xsl:when> -->
|
|
4303
|
-
<xsl:when test="$layoutVersion = '1951' and $level = 1">12pt</xsl:when>
|
|
4304
|
-
<xsl:when test="ancestor::mn:introduction and $level >= 2">8pt</xsl:when>
|
|
4305
|
-
<xsl:when test="ancestor::mn:preface">18pt</xsl:when>
|
|
4306
|
-
<xsl:when test="$level = 3">9pt</xsl:when>
|
|
4307
|
-
<!-- <xsl:when test="$level = 2 and ancestor::mn:annex and $layoutVersion = '2024'">2pt</xsl:when> -->
|
|
4308
|
-
<!-- <xsl:otherwise>12pt</xsl:otherwise> -->
|
|
4309
|
-
<xsl:otherwise>8pt</xsl:otherwise>
|
|
4310
|
-
</xsl:choose>
|
|
4311
|
-
</xsl:attribute>
|
|
4312
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4313
|
-
<xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
|
|
4314
|
-
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
4315
|
-
<xsl:copy-of select="@id"/>
|
|
4316
|
-
</xsl:if>
|
|
4317
|
-
<xsl:if test="$layoutVersion = '1951'">
|
|
4318
|
-
<xsl:if test="$element-name = 'fo:block' and ($level = 1 or parent::mn:introduction)">
|
|
4319
|
-
|
|
4320
|
-
<xsl:if test="($revision_date_num < 19690101) or ancestor::mn:preface or (parent::mn:introduction and $revision_date_num >= 19680101)">
|
|
4321
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
4322
|
-
</xsl:if>
|
|
4323
|
-
|
|
4324
|
-
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
|
4325
|
-
|
|
4326
|
-
<xsl:if test="ancestor::mn:preface or ancestor::mn:introduction">
|
|
4327
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
4328
|
-
</xsl:if>
|
|
4329
|
-
</xsl:if>
|
|
4330
|
-
</xsl:if>
|
|
4331
|
-
|
|
4332
|
-
<xsl:if test="$layoutVersion = '1972'">
|
|
4333
|
-
<xsl:if test="$level = 1">
|
|
4334
|
-
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
|
4335
|
-
</xsl:if>
|
|
4336
|
-
</xsl:if>
|
|
4337
|
-
|
|
4338
|
-
<xsl:if test="$layoutVersion = '1987' and ../@type = 'section'">
|
|
4339
|
-
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
4340
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
4341
|
-
<xsl:attribute name="margin-bottom">18pt</xsl:attribute>
|
|
4342
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4343
|
-
</xsl:if>
|
|
4344
4191
|
<xsl:if test="$element-name = 'fo:inline'">
|
|
4345
|
-
<xsl:
|
|
4346
|
-
<xsl:
|
|
4347
|
-
|
|
4348
|
-
</xsl:when>
|
|
4349
|
-
<xsl:otherwise>
|
|
4350
|
-
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
|
4351
|
-
</xsl:otherwise>
|
|
4352
|
-
</xsl:choose>
|
|
4192
|
+
<xsl:if test="$lang = 'zh'">
|
|
4193
|
+
<xsl:value-of select="$tab_zh"/>
|
|
4194
|
+
</xsl:if>
|
|
4353
4195
|
</xsl:if>
|
|
4354
4196
|
|
|
4355
4197
|
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
|
@@ -4506,77 +4348,18 @@
|
|
|
4506
4348
|
</xsl:variable>
|
|
4507
4349
|
|
|
4508
4350
|
<xsl:call-template name="setNamedDestination"/>
|
|
4509
|
-
<xsl:element name="{$element-name}">
|
|
4510
|
-
|
|
4511
|
-
<xsl:call-template name="setBlockAttributes">
|
|
4512
|
-
<xsl:with-param name="text_align_default">justify</xsl:with-param>
|
|
4513
|
-
</xsl:call-template>
|
|
4514
|
-
|
|
4515
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
4516
|
-
<xsl:if test="count(ancestor::mn:li) = 1 and not(ancestor::mn:li[1]/following-sibling::mn:li) and not(following-sibling::mn:p)">
|
|
4517
|
-
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
4518
|
-
</xsl:if>
|
|
4519
|
-
<xsl:if test="starts-with(ancestor::mn:table[1]/@type, 'recommend') and not(following-sibling::mn:p)">
|
|
4520
|
-
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
4521
|
-
</xsl:if>
|
|
4522
|
-
<xsl:if test="parent::*[self::mn:td or self::mn:th]">
|
|
4523
|
-
<xsl:choose>
|
|
4524
|
-
<xsl:when test="not(following-sibling::*)"> <!-- last paragraph in table cell -->
|
|
4525
|
-
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
|
|
4526
|
-
</xsl:when>
|
|
4527
|
-
<xsl:otherwise>
|
|
4528
|
-
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
|
4529
|
-
</xsl:otherwise>
|
|
4530
|
-
</xsl:choose>
|
|
4531
|
-
<!-- Special case: if paragraph in 'strong', i.e. it's sub-header, then keeps with next -->
|
|
4532
|
-
<xsl:if test="count(node()) = count(mn:strong) and following-sibling::*">
|
|
4533
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4534
|
-
</xsl:if>
|
|
4535
|
-
</xsl:if>
|
|
4536
|
-
<xsl:if test="@id">
|
|
4537
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
4538
|
-
</xsl:if>
|
|
4539
4351
|
|
|
4540
|
-
|
|
4541
|
-
<xsl:
|
|
4542
|
-
<xsl:
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
</
|
|
4546
|
-
|
|
4547
|
-
<xsl:attribute name="role">P</xsl:attribute>
|
|
4548
|
-
</xsl:if>
|
|
4549
|
-
<xsl:if test="ancestor::*[self::mn:li or self::mn:td or self::mn:th or self::mn:dd]">
|
|
4550
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
4551
|
-
</xsl:if>
|
|
4552
|
-
<!-- <xsl:apply-templates>
|
|
4553
|
-
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
|
4554
|
-
</xsl:apply-templates> -->
|
|
4555
|
-
<!-- <xsl:apply-templates select="node()[not(self::mn:note[not(following-sibling::*) or count(following-sibling::*) = count(../mn:note) - 1])]"> -->
|
|
4352
|
+
<xsl:variable name="p_styles">
|
|
4353
|
+
<styles xsl:use-attribute-sets="p-style">
|
|
4354
|
+
<xsl:call-template name="refine_p-style">
|
|
4355
|
+
<xsl:with-param name="element-name" select="$element-name"/>
|
|
4356
|
+
</xsl:call-template>
|
|
4357
|
+
</styles>
|
|
4358
|
+
</xsl:variable>
|
|
4556
4359
|
|
|
4557
|
-
|
|
4558
|
-
<xsl:if test="not(ancestor::*[self::mn:li or self::mn:td or self::mn:th or self::mn:dd])">
|
|
4559
|
-
<!-- for paragraphs in the main text -->
|
|
4560
|
-
<xsl:choose>
|
|
4561
|
-
<xsl:when test="$revision_date_num < 19600101">
|
|
4562
|
-
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
|
4563
|
-
</xsl:when>
|
|
4564
|
-
<xsl:otherwise>
|
|
4565
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
4566
|
-
</xsl:otherwise>
|
|
4567
|
-
</xsl:choose>
|
|
4568
|
-
</xsl:if>
|
|
4569
|
-
<xsl:if test="(ancestor::mn:preface and parent::mn:clause) or ancestor::mn:foreword">
|
|
4570
|
-
<xsl:attribute name="text-indent">7.1mm</xsl:attribute>
|
|
4571
|
-
</xsl:if>
|
|
4572
|
-
</xsl:if>
|
|
4360
|
+
<xsl:element name="{$element-name}">
|
|
4573
4361
|
|
|
4574
|
-
<xsl:
|
|
4575
|
-
<xsl:attribute name="line-height">1.13</xsl:attribute>
|
|
4576
|
-
<xsl:if test="parent::mn:li/following-sibling::* or parent::mn:dd">
|
|
4577
|
-
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
|
4578
|
-
</xsl:if>
|
|
4579
|
-
</xsl:if>
|
|
4362
|
+
<xsl:copy-of select="xalan:nodeset($p_styles)/styles/@*"/>
|
|
4580
4363
|
|
|
4581
4364
|
<!-- put inline title in the first paragraph -->
|
|
4582
4365
|
<xsl:if test="($layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989') and $layout_columns != 1">
|
|
@@ -5192,7 +4975,7 @@
|
|
|
5192
4975
|
<xsl:call-template name="insertLayoutVersionAttributesTop">
|
|
5193
4976
|
<xsl:with-param name="odd_or_even" select="$odd_or_even"/>
|
|
5194
4977
|
</xsl:call-template>
|
|
5195
|
-
<fo:block-container
|
|
4978
|
+
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
5196
4979
|
<fo:table table-layout="fixed" width="100%">
|
|
5197
4980
|
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
5198
4981
|
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
@@ -5386,7 +5169,7 @@
|
|
|
5386
5169
|
<xsl:attribute name="display-align">after</xsl:attribute>
|
|
5387
5170
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
5388
5171
|
<fo:block-container margin-left="-13mm" margin-right="-13mm">
|
|
5389
|
-
<fo:block-container
|
|
5172
|
+
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
5390
5173
|
<fo:table table-layout="fixed" width="100%" margin-bottom="5mm">
|
|
5391
5174
|
<fo:table-column column-width="proportional-column-width(35)"/>
|
|
5392
5175
|
<fo:table-column column-width="proportional-column-width(100)"/>
|
|
@@ -8097,6 +7880,10 @@
|
|
|
8097
7880
|
</xsl:element>
|
|
8098
7881
|
</xsl:template>
|
|
8099
7882
|
|
|
7883
|
+
<!-- show sourcecode's name 'before' or 'after' source code -->
|
|
7884
|
+
<xsl:variable name="sourcecode-name-position"><xsl:text>after</xsl:text>
|
|
7885
|
+
</xsl:variable>
|
|
7886
|
+
|
|
8100
7887
|
<xsl:template match="mn:sourcecode" name="sourcecode">
|
|
8101
7888
|
|
|
8102
7889
|
<xsl:variable name="sourcecode_attributes">
|
|
@@ -8120,7 +7907,12 @@
|
|
|
8120
7907
|
|
|
8121
7908
|
<xsl:call-template name="refine_sourcecode-container-style"/>
|
|
8122
7909
|
|
|
8123
|
-
<fo:block-container margin-left="0mm" role="SKIP">
|
|
7910
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
7911
|
+
|
|
7912
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
7913
|
+
<xsl:if test="$sourcecode-name-position = 'before'">
|
|
7914
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name BEFORE content -->
|
|
7915
|
+
</xsl:if>
|
|
8124
7916
|
|
|
8125
7917
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
8126
7918
|
|
|
@@ -8142,7 +7934,16 @@
|
|
|
8142
7934
|
</fo:block>
|
|
8143
7935
|
|
|
8144
7936
|
<xsl:apply-templates select="mn:dl"/> <!-- Key table -->
|
|
8145
|
-
|
|
7937
|
+
|
|
7938
|
+
<!-- <xsl:choose>
|
|
7939
|
+
<xsl:when test="$namespace = 'rsd'"></xsl:when>
|
|
7940
|
+
<xsl:otherwise>
|
|
7941
|
+
<xsl:apply-templates select="mn:fmt-name" /> --><!-- show sourcecode's name AFTER content -->
|
|
7942
|
+
<!-- </xsl:otherwise>
|
|
7943
|
+
</xsl:choose> -->
|
|
7944
|
+
<xsl:if test="$sourcecode-name-position = 'after'">
|
|
7945
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name AFTER content -->
|
|
7946
|
+
</xsl:if>
|
|
8146
7947
|
|
|
8147
7948
|
</fo:block-container>
|
|
8148
7949
|
</fo:block-container>
|
|
@@ -14244,6 +14045,10 @@
|
|
|
14244
14045
|
<!-- image -->
|
|
14245
14046
|
<!-- ====== -->
|
|
14246
14047
|
|
|
14048
|
+
<!-- show figure's name 'before' or 'after' image -->
|
|
14049
|
+
<xsl:variable name="figure-name-position"><xsl:text>after</xsl:text>
|
|
14050
|
+
</xsl:variable>
|
|
14051
|
+
|
|
14247
14052
|
<xsl:template match="mn:figure" name="figure">
|
|
14248
14053
|
<xsl:variable name="isAdded" select="@added"/>
|
|
14249
14054
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
@@ -14256,6 +14061,10 @@
|
|
|
14256
14061
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
|
14257
14062
|
</xsl:call-template>
|
|
14258
14063
|
|
|
14064
|
+
<xsl:if test="$figure-name-position = 'before'"> <!-- show figure's name BEFORE image -->
|
|
14065
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
14066
|
+
</xsl:if>
|
|
14067
|
+
|
|
14259
14068
|
<!-- Example: Dimensions in millimeters -->
|
|
14260
14069
|
<xsl:apply-templates select="mn:note[@type = 'units']"/>
|
|
14261
14070
|
|
|
@@ -14276,7 +14085,16 @@
|
|
|
14276
14085
|
<xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
|
|
14277
14086
|
<xsl:call-template name="showFigureKey"/>
|
|
14278
14087
|
</xsl:if>
|
|
14279
|
-
|
|
14088
|
+
|
|
14089
|
+
<!-- <xsl:choose>
|
|
14090
|
+
<xsl:when test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'rsd'"></xsl:when>
|
|
14091
|
+
<xsl:otherwise>
|
|
14092
|
+
<xsl:apply-templates select="mn:fmt-name" /> --> <!-- show figure's name AFTER image -->
|
|
14093
|
+
<!-- </xsl:otherwise>
|
|
14094
|
+
</xsl:choose> -->
|
|
14095
|
+
<xsl:if test="$figure-name-position = 'after'">
|
|
14096
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show figure's name AFTER image -->
|
|
14097
|
+
</xsl:if>
|
|
14280
14098
|
|
|
14281
14099
|
</fo:block-container>
|
|
14282
14100
|
</xsl:template>
|
|
@@ -16432,10 +16250,24 @@
|
|
|
16432
16250
|
<!-- ================ -->
|
|
16433
16251
|
|
|
16434
16252
|
<xsl:attribute-set name="references-non-normative-title-style">
|
|
16253
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
16254
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
16255
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
16256
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
16257
|
+
<xsl:attribute name="margin-bottom">30pt</xsl:attribute>
|
|
16258
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
16259
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
|
16435
16260
|
</xsl:attribute-set>
|
|
16436
16261
|
|
|
16437
16262
|
<xsl:template name="refine_references-non-normative-title-style">
|
|
16438
|
-
|
|
16263
|
+
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
16264
|
+
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
16265
|
+
<xsl:attribute name="span">all</xsl:attribute>
|
|
16266
|
+
</xsl:if>
|
|
16267
|
+
<xsl:if test="$layoutVersion != '2024'">
|
|
16268
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
|
16269
|
+
<xsl:attribute name="margin-bottom">36pt</xsl:attribute>
|
|
16270
|
+
</xsl:if>
|
|
16439
16271
|
</xsl:template>
|
|
16440
16272
|
|
|
16441
16273
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
|
@@ -18534,9 +18366,22 @@
|
|
|
18534
18366
|
<!-- ===================================== -->
|
|
18535
18367
|
|
|
18536
18368
|
<xsl:attribute-set name="annex-title-style">
|
|
18537
|
-
|
|
18369
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
18370
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
18371
|
+
<xsl:attribute name="margin-bottom">48pt</xsl:attribute>
|
|
18372
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
18373
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
|
18374
|
+
</xsl:attribute-set> <!-- annex-title-style -->
|
|
18538
18375
|
|
|
18539
18376
|
<xsl:template name="refine_annex-title-style">
|
|
18377
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
|
18378
|
+
<xsl:if test="$layoutVersion = '2024'">
|
|
18379
|
+
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
|
18380
|
+
<!-- <xsl:attribute name="margin-bottom">52pt</xsl:attribute> -->
|
|
18381
|
+
</xsl:if>
|
|
18382
|
+
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
18383
|
+
<xsl:attribute name="span">all</xsl:attribute>
|
|
18384
|
+
</xsl:if>
|
|
18540
18385
|
</xsl:template>
|
|
18541
18386
|
|
|
18542
18387
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
@@ -18545,6 +18390,272 @@
|
|
|
18545
18390
|
<xsl:template name="refine_p-zzSTDTitle1-style">
|
|
18546
18391
|
</xsl:template>
|
|
18547
18392
|
|
|
18393
|
+
<xsl:attribute-set name="p-style">
|
|
18394
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
|
18395
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
18396
|
+
<xsl:attribute name="line-height">1.13</xsl:attribute>
|
|
18397
|
+
</xsl:attribute-set> <!-- p-style -->
|
|
18398
|
+
|
|
18399
|
+
<xsl:template name="refine_p-style">
|
|
18400
|
+
<xsl:param name="element-name"/>
|
|
18401
|
+
<xsl:param name="margin"/>
|
|
18402
|
+
<xsl:call-template name="setBlockAttributes">
|
|
18403
|
+
<!-- <xsl:with-param name="text_align_default">justify</xsl:with-param> -->
|
|
18404
|
+
<xsl:with-param name="skip_text_align_default">true</xsl:with-param>
|
|
18405
|
+
</xsl:call-template>
|
|
18406
|
+
|
|
18407
|
+
<xsl:if test="count(ancestor::mn:li) = 1 and not(ancestor::mn:li[1]/following-sibling::mn:li) and not(following-sibling::mn:p)">
|
|
18408
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
18409
|
+
</xsl:if>
|
|
18410
|
+
<xsl:if test="starts-with(ancestor::mn:table[1]/@type, 'recommend') and not(following-sibling::mn:p)">
|
|
18411
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
18412
|
+
</xsl:if>
|
|
18413
|
+
<xsl:if test="parent::*[self::mn:td or self::mn:th]">
|
|
18414
|
+
<xsl:choose>
|
|
18415
|
+
<xsl:when test="not(following-sibling::*)"> <!-- last paragraph in table cell -->
|
|
18416
|
+
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
|
|
18417
|
+
</xsl:when>
|
|
18418
|
+
<xsl:otherwise>
|
|
18419
|
+
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
|
18420
|
+
</xsl:otherwise>
|
|
18421
|
+
</xsl:choose>
|
|
18422
|
+
<!-- Special case: if paragraph in 'strong', i.e. it's sub-header, then keeps with next -->
|
|
18423
|
+
<xsl:if test="count(node()) = count(mn:strong) and following-sibling::*">
|
|
18424
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
18425
|
+
</xsl:if>
|
|
18426
|
+
</xsl:if>
|
|
18427
|
+
|
|
18428
|
+
<xsl:copy-of select="@id"/>
|
|
18429
|
+
|
|
18430
|
+
<!-- bookmarks only in paragraph -->
|
|
18431
|
+
<xsl:if test="count(mn:bookmark) != 0 and count(*) = count(mn:bookmark) and normalize-space() = ''">
|
|
18432
|
+
<xsl:attribute name="font-size">0</xsl:attribute>
|
|
18433
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
18434
|
+
<xsl:attribute name="line-height">0</xsl:attribute>
|
|
18435
|
+
</xsl:if>
|
|
18436
|
+
<xsl:if test="$element-name = 'fo:inline'">
|
|
18437
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
18438
|
+
</xsl:if>
|
|
18439
|
+
<xsl:if test="ancestor::*[self::mn:li or self::mn:td or self::mn:th or self::mn:dd]">
|
|
18440
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
18441
|
+
</xsl:if>
|
|
18442
|
+
<!-- <xsl:apply-templates>
|
|
18443
|
+
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
|
18444
|
+
</xsl:apply-templates> -->
|
|
18445
|
+
<!-- <xsl:apply-templates select="node()[not(self::mn:note[not(following-sibling::*) or count(following-sibling::*) = count(../mn:note) - 1])]"> -->
|
|
18446
|
+
|
|
18447
|
+
<xsl:if test="$layoutVersion = '1951'">
|
|
18448
|
+
<xsl:if test="not(ancestor::*[self::mn:li or self::mn:td or self::mn:th or self::mn:dd])">
|
|
18449
|
+
<!-- for paragraphs in the main text -->
|
|
18450
|
+
<xsl:choose>
|
|
18451
|
+
<xsl:when test="$revision_date_num < 19600101">
|
|
18452
|
+
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
|
18453
|
+
</xsl:when>
|
|
18454
|
+
<xsl:otherwise>
|
|
18455
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
18456
|
+
</xsl:otherwise>
|
|
18457
|
+
</xsl:choose>
|
|
18458
|
+
</xsl:if>
|
|
18459
|
+
<xsl:if test="(ancestor::mn:preface and parent::mn:clause) or ancestor::mn:foreword">
|
|
18460
|
+
<xsl:attribute name="text-indent">7.1mm</xsl:attribute>
|
|
18461
|
+
</xsl:if>
|
|
18462
|
+
</xsl:if>
|
|
18463
|
+
|
|
18464
|
+
<xsl:if test="$layoutVersion != '2024'">
|
|
18465
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
|
18466
|
+
<xsl:if test="ancestor::mn:preface">
|
|
18467
|
+
<xsl:attribute name="line-height">1.15</xsl:attribute>
|
|
18468
|
+
</xsl:if>
|
|
18469
|
+
</xsl:if>
|
|
18470
|
+
|
|
18471
|
+
<xsl:if test="$layoutVersion = '2024'">
|
|
18472
|
+
<xsl:if test="parent::mn:li/following-sibling::* or parent::mn:dd">
|
|
18473
|
+
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
|
18474
|
+
</xsl:if>
|
|
18475
|
+
</xsl:if>
|
|
18476
|
+
<!-- $namespace = 'iso' -->
|
|
18477
|
+
|
|
18478
|
+
</xsl:template> <!-- refine_p-style -->
|
|
18479
|
+
|
|
18480
|
+
<xsl:attribute-set name="title-style">
|
|
18481
|
+
<!-- Note: font-size for level 1 title -->
|
|
18482
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
18483
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
18484
|
+
<xsl:attribute name="space-after">8pt</xsl:attribute>
|
|
18485
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
18486
|
+
</xsl:attribute-set> <!-- title-style -->
|
|
18487
|
+
|
|
18488
|
+
<xsl:template name="refine_title-style">
|
|
18489
|
+
<xsl:param name="element-name"/>
|
|
18490
|
+
<xsl:variable name="level">
|
|
18491
|
+
<xsl:call-template name="getLevel"/>
|
|
18492
|
+
</xsl:variable>
|
|
18493
|
+
|
|
18494
|
+
<xsl:if test="$level = 2">
|
|
18495
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
18496
|
+
<xsl:if test="ancestor::mn:annex">
|
|
18497
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
18498
|
+
</xsl:if>
|
|
18499
|
+
</xsl:if>
|
|
18500
|
+
|
|
18501
|
+
<xsl:if test="$level >= 3">
|
|
18502
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
18503
|
+
</xsl:if>
|
|
18504
|
+
|
|
18505
|
+
<xsl:if test="$level = 3">
|
|
18506
|
+
<xsl:attribute name="space-after">9pt</xsl:attribute>
|
|
18507
|
+
<xsl:if test="ancestor::mn:annex">
|
|
18508
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
18509
|
+
</xsl:if>
|
|
18510
|
+
</xsl:if>
|
|
18511
|
+
|
|
18512
|
+
<xsl:if test="ancestor::mn:preface">
|
|
18513
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
18514
|
+
<xsl:attribute name="space-after">18pt</xsl:attribute>
|
|
18515
|
+
</xsl:if>
|
|
18516
|
+
|
|
18517
|
+
<xsl:if test="$level >= 2">
|
|
18518
|
+
<xsl:if test="ancestor::mn:introduction">
|
|
18519
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
18520
|
+
<xsl:attribute name="space-after">8pt</xsl:attribute>
|
|
18521
|
+
</xsl:if>
|
|
18522
|
+
</xsl:if>
|
|
18523
|
+
|
|
18524
|
+
<xsl:if test="$layoutVersion = '1951'">
|
|
18525
|
+
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
|
18526
|
+
<xsl:if test="$level = 1">
|
|
18527
|
+
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
|
18528
|
+
<xsl:if test="parent::mn:introduction">
|
|
18529
|
+
<xsl:attribute name="space-after">2mm</xsl:attribute>
|
|
18530
|
+
<xsl:if test="$revision_date_num < 19680101">
|
|
18531
|
+
<xsl:attribute name="space-after">6mm</xsl:attribute>
|
|
18532
|
+
</xsl:if>
|
|
18533
|
+
</xsl:if>
|
|
18534
|
+
<xsl:if test="ancestor::mn:preface">
|
|
18535
|
+
<xsl:attribute name="space-after">14.7mm</xsl:attribute>
|
|
18536
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
18537
|
+
<xsl:if test="$revision_date_num >= 19680101"><!-- BRIEF HISTORY, FOREWORD -->
|
|
18538
|
+
<xsl:attribute name="font-size">9.5pt</xsl:attribute>
|
|
18539
|
+
</xsl:if>
|
|
18540
|
+
</xsl:if>
|
|
18541
|
+
</xsl:if>
|
|
18542
|
+
<xsl:if test="$revision_date_num < 19680101 and ancestor::mn:sections and not(ancestor::mn:introduction)">
|
|
18543
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
18544
|
+
</xsl:if>
|
|
18545
|
+
</xsl:if>
|
|
18546
|
+
|
|
18547
|
+
<xsl:if test="$layoutVersion = '1972'">
|
|
18548
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
18549
|
+
</xsl:if>
|
|
18550
|
+
|
|
18551
|
+
<xsl:if test="$layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
18552
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
18553
|
+
|
|
18554
|
+
<xsl:if test="$level = 2">
|
|
18555
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
18556
|
+
<xsl:if test="ancestor::mn:annex">
|
|
18557
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
18558
|
+
</xsl:if>
|
|
18559
|
+
</xsl:if>
|
|
18560
|
+
<xsl:if test="$level = 3">
|
|
18561
|
+
<xsl:if test="ancestor::mn:annex">
|
|
18562
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
18563
|
+
</xsl:if>
|
|
18564
|
+
</xsl:if>
|
|
18565
|
+
<xsl:if test="$level >= 3">
|
|
18566
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
18567
|
+
</xsl:if>
|
|
18568
|
+
|
|
18569
|
+
<xsl:if test="ancestor::mn:preface">
|
|
18570
|
+
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
18571
|
+
</xsl:if>
|
|
18572
|
+
<xsl:if test="ancestor::mn:introduction and $level >= 2">
|
|
18573
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
18574
|
+
</xsl:if>
|
|
18575
|
+
</xsl:if>
|
|
18576
|
+
|
|
18577
|
+
<xsl:if test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum'))">
|
|
18578
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
18579
|
+
<xsl:if test="$level = 2">
|
|
18580
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
18581
|
+
</xsl:if>
|
|
18582
|
+
<xsl:if test="$level >= 3">
|
|
18583
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
|
18584
|
+
</xsl:if>
|
|
18585
|
+
</xsl:if>
|
|
18586
|
+
|
|
18587
|
+
<xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
|
|
18588
|
+
<!-- copy @id from empty preceding clause -->
|
|
18589
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:clause and count(node()) = 0]/@id"/>
|
|
18590
|
+
</xsl:if>
|
|
18591
|
+
|
|
18592
|
+
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
18593
|
+
<xsl:copy-of select="@id"/>
|
|
18594
|
+
</xsl:if>
|
|
18595
|
+
<xsl:if test="$layoutVersion = '1951'">
|
|
18596
|
+
<xsl:if test="$element-name = 'fo:block' and ($level = 1 or parent::mn:introduction)">
|
|
18597
|
+
|
|
18598
|
+
<xsl:if test="($revision_date_num < 19690101) or ancestor::mn:preface or (parent::mn:introduction and $revision_date_num >= 19680101)">
|
|
18599
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
18600
|
+
</xsl:if>
|
|
18601
|
+
|
|
18602
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
|
18603
|
+
|
|
18604
|
+
<xsl:if test="ancestor::mn:preface or ancestor::mn:introduction">
|
|
18605
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
18606
|
+
</xsl:if>
|
|
18607
|
+
</xsl:if>
|
|
18608
|
+
</xsl:if>
|
|
18609
|
+
|
|
18610
|
+
<xsl:if test="$layoutVersion = '1972'">
|
|
18611
|
+
<xsl:if test="$level = 1">
|
|
18612
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
|
18613
|
+
</xsl:if>
|
|
18614
|
+
</xsl:if>
|
|
18615
|
+
|
|
18616
|
+
<xsl:if test="$layoutVersion = '1987' and ../@type = 'section'">
|
|
18617
|
+
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
18618
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
18619
|
+
<xsl:attribute name="margin-bottom">18pt</xsl:attribute>
|
|
18620
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
18621
|
+
</xsl:if>
|
|
18622
|
+
<xsl:if test="$element-name = 'fo:inline'">
|
|
18623
|
+
<xsl:if test="not($lang = 'zh')">
|
|
18624
|
+
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
|
18625
|
+
</xsl:if>
|
|
18626
|
+
</xsl:if>
|
|
18627
|
+
|
|
18628
|
+
<xsl:variable name="attribute-name-before">
|
|
18629
|
+
<xsl:choose>
|
|
18630
|
+
<xsl:when test="ancestor::mn:preface and $level = 1">margin-top</xsl:when> <!-- for Foreword and Introduction titles -->
|
|
18631
|
+
<xsl:otherwise>space-before</xsl:otherwise>
|
|
18632
|
+
</xsl:choose>
|
|
18633
|
+
</xsl:variable>
|
|
18634
|
+
<xsl:attribute name="{$attribute-name-before}"> <!-- space-before or margin-top -->
|
|
18635
|
+
<xsl:choose>
|
|
18636
|
+
<xsl:when test="$layoutVersion = '1951' and ancestor::mn:preface and $level = 1">20mm</xsl:when>
|
|
18637
|
+
<xsl:when test="$layoutVersion = '1951' and $level = 1 and $revision_date_num >= 19680101">12pt</xsl:when>
|
|
18638
|
+
<xsl:when test="ancestor::mn:introduction and $level >= 2 and ../preceding-sibling::mn:clause">30pt</xsl:when>
|
|
18639
|
+
<xsl:when test="(($layoutVersion = '1987' and $doctype = 'technical-report') or ($layoutVersion = '1979' and $doctype = 'addendum')) and ancestor::mn:preface and $level = 1">10mm</xsl:when>
|
|
18640
|
+
<xsl:when test="($layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or ($layoutVersion = '1989' and $revision_date_num <= 19981231)) and ancestor::mn:preface and $level = 1">62mm</xsl:when>
|
|
18641
|
+
<xsl:when test="$layoutVersion = '1972' and $level = 1">30pt</xsl:when>
|
|
18642
|
+
<xsl:when test="$layoutVersion = '1989' and ancestor::mn:preface and $level = 1">56pt</xsl:when>
|
|
18643
|
+
<xsl:when test="$layoutVersion = '2024' and ancestor::mn:preface and $level = 1">0pt</xsl:when>
|
|
18644
|
+
<xsl:when test="ancestor::mn:preface">8pt</xsl:when>
|
|
18645
|
+
<xsl:when test="$level = 2 and ancestor::mn:annex">18pt</xsl:when>
|
|
18646
|
+
<xsl:when test="$level = 1">18pt</xsl:when>
|
|
18647
|
+
<xsl:when test="($level = 2 or $level = 3) and not(../preceding-sibling::mn:clause) and $layoutVersion = '2024'">12pt</xsl:when> <!-- first title in 3rd level clause -->
|
|
18648
|
+
<xsl:when test="($level = 2 or $level = 3) and not(../preceding-sibling::mn:clause)">14pt</xsl:when> <!-- first title in 3rd level clause -->
|
|
18649
|
+
<xsl:when test="$level = 3">14pt</xsl:when>
|
|
18650
|
+
<xsl:when test="$level > 3">3pt</xsl:when>
|
|
18651
|
+
<xsl:when test="$level = ''">6pt</xsl:when>
|
|
18652
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
|
18653
|
+
</xsl:choose>
|
|
18654
|
+
</xsl:attribute>
|
|
18655
|
+
<!-- $namespace = 'iso' -->
|
|
18656
|
+
<xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
|
|
18657
|
+
</xsl:template> <!-- refine_title-style -->
|
|
18658
|
+
|
|
18548
18659
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
18549
18660
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
18550
18661
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
@@ -18872,6 +18983,12 @@
|
|
|
18872
18983
|
</xsl:choose>
|
|
18873
18984
|
</xsl:template>
|
|
18874
18985
|
|
|
18986
|
+
<xsl:attribute-set name="reset-margins-style">
|
|
18987
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
18988
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
18989
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
18990
|
+
</xsl:attribute-set>
|
|
18991
|
+
|
|
18875
18992
|
<xsl:attribute-set name="clause-style">
|
|
18876
18993
|
|
|
18877
18994
|
</xsl:attribute-set>
|
|
@@ -19926,8 +20043,9 @@
|
|
|
19926
20043
|
|
|
19927
20044
|
<xsl:template name="setTextAlignment">
|
|
19928
20045
|
<xsl:param name="default">left</xsl:param>
|
|
20046
|
+
<xsl:param name="skip_default">false</xsl:param>
|
|
19929
20047
|
<xsl:variable name="align" select="normalize-space(@align)"/>
|
|
19930
|
-
<xsl:
|
|
20048
|
+
<xsl:variable name="text_align">
|
|
19931
20049
|
<xsl:choose>
|
|
19932
20050
|
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
|
|
19933
20051
|
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
|
|
@@ -19935,9 +20053,13 @@
|
|
|
19935
20053
|
<xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
|
|
19936
20054
|
<xsl:when test="ancestor::mn:td/@align"><xsl:value-of select="ancestor::mn:td/@align"/></xsl:when>
|
|
19937
20055
|
<xsl:when test="ancestor::mn:th/@align"><xsl:value-of select="ancestor::mn:th/@align"/></xsl:when>
|
|
20056
|
+
<xsl:when test="$skip_default = 'true'"/>
|
|
19938
20057
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
|
19939
20058
|
</xsl:choose>
|
|
19940
|
-
</xsl:
|
|
20059
|
+
</xsl:variable>
|
|
20060
|
+
<xsl:if test="normalize-space($text_align) != ''">
|
|
20061
|
+
<xsl:attribute name="text-align"><xsl:value-of select="$text_align"/></xsl:attribute>
|
|
20062
|
+
</xsl:if>
|
|
19941
20063
|
<xsl:if test="$align = 'indent'">
|
|
19942
20064
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
|
19943
20065
|
</xsl:if>
|
|
@@ -19945,8 +20067,10 @@
|
|
|
19945
20067
|
|
|
19946
20068
|
<xsl:template name="setBlockAttributes">
|
|
19947
20069
|
<xsl:param name="text_align_default">left</xsl:param>
|
|
20070
|
+
<xsl:param name="skip_text_align_default">false</xsl:param>
|
|
19948
20071
|
<xsl:call-template name="setTextAlignment">
|
|
19949
20072
|
<xsl:with-param name="default" select="$text_align_default"/>
|
|
20073
|
+
<xsl:with-param name="skip_default" select="$skip_text_align_default"/>
|
|
19950
20074
|
</xsl:call-template>
|
|
19951
20075
|
<xsl:call-template name="setKeepAttributes"/>
|
|
19952
20076
|
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|