metanorma-itu 2.5.12 → 2.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +1748 -1322
- data/lib/isodoc/itu/itu.in-force.xsl +1748 -1322
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +1748 -1322
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +1748 -1322
- data/lib/isodoc/itu/itu.recommendation.xsl +1748 -1322
- data/lib/isodoc/itu/itu.resolution.xsl +1748 -1322
- data/lib/isodoc/itu/itu.service-publication.xsl +1748 -1322
- data/lib/isodoc/itu/itu.technical-paper.xsl +1748 -1322
- data/lib/isodoc/itu/itu.technical-report.xsl +1748 -1322
- data/lib/isodoc/itu/presentation_ref.rb +3 -2
- data/lib/isodoc/itu/presentation_xml_convert.rb +13 -5
- data/lib/isodoc/itu/terms.rb +4 -4
- data/lib/metanorma/itu/biblio.rng +15 -9
- data/lib/metanorma/itu/relaton-itu.rng +1 -0
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
@@ -6,180 +6,49 @@
|
|
6
6
|
|
7
7
|
<xsl:variable name="debug">false</xsl:variable>
|
8
8
|
|
9
|
-
<xsl:variable name="docidentifier_ITU" select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU']"/>
|
10
|
-
<xsl:variable name="docidentifier_ITU_left_part_" select="normalize-space(substring-before($docidentifier_ITU, ' '))"/>
|
11
|
-
<xsl:variable name="docidentifier_ITU_left_part">
|
12
|
-
<xsl:value-of select="$docidentifier_ITU_left_part_"/>
|
13
|
-
<xsl:if test="$docidentifier_ITU_left_part_ = ''"><xsl:text>ITU-T</xsl:text></xsl:if>
|
14
|
-
</xsl:variable>
|
15
|
-
|
16
|
-
<!-- Rec. ITU-T G.650.1 (03/2018) -->
|
17
|
-
<xsl:variable name="footerprefix" select="'Rec. '"/>
|
18
|
-
<xsl:variable name="docname">
|
19
|
-
<xsl:value-of select="substring-before($docidentifier_ITU, ' ')"/>
|
20
|
-
<xsl:text> </xsl:text>
|
21
|
-
<xsl:value-of select="substring-after($docidentifier_ITU, ' ')"/>
|
22
|
-
<xsl:text> </xsl:text>
|
23
|
-
</xsl:variable>
|
24
|
-
<xsl:variable name="date_published" select="/itu:itu-standard/itu:bibdata/itu:date[@type = 'published']/itu:on"/>
|
25
|
-
<xsl:variable name="docdate">
|
26
|
-
<xsl:call-template name="formatDate">
|
27
|
-
<xsl:with-param name="date" select="$date_published"/>
|
28
|
-
</xsl:call-template>
|
29
|
-
</xsl:variable>
|
30
|
-
<xsl:variable name="doctype" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
31
|
-
<xsl:variable name="bureau" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:bureau"/>
|
32
|
-
|
33
|
-
<xsl:variable name="docnumber" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:docnumber)"/>
|
34
|
-
<xsl:variable name="xSTR-ACRONYM">
|
35
|
-
<xsl:variable name="x" select="/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'abbrev']"/>
|
36
|
-
<xsl:variable name="acronym" select="$docnumber"/>
|
37
|
-
<xsl:value-of select="concat($x,'STR-', $acronym)"/>
|
38
|
-
</xsl:variable>
|
39
|
-
|
40
9
|
<!-- Example:
|
41
10
|
<item level="1" id="Foreword" display="true">Foreword</item>
|
42
11
|
<item id="term-script" display="false">3.2</item>
|
43
12
|
-->
|
44
13
|
<xsl:variable name="contents_">
|
45
|
-
<
|
46
|
-
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:preface/node()" mode="contents"/> -->
|
47
|
-
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:sections/itu:clause[@type='scope']" mode="contents" /> -->
|
48
|
-
|
49
|
-
<!-- Normative references -->
|
50
|
-
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:bibliography/itu:references[@normative='true']" mode="contents" />
|
51
|
-
|
52
|
-
<xsl:apply-templates select="/itu:itu-standard/itu:sections/*[not(@type='scope')]" mode="contents" />
|
53
|
-
|
54
|
-
<xsl:apply-templates select="/itu:itu-standard/itu:annex" mode="contents"/> -->
|
55
|
-
|
56
|
-
<!-- Bibliography -->
|
57
|
-
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:bibliography/itu:references[not(@normative='true')]" mode="contents"/> -->
|
58
|
-
|
59
|
-
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
60
|
-
|
61
|
-
<xsl:apply-templates select="//itu:table" mode="contents"/>
|
62
|
-
|
63
|
-
<xsl:call-template name="processTablesFigures_Contents">
|
64
|
-
<xsl:with-param name="always" select="$doctype = 'technical-report' or $doctype = 'technical-paper'"/>
|
65
|
-
</xsl:call-template>
|
66
|
-
</contents>
|
67
|
-
</xsl:variable>
|
68
|
-
<xsl:variable name="contents" select="xalan:nodeset($contents_)"/>
|
69
|
-
|
70
|
-
<xsl:variable name="doctypeTitle">
|
71
|
-
<xsl:choose>
|
72
|
-
<xsl:when test="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]">
|
73
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
74
|
-
</xsl:when>
|
75
|
-
<xsl:otherwise>
|
76
|
-
<xsl:call-template name="capitalizeWords">
|
77
|
-
<xsl:with-param name="str" select="$doctype"/>
|
78
|
-
</xsl:call-template>
|
79
|
-
</xsl:otherwise>
|
80
|
-
</xsl:choose>
|
81
|
-
</xsl:variable>
|
82
|
-
|
83
|
-
<xsl:variable name="footer-text">
|
84
|
-
<xsl:variable name="additionalIdentifiers_">
|
85
|
-
<xsl:if test="$TDnumber != ''">/<xsl:value-of select="$TDnumber"/></xsl:if>
|
86
|
-
<xsl:if test="$provisionalIdentifier != ''">/<xsl:value-of select="$provisionalIdentifier"/></xsl:if>
|
87
|
-
</xsl:variable>
|
88
|
-
<xsl:variable name="additionalIdentifiers" select="normalize-space($additionalIdentifiers_)"/>
|
89
|
-
<xsl:choose>
|
90
|
-
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
91
|
-
<xsl:variable name="date_">
|
92
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date"/>
|
93
|
-
<xsl:if test="not(/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date)"/>
|
94
|
-
<xsl:value-of select="$date_published"/>
|
95
|
-
</xsl:variable>
|
96
|
-
<xsl:variable name="date" select="concat('(',substring($date_,1,7), ')')"/>
|
97
|
-
<xsl:value-of select="concat($xSTR-ACRONYM, $additionalIdentifiers, ' ', $date)"/>
|
98
|
-
</xsl:when>
|
99
|
-
<xsl:when test="$doctype = 'implementers-guide'">
|
100
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
101
|
-
<xsl:value-of select="$additionalIdentifiers"/>
|
102
|
-
<xsl:text> for </xsl:text>
|
103
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
104
|
-
<xsl:text> </xsl:text>
|
105
|
-
<xsl:variable name="date" select="concat('(',substring($date_published,1,7), ')')"/>
|
106
|
-
<xsl:value-of select="$date"/>
|
107
|
-
</xsl:when>
|
108
|
-
<xsl:when test="$doctype = 'resolution'">
|
109
|
-
<!-- WTSA-16 – Resolution 1 -->
|
110
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting/@acronym"/>
|
111
|
-
<xsl:text> – </xsl:text>
|
112
|
-
<xsl:value-of select="$doctypeTitle"/>
|
113
|
-
<xsl:value-of select="$additionalIdentifiers"/>
|
114
|
-
<xsl:text> </xsl:text>
|
115
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
116
|
-
</xsl:when>
|
117
|
-
<xsl:when test="$doctype = 'recommendation-supplement'">
|
118
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Short']"/>
|
119
|
-
<xsl:value-of select="$additionalIdentifiers"/>
|
120
|
-
<xsl:text> </xsl:text>
|
121
|
-
<xsl:value-of select="$docdate"/>
|
122
|
-
</xsl:when>
|
123
|
-
<xsl:when test="$doctype = 'service-publication'">
|
124
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-lang']"/>
|
125
|
-
<xsl:value-of select="$additionalIdentifiers"/>
|
126
|
-
</xsl:when>
|
127
|
-
<xsl:otherwise>
|
128
|
-
<xsl:value-of select="concat($footerprefix, $docname, $additionalIdentifiers, ' ', $docdate)"/>
|
129
|
-
</xsl:otherwise>
|
130
|
-
</xsl:choose>
|
131
|
-
</xsl:variable>
|
132
|
-
|
133
|
-
<xsl:variable name="isAmendment" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:amendment[@language = $lang])"/>
|
134
|
-
<xsl:variable name="isCorrigendum" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:corrigendum[@language = $lang])"/>
|
14
|
+
<xsl:variable name="bundle" select="count(//itu:itu-standard) > 1"/>
|
135
15
|
|
136
|
-
|
137
|
-
|
16
|
+
<xsl:if test="normalize-space($bundle) = 'true'">
|
17
|
+
<collection firstpage_id="firstpage_id_0"/>
|
18
|
+
</xsl:if>
|
138
19
|
|
139
|
-
|
20
|
+
<xsl:for-each select="//itu:itu-standard">
|
21
|
+
<xsl:variable name="num"><xsl:number level="any" count="itu:itu-standard"/></xsl:variable>
|
22
|
+
<xsl:variable name="docidentifier"><xsl:value-of select="itu:bibdata/itu:docidentifier[@type = 'ITU']"/></xsl:variable>
|
23
|
+
<xsl:variable name="docnumber_">
|
24
|
+
<xsl:value-of select="$docidentifier"/>
|
25
|
+
<xsl:if test="normalize-space($docidentifier) = ''">
|
26
|
+
<xsl:value-of select="itu:bibdata/itu:docidentifier[1]"/>
|
27
|
+
</xsl:if>
|
28
|
+
</xsl:variable>
|
29
|
+
<xsl:variable name="docnumber" select="normalize-space($docnumber_)"/>
|
30
|
+
<xsl:variable name="current_document">
|
31
|
+
<xsl:copy-of select="."/>
|
32
|
+
</xsl:variable>
|
140
33
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
</xsl:choose>
|
146
|
-
</xsl:variable>
|
147
|
-
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
34
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
35
|
+
<doc num="{$num}" firstpage_id="firstpage_id_{$num}" title-part="{$docnumber}" bundle="{$bundle}"> <!-- 'bundle' means several different documents (not language versions) in one xml -->
|
36
|
+
<contents>
|
37
|
+
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
148
38
|
|
149
|
-
|
150
|
-
<xsl:variable name="color_cover_title_">
|
151
|
-
<xsl:value-of select="$color_cover_title_value"/>
|
152
|
-
<xsl:if test="$color_cover_title_value = ''">black</xsl:if>
|
153
|
-
</xsl:variable>
|
154
|
-
<xsl:variable name="color_cover_title" select="normalize-space($color_cover_title_)"/>
|
39
|
+
<xsl:apply-templates select="//itu:table" mode="contents"/>
|
155
40
|
|
156
|
-
|
157
|
-
<xsl:variable name="cover_header_hide_">
|
158
|
-
<xsl:value-of select="$cover_header_hide_value"/>
|
159
|
-
<xsl:if test="$cover_header_hide_value = ''">false</xsl:if>
|
160
|
-
</xsl:variable>
|
161
|
-
<xsl:variable name="cover_header_hide" select="normalize-space($cover_header_hide_)"/>
|
41
|
+
<xsl:variable name="doctype" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
162
42
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
43
|
+
<xsl:call-template name="processTablesFigures_Contents">
|
44
|
+
<xsl:with-param name="always" select="$doctype = 'technical-report' or $doctype = 'technical-paper'"/>
|
45
|
+
</xsl:call-template>
|
46
|
+
</contents>
|
47
|
+
</doc>
|
48
|
+
</xsl:for-each>
|
49
|
+
</xsl:for-each>
|
167
50
|
</xsl:variable>
|
168
|
-
<xsl:variable name="
|
169
|
-
|
170
|
-
<xsl:variable name="i18n_international_telecommunication_union"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">international_telecommunication_union</xsl:with-param></xsl:call-template></xsl:variable>
|
171
|
-
<xsl:variable name="i18n_edition"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">edition</xsl:with-param></xsl:call-template></xsl:variable>
|
172
|
-
<xsl:variable name="i18n_edition_Capitalized"><xsl:call-template name="capitalize"><xsl:with-param name="str" select="$i18n_edition"/></xsl:call-template></xsl:variable>
|
173
|
-
<xsl:variable name="i18n_annex"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">annex</xsl:with-param></xsl:call-template></xsl:variable>
|
174
|
-
<xsl:variable name="i18n_annex_to_itu_ob"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">annex_to_itu_ob</xsl:with-param></xsl:call-template></xsl:variable>
|
175
|
-
<xsl:variable name="i18n_number_abbrev"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">number_abbrev</xsl:with-param></xsl:call-template></xsl:variable>
|
176
|
-
<xsl:variable name="i18n_tsb"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">tsb</xsl:with-param></xsl:call-template></xsl:variable>
|
177
|
-
<xsl:variable name="i18n_tsb_full"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">tsb_full</xsl:with-param><xsl:with-param name="formatted">true</xsl:with-param></xsl:call-template></xsl:variable>
|
178
|
-
<xsl:variable name="i18n_placedate"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">placedate</xsl:with-param></xsl:call-template></xsl:variable>
|
179
|
-
<xsl:variable name="i18n_series"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">series</xsl:with-param></xsl:call-template></xsl:variable>
|
180
|
-
<xsl:variable name="i18n_series_Capitalized"><xsl:call-template name="capitalize"><xsl:with-param name="str" select="$i18n_series"/></xsl:call-template></xsl:variable>
|
181
|
-
<xsl:variable name="i18n_keywords"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">keywords</xsl:with-param></xsl:call-template></xsl:variable>
|
182
|
-
<xsl:variable name="i18n_page"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Page.sg</xsl:with-param></xsl:call-template></xsl:variable>
|
51
|
+
<xsl:variable name="contents" select="xalan:nodeset($contents_)"/>
|
183
52
|
|
184
53
|
<xsl:template match="/">
|
185
54
|
<xsl:call-template name="namespaceCheck"/>
|
@@ -189,13 +58,7 @@
|
|
189
58
|
<!-- <xsl:if test="$lang != 'ar'">
|
190
59
|
<xsl:attribute name="xml:lang"><xsl:value-of select="$lang"/></xsl:attribute>
|
191
60
|
</xsl:if> -->
|
192
|
-
|
193
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
194
|
-
</xsl:if>
|
195
|
-
<xsl:if test="$doctype = 'service-publication'">
|
196
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
197
|
-
<xsl:attribute name="font-family">Arial, STIX Two Math</xsl:attribute>
|
198
|
-
</xsl:if>
|
61
|
+
|
199
62
|
<xsl:call-template name="setWritingMode"/>
|
200
63
|
<xsl:if test="$lang = 'ar'">
|
201
64
|
<xsl:attribute name="font-family">Traditional Arabic, Times New Roman, STIX Two Math</xsl:attribute>
|
@@ -351,1254 +214,1496 @@
|
|
351
214
|
<xsl:with-param name="contents" select="$contents"/>
|
352
215
|
</xsl:call-template>
|
353
216
|
|
354
|
-
<xsl:variable name="
|
217
|
+
<xsl:variable name="updated_xml">
|
218
|
+
<xsl:call-template name="updateXML"/>
|
219
|
+
<!-- <xsl:copy-of select="."/> -->
|
220
|
+
</xsl:variable>
|
355
221
|
|
356
|
-
|
357
|
-
|
358
|
-
|
222
|
+
<xsl:if test="$debug = 'true'">
|
223
|
+
<redirect:write file="updated_xml.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
|
224
|
+
<xsl:copy-of select="$updated_xml"/>
|
225
|
+
</redirect:write>
|
226
|
+
</xsl:if>
|
359
227
|
|
360
|
-
<xsl:
|
361
|
-
<xsl:
|
362
|
-
<!-- cover page, version 2023 -->
|
363
|
-
<fo:page-sequence master-reference="cover-page_2023" writing-mode="lr-tb" font-family="Arial" font-size="12pt">
|
364
|
-
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage_header_{generate-id()}">
|
365
|
-
<!-- background cover image -->
|
366
|
-
<xsl:call-template name="insertBackgroundPageImage"/>
|
367
|
-
<xsl:choose>
|
368
|
-
<xsl:when test="$cover_header_hide = 'false'">
|
369
|
-
<fo:block-container margin-left="13mm">
|
370
|
-
<xsl:call-template name="setWritingMode"/>
|
371
|
-
<fo:block-container margin-left="0mm">
|
228
|
+
<xsl:for-each select="xalan:nodeset($updated_xml)//itu:itu-standard">
|
229
|
+
<xsl:variable name="num"><xsl:number level="any" count="itu:itu-standard"/></xsl:variable>
|
372
230
|
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
<fo:table-body>
|
377
|
-
<fo:table-row height="7mm" font-weight="bold">
|
378
|
-
<fo:table-cell text-align="start">
|
379
|
-
<fo:block font-size="16pt">
|
380
|
-
<xsl:if test="$lang != 'ar'">
|
381
|
-
<fo:inline color="rgb(0,156,214)">ITU</fo:inline>
|
382
|
-
</xsl:if>
|
383
|
-
<xsl:choose>
|
384
|
-
<xsl:when test="$lang = 'es'">Publicaciones</xsl:when>
|
385
|
-
<xsl:when test="$lang = 'ru'">Публикации</xsl:when>
|
386
|
-
<xsl:when test="$lang = 'zh'">出版物</xsl:when>
|
387
|
-
<xsl:when test="$lang = 'ar'">منشورات<fo:inline color="rgb(0,156,214)">ITU</fo:inline></xsl:when>
|
388
|
-
<xsl:otherwise>Publications</xsl:otherwise> <!-- default, en or fr -->
|
389
|
-
</xsl:choose>
|
390
|
-
</fo:block>
|
391
|
-
</fo:table-cell>
|
392
|
-
<fo:table-cell text-align="end" display-align="center">
|
393
|
-
<fo:block>
|
394
|
-
<xsl:value-of select="$i18n_international_telecommunication_union"/>
|
395
|
-
</fo:block>
|
396
|
-
</fo:table-cell>
|
397
|
-
</fo:table-row>
|
398
|
-
<fo:table-row>
|
399
|
-
<!-- collection/series (optional) -->
|
400
|
-
<fo:table-cell text-align="start">
|
401
|
-
<fo:block>
|
402
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'collection']"/>
|
403
|
-
</fo:block>
|
404
|
-
</fo:table-cell>
|
405
|
-
<!-- Sector or Bureau name -->
|
406
|
-
<fo:table-cell text-align="end">
|
407
|
-
<fo:block>
|
408
|
-
<xsl:variable name="sector" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:sector)"/>
|
409
|
-
<xsl:value-of select="$sector"/>
|
410
|
-
<xsl:if test="$sector = ''">
|
411
|
-
<xsl:variable name="bureau_key">
|
412
|
-
<xsl:choose>
|
413
|
-
<xsl:when test="$bureau = 'T'">tsb</xsl:when>
|
414
|
-
<xsl:when test="$bureau = 'R'">br</xsl:when>
|
415
|
-
<xsl:when test="$bureau = 'D'">bdt</xsl:when>
|
416
|
-
</xsl:choose>
|
417
|
-
</xsl:variable>
|
418
|
-
<xsl:call-template name="getLocalizedString">
|
419
|
-
<xsl:with-param name="key"><xsl:value-of select="$bureau_key"/>_short</xsl:with-param>
|
420
|
-
</xsl:call-template>
|
421
|
-
</xsl:if>
|
422
|
-
</fo:block>
|
423
|
-
</fo:table-cell>
|
424
|
-
</fo:table-row>
|
425
|
-
</fo:table-body>
|
426
|
-
</fo:table>
|
427
|
-
</fo:block-container>
|
428
|
-
</fo:block-container>
|
429
|
-
<xsl:if test="$doctype != 'service-publication'">
|
430
|
-
<fo:block margin-top="3.4mm">
|
431
|
-
<xsl:call-template name="setWritingMode"/>
|
432
|
-
<fo:instream-foreign-object fox:alt-text="Color bar">
|
433
|
-
<xsl:call-template name="insertImageCoverColorBand"/>
|
434
|
-
</fo:instream-foreign-object>
|
435
|
-
</fo:block>
|
436
|
-
</xsl:if>
|
437
|
-
</xsl:when>
|
438
|
-
<xsl:otherwise><fo:block> </fo:block></xsl:otherwise>
|
439
|
-
</xsl:choose>
|
440
|
-
</fo:static-content>
|
441
|
-
<fo:static-content flow-name="footer" role="artifact">
|
442
|
-
<fo:block text-align="right" margin-left="13mm" margin-right="13.3mm">
|
443
|
-
<xsl:if test="$lang = 'ar'">
|
444
|
-
<xsl:attribute name="text-align">left</xsl:attribute>
|
445
|
-
</xsl:if>
|
446
|
-
<fo:instream-foreign-object content-width="20.5mm" fox:alt-text="Image Logo">
|
447
|
-
<xsl:copy-of select="$Image-ITU-Globe-Logo-Blue"/>
|
448
|
-
</fo:instream-foreign-object>
|
449
|
-
</fo:block>
|
450
|
-
</fo:static-content>
|
451
|
-
<fo:flow flow-name="xsl-region-body">
|
452
|
-
<fo:block-container font-size="22pt" font-weight="bold" color="{$color_cover_title}">
|
453
|
-
<xsl:call-template name="setWritingMode"/>
|
231
|
+
<xsl:variable name="current_document">
|
232
|
+
<xsl:copy-of select="."/>
|
233
|
+
</xsl:variable>
|
454
234
|
|
455
|
-
|
235
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
456
236
|
|
457
|
-
|
458
|
-
<fo:block margin-top="11.5mm" font-size="34pt">
|
459
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
460
|
-
</fo:block>
|
461
|
-
<fo:block margin-top="2mm" font-size="26pt">
|
462
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
463
|
-
</fo:block>
|
464
|
-
<!-- https://github.com/metanorma/metanorma-itu/issues/474#issuecomment-1966298384 -->
|
465
|
-
<xsl:variable name="title_slogan" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:title[@type = 'slogan'])"/>
|
466
|
-
<xsl:if test="$title_slogan != ''">
|
467
|
-
<fo:block margin-top="2mm" font-family="Adelle Devanagari" font-size="26pt">
|
468
|
-
<xsl:choose>
|
469
|
-
<xsl:when test="$lang = 'ar'"><xsl:attribute name="font-family">Traditional Arabic</xsl:attribute></xsl:when>
|
470
|
-
<xsl:when test="$lang = 'zh'"><xsl:attribute name="font-family">STKaiti</xsl:attribute></xsl:when>
|
471
|
-
<!-- <xsl:otherwise><xsl:attribute name="font-style">italic</xsl:attribute></xsl:otherwise> -->
|
472
|
-
</xsl:choose>
|
473
|
-
<xsl:value-of select="$title_slogan"/>
|
474
|
-
</fo:block>
|
475
|
-
</xsl:if>
|
476
|
-
<xsl:variable name="year_published" select="substring($date_published,1,4)"/>
|
477
|
-
<xsl:if test="$year_published != ''">
|
478
|
-
<!-- Examples:
|
479
|
-
2020 edition
|
480
|
-
Édition 2020
|
481
|
-
Edición 2020
|
482
|
-
طبعة 2020
|
483
|
-
2020 年版
|
484
|
-
Издание 2020 года -->
|
485
|
-
<fo:block margin-top="3mm" font-size="22pt">
|
486
|
-
<xsl:choose>
|
487
|
-
<xsl:when test="$lang = 'en' or $lang = 'ar' or $lang = 'zh'">
|
488
|
-
<xsl:value-of select="concat($year_published, ' ', $i18n_edition)"/>
|
489
|
-
</xsl:when>
|
490
|
-
<xsl:otherwise>
|
491
|
-
<xsl:value-of select="concat($i18n_edition_Capitalized, ' ', $year_published)"/>
|
492
|
-
<xsl:if test="$lang = 'ru'"> года</xsl:if>
|
493
|
-
</xsl:otherwise>
|
494
|
-
</xsl:choose>
|
495
|
-
</fo:block>
|
496
|
-
</xsl:if>
|
497
|
-
</xsl:when> <!-- $doctype = 'service-publication' -->
|
237
|
+
<xsl:variable name="annexid" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:annexid)"/>
|
498
238
|
|
499
|
-
|
500
|
-
<fo:block margin-top="11.5mm">
|
501
|
-
<xsl:choose>
|
502
|
-
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
503
|
-
<!-- Example: ITU-T Technical Paper -->
|
504
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
505
|
-
<xsl:text> </xsl:text>
|
506
|
-
<xsl:value-of select="$doctypeTitle"/>
|
507
|
-
</xsl:when>
|
508
|
-
<xsl:when test="$doctype = 'implementers-guide'">
|
509
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
510
|
-
<xsl:text> </xsl:text>
|
511
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
512
|
-
<xsl:text> </xsl:text>
|
513
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
514
|
-
</xsl:when>
|
515
|
-
<xsl:when test="$doctype = 'resolution'">
|
516
|
-
<xsl:value-of select="$doctypeTitle"/>
|
517
|
-
<xsl:text> </xsl:text>
|
518
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
519
|
-
</xsl:when>
|
520
|
-
<xsl:otherwise>
|
521
|
-
<xsl:value-of select="$doctypeTitle"/>
|
522
|
-
<xsl:text> </xsl:text>
|
523
|
-
<xsl:value-of select="$docidentifier_ITU"/>
|
524
|
-
</xsl:otherwise>
|
525
|
-
</xsl:choose>
|
526
|
-
</fo:block>
|
239
|
+
<xsl:variable name="bureau" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:bureau"/>
|
527
240
|
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
241
|
+
<xsl:variable name="docidentifier_ITU" select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU']"/>
|
242
|
+
<xsl:variable name="docidentifier_ITU_left_part_" select="normalize-space(substring-before($docidentifier_ITU, ' '))"/>
|
243
|
+
<xsl:variable name="docidentifier_ITU_left_part">
|
244
|
+
<xsl:value-of select="$docidentifier_ITU_left_part_"/>
|
245
|
+
<xsl:if test="$docidentifier_ITU_left_part_ = ''"><xsl:text>ITU-T</xsl:text></xsl:if>
|
246
|
+
</xsl:variable>
|
533
247
|
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
<xsl:call-template name="setWritingMode"/>
|
541
|
-
<fo:block>TD number: <xsl:value-of select="$TDnumber"/></fo:block>
|
542
|
-
</fo:block-container>
|
543
|
-
</xsl:if>
|
544
|
-
<xsl:if test="$provisionalIdentifier != ''">
|
545
|
-
<fo:block-container>
|
546
|
-
<xsl:call-template name="setWritingMode"/>
|
547
|
-
<fo:block>Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/>
|
548
|
-
</fo:block>
|
549
|
-
</fo:block-container>
|
550
|
-
</xsl:if>
|
551
|
-
<xsl:if test="$annexid != ''">
|
552
|
-
<fo:block-container>
|
553
|
-
<xsl:call-template name="setWritingMode"/>
|
554
|
-
<fo:block>
|
555
|
-
<xsl:value-of select="$i18n_annex"/>
|
556
|
-
<xsl:text> </xsl:text>
|
557
|
-
<xsl:value-of select="$annexid"/>
|
558
|
-
</fo:block>
|
559
|
-
</fo:block-container>
|
560
|
-
</xsl:if>
|
561
|
-
<xsl:if test="$isAmendment != ''">
|
562
|
-
<fo:block-container>
|
563
|
-
<xsl:call-template name="setWritingMode"/>
|
564
|
-
<fo:block><xsl:value-of select="$isAmendment"/></fo:block>
|
565
|
-
</fo:block-container>
|
566
|
-
</xsl:if>
|
567
|
-
<xsl:if test="$isCorrigendum != ''">
|
568
|
-
<fo:block-container>
|
569
|
-
<xsl:call-template name="setWritingMode"/>
|
570
|
-
<fo:block><xsl:value-of select="$isCorrigendum"/></fo:block>
|
571
|
-
</fo:block-container>
|
572
|
-
</xsl:if>
|
248
|
+
<xsl:variable name="docname">
|
249
|
+
<xsl:value-of select="substring-before($docidentifier_ITU, ' ')"/>
|
250
|
+
<xsl:text> </xsl:text>
|
251
|
+
<xsl:value-of select="substring-after($docidentifier_ITU, ' ')"/>
|
252
|
+
<xsl:text> </xsl:text>
|
253
|
+
</xsl:variable>
|
573
254
|
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
</xsl:call-template>
|
581
|
-
</xsl:when>
|
582
|
-
<xsl:otherwise>
|
583
|
-
<xsl:call-template name="formatDate">
|
584
|
-
<xsl:with-param name="date" select="$date_published"/>
|
585
|
-
</xsl:call-template>
|
586
|
-
</xsl:otherwise>
|
587
|
-
</xsl:choose>
|
588
|
-
</xsl:variable>
|
589
|
-
<fo:block>
|
590
|
-
<xsl:copy-of select="$additional_block"/>
|
591
|
-
<xsl:if test="normalize-space($additional_block) = ''"> </xsl:if>
|
592
|
-
</fo:block>
|
593
|
-
</fo:block-container>
|
594
|
-
</fo:block-container> <!-- end of additional block -->
|
255
|
+
<xsl:variable name="date_published" select="/itu:itu-standard/itu:bibdata/itu:date[@type = 'published']/itu:on"/>
|
256
|
+
<xsl:variable name="docdate">
|
257
|
+
<xsl:call-template name="formatDate">
|
258
|
+
<xsl:with-param name="date" select="$date_published"/>
|
259
|
+
</xsl:call-template>
|
260
|
+
</xsl:variable>
|
595
261
|
|
596
|
-
|
597
|
-
<fo:block margin-bottom="6pt">
|
598
|
-
<xsl:call-template name="insertMeetingInfo"/>
|
599
|
-
</fo:block>
|
600
|
-
</xsl:if>
|
262
|
+
<xsl:variable name="doctype" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
601
263
|
|
602
|
-
|
603
|
-
<xsl:variable name="series">
|
604
|
-
<xsl:call-template name="insertSeriesTitleMain"/>
|
605
|
-
<xsl:choose>
|
606
|
-
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
607
|
-
<xsl:otherwise>
|
608
|
-
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:series">
|
609
|
-
<fo:block font-weight="normal" margin-top="4mm">
|
610
|
-
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
611
|
-
</fo:block>
|
612
|
-
</xsl:if>
|
613
|
-
</xsl:otherwise>
|
614
|
-
</xsl:choose>
|
615
|
-
</xsl:variable>
|
264
|
+
<xsl:variable name="docnumber" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:docnumber)"/>
|
616
265
|
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
</fo:block>
|
623
|
-
<fo:block>
|
624
|
-
<fo:leader leader-pattern="rule" rule-thickness="1pt" leader-length="100%"/>
|
625
|
-
</fo:block>
|
626
|
-
</fo:block-container>
|
627
|
-
</fo:block-container>
|
628
|
-
</xsl:if>
|
266
|
+
<xsl:variable name="xSTR-ACRONYM">
|
267
|
+
<xsl:variable name="x" select="/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'abbrev']"/>
|
268
|
+
<xsl:variable name="acronym" select="$docnumber"/>
|
269
|
+
<xsl:value-of select="concat($x,'STR-', $acronym)"/>
|
270
|
+
</xsl:variable>
|
629
271
|
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
272
|
+
<xsl:variable name="doctypeTitle">
|
273
|
+
<xsl:choose>
|
274
|
+
<xsl:when test="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]">
|
275
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
276
|
+
</xsl:when>
|
277
|
+
<xsl:otherwise>
|
278
|
+
<xsl:call-template name="capitalizeWords">
|
279
|
+
<xsl:with-param name="str" select="$doctype"/>
|
280
|
+
</xsl:call-template>
|
281
|
+
</xsl:otherwise>
|
282
|
+
</xsl:choose>
|
283
|
+
</xsl:variable>
|
637
284
|
|
638
|
-
|
639
|
-
|
640
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
641
|
-
<xsl:text> for </xsl:text>
|
642
|
-
</xsl:if>
|
643
|
-
<xsl:if test="$doctype = 'resolution'">
|
644
|
-
<!-- Resolution 1 -->
|
645
|
-
<xsl:value-of select="$doctypeTitle"/>
|
646
|
-
<xsl:text> </xsl:text>
|
647
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
648
|
-
<xsl:value-of select="$en_dash_separator"/>
|
649
|
-
</xsl:if>
|
650
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
651
|
-
</fo:block>
|
285
|
+
<xsl:variable name="isAmendment" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:amendment[@language = $lang])"/>
|
286
|
+
<xsl:variable name="isCorrigendum" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:corrigendum[@language = $lang])"/>
|
652
287
|
|
653
|
-
|
654
|
-
|
655
|
-
<fo:block font-size="18pt" margin-top="3mm" role="H1">
|
656
|
-
<xsl:value-of select="$i18n_annex"/>
|
657
|
-
<xsl:text> </xsl:text>
|
658
|
-
<xsl:value-of select="$annexid"/>
|
659
|
-
<xsl:value-of select="$en_dash_separator"/>
|
660
|
-
<xsl:value-of select="."/>
|
661
|
-
</fo:block>
|
662
|
-
</xsl:for-each>
|
288
|
+
<xsl:variable name="TDnumber" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-TemporaryDocument'])"/>
|
289
|
+
<xsl:variable name="provisionalIdentifier" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-provisional'])"/>
|
663
290
|
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
291
|
+
<xsl:variable name="footer-text">
|
292
|
+
<xsl:variable name="additionalIdentifiers_">
|
293
|
+
<xsl:if test="$TDnumber != ''">/<xsl:value-of select="$TDnumber"/></xsl:if>
|
294
|
+
<xsl:if test="$provisionalIdentifier != ''">/<xsl:value-of select="$provisionalIdentifier"/></xsl:if>
|
295
|
+
</xsl:variable>
|
296
|
+
<xsl:variable name="additionalIdentifiers" select="normalize-space($additionalIdentifiers_)"/>
|
297
|
+
<xsl:choose>
|
298
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
299
|
+
<xsl:variable name="date_">
|
300
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date"/>
|
301
|
+
<xsl:if test="not(/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date)"/>
|
302
|
+
<xsl:value-of select="$date_published"/>
|
303
|
+
</xsl:variable>
|
304
|
+
<xsl:variable name="date" select="concat('(',substring($date_,1,7), ')')"/>
|
305
|
+
<xsl:value-of select="concat($xSTR-ACRONYM, $additionalIdentifiers, ' ', $date)"/>
|
306
|
+
</xsl:when>
|
307
|
+
<xsl:when test="$doctype = 'implementers-guide'">
|
308
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
309
|
+
<xsl:value-of select="$additionalIdentifiers"/>
|
310
|
+
<xsl:text> for </xsl:text>
|
311
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
312
|
+
<xsl:text> </xsl:text>
|
313
|
+
<xsl:variable name="date" select="concat('(',substring($date_published,1,7), ')')"/>
|
314
|
+
<xsl:value-of select="$date"/>
|
315
|
+
</xsl:when>
|
316
|
+
<xsl:when test="$doctype = 'resolution'">
|
317
|
+
<!-- WTSA-16 – Resolution 1 -->
|
318
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting/@acronym"/>
|
319
|
+
<xsl:text> – </xsl:text>
|
320
|
+
<xsl:value-of select="$doctypeTitle"/>
|
321
|
+
<xsl:value-of select="$additionalIdentifiers"/>
|
322
|
+
<xsl:text> </xsl:text>
|
323
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
324
|
+
</xsl:when>
|
325
|
+
<xsl:when test="$doctype = 'recommendation-supplement'">
|
326
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Short']"/>
|
327
|
+
<xsl:value-of select="$additionalIdentifiers"/>
|
328
|
+
<xsl:text> </xsl:text>
|
329
|
+
<xsl:value-of select="$docdate"/>
|
330
|
+
</xsl:when>
|
331
|
+
<xsl:when test="$doctype = 'service-publication'">
|
332
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-lang']"/>
|
333
|
+
<xsl:value-of select="$additionalIdentifiers"/>
|
334
|
+
</xsl:when>
|
335
|
+
<xsl:otherwise>
|
336
|
+
<!-- Rec. ITU-T G.650.1 (03/2018) -->
|
337
|
+
<xsl:variable name="footerprefix" select="'Rec. '"/>
|
338
|
+
<xsl:value-of select="concat($footerprefix, $docname, $additionalIdentifiers, ' ', $docdate)"/>
|
339
|
+
</xsl:otherwise>
|
340
|
+
</xsl:choose>
|
341
|
+
</xsl:variable>
|
686
342
|
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
343
|
+
<xsl:variable name="en_dash_separator"> – </xsl:variable>
|
344
|
+
|
345
|
+
<xsl:variable name="document_scheme" select="normalize-space(/*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
|
346
|
+
<xsl:variable name="layoutVersion_">
|
347
|
+
<xsl:choose>
|
348
|
+
<xsl:when test="$document_scheme = '' or $document_scheme = 'current'">2023</xsl:when>
|
349
|
+
<xsl:otherwise>default</xsl:otherwise>
|
350
|
+
</xsl:choose>
|
351
|
+
</xsl:variable>
|
352
|
+
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
353
|
+
|
354
|
+
<xsl:variable name="color_cover_title_value" select="normalize-space(/itu:itu-standard/itu:metanorma-extension/itu:presentation-metadata/itu:color-cover-title)"/>
|
355
|
+
<xsl:variable name="color_cover_title_">
|
356
|
+
<xsl:value-of select="$color_cover_title_value"/>
|
357
|
+
<xsl:if test="$color_cover_title_value = ''">black</xsl:if>
|
358
|
+
</xsl:variable>
|
359
|
+
<xsl:variable name="color_cover_title" select="normalize-space($color_cover_title_)"/>
|
360
|
+
|
361
|
+
<xsl:variable name="cover_header_hide_value" select="normalize-space(/itu:itu-standard/itu:metanorma-extension/itu:presentation-metadata/itu:cover-header-hide)"/>
|
362
|
+
<xsl:variable name="cover_header_hide_">
|
363
|
+
<xsl:value-of select="$cover_header_hide_value"/>
|
364
|
+
<xsl:if test="$cover_header_hide_value = ''">false</xsl:if>
|
365
|
+
</xsl:variable>
|
366
|
+
<xsl:variable name="cover_header_hide" select="normalize-space($cover_header_hide_)"/>
|
367
|
+
|
368
|
+
<xsl:variable name="color_cover_itu_logo_value" select="normalize-space(/itu:itu-standard/itu:metanorma-extension/itu:presentation-metadata/itu:color-cover-itu-logo)"/>
|
369
|
+
<xsl:variable name="color_cover_itu_logo_">
|
370
|
+
<xsl:value-of select="$color_cover_itu_logo_value"/>
|
371
|
+
<xsl:if test="$color_cover_itu_logo_value = ''">#1DA0DB</xsl:if>
|
372
|
+
</xsl:variable>
|
373
|
+
<xsl:variable name="color_cover_itu_logo" select="normalize-space($color_cover_itu_logo_)"/>
|
374
|
+
|
375
|
+
<xsl:variable name="i18n_international_telecommunication_union"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">international_telecommunication_union</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
376
|
+
<xsl:variable name="i18n_edition"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">edition</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
377
|
+
<xsl:variable name="i18n_edition_Capitalized"><xsl:call-template name="capitalize"><xsl:with-param name="str" select="$i18n_edition"/><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
378
|
+
<xsl:variable name="i18n_annex"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">annex</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
379
|
+
<xsl:variable name="i18n_annex_to_itu_ob"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">annex_to_itu_ob</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
380
|
+
<xsl:variable name="i18n_number_abbrev"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">number_abbrev</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
381
|
+
<xsl:variable name="i18n_tsb"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">tsb</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
382
|
+
<xsl:variable name="i18n_tsb_full"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">tsb_full</xsl:with-param><xsl:with-param name="formatted">true</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
383
|
+
<xsl:variable name="i18n_placedate"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">placedate</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
384
|
+
<xsl:variable name="i18n_series"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">series</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
385
|
+
<xsl:variable name="i18n_series_Capitalized"><xsl:call-template name="capitalize"><xsl:with-param name="str" select="$i18n_series"/><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
386
|
+
<xsl:variable name="i18n_keywords"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">keywords</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
387
|
+
<xsl:variable name="i18n_page"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Page.sg</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
388
|
+
|
389
|
+
<!-- ============================================= -->
|
390
|
+
<!-- Cover page -->
|
391
|
+
<!-- ============================================= -->
|
392
|
+
|
393
|
+
<xsl:choose>
|
394
|
+
<xsl:when test="$layoutVersion = '2023'">
|
395
|
+
<!-- cover page, version 2023 -->
|
396
|
+
<fo:page-sequence force-page-count="no-force" master-reference="cover-page_2023" writing-mode="lr-tb" font-family="Arial" font-size="12pt">
|
397
|
+
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage_header_{$num}_{generate-id()}">
|
398
|
+
<!-- background cover image -->
|
399
|
+
<xsl:call-template name="insertBackgroundPageImage"/>
|
400
|
+
<xsl:choose>
|
401
|
+
<xsl:when test="$cover_header_hide = 'false'">
|
402
|
+
<fo:block-container margin-left="13mm">
|
403
|
+
<xsl:call-template name="setWritingMode"/>
|
404
|
+
<fo:block-container margin-left="0mm">
|
405
|
+
|
406
|
+
<fo:table width="185.5mm" table-layout="fixed" margin-top="11.5mm">
|
407
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
408
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
409
|
+
<fo:table-body>
|
410
|
+
<fo:table-row height="7mm" font-weight="bold">
|
411
|
+
<fo:table-cell text-align="start">
|
412
|
+
<fo:block font-size="16pt">
|
413
|
+
<xsl:if test="$lang != 'ar'">
|
414
|
+
<fo:inline color="rgb(0,156,214)">ITU</fo:inline>
|
415
|
+
</xsl:if>
|
416
|
+
<xsl:choose>
|
417
|
+
<xsl:when test="$lang = 'es'">Publicaciones</xsl:when>
|
418
|
+
<xsl:when test="$lang = 'ru'">Публикации</xsl:when>
|
419
|
+
<xsl:when test="$lang = 'zh'">出版物</xsl:when>
|
420
|
+
<xsl:when test="$lang = 'ar'">منشورات<fo:inline color="rgb(0,156,214)">ITU</fo:inline></xsl:when>
|
421
|
+
<xsl:otherwise>Publications</xsl:otherwise> <!-- default, en or fr -->
|
422
|
+
</xsl:choose>
|
423
|
+
</fo:block>
|
424
|
+
</fo:table-cell>
|
425
|
+
<fo:table-cell text-align="end" display-align="center">
|
426
|
+
<fo:block>
|
427
|
+
<xsl:value-of select="$i18n_international_telecommunication_union"/>
|
428
|
+
</fo:block>
|
429
|
+
</fo:table-cell>
|
430
|
+
</fo:table-row>
|
431
|
+
<fo:table-row>
|
432
|
+
<!-- collection/series (optional) -->
|
433
|
+
<fo:table-cell text-align="start">
|
434
|
+
<fo:block>
|
435
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'collection']"/>
|
436
|
+
</fo:block>
|
437
|
+
</fo:table-cell>
|
438
|
+
<!-- Sector or Bureau name -->
|
439
|
+
<fo:table-cell text-align="end">
|
440
|
+
<fo:block>
|
441
|
+
<xsl:variable name="sector" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:sector)"/>
|
442
|
+
<xsl:value-of select="$sector"/>
|
443
|
+
<xsl:if test="$sector = ''">
|
444
|
+
<xsl:variable name="bureau_key">
|
445
|
+
<xsl:choose>
|
446
|
+
<xsl:when test="$bureau = 'T'">tsb</xsl:when>
|
447
|
+
<xsl:when test="$bureau = 'R'">br</xsl:when>
|
448
|
+
<xsl:when test="$bureau = 'D'">bdt</xsl:when>
|
449
|
+
</xsl:choose>
|
450
|
+
</xsl:variable>
|
451
|
+
<xsl:call-template name="getLocalizedString">
|
452
|
+
<xsl:with-param name="key"><xsl:value-of select="$bureau_key"/>_short</xsl:with-param>
|
453
|
+
</xsl:call-template>
|
454
|
+
</xsl:if>
|
455
|
+
</fo:block>
|
456
|
+
</fo:table-cell>
|
457
|
+
</fo:table-row>
|
458
|
+
</fo:table-body>
|
459
|
+
</fo:table>
|
693
460
|
</fo:block-container>
|
694
461
|
</fo:block-container>
|
462
|
+
<xsl:if test="$doctype != 'service-publication'">
|
463
|
+
<fo:block margin-top="3.4mm">
|
464
|
+
<xsl:call-template name="setWritingMode"/>
|
465
|
+
<fo:instream-foreign-object fox:alt-text="Color bar">
|
466
|
+
<xsl:call-template name="insertImageCoverColorBand">
|
467
|
+
<xsl:with-param name="bureau" select="$bureau"/>
|
468
|
+
<xsl:with-param name="doctype" select="$doctype"/>
|
469
|
+
</xsl:call-template>
|
470
|
+
</fo:instream-foreign-object>
|
471
|
+
</fo:block>
|
472
|
+
</xsl:if>
|
473
|
+
</xsl:when>
|
474
|
+
<xsl:otherwise><fo:block> </fo:block></xsl:otherwise>
|
475
|
+
</xsl:choose>
|
476
|
+
</fo:static-content>
|
477
|
+
<fo:static-content flow-name="footer" role="artifact">
|
478
|
+
<fo:block text-align="right" margin-left="13mm" margin-right="13.3mm">
|
479
|
+
<xsl:if test="$lang = 'ar'">
|
480
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
695
481
|
</xsl:if>
|
482
|
+
<fo:instream-foreign-object content-width="20.5mm" fox:alt-text="Image Logo">
|
483
|
+
<xsl:call-template name="Image-ITU-Globe-Logo-Blue">
|
484
|
+
<xsl:with-param name="color_cover_itu_logo" select="$color_cover_itu_logo"/>
|
485
|
+
</xsl:call-template>
|
486
|
+
</fo:instream-foreign-object>
|
487
|
+
</fo:block>
|
488
|
+
</fo:static-content>
|
489
|
+
<fo:flow flow-name="xsl-region-body">
|
696
490
|
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
<xsl:text>ITU-</xsl:text>
|
701
|
-
<xsl:value-of select="$bureau"/>
|
702
|
-
<xsl:text> </xsl:text>
|
703
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
704
|
-
</fo:block>
|
491
|
+
<fo:block-container absolute-position="fixed" top="1mm">
|
492
|
+
<xsl:if test="$num = 1">
|
493
|
+
<xsl:attribute name="id">firstpage_id_0</xsl:attribute>
|
705
494
|
</xsl:if>
|
706
|
-
|
495
|
+
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
496
|
+
</fo:block-container>
|
707
497
|
|
708
|
-
|
498
|
+
<fo:block-container font-size="22pt" font-weight="bold" color="{$color_cover_title}">
|
709
499
|
|
710
|
-
|
711
|
-
</fo:flow>
|
712
|
-
</fo:page-sequence>
|
713
|
-
<!-- Second cover page -->
|
714
|
-
<xsl:variable name="secondCoverPageData_">
|
715
|
-
<xsl:call-template name="insertBackgroundPageImage">
|
716
|
-
<xsl:with-param name="number">2</xsl:with-param>
|
717
|
-
</xsl:call-template>
|
718
|
-
</xsl:variable>
|
719
|
-
<xsl:variable name="secondCoverPageData" select="xalan:nodeset($secondCoverPageData_)"/>
|
720
|
-
<xsl:if test="$secondCoverPageData//*[self::fo:instream-foreign-object or self::fo:external-graphic]">
|
721
|
-
<fo:page-sequence master-reference="cover-page_2023">
|
722
|
-
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage2_header_{generate-id()}">
|
723
|
-
<xsl:copy-of select="$secondCoverPageData"/>
|
724
|
-
</fo:static-content>
|
725
|
-
<fo:flow flow-name="xsl-region-body">
|
726
|
-
<fo:block> </fo:block>
|
727
|
-
</fo:flow>
|
728
|
-
</fo:page-sequence>
|
729
|
-
</xsl:if> <!-- End: Second cover page -->
|
730
|
-
</xsl:when> <!-- $layoutVersion = '2023' -->
|
500
|
+
<xsl:call-template name="setWritingMode"/>
|
731
501
|
|
732
|
-
|
502
|
+
<xsl:choose>
|
733
503
|
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
<
|
743
|
-
<
|
744
|
-
|
745
|
-
<fo:table-row>
|
746
|
-
<fo:table-cell padding-left="1mm" padding-top="3mm">
|
747
|
-
<fo:block font-weight="bold">Question(s):</fo:block>
|
748
|
-
</fo:table-cell>
|
749
|
-
<fo:table-cell padding-top="3mm">
|
750
|
-
<fo:block><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:group/itu:name"/></fo:block>
|
751
|
-
</fo:table-cell>
|
752
|
-
<fo:table-cell padding-top="3mm">
|
753
|
-
<fo:block font-weight="bold">Meeting, date:</fo:block>
|
754
|
-
</fo:table-cell>
|
755
|
-
<fo:table-cell padding-top="3mm" text-align="right" padding-right="1mm">
|
756
|
-
<fo:block>
|
757
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting"/>
|
758
|
-
<xsl:text>, </xsl:text>
|
759
|
-
<xsl:call-template name="formatMeetingDate">
|
760
|
-
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting-date/itu:from"/>
|
761
|
-
</xsl:call-template>
|
762
|
-
<xsl:text>/</xsl:text>
|
763
|
-
<xsl:call-template name="formatMeetingDate">
|
764
|
-
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting-date/itu:to"/>
|
765
|
-
</xsl:call-template>
|
766
|
-
</fo:block>
|
767
|
-
</fo:table-cell>
|
768
|
-
</fo:table-row>
|
769
|
-
</fo:table-body>
|
770
|
-
</fo:table>
|
771
|
-
|
772
|
-
<fo:table width="175mm" table-layout="fixed" id="__internal_layout__groups_{generate-id()}">
|
773
|
-
<fo:table-column column-width="29mm"/>
|
774
|
-
<fo:table-column column-width="10mm"/>
|
775
|
-
<fo:table-column column-width="35mm"/>
|
776
|
-
<fo:table-column column-width="9mm"/>
|
777
|
-
<fo:table-column column-width="83mm"/>
|
778
|
-
<fo:table-column column-width="6mm"/>
|
779
|
-
<fo:table-body>
|
780
|
-
<fo:table-row>
|
781
|
-
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
782
|
-
<fo:block font-weight="bold">Study Group:</fo:block>
|
783
|
-
</fo:table-cell>
|
784
|
-
<fo:table-cell padding-top="2mm">
|
785
|
-
<xsl:variable name="subgroup" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:subgroup/itu:name"/>
|
786
|
-
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($subgroup),'(.)','$1')"/></fo:block>
|
787
|
-
</fo:table-cell>
|
788
|
-
<fo:table-cell padding-top="2mm">
|
789
|
-
<fo:block font-weight="bold">Working Party:</fo:block>
|
790
|
-
</fo:table-cell>
|
791
|
-
<fo:table-cell padding-top="2mm">
|
792
|
-
<xsl:variable name="workgroup" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:workgroup/itu:name"/>
|
793
|
-
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($workgroup),'(.)','$1')"/></fo:block>
|
794
|
-
</fo:table-cell>
|
795
|
-
<fo:table-cell padding-top="2mm">
|
796
|
-
<fo:block font-weight="bold">Intended type of document <fo:inline font-weight="normal">(R-C-TD)</fo:inline>:</fo:block>
|
797
|
-
</fo:table-cell>
|
798
|
-
<fo:table-cell padding-top="2mm">
|
799
|
-
<fo:block font-weight="normal"><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:intended-type"/></fo:block>
|
800
|
-
</fo:table-cell>
|
801
|
-
</fo:table-row>
|
802
|
-
<fo:table-row>
|
803
|
-
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
804
|
-
<fo:block font-weight="bold">Source:</fo:block>
|
805
|
-
</fo:table-cell>
|
806
|
-
<fo:table-cell number-columns-spanned="4" padding-top="2mm">
|
807
|
-
<fo:block><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/itu:itu-standard/itu:bibdata/itu:ext/itu:source))"/></fo:block>
|
808
|
-
</fo:table-cell>
|
809
|
-
</fo:table-row>
|
810
|
-
<fo:table-row>
|
811
|
-
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
812
|
-
<fo:block font-weight="bold">Title:</fo:block>
|
813
|
-
</fo:table-cell>
|
814
|
-
<fo:table-cell number-columns-spanned="4" padding-top="2mm">
|
815
|
-
<fo:block role="H1"><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@language='en' and @type='main']"/></fo:block>
|
816
|
-
</fo:table-cell>
|
817
|
-
</fo:table-row>
|
818
|
-
</fo:table-body>
|
819
|
-
</fo:table>
|
820
|
-
|
821
|
-
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:contributor/itu:person">
|
822
|
-
<fo:table width="175mm" table-layout="fixed" line-height="110%" id="__internal_layout__person_{generate-id()}">
|
823
|
-
<fo:table-column column-width="29mm"/>
|
824
|
-
<fo:table-column column-width="75mm"/>
|
825
|
-
<fo:table-column column-width="71mm"/>
|
826
|
-
<fo:table-body>
|
827
|
-
<xsl:for-each select="/itu:itu-standard/itu:bibdata/itu:contributor/itu:person">
|
828
|
-
<fo:table-row border-top="1.5pt solid black">
|
829
|
-
<xsl:if test="position() = last()">
|
830
|
-
<xsl:attribute name="border-bottom">1.5pt solid black</xsl:attribute>
|
831
|
-
</xsl:if>
|
832
|
-
<fo:table-cell padding-left="1mm" padding-top="2.5mm">
|
833
|
-
<fo:block font-weight="bold">Contact:</fo:block>
|
834
|
-
</fo:table-cell>
|
835
|
-
<fo:table-cell padding-top="3mm">
|
836
|
-
<fo:block><xsl:value-of select="itu:name/itu:completename"/></fo:block>
|
837
|
-
<fo:block><xsl:value-of select="itu:affiliation/itu:organization/itu:name"/></fo:block>
|
838
|
-
<fo:block><xsl:value-of select="itu:affiliation/itu:organization/itu:address/itu:formattedAddress"/></fo:block>
|
839
|
-
</fo:table-cell>
|
840
|
-
<fo:table-cell padding-top="3mm">
|
841
|
-
<fo:block>Tel: <xsl:value-of select="itu:phone[not(@type)]"/></fo:block>
|
842
|
-
<fo:block>Fax: <xsl:value-of select="itu:phone[@type = 'fax']"/></fo:block>
|
843
|
-
<fo:block>E-mail: <xsl:value-of select="itu:email"/></fo:block>
|
844
|
-
</fo:table-cell>
|
845
|
-
</fo:table-row>
|
846
|
-
</xsl:for-each>
|
847
|
-
</fo:table-body>
|
848
|
-
</fo:table>
|
849
|
-
</xsl:if>
|
850
|
-
<fo:block space-before="0.5mm" font-size="9pt" margin-left="1mm">Please do not change the structure of this table, just insert the necessary information.</fo:block>
|
851
|
-
<fo:block space-before="6pt"><INSERT TEXT></fo:block>
|
852
|
-
</fo:block>
|
853
|
-
</fo:flow>
|
854
|
-
</fo:page-sequence>
|
855
|
-
</xsl:when>
|
856
|
-
<!-- ============================================= -->
|
857
|
-
<!-- Cover page for service-publication -->
|
858
|
-
<!-- ============================================= -->
|
859
|
-
<xsl:when test="$doctype = 'service-publication'">
|
860
|
-
<fo:page-sequence master-reference="SP-first-page" force-page-count="no-force">
|
861
|
-
<fo:flow flow-name="xsl-region-body">
|
862
|
-
<fo:block font-size="10pt" font-style="italic" text-align="center">
|
863
|
-
<xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
|
864
|
-
<xsl:attribute name="font-style">normal</xsl:attribute>
|
865
|
-
</xsl:if>
|
866
|
-
<fo:block>
|
867
|
-
<xsl:value-of select="$i18n_annex_to_itu_ob"/>
|
868
|
-
</fo:block>
|
869
|
-
<fo:block>
|
870
|
-
<xsl:value-of select="$i18n_number_abbrev"/>
|
871
|
-
<xsl:value-of select="/*/itu:bibdata/itu:docnumber"/>
|
872
|
-
<xsl:text> – </xsl:text>
|
873
|
-
<xsl:value-of select="translate(normalize-space(/*/itu:bibdata/itu:date[@type='published' and @format]),' ','')"/>
|
874
|
-
</fo:block>
|
875
|
-
</fo:block>
|
876
|
-
|
877
|
-
<fo:block font-size="14pt" margin-top="7mm">
|
878
|
-
<fo:block font-weight="bold">
|
879
|
-
<fo:inline baseline-shift="-140%" padding-right="6mm">
|
880
|
-
<xsl:if test="$lang = 'ar'">
|
881
|
-
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
882
|
-
<xsl:attribute name="padding-left">6mm</xsl:attribute>
|
883
|
-
</xsl:if>
|
884
|
-
<fo:instream-foreign-object content-height="18.5mm" content-width="16.1mm" fox:alt-text="Image Logo">
|
885
|
-
<xsl:copy-of select="$Image-ITU-Globe-Logo"/>
|
886
|
-
</fo:instream-foreign-object>
|
887
|
-
</fo:inline>
|
888
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($i18n_international_telecommunication_union))"/>
|
889
|
-
</fo:block>
|
890
|
-
</fo:block>
|
891
|
-
<fo:block-container margin-left="10mm">
|
892
|
-
<fo:block-container margin-left="0mm">
|
893
|
-
|
894
|
-
<fo:block font-size="20pt" font-weight="bold" space-before="30mm">
|
895
|
-
<xsl:value-of select="$i18n_tsb"/>
|
896
|
-
</fo:block>
|
897
|
-
<fo:block font-size="14pt" font-weight="bold">
|
898
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($i18n_tsb_full))"/>
|
899
|
-
</fo:block>
|
900
|
-
<fo:block-container height="20mm" display-align="center" width="90%">
|
901
|
-
<fo:block font-weight="bold">
|
902
|
-
<!-- complements -->
|
903
|
-
<!-- To do: Example: COMPLEMENT TO ITU-T RECOMMENDATIONS F.69 (06/1994) AND F.68 (11/1988) -->
|
904
|
-
<fo:inline>COMPLEMENT TO ITU-T RECOMMENDATIONS </fo:inline>
|
905
|
-
<xsl:for-each select="/*/itu:bibdata/itu:relation[@type = 'complements']">
|
906
|
-
<xsl:value-of select="translate(itu:bibitem/itu:docidentifier, ' ', ' ')"/>
|
504
|
+
<xsl:when test="$doctype = 'service-publication'"> <!-- Flagship -->
|
505
|
+
<fo:block margin-top="11.5mm" font-size="34pt">
|
506
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
507
|
+
</fo:block>
|
508
|
+
<fo:block margin-top="2mm" font-size="26pt">
|
509
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
510
|
+
</fo:block>
|
511
|
+
<!-- https://github.com/metanorma/metanorma-itu/issues/474#issuecomment-1966298384 -->
|
512
|
+
<xsl:variable name="title_slogan" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:title[@type = 'slogan'])"/>
|
513
|
+
<xsl:if test="$title_slogan != ''">
|
514
|
+
<fo:block margin-top="2mm" font-family="Adelle Devanagari" font-size="26pt">
|
907
515
|
<xsl:choose>
|
908
|
-
<xsl:when test="
|
909
|
-
<xsl:when test="
|
516
|
+
<xsl:when test="$lang = 'ar'"><xsl:attribute name="font-family">Traditional Arabic</xsl:attribute></xsl:when>
|
517
|
+
<xsl:when test="$lang = 'zh'"><xsl:attribute name="font-family">STKaiti</xsl:attribute></xsl:when>
|
518
|
+
<!-- <xsl:otherwise><xsl:attribute name="font-style">italic</xsl:attribute></xsl:otherwise> -->
|
910
519
|
</xsl:choose>
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
<
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
520
|
+
<xsl:value-of select="$title_slogan"/>
|
521
|
+
</fo:block>
|
522
|
+
</xsl:if>
|
523
|
+
<xsl:variable name="year_published" select="substring($date_published,1,4)"/>
|
524
|
+
<xsl:if test="$year_published != ''">
|
525
|
+
<!-- Examples:
|
526
|
+
2020 edition
|
527
|
+
Édition 2020
|
528
|
+
Edición 2020
|
529
|
+
طبعة 2020
|
530
|
+
2020 年版
|
531
|
+
Издание 2020 года -->
|
532
|
+
<fo:block margin-top="3mm" font-size="22pt">
|
922
533
|
<xsl:choose>
|
923
|
-
<xsl:when test="$
|
924
|
-
<
|
925
|
-
<xsl:value-of select="$series_main"/>
|
926
|
-
</fo:block>
|
927
|
-
<fo:block font-size="14pt">
|
928
|
-
<xsl:if test="not(starts-with($series_secondary, '('))">
|
929
|
-
<xsl:text>(</xsl:text>
|
930
|
-
</xsl:if>
|
931
|
-
<xsl:value-of select="$series_secondary"/>
|
932
|
-
<xsl:if test="not(starts-with($series_secondary, '('))">
|
933
|
-
<xsl:text>)</xsl:text>
|
934
|
-
</xsl:if>
|
935
|
-
</fo:block>
|
936
|
-
</xsl:when>
|
937
|
-
<xsl:when test="$series_main != '' and $series_secondary != '' and $series_tertiary != ''">
|
938
|
-
<fo:block font-size="16pt">
|
939
|
-
<xsl:value-of select="$series_main"/>
|
940
|
-
</fo:block>
|
941
|
-
<fo:block font-size="14pt">
|
942
|
-
<xsl:if test="not(starts-with($series_secondary, '('))">
|
943
|
-
<xsl:text>(</xsl:text>
|
944
|
-
</xsl:if>
|
945
|
-
<xsl:value-of select="$series_secondary"/>
|
946
|
-
<xsl:if test="not(starts-with($series_secondary, '('))">
|
947
|
-
<xsl:text>)</xsl:text>
|
948
|
-
</xsl:if>
|
949
|
-
</fo:block>
|
950
|
-
<fo:block font-size="12pt" space-before="12pt" space-after="12pt">
|
951
|
-
<xsl:value-of select="$series_tertiary"/>
|
952
|
-
</fo:block>
|
953
|
-
<fo:block font-size="16pt">
|
954
|
-
<xsl:value-of select="$title_main"/>
|
955
|
-
</fo:block>
|
956
|
-
</xsl:when>
|
957
|
-
<xsl:when test="$series_main != '' and $series_secondary = '' and $series_tertiary = ''">
|
958
|
-
<fo:block font-size="16pt">
|
959
|
-
<xsl:value-of select="$title_main"/>
|
960
|
-
</fo:block>
|
961
|
-
<fo:block font-size="14pt">
|
962
|
-
<xsl:if test="not(starts-with($series_main, '('))">
|
963
|
-
<xsl:text>(</xsl:text>
|
964
|
-
</xsl:if>
|
965
|
-
<xsl:value-of select="$series_main"/>
|
966
|
-
<xsl:if test="not(starts-with($series_main, '('))">
|
967
|
-
<xsl:text>)</xsl:text>
|
968
|
-
</xsl:if>
|
969
|
-
</fo:block>
|
534
|
+
<xsl:when test="$lang = 'en' or $lang = 'ar' or $lang = 'zh'">
|
535
|
+
<xsl:value-of select="concat($year_published, ' ', $i18n_edition)"/>
|
970
536
|
</xsl:when>
|
971
537
|
<xsl:otherwise>
|
972
|
-
<
|
973
|
-
|
974
|
-
</fo:block>
|
538
|
+
<xsl:value-of select="concat($i18n_edition_Capitalized, ' ', $year_published)"/>
|
539
|
+
<xsl:if test="$lang = 'ru'"> года</xsl:if>
|
975
540
|
</xsl:otherwise>
|
976
541
|
</xsl:choose>
|
977
542
|
</fo:block>
|
543
|
+
</xsl:if>
|
544
|
+
</xsl:when> <!-- $doctype = 'service-publication' -->
|
978
545
|
|
979
|
-
<fo:block font-size="14pt">
|
980
|
-
</fo:block>
|
981
|
-
<fo:block font-size="14pt">
|
982
|
-
<fo:block> </fo:block>
|
983
|
-
<xsl:variable name="position-sp" select="/*/itu:bibdata/itu:title[@type='position-sp' and @language = $lang]"/>
|
984
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($position-sp))"/>
|
985
|
-
</fo:block>
|
986
|
-
</fo:block-container>
|
987
|
-
<fo:block font-size="1pt"><fo:leader leader-pattern="rule" leader-length="90%" rule-style="solid" rule-thickness="1pt"/></fo:block>
|
988
|
-
</fo:block-container>
|
989
|
-
|
990
|
-
</fo:block-container>
|
991
|
-
</fo:block-container>
|
992
|
-
|
993
|
-
<fo:block space-before="25mm" font-weight="bold">
|
994
|
-
<xsl:variable name="year" select="substring(/*/itu:bibdata/itu:date[@type = 'published']/itu:on,1,4)"/>
|
995
|
-
<xsl:if test="normalize-space($year) != ''">
|
996
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($i18n_placedate),'%',$year)"/>
|
997
|
-
</xsl:if>
|
998
|
-
</fo:block>
|
999
|
-
</fo:flow>
|
1000
|
-
</fo:page-sequence>
|
1001
|
-
</xsl:when>
|
1002
|
-
<!-- ============================================= -->
|
1003
|
-
<!-- END Cover page for service-publication -->
|
1004
|
-
<!-- ============================================= -->
|
1005
|
-
</xsl:choose>
|
1006
|
-
|
1007
|
-
<xsl:if test="$doctype != 'service-publication'">
|
1008
|
-
<!-- cover page -->
|
1009
|
-
<fo:page-sequence master-reference="cover-page" writing-mode="lr-tb">
|
1010
|
-
<xsl:if test="$doctype = 'resolution'">
|
1011
|
-
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
|
1012
|
-
</xsl:if>
|
1013
|
-
<fo:flow flow-name="xsl-region-body">
|
1014
|
-
|
1015
|
-
<fo:block-container absolute-position="fixed" top="255mm">
|
1016
|
-
<fo:block text-align="right" margin-right="19mm">
|
1017
|
-
<xsl:choose>
|
1018
|
-
<xsl:when test="$doctype = 'resolution'">
|
1019
|
-
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo_resolution))}" content-height="21mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo"/>
|
1020
|
-
</xsl:when>
|
1021
546
|
<xsl:otherwise>
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
547
|
+
<fo:block margin-top="11.5mm">
|
548
|
+
<xsl:choose>
|
549
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
550
|
+
<!-- Example: ITU-T Technical Paper -->
|
551
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
552
|
+
<xsl:text> </xsl:text>
|
553
|
+
<xsl:value-of select="$doctypeTitle"/>
|
554
|
+
</xsl:when>
|
555
|
+
<xsl:when test="$doctype = 'implementers-guide'">
|
556
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
557
|
+
<xsl:text> </xsl:text>
|
558
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
559
|
+
<xsl:text> </xsl:text>
|
560
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
561
|
+
</xsl:when>
|
562
|
+
<xsl:when test="$doctype = 'resolution'">
|
563
|
+
<xsl:value-of select="$doctypeTitle"/>
|
564
|
+
<xsl:text> </xsl:text>
|
565
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
566
|
+
</xsl:when>
|
567
|
+
<xsl:otherwise>
|
568
|
+
<xsl:value-of select="$doctypeTitle"/>
|
569
|
+
<xsl:text> </xsl:text>
|
570
|
+
<xsl:value-of select="$docidentifier_ITU"/>
|
571
|
+
</xsl:otherwise>
|
572
|
+
</xsl:choose>
|
573
|
+
</fo:block>
|
1030
574
|
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
<fo:table-row>
|
1060
|
-
<fo:table-cell>
|
1061
|
-
<fo:block> </fo:block>
|
1062
|
-
</fo:table-cell>
|
1063
|
-
<fo:table-cell padding-top="2mm" padding-bottom="-1mm">
|
1064
|
-
<fo:block-container>
|
1065
|
-
<xsl:call-template name="setWritingMode"/>
|
1066
|
-
<fo:block font-family="Arial" font-size="36pt" font-weight="bold" margin-top="6pt" letter-spacing="2pt"> <!-- Helvetica for letter-spacing working -->
|
1067
|
-
<fo:block>
|
1068
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
1069
|
-
</fo:block>
|
1070
|
-
</fo:block>
|
1071
|
-
</fo:block-container>
|
1072
|
-
</fo:table-cell>
|
1073
|
-
<fo:table-cell padding-top="1mm" number-columns-spanned="2" padding-bottom="-1mm">
|
1074
|
-
<fo:block-container>
|
1075
|
-
<xsl:call-template name="setWritingMode"/>
|
1076
|
-
<fo:block font-size="30pt" font-weight="bold" text-align="right" margin-top="12pt" padding="0mm">
|
1077
|
-
<xsl:choose>
|
1078
|
-
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
1079
|
-
<xsl:value-of select="$doctypeTitle"/>
|
1080
|
-
</xsl:when>
|
1081
|
-
<xsl:when test="$doctype = 'implementers-guide'">
|
1082
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
1083
|
-
<xsl:text> </xsl:text>
|
1084
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1085
|
-
</xsl:when>
|
1086
|
-
<xsl:when test="$doctype = 'resolution'"/>
|
1087
|
-
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1088
|
-
<!-- Series L -->
|
1089
|
-
<xsl:value-of select="$i18n_series_Capitalized"/>
|
1090
|
-
<xsl:text> </xsl:text>
|
1091
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:series[@type='main']/itu:title[@type='abbrev']"/>
|
1092
|
-
<!-- Ex. Supplement 37 -->
|
1093
|
-
<fo:block font-size="18pt">
|
1094
|
-
<xsl:call-template name="getLocalizedString">
|
1095
|
-
<xsl:with-param name="key">doctype_dict.recommendation-supplement</xsl:with-param>
|
1096
|
-
</xsl:call-template>
|
575
|
+
<fo:block-container font-size="14pt" margin-top="1mm" margin-right="2mm">
|
576
|
+
<xsl:if test="$bureau = 'T'">
|
577
|
+
<xsl:attribute name="text-align">end</xsl:attribute>
|
578
|
+
</xsl:if>
|
579
|
+
<fo:block-container margin-right="0mm">
|
580
|
+
|
581
|
+
<xsl:variable name="additional_block">
|
582
|
+
<!-- Examples:
|
583
|
+
Amendment 1
|
584
|
+
Supplement 37 -->
|
585
|
+
<xsl:if test="$TDnumber != ''">
|
586
|
+
<fo:block-container>
|
587
|
+
<xsl:call-template name="setWritingMode"/>
|
588
|
+
<fo:block>TD number: <xsl:value-of select="$TDnumber"/></fo:block>
|
589
|
+
</fo:block-container>
|
590
|
+
</xsl:if>
|
591
|
+
<xsl:if test="$provisionalIdentifier != ''">
|
592
|
+
<fo:block-container>
|
593
|
+
<xsl:call-template name="setWritingMode"/>
|
594
|
+
<fo:block>Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/>
|
595
|
+
</fo:block>
|
596
|
+
</fo:block-container>
|
597
|
+
</xsl:if>
|
598
|
+
<xsl:if test="$annexid != ''">
|
599
|
+
<fo:block-container>
|
600
|
+
<xsl:call-template name="setWritingMode"/>
|
601
|
+
<fo:block>
|
602
|
+
<xsl:value-of select="$i18n_annex"/>
|
1097
603
|
<xsl:text> </xsl:text>
|
1098
|
-
<xsl:value-of select="
|
604
|
+
<xsl:value-of select="$annexid"/>
|
1099
605
|
</fo:block>
|
606
|
+
</fo:block-container>
|
607
|
+
</xsl:if>
|
608
|
+
<xsl:if test="$isAmendment != ''">
|
609
|
+
<fo:block-container>
|
610
|
+
<xsl:call-template name="setWritingMode"/>
|
611
|
+
<fo:block><xsl:value-of select="$isAmendment"/></fo:block>
|
612
|
+
</fo:block-container>
|
613
|
+
</xsl:if>
|
614
|
+
<xsl:if test="$isCorrigendum != ''">
|
615
|
+
<fo:block-container>
|
616
|
+
<xsl:call-template name="setWritingMode"/>
|
617
|
+
<fo:block><xsl:value-of select="$isCorrigendum"/></fo:block>
|
618
|
+
</fo:block-container>
|
619
|
+
</xsl:if>
|
620
|
+
|
621
|
+
<!-- Date, example: (11/2018) -->
|
622
|
+
<xsl:choose>
|
623
|
+
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:itu-standard/itu:bibdata/itu:version/itu:revision-date">
|
624
|
+
<xsl:call-template name="formatMeetingDate">
|
625
|
+
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date"/>
|
626
|
+
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
627
|
+
</xsl:call-template>
|
1100
628
|
</xsl:when>
|
1101
629
|
<xsl:otherwise>
|
1102
|
-
<xsl:
|
630
|
+
<xsl:call-template name="formatDate">
|
631
|
+
<xsl:with-param name="date" select="$date_published"/>
|
632
|
+
</xsl:call-template>
|
1103
633
|
</xsl:otherwise>
|
1104
634
|
</xsl:choose>
|
635
|
+
</xsl:variable>
|
636
|
+
<fo:block>
|
637
|
+
<xsl:copy-of select="$additional_block"/>
|
638
|
+
<xsl:if test="normalize-space($additional_block) = ''"> </xsl:if>
|
1105
639
|
</fo:block>
|
1106
640
|
</fo:block-container>
|
1107
|
-
</fo:
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
<fo:block font-size="14pt">TD number: <xsl:value-of select="$TDnumber"/></fo:block>
|
1114
|
-
</fo:block-container>
|
1115
|
-
</xsl:if>
|
1116
|
-
<xsl:if test="$provisionalIdentifier != ''">
|
1117
|
-
<fo:block-container space-after="2pt">
|
1118
|
-
<xsl:call-template name="setWritingMode"/>
|
1119
|
-
<fo:block font-size="14pt">Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/></fo:block>
|
1120
|
-
</fo:block-container>
|
641
|
+
</fo:block-container> <!-- end of additional block -->
|
642
|
+
|
643
|
+
<xsl:if test="$doctype = 'resolution'">
|
644
|
+
<fo:block margin-bottom="6pt">
|
645
|
+
<xsl:call-template name="insertMeetingInfo"/>
|
646
|
+
</fo:block>
|
1121
647
|
</xsl:if>
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
648
|
+
|
649
|
+
<!-- Series: -->
|
650
|
+
<xsl:variable name="series">
|
651
|
+
<xsl:call-template name="insertSeriesTitleMain">
|
652
|
+
<xsl:with-param name="i18n_series" select="$i18n_series"/>
|
653
|
+
</xsl:call-template>
|
654
|
+
<xsl:choose>
|
655
|
+
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
656
|
+
<xsl:otherwise>
|
657
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:series">
|
658
|
+
<fo:block font-weight="normal" margin-top="4mm">
|
659
|
+
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
660
|
+
</fo:block>
|
661
|
+
</xsl:if>
|
662
|
+
</xsl:otherwise>
|
663
|
+
</xsl:choose>
|
664
|
+
</xsl:variable>
|
665
|
+
|
666
|
+
<xsl:if test="normalize-space($series) != ''">
|
667
|
+
<fo:block-container margin-right="5mm">
|
668
|
+
<fo:block-container margin-right="0mm">
|
669
|
+
<fo:block font-size="18pt" margin-top="5mm">
|
670
|
+
<xsl:copy-of select="$series"/>
|
671
|
+
</fo:block>
|
672
|
+
<fo:block>
|
673
|
+
<fo:leader leader-pattern="rule" rule-thickness="1pt" leader-length="100%"/>
|
674
|
+
</fo:block>
|
675
|
+
</fo:block-container>
|
1128
676
|
</fo:block-container>
|
1129
677
|
</xsl:if>
|
678
|
+
|
679
|
+
<fo:block role="H1">
|
680
|
+
<!-- margin-top="24mm" -->
|
681
|
+
<xsl:if test="($doctype = 'technical-report' or $doctype = 'technical-paper') and $docnumber != ''">
|
682
|
+
<xsl:attribute name="margin-top">3mm</xsl:attribute>
|
683
|
+
<xsl:value-of select="$docnumber"/>
|
684
|
+
</xsl:if>
|
685
|
+
</fo:block>
|
686
|
+
|
687
|
+
<fo:block margin-top="3pt">
|
688
|
+
<xsl:if test="$doctype = 'implementers-guide'">
|
689
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
690
|
+
<xsl:text> for </xsl:text>
|
691
|
+
</xsl:if>
|
692
|
+
<xsl:if test="$doctype = 'resolution'">
|
693
|
+
<!-- Resolution 1 -->
|
694
|
+
<xsl:value-of select="$doctypeTitle"/>
|
695
|
+
<xsl:text> </xsl:text>
|
696
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
697
|
+
<xsl:value-of select="$en_dash_separator"/>
|
698
|
+
</xsl:if>
|
699
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
700
|
+
</fo:block>
|
701
|
+
|
702
|
+
<!-- Example: Annex F1 - ... -->
|
703
|
+
<xsl:for-each select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'annex' and @language = $lang]">
|
704
|
+
<fo:block font-size="18pt" margin-top="3mm" role="H1">
|
705
|
+
<xsl:value-of select="$i18n_annex"/>
|
706
|
+
<xsl:text> </xsl:text>
|
707
|
+
<xsl:value-of select="$annexid"/>
|
708
|
+
<xsl:value-of select="$en_dash_separator"/>
|
709
|
+
<xsl:value-of select="."/>
|
710
|
+
</fo:block>
|
711
|
+
</xsl:for-each>
|
712
|
+
|
713
|
+
<!-- Example: Amendment 1 - ... -->
|
1130
714
|
<xsl:if test="$isAmendment != ''">
|
1131
|
-
<fo:block-
|
1132
|
-
<xsl:
|
1133
|
-
<
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
715
|
+
<fo:block margin-top="3mm" role="H1">
|
716
|
+
<xsl:value-of select="$isAmendment"/>
|
717
|
+
<xsl:variable name="title_amendment" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:title[@type = 'amendment'])"/>
|
718
|
+
<xsl:if test="$title_amendment != ''">
|
719
|
+
<xsl:value-of select="$en_dash_separator"/>
|
720
|
+
<xsl:value-of select="$title_amendment"/>
|
721
|
+
</xsl:if>
|
722
|
+
</fo:block>
|
1137
723
|
</xsl:if>
|
724
|
+
<!-- Example: Corrigendum 1 - ... -->
|
1138
725
|
<xsl:if test="$isCorrigendum != ''">
|
1139
|
-
<fo:block-
|
1140
|
-
<xsl:
|
1141
|
-
<
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
726
|
+
<fo:block margin-top="3mm" role="H1">
|
727
|
+
<xsl:value-of select="$isCorrigendum"/>
|
728
|
+
<xsl:variable name="title_corrigendum" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:title[@type = 'corrigendum'])"/>
|
729
|
+
<xsl:if test="$title_corrigendum != ''">
|
730
|
+
<xsl:value-of select="$en_dash_separator"/>
|
731
|
+
<xsl:value-of select="$title_corrigendum"/>
|
732
|
+
</xsl:if>
|
733
|
+
</fo:block>
|
1145
734
|
</xsl:if>
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
<fo:block>
|
1155
|
-
<xsl:text>TELECOMMUNICATION</xsl:text>
|
1156
|
-
</fo:block>
|
1157
|
-
<fo:block>
|
1158
|
-
<xsl:text>STANDARDIZATION SECTOR</xsl:text>
|
1159
|
-
</fo:block>
|
1160
|
-
<fo:block>
|
1161
|
-
<xsl:text>OF ITU</xsl:text>
|
1162
|
-
</fo:block>
|
735
|
+
|
736
|
+
<xsl:if test="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
737
|
+
<fo:block-container margin-left="1mm" margin-right="1mm" border="0.7mm solid black" margin-top="5mm">
|
738
|
+
<fo:block-container margin-left="1mm" margin-right="1mm">
|
739
|
+
<fo:block padding-top="3mm">
|
740
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']" mode="caution"/>
|
741
|
+
</fo:block>
|
742
|
+
</fo:block-container>
|
1163
743
|
</fo:block-container>
|
1164
|
-
</
|
1165
|
-
|
1166
|
-
|
1167
|
-
<fo:block font-size="
|
1168
|
-
<xsl:
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
</xsl:call-template>
|
1174
|
-
</xsl:when>
|
1175
|
-
<xsl:otherwise>
|
1176
|
-
<xsl:call-template name="formatDate">
|
1177
|
-
<xsl:with-param name="date" select="$date_published"/>
|
1178
|
-
</xsl:call-template>
|
1179
|
-
</xsl:otherwise>
|
1180
|
-
</xsl:choose>
|
744
|
+
</xsl:if>
|
745
|
+
|
746
|
+
<xsl:if test="$doctype = 'recommendation-supplement'">
|
747
|
+
<fo:block font-size="16pt" margin-top="3mm">
|
748
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:status/itu:stage = 'draft'">Draft </xsl:if>
|
749
|
+
<xsl:text>ITU-</xsl:text>
|
750
|
+
<xsl:value-of select="$bureau"/>
|
751
|
+
<xsl:text> </xsl:text>
|
752
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
1181
753
|
</fo:block>
|
1182
|
-
</fo:table-cell>
|
1183
|
-
</fo:table-row>
|
1184
|
-
<xsl:variable name="countAdditionalNumbers" select="count(xalan:nodeset($additionalNumbers)/*)"/>
|
1185
|
-
<fo:table-row height="64mm"> <!-- 59mm -->
|
1186
|
-
<xsl:if test="$countAdditionalNumbers != 0">
|
1187
|
-
<xsl:attribute name="height"><xsl:value-of select="64 - $countAdditionalNumbers * 5"/>mm</xsl:attribute>
|
1188
754
|
</xsl:if>
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
755
|
+
</xsl:otherwise>
|
756
|
+
|
757
|
+
</xsl:choose>
|
758
|
+
|
759
|
+
</fo:block-container>
|
760
|
+
</fo:flow>
|
761
|
+
</fo:page-sequence>
|
762
|
+
<!-- Second cover page -->
|
763
|
+
<xsl:variable name="secondCoverPageData_">
|
764
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
765
|
+
<xsl:with-param name="number">2</xsl:with-param>
|
766
|
+
</xsl:call-template>
|
767
|
+
</xsl:variable>
|
768
|
+
<xsl:variable name="secondCoverPageData" select="xalan:nodeset($secondCoverPageData_)"/>
|
769
|
+
<fo:page-sequence force-page-count="no-force" master-reference="cover-page_2023">
|
770
|
+
<xsl:if test="$secondCoverPageData//*[self::fo:instream-foreign-object or self::fo:external-graphic]">
|
771
|
+
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage2_header_{$num}_{generate-id()}">
|
772
|
+
<xsl:copy-of select="$secondCoverPageData"/>
|
773
|
+
</fo:static-content>
|
774
|
+
</xsl:if>
|
775
|
+
<fo:flow flow-name="xsl-region-body">
|
776
|
+
<fo:block> </fo:block>
|
777
|
+
</fo:flow>
|
778
|
+
</fo:page-sequence>
|
779
|
+
<!-- End: Second cover page -->
|
780
|
+
</xsl:when> <!-- $layoutVersion = '2023' -->
|
781
|
+
|
782
|
+
<xsl:otherwise>
|
783
|
+
|
784
|
+
<xsl:choose>
|
785
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper' or $doctype = 'implementers-guide'">
|
786
|
+
<fo:page-sequence master-reference="TR-first-page">
|
787
|
+
<fo:flow flow-name="xsl-region-body">
|
788
|
+
<fo:block-container absolute-position="fixed" top="1mm">
|
789
|
+
<xsl:if test="$num = 1">
|
790
|
+
<xsl:attribute name="id">firstpage_id_0</xsl:attribute>
|
791
|
+
</xsl:if>
|
792
|
+
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
793
|
+
</fo:block-container>
|
794
|
+
<fo:block>
|
795
|
+
<fo:table width="175mm" table-layout="fixed" border-top="1.5pt solid black" id="__internal_layout__meeting_{generate-id()}">
|
796
|
+
<fo:table-column column-width="29mm"/>
|
797
|
+
<fo:table-column column-width="45mm"/>
|
798
|
+
<fo:table-column column-width="28mm"/>
|
799
|
+
<fo:table-column column-width="72mm"/>
|
800
|
+
<fo:table-body>
|
801
|
+
<fo:table-row>
|
802
|
+
<fo:table-cell padding-left="1mm" padding-top="3mm">
|
803
|
+
<fo:block font-weight="bold">Question(s):</fo:block>
|
804
|
+
</fo:table-cell>
|
805
|
+
<fo:table-cell padding-top="3mm">
|
806
|
+
<fo:block><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:group/itu:name"/></fo:block>
|
807
|
+
</fo:table-cell>
|
808
|
+
<fo:table-cell padding-top="3mm">
|
809
|
+
<fo:block font-weight="bold">Meeting, date:</fo:block>
|
810
|
+
</fo:table-cell>
|
811
|
+
<fo:table-cell padding-top="3mm" text-align="right" padding-right="1mm">
|
812
|
+
<fo:block>
|
813
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting"/>
|
814
|
+
<xsl:text>, </xsl:text>
|
815
|
+
<xsl:call-template name="formatMeetingDate">
|
816
|
+
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting-date/itu:from"/>
|
817
|
+
</xsl:call-template>
|
818
|
+
<xsl:text>/</xsl:text>
|
819
|
+
<xsl:call-template name="formatMeetingDate">
|
820
|
+
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:meeting-date/itu:to"/>
|
821
|
+
</xsl:call-template>
|
822
|
+
</fo:block>
|
823
|
+
</fo:table-cell>
|
824
|
+
</fo:table-row>
|
825
|
+
</fo:table-body>
|
826
|
+
</fo:table>
|
827
|
+
|
828
|
+
<fo:table width="175mm" table-layout="fixed" id="__internal_layout__groups_{generate-id()}">
|
829
|
+
<fo:table-column column-width="29mm"/>
|
830
|
+
<fo:table-column column-width="10mm"/>
|
831
|
+
<fo:table-column column-width="35mm"/>
|
832
|
+
<fo:table-column column-width="9mm"/>
|
833
|
+
<fo:table-column column-width="83mm"/>
|
834
|
+
<fo:table-column column-width="6mm"/>
|
835
|
+
<fo:table-body>
|
836
|
+
<fo:table-row>
|
837
|
+
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
838
|
+
<fo:block font-weight="bold">Study Group:</fo:block>
|
839
|
+
</fo:table-cell>
|
840
|
+
<fo:table-cell padding-top="2mm">
|
841
|
+
<xsl:variable name="subgroup" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:subgroup/itu:name"/>
|
842
|
+
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($subgroup),'(.)','$1')"/></fo:block>
|
843
|
+
</fo:table-cell>
|
844
|
+
<fo:table-cell padding-top="2mm">
|
845
|
+
<fo:block font-weight="bold">Working Party:</fo:block>
|
846
|
+
</fo:table-cell>
|
847
|
+
<fo:table-cell padding-top="2mm">
|
848
|
+
<xsl:variable name="workgroup" select="/itu:itu-standard/itu:bibdata/itu:ext/itu:editorialgroup/itu:workgroup/itu:name"/>
|
849
|
+
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($workgroup),'(.)','$1')"/></fo:block>
|
850
|
+
</fo:table-cell>
|
851
|
+
<fo:table-cell padding-top="2mm">
|
852
|
+
<fo:block font-weight="bold">Intended type of document <fo:inline font-weight="normal">(R-C-TD)</fo:inline>:</fo:block>
|
853
|
+
</fo:table-cell>
|
854
|
+
<fo:table-cell padding-top="2mm">
|
855
|
+
<fo:block font-weight="normal"><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:intended-type"/></fo:block>
|
856
|
+
</fo:table-cell>
|
857
|
+
</fo:table-row>
|
858
|
+
<fo:table-row>
|
859
|
+
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
860
|
+
<fo:block font-weight="bold">Source:</fo:block>
|
861
|
+
</fo:table-cell>
|
862
|
+
<fo:table-cell number-columns-spanned="4" padding-top="2mm">
|
863
|
+
<fo:block><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/itu:itu-standard/itu:bibdata/itu:ext/itu:source))"/></fo:block>
|
864
|
+
</fo:table-cell>
|
865
|
+
</fo:table-row>
|
866
|
+
<fo:table-row>
|
867
|
+
<fo:table-cell padding-left="1mm" padding-top="2mm">
|
868
|
+
<fo:block font-weight="bold">Title:</fo:block>
|
869
|
+
</fo:table-cell>
|
870
|
+
<fo:table-cell number-columns-spanned="4" padding-top="2mm">
|
871
|
+
<fo:block role="H1"><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@language='en' and @type='main']"/></fo:block>
|
872
|
+
</fo:table-cell>
|
873
|
+
</fo:table-row>
|
874
|
+
</fo:table-body>
|
875
|
+
</fo:table>
|
876
|
+
|
877
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:contributor/itu:person">
|
878
|
+
<fo:table width="175mm" table-layout="fixed" line-height="110%" id="__internal_layout__person_{generate-id()}">
|
879
|
+
<fo:table-column column-width="29mm"/>
|
880
|
+
<fo:table-column column-width="75mm"/>
|
881
|
+
<fo:table-column column-width="71mm"/>
|
882
|
+
<fo:table-body>
|
883
|
+
<xsl:for-each select="/itu:itu-standard/itu:bibdata/itu:contributor/itu:person">
|
884
|
+
<fo:table-row border-top="1.5pt solid black">
|
885
|
+
<xsl:if test="position() = last()">
|
886
|
+
<xsl:attribute name="border-bottom">1.5pt solid black</xsl:attribute>
|
887
|
+
</xsl:if>
|
888
|
+
<fo:table-cell padding-left="1mm" padding-top="2.5mm">
|
889
|
+
<fo:block font-weight="bold">Contact:</fo:block>
|
890
|
+
</fo:table-cell>
|
891
|
+
<fo:table-cell padding-top="3mm">
|
892
|
+
<fo:block><xsl:value-of select="itu:name/itu:completename"/></fo:block>
|
893
|
+
<fo:block><xsl:value-of select="itu:affiliation/itu:organization/itu:name"/></fo:block>
|
894
|
+
<fo:block><xsl:value-of select="itu:affiliation/itu:organization/itu:address/itu:formattedAddress"/></fo:block>
|
895
|
+
</fo:table-cell>
|
896
|
+
<fo:table-cell padding-top="3mm">
|
897
|
+
<fo:block>Tel: <xsl:value-of select="itu:phone[not(@type)]"/></fo:block>
|
898
|
+
<fo:block>Fax: <xsl:value-of select="itu:phone[@type = 'fax']"/></fo:block>
|
899
|
+
<fo:block>E-mail: <xsl:value-of select="itu:email"/></fo:block>
|
900
|
+
</fo:table-cell>
|
901
|
+
</fo:table-row>
|
902
|
+
</xsl:for-each>
|
903
|
+
</fo:table-body>
|
904
|
+
</fo:table>
|
905
|
+
</xsl:if>
|
906
|
+
<fo:block space-before="0.5mm" font-size="9pt" margin-left="1mm">Please do not change the structure of this table, just insert the necessary information.</fo:block>
|
907
|
+
<fo:block space-before="6pt"><INSERT TEXT></fo:block>
|
908
|
+
</fo:block>
|
909
|
+
</fo:flow>
|
910
|
+
</fo:page-sequence>
|
911
|
+
</xsl:when>
|
912
|
+
<!-- ============================================= -->
|
913
|
+
<!-- Cover page for service-publication -->
|
914
|
+
<!-- ============================================= -->
|
915
|
+
<xsl:when test="$doctype = 'service-publication'">
|
916
|
+
<fo:page-sequence master-reference="SP-first-page" force-page-count="no-force">
|
917
|
+
<fo:flow flow-name="xsl-region-body">
|
918
|
+
<fo:block-container absolute-position="fixed" top="1mm">
|
919
|
+
<xsl:if test="$num = 1">
|
920
|
+
<xsl:attribute name="id">firstpage_id_0</xsl:attribute>
|
921
|
+
</xsl:if>
|
922
|
+
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
923
|
+
</fo:block-container>
|
924
|
+
|
925
|
+
<fo:block font-size="10pt" font-style="italic" text-align="center">
|
926
|
+
<xsl:if test="$lang = 'ar'"> <!-- to prevent rendering `###` due the missing Arabic glyphs in the italic font (Times New Roman) -->
|
927
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
928
|
+
</xsl:if>
|
929
|
+
<fo:block>
|
930
|
+
<xsl:value-of select="$i18n_annex_to_itu_ob"/>
|
931
|
+
</fo:block>
|
932
|
+
<fo:block>
|
933
|
+
<xsl:value-of select="$i18n_number_abbrev"/>
|
934
|
+
<xsl:value-of select="/*/itu:bibdata/itu:docnumber"/>
|
935
|
+
<xsl:text> – </xsl:text>
|
936
|
+
<xsl:value-of select="translate(normalize-space(/*/itu:bibdata/itu:date[@type='published' and @format]),' ','')"/>
|
937
|
+
</fo:block>
|
938
|
+
</fo:block>
|
939
|
+
|
940
|
+
<fo:block font-size="14pt" margin-top="7mm">
|
941
|
+
<fo:block font-weight="bold">
|
942
|
+
<fo:inline baseline-shift="-140%" padding-right="6mm">
|
943
|
+
<xsl:if test="$lang = 'ar'">
|
944
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
945
|
+
<xsl:attribute name="padding-left">6mm</xsl:attribute>
|
946
|
+
</xsl:if>
|
947
|
+
<fo:instream-foreign-object content-height="18.5mm" content-width="16.1mm" fox:alt-text="Image Logo">
|
948
|
+
<xsl:copy-of select="$Image-ITU-Globe-Logo"/>
|
949
|
+
</fo:instream-foreign-object>
|
950
|
+
</fo:inline>
|
951
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($i18n_international_telecommunication_union))"/>
|
952
|
+
</fo:block>
|
953
|
+
</fo:block>
|
954
|
+
<fo:block-container margin-left="10mm">
|
955
|
+
<fo:block-container margin-left="0mm">
|
956
|
+
|
957
|
+
<fo:block font-size="20pt" font-weight="bold" space-before="30mm">
|
958
|
+
<xsl:value-of select="$i18n_tsb"/>
|
959
|
+
</fo:block>
|
960
|
+
<fo:block font-size="14pt" font-weight="bold">
|
961
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($i18n_tsb_full))"/>
|
962
|
+
</fo:block>
|
963
|
+
<fo:block-container height="20mm" display-align="center" width="90%">
|
964
|
+
<fo:block font-weight="bold">
|
965
|
+
<!-- complements -->
|
966
|
+
<!-- To do: Example: COMPLEMENT TO ITU-T RECOMMENDATIONS F.69 (06/1994) AND F.68 (11/1988) -->
|
967
|
+
<fo:inline>COMPLEMENT TO ITU-T RECOMMENDATIONS </fo:inline>
|
968
|
+
<xsl:for-each select="/*/itu:bibdata/itu:relation[@type = 'complements']">
|
969
|
+
<xsl:value-of select="translate(itu:bibitem/itu:docidentifier, ' ', ' ')"/>
|
970
|
+
<xsl:choose>
|
971
|
+
<xsl:when test="count(following-sibling::itu:relation[@type = 'complements']) = 1"> AND </xsl:when>
|
972
|
+
<xsl:when test="following-sibling::itu:relation[@type = 'complements']">, </xsl:when>
|
973
|
+
</xsl:choose>
|
974
|
+
</xsl:for-each>
|
1216
975
|
</fo:block>
|
1217
976
|
</fo:block-container>
|
1218
|
-
</fo:table-cell>
|
1219
|
-
</fo:table-row>
|
1220
|
-
<fo:table-row height="40mm">
|
1221
|
-
<fo:table-cell>
|
1222
|
-
<fo:block> </fo:block>
|
1223
|
-
</fo:table-cell>
|
1224
|
-
<fo:table-cell font-size="18pt" number-columns-spanned="3">
|
1225
977
|
<fo:block-container>
|
1226
|
-
<
|
1227
|
-
<fo:block
|
1228
|
-
<xsl:
|
1229
|
-
|
1230
|
-
|
1231
|
-
<xsl:
|
1232
|
-
<fo:block font-weight="bold">
|
1233
|
-
<xsl:value-of select="$docnumber"/>
|
1234
|
-
</fo:block>
|
1235
|
-
</xsl:if>
|
1236
|
-
<xsl:if test="$doctype = 'implementers-guide'">
|
1237
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1238
|
-
<xsl:text> for </xsl:text>
|
1239
|
-
</xsl:if>
|
1240
|
-
<xsl:if test="$doctype = 'resolution'">
|
1241
|
-
<!-- Resolution 1 -->
|
1242
|
-
<xsl:value-of select="$doctypeTitle"/><xsl:text> </xsl:text><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1243
|
-
<xsl:text> – </xsl:text>
|
1244
|
-
</xsl:if>
|
1245
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = 'en']"/>
|
1246
|
-
</fo:block>
|
1247
|
-
<xsl:for-each select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'annex' and @language = 'en']">
|
978
|
+
<fo:block font-size="1pt"><fo:leader leader-pattern="rule" leader-length="90%" rule-style="solid" rule-thickness="1pt"/></fo:block>
|
979
|
+
<fo:block-container height="75mm" display-align="center">
|
980
|
+
<xsl:variable name="title_main" select="/*/itu:bibdata/itu:title[@type='main' and @language = $lang]"/>
|
981
|
+
<xsl:variable name="series_main" select="normalize-space(/*/itu:bibdata/itu:series[@type='main']/itu:title)"/>
|
982
|
+
<xsl:variable name="series_secondary" select="normalize-space(/*/itu:bibdata/itu:series[@type='secondary']/itu:title)"/>
|
983
|
+
<xsl:variable name="series_tertiary" select="normalize-space(/*/itu:bibdata/itu:series[@type='tertiary']/itu:title)"/>
|
1248
984
|
<fo:block font-weight="bold" role="H1">
|
1249
|
-
<xsl:
|
985
|
+
<xsl:choose>
|
986
|
+
<xsl:when test="$series_main != '' and $series_secondary != '' and $series_tertiary = ''">
|
987
|
+
<fo:block font-size="16pt">
|
988
|
+
<xsl:value-of select="$series_main"/>
|
989
|
+
</fo:block>
|
990
|
+
<fo:block font-size="14pt">
|
991
|
+
<xsl:if test="not(starts-with($series_secondary, '('))">
|
992
|
+
<xsl:text>(</xsl:text>
|
993
|
+
</xsl:if>
|
994
|
+
<xsl:value-of select="$series_secondary"/>
|
995
|
+
<xsl:if test="not(starts-with($series_secondary, '('))">
|
996
|
+
<xsl:text>)</xsl:text>
|
997
|
+
</xsl:if>
|
998
|
+
</fo:block>
|
999
|
+
</xsl:when>
|
1000
|
+
<xsl:when test="$series_main != '' and $series_secondary != '' and $series_tertiary != ''">
|
1001
|
+
<fo:block font-size="16pt">
|
1002
|
+
<xsl:value-of select="$series_main"/>
|
1003
|
+
</fo:block>
|
1004
|
+
<fo:block font-size="14pt">
|
1005
|
+
<xsl:if test="not(starts-with($series_secondary, '('))">
|
1006
|
+
<xsl:text>(</xsl:text>
|
1007
|
+
</xsl:if>
|
1008
|
+
<xsl:value-of select="$series_secondary"/>
|
1009
|
+
<xsl:if test="not(starts-with($series_secondary, '('))">
|
1010
|
+
<xsl:text>)</xsl:text>
|
1011
|
+
</xsl:if>
|
1012
|
+
</fo:block>
|
1013
|
+
<fo:block font-size="12pt" space-before="12pt" space-after="12pt">
|
1014
|
+
<xsl:value-of select="$series_tertiary"/>
|
1015
|
+
</fo:block>
|
1016
|
+
<fo:block font-size="16pt">
|
1017
|
+
<xsl:value-of select="$title_main"/>
|
1018
|
+
</fo:block>
|
1019
|
+
</xsl:when>
|
1020
|
+
<xsl:when test="$series_main != '' and $series_secondary = '' and $series_tertiary = ''">
|
1021
|
+
<fo:block font-size="16pt">
|
1022
|
+
<xsl:value-of select="$title_main"/>
|
1023
|
+
</fo:block>
|
1024
|
+
<fo:block font-size="14pt">
|
1025
|
+
<xsl:if test="not(starts-with($series_main, '('))">
|
1026
|
+
<xsl:text>(</xsl:text>
|
1027
|
+
</xsl:if>
|
1028
|
+
<xsl:value-of select="$series_main"/>
|
1029
|
+
<xsl:if test="not(starts-with($series_main, '('))">
|
1030
|
+
<xsl:text>)</xsl:text>
|
1031
|
+
</xsl:if>
|
1032
|
+
</fo:block>
|
1033
|
+
</xsl:when>
|
1034
|
+
<xsl:otherwise>
|
1035
|
+
<fo:block font-size="16pt">
|
1036
|
+
<xsl:value-of select="$title_main"/>
|
1037
|
+
</fo:block>
|
1038
|
+
</xsl:otherwise>
|
1039
|
+
</xsl:choose>
|
1250
1040
|
</fo:block>
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
<
|
1256
|
-
|
1257
|
-
|
1258
|
-
</xsl:if>
|
1041
|
+
|
1042
|
+
<fo:block font-size="14pt">
|
1043
|
+
</fo:block>
|
1044
|
+
<fo:block font-size="14pt">
|
1045
|
+
<fo:block> </fo:block>
|
1046
|
+
<xsl:variable name="position-sp" select="/*/itu:bibdata/itu:title[@type='position-sp' and @language = $lang]"/>
|
1047
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($position-sp))"/>
|
1259
1048
|
</fo:block>
|
1049
|
+
</fo:block-container>
|
1050
|
+
<fo:block font-size="1pt"><fo:leader leader-pattern="rule" leader-length="90%" rule-style="solid" rule-thickness="1pt"/></fo:block>
|
1051
|
+
</fo:block-container>
|
1052
|
+
|
1053
|
+
</fo:block-container>
|
1054
|
+
</fo:block-container>
|
1055
|
+
|
1056
|
+
<fo:block space-before="25mm" font-weight="bold">
|
1057
|
+
<xsl:variable name="year" select="substring(/*/itu:bibdata/itu:date[@type = 'published']/itu:on,1,4)"/>
|
1058
|
+
<xsl:if test="normalize-space($year) != ''">
|
1059
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($i18n_placedate),'%',$year)"/>
|
1060
|
+
</xsl:if>
|
1061
|
+
</fo:block>
|
1062
|
+
</fo:flow>
|
1063
|
+
</fo:page-sequence>
|
1064
|
+
</xsl:when>
|
1065
|
+
<!-- ============================================= -->
|
1066
|
+
<!-- END Cover page for service-publication -->
|
1067
|
+
<!-- ============================================= -->
|
1068
|
+
</xsl:choose>
|
1069
|
+
|
1070
|
+
<xsl:if test="$doctype != 'service-publication'">
|
1071
|
+
<!-- cover page -->
|
1072
|
+
<fo:page-sequence master-reference="cover-page" writing-mode="lr-tb">
|
1073
|
+
<xsl:if test="$doctype = 'resolution'">
|
1074
|
+
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
|
1075
|
+
</xsl:if>
|
1076
|
+
<fo:flow flow-name="xsl-region-body">
|
1077
|
+
|
1078
|
+
<xsl:if test="$doctype != 'technical-report' and $doctype != 'technical-paper' and $doctype != 'implementers-guide' and $doctype != 'service-publication'">
|
1079
|
+
<fo:block-container absolute-position="fixed" top="1mm">
|
1080
|
+
<xsl:if test="$num = 1">
|
1081
|
+
<xsl:attribute name="id">firstpage_id_0</xsl:attribute>
|
1082
|
+
</xsl:if>
|
1083
|
+
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
1084
|
+
</fo:block-container>
|
1085
|
+
</xsl:if>
|
1086
|
+
|
1087
|
+
<fo:block-container absolute-position="fixed" top="255mm">
|
1088
|
+
<fo:block text-align="right" margin-right="19mm">
|
1089
|
+
<xsl:choose>
|
1090
|
+
<xsl:when test="$doctype = 'resolution'">
|
1091
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo_resolution))}" content-height="21mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo"/>
|
1092
|
+
</xsl:when>
|
1093
|
+
<xsl:otherwise>
|
1094
|
+
<!-- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo))}" content-height="17.7mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo"/> -->
|
1095
|
+
<fo:instream-foreign-object content-width="24.1mm" fox:alt-text="Image Logo ITU">
|
1096
|
+
<xsl:call-template name="Image-ITU-Globe-Logo-Blue">
|
1097
|
+
<xsl:with-param name="color_cover_itu_logo" select="$color_cover_itu_logo"/>
|
1098
|
+
</xsl:call-template>
|
1099
|
+
</fo:instream-foreign-object>
|
1100
|
+
</xsl:otherwise>
|
1101
|
+
</xsl:choose>
|
1102
|
+
</fo:block>
|
1103
|
+
</fo:block-container>
|
1104
|
+
|
1105
|
+
<fo:block-container absolute-position="fixed" left="-7mm" top="0" font-size="0">
|
1106
|
+
<fo:block text-align="left">
|
1107
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Fond-Rec))}" width="43.6mm" content-height="299.2mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Cover Page"/>
|
1108
|
+
</fo:block>
|
1109
|
+
</fo:block-container>
|
1110
|
+
<fo:block-container font-family="Arial">
|
1111
|
+
<fo:table width="100%" table-layout="fixed" id="__internal_layout__coverpage_{$num}_{generate-id()}"> <!-- 175.4mm-->
|
1112
|
+
<fo:table-column column-width="25.2mm"/>
|
1113
|
+
<fo:table-column column-width="44.4mm"/>
|
1114
|
+
<fo:table-column column-width="35.8mm"/>
|
1115
|
+
<fo:table-column column-width="67mm"/>
|
1116
|
+
<fo:table-body>
|
1117
|
+
<fo:table-row height="37.5mm"> <!-- 42.5mm -->
|
1118
|
+
<fo:table-cell>
|
1119
|
+
<fo:block> </fo:block>
|
1120
|
+
</fo:table-cell>
|
1121
|
+
<fo:table-cell number-columns-spanned="3">
|
1122
|
+
<fo:block-container>
|
1123
|
+
<xsl:call-template name="setWritingMode"/>
|
1124
|
+
<fo:block font-family="Arial" font-size="13pt" font-weight="bold" color="gray"> <!-- margin-top="16pt" letter-spacing="4pt", Helvetica for letter-spacing working -->
|
1125
|
+
<fo:block><xsl:value-of select="$linebreak"/></fo:block>
|
1126
|
+
<xsl:call-template name="addLetterSpacing">
|
1127
|
+
<xsl:with-param name="text" select="/itu:itu-standard/itu:bibdata/itu:contributor[itu:role/@type='author']/itu:organization/itu:name"/>
|
1128
|
+
</xsl:call-template>
|
1129
|
+
</fo:block>
|
1130
|
+
</fo:block-container>
|
1131
|
+
</fo:table-cell>
|
1132
|
+
</fo:table-row>
|
1133
|
+
<fo:table-row>
|
1134
|
+
<fo:table-cell>
|
1135
|
+
<fo:block> </fo:block>
|
1136
|
+
</fo:table-cell>
|
1137
|
+
<fo:table-cell padding-top="2mm" padding-bottom="-1mm">
|
1138
|
+
<fo:block-container>
|
1139
|
+
<xsl:call-template name="setWritingMode"/>
|
1140
|
+
<fo:block font-family="Arial" font-size="36pt" font-weight="bold" margin-top="6pt" letter-spacing="2pt"> <!-- Helvetica for letter-spacing working -->
|
1141
|
+
<fo:block>
|
1142
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
1143
|
+
</fo:block>
|
1144
|
+
</fo:block>
|
1145
|
+
</fo:block-container>
|
1146
|
+
</fo:table-cell>
|
1147
|
+
<fo:table-cell padding-top="1mm" number-columns-spanned="2" padding-bottom="-1mm">
|
1148
|
+
<fo:block-container>
|
1149
|
+
<xsl:call-template name="setWritingMode"/>
|
1150
|
+
<fo:block font-size="30pt" font-weight="bold" text-align="right" margin-top="12pt" padding="0mm">
|
1151
|
+
<xsl:choose>
|
1152
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
1153
|
+
<xsl:value-of select="$doctypeTitle"/>
|
1154
|
+
</xsl:when>
|
1155
|
+
<xsl:when test="$doctype = 'implementers-guide'">
|
1156
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
1157
|
+
<xsl:text> </xsl:text>
|
1158
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1159
|
+
</xsl:when>
|
1160
|
+
<xsl:when test="$doctype = 'resolution'"/>
|
1161
|
+
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1162
|
+
<!-- Series L -->
|
1163
|
+
<xsl:value-of select="$i18n_series_Capitalized"/>
|
1164
|
+
<xsl:text> </xsl:text>
|
1165
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:series[@type='main']/itu:title[@type='abbrev']"/>
|
1166
|
+
<!-- Ex. Supplement 37 -->
|
1167
|
+
<fo:block font-size="18pt">
|
1168
|
+
<xsl:call-template name="getLocalizedString">
|
1169
|
+
<xsl:with-param name="key">doctype_dict.recommendation-supplement</xsl:with-param>
|
1170
|
+
</xsl:call-template>
|
1171
|
+
<xsl:text> </xsl:text>
|
1172
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docnumber"/>
|
1173
|
+
</fo:block>
|
1174
|
+
</xsl:when>
|
1175
|
+
<xsl:otherwise>
|
1176
|
+
<xsl:value-of select="substring-after($docidentifier_ITU, ' ')"/>
|
1177
|
+
</xsl:otherwise>
|
1178
|
+
</xsl:choose>
|
1179
|
+
</fo:block>
|
1180
|
+
</fo:block-container>
|
1181
|
+
</fo:table-cell>
|
1182
|
+
</fo:table-row>
|
1183
|
+
<xsl:variable name="additionalNumbers">
|
1184
|
+
<xsl:if test="$TDnumber != ''">
|
1185
|
+
<fo:block-container space-after="2pt">
|
1186
|
+
<xsl:call-template name="setWritingMode"/>
|
1187
|
+
<fo:block font-size="14pt">TD number: <xsl:value-of select="$TDnumber"/></fo:block>
|
1188
|
+
</fo:block-container>
|
1189
|
+
</xsl:if>
|
1190
|
+
<xsl:if test="$provisionalIdentifier != ''">
|
1191
|
+
<fo:block-container space-after="2pt">
|
1192
|
+
<xsl:call-template name="setWritingMode"/>
|
1193
|
+
<fo:block font-size="14pt">Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/></fo:block>
|
1194
|
+
</fo:block-container>
|
1195
|
+
</xsl:if>
|
1196
|
+
<xsl:if test="$annexid != ''">
|
1197
|
+
<fo:block-container>
|
1198
|
+
<xsl:call-template name="setWritingMode"/>
|
1199
|
+
<fo:block font-size="18pt" font-weight="bold">
|
1200
|
+
<xsl:value-of select="concat($i18n_annex, ' ', $annexid)"/>
|
1201
|
+
</fo:block>
|
1202
|
+
</fo:block-container>
|
1203
|
+
</xsl:if>
|
1204
|
+
<xsl:if test="$isAmendment != ''">
|
1205
|
+
<fo:block-container>
|
1206
|
+
<xsl:call-template name="setWritingMode"/>
|
1207
|
+
<fo:block font-size="18pt" font-weight="bold">
|
1208
|
+
<xsl:value-of select="$isAmendment"/>
|
1209
|
+
</fo:block>
|
1210
|
+
</fo:block-container>
|
1260
1211
|
</xsl:if>
|
1261
1212
|
<xsl:if test="$isCorrigendum != ''">
|
1262
|
-
<fo:block
|
1263
|
-
<xsl:
|
1264
|
-
<
|
1265
|
-
<xsl:
|
1266
|
-
|
1267
|
-
|
1268
|
-
</fo:block>
|
1213
|
+
<fo:block-container>
|
1214
|
+
<xsl:call-template name="setWritingMode"/>
|
1215
|
+
<fo:block font-size="18pt" font-weight="bold">
|
1216
|
+
<xsl:value-of select="$isCorrigendum"/>
|
1217
|
+
</fo:block>
|
1218
|
+
</fo:block-container>
|
1269
1219
|
</xsl:if>
|
1270
|
-
</
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
<xsl:choose>
|
1281
|
-
<xsl:when test="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1282
|
-
<xsl:attribute name="border">0.7mm solid black</xsl:attribute>
|
1283
|
-
<fo:block font-family="Times New Roman" padding-top="3mm" margin-left="1mm" margin-right="1mm">
|
1284
|
-
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']" mode="caution"/>
|
1220
|
+
</xsl:variable>
|
1221
|
+
<fo:table-row height="17.2mm">
|
1222
|
+
<fo:table-cell>
|
1223
|
+
<fo:block> </fo:block>
|
1224
|
+
</fo:table-cell>
|
1225
|
+
<fo:table-cell font-size="10pt" number-columns-spanned="2" padding-top="1mm">
|
1226
|
+
<fo:block-container>
|
1227
|
+
<xsl:call-template name="setWritingMode"/>
|
1228
|
+
<fo:block>
|
1229
|
+
<xsl:text>TELECOMMUNICATION</xsl:text>
|
1285
1230
|
</fo:block>
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
<xsl:if test="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1303
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1304
|
-
<xsl:if test="$doctype = 'recommendation-supplement'">
|
1305
|
-
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1306
|
-
</xsl:if>
|
1307
|
-
</xsl:if>
|
1308
|
-
|
1309
|
-
<xsl:choose>
|
1310
|
-
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
1311
|
-
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:status/itu:stage">
|
1312
|
-
<xsl:call-template name="capitalizeWords">
|
1313
|
-
<xsl:with-param name="str" select="/itu:itu-standard/itu:bibdata/itu:status/itu:stage"/>
|
1231
|
+
<fo:block>
|
1232
|
+
<xsl:text>STANDARDIZATION SECTOR</xsl:text>
|
1233
|
+
</fo:block>
|
1234
|
+
<fo:block>
|
1235
|
+
<xsl:text>OF ITU</xsl:text>
|
1236
|
+
</fo:block>
|
1237
|
+
</fo:block-container>
|
1238
|
+
</fo:table-cell>
|
1239
|
+
<fo:table-cell text-align="right">
|
1240
|
+
<xsl:copy-of select="$additionalNumbers"/>
|
1241
|
+
<fo:block font-size="14pt">
|
1242
|
+
<xsl:choose>
|
1243
|
+
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:itu-standard/itu:bibdata/itu:version/itu:revision-date">
|
1244
|
+
<xsl:call-template name="formatMeetingDate">
|
1245
|
+
<xsl:with-param name="date" select="/itu:itu-standard/itu:bibdata/itu:version/itu:revision-date"/>
|
1246
|
+
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
1314
1247
|
</xsl:call-template>
|
1315
|
-
|
1248
|
+
</xsl:when>
|
1249
|
+
<xsl:otherwise>
|
1250
|
+
<xsl:call-template name="formatDate">
|
1251
|
+
<xsl:with-param name="date" select="$date_published"/>
|
1252
|
+
</xsl:call-template>
|
1253
|
+
</xsl:otherwise>
|
1254
|
+
</xsl:choose>
|
1255
|
+
</fo:block>
|
1256
|
+
</fo:table-cell>
|
1257
|
+
</fo:table-row>
|
1258
|
+
<xsl:variable name="countAdditionalNumbers" select="count(xalan:nodeset($additionalNumbers)/*)"/>
|
1259
|
+
<fo:table-row height="64mm"> <!-- 59mm -->
|
1260
|
+
<xsl:if test="$countAdditionalNumbers != 0">
|
1261
|
+
<xsl:attribute name="height"><xsl:value-of select="64 - $countAdditionalNumbers * 5"/>mm</xsl:attribute>
|
1262
|
+
</xsl:if>
|
1263
|
+
<fo:table-cell>
|
1264
|
+
<fo:block> </fo:block>
|
1265
|
+
</fo:table-cell>
|
1266
|
+
<fo:table-cell font-size="16pt" number-columns-spanned="3" border-bottom="0.5mm solid black" display-align="after">
|
1267
|
+
<fo:block-container>
|
1268
|
+
<xsl:call-template name="setWritingMode"/>
|
1269
|
+
<fo:block padding-bottom="7mm">
|
1270
|
+
<xsl:if test="$doctype = 'resolution'">
|
1271
|
+
<xsl:call-template name="insertMeetingInfo"/>
|
1316
1272
|
</xsl:if>
|
1317
|
-
<xsl:
|
1318
|
-
|
1319
|
-
<xsl:
|
1320
|
-
<xsl:text> </xsl:text>
|
1321
|
-
<xsl:value-of select="$identifier"/>
|
1273
|
+
<xsl:if test="$doctype = 'focus-group'">
|
1274
|
+
<xsl:attribute name="padding-bottom">0mm</xsl:attribute>
|
1275
|
+
<xsl:attribute name="border-bottom">1pt solid black</xsl:attribute>
|
1322
1276
|
</xsl:if>
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
<xsl:
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1277
|
+
<fo:block text-transform="uppercase">
|
1278
|
+
<xsl:call-template name="insertSeriesTitleMain">
|
1279
|
+
<xsl:with-param name="i18n_series" select="$i18n_series"/>
|
1280
|
+
</xsl:call-template>
|
1281
|
+
</fo:block>
|
1282
|
+
<xsl:choose>
|
1283
|
+
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
1284
|
+
<xsl:otherwise>
|
1285
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:series">
|
1286
|
+
<fo:block margin-top="6pt">
|
1287
|
+
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
1288
|
+
</fo:block>
|
1289
|
+
</xsl:if>
|
1290
|
+
</xsl:otherwise>
|
1291
|
+
</xsl:choose>
|
1292
|
+
</fo:block>
|
1293
|
+
</fo:block-container>
|
1294
|
+
</fo:table-cell>
|
1295
|
+
</fo:table-row>
|
1296
|
+
<fo:table-row height="40mm">
|
1297
|
+
<fo:table-cell>
|
1298
|
+
<fo:block> </fo:block>
|
1299
|
+
</fo:table-cell>
|
1300
|
+
<fo:table-cell font-size="18pt" number-columns-spanned="3">
|
1301
|
+
<fo:block-container>
|
1302
|
+
<xsl:call-template name="setWritingMode"/>
|
1303
|
+
<fo:block padding-right="2mm" margin-top="6pt" role="H1">
|
1304
|
+
<xsl:if test="not(/itu:itu-standard/itu:bibdata/itu:title[@type = 'annex' and @language = 'en']) and $isAmendment = '' and $isCorrigendum = ''">
|
1305
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1306
|
+
</xsl:if>
|
1307
|
+
<xsl:if test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:itu-standard/itu:bibdata/itu:docnumber">
|
1308
|
+
<fo:block font-weight="bold">
|
1309
|
+
<xsl:value-of select="$docnumber"/>
|
1310
|
+
</fo:block>
|
1311
|
+
</xsl:if>
|
1312
|
+
<xsl:if test="$doctype = 'implementers-guide'">
|
1313
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1314
|
+
<xsl:text> for </xsl:text>
|
1315
|
+
</xsl:if>
|
1316
|
+
<xsl:if test="$doctype = 'resolution'">
|
1317
|
+
<!-- Resolution 1 -->
|
1318
|
+
<xsl:value-of select="$doctypeTitle"/><xsl:text> </xsl:text><xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1319
|
+
<xsl:text> – </xsl:text>
|
1320
|
+
</xsl:if>
|
1321
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = 'en']"/>
|
1322
|
+
</fo:block>
|
1323
|
+
<xsl:for-each select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'annex' and @language = 'en']">
|
1324
|
+
<fo:block font-weight="bold" role="H1">
|
1325
|
+
<xsl:value-of select="."/>
|
1326
|
+
</fo:block>
|
1327
|
+
</xsl:for-each>
|
1328
|
+
<xsl:if test="$isAmendment != ''">
|
1329
|
+
<fo:block padding-right="2mm" margin-top="6pt" font-weight="bold" role="H1">
|
1330
|
+
<xsl:value-of select="$isAmendment"/>
|
1331
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:title[@type = 'amendment']">
|
1332
|
+
<xsl:text>: </xsl:text>
|
1333
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'amendment']"/>
|
1334
|
+
</xsl:if>
|
1335
|
+
</fo:block>
|
1336
|
+
</xsl:if>
|
1337
|
+
<xsl:if test="$isCorrigendum != ''">
|
1338
|
+
<fo:block padding-right="2mm" margin-top="6pt" font-weight="bold" role="H1">
|
1339
|
+
<xsl:value-of select="$isCorrigendum"/>
|
1340
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:title[@type = 'corrigendum']">
|
1341
|
+
<xsl:text>: </xsl:text>
|
1342
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'corrigendum']"/>
|
1338
1343
|
</xsl:if>
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1344
|
+
</fo:block>
|
1345
|
+
</xsl:if>
|
1346
|
+
</fo:block-container>
|
1347
|
+
</fo:table-cell>
|
1348
|
+
</fo:table-row>
|
1349
|
+
<fo:table-row height="40mm">
|
1350
|
+
<fo:table-cell>
|
1351
|
+
<fo:block> </fo:block>
|
1352
|
+
</fo:table-cell>
|
1353
|
+
<fo:table-cell number-columns-spanned="3">
|
1354
|
+
<fo:block-container>
|
1355
|
+
<xsl:call-template name="setWritingMode"/>
|
1356
|
+
<xsl:choose>
|
1357
|
+
<xsl:when test="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1358
|
+
<xsl:attribute name="border">0.7mm solid black</xsl:attribute>
|
1359
|
+
<fo:block font-family="Times New Roman" padding-top="3mm" margin-left="1mm" margin-right="1mm">
|
1360
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']" mode="caution"/>
|
1361
|
+
</fo:block>
|
1362
|
+
</xsl:when>
|
1363
|
+
<xsl:otherwise>
|
1364
|
+
<fo:block> </fo:block>
|
1365
|
+
</xsl:otherwise>
|
1366
|
+
</xsl:choose>
|
1367
|
+
</fo:block-container>
|
1368
|
+
</fo:table-cell>
|
1369
|
+
</fo:table-row>
|
1370
|
+
<fo:table-row height="25mm">
|
1371
|
+
<fo:table-cell>
|
1372
|
+
<fo:block> </fo:block>
|
1373
|
+
</fo:table-cell>
|
1374
|
+
<fo:table-cell number-columns-spanned="3">
|
1375
|
+
<fo:block-container>
|
1376
|
+
<xsl:call-template name="setWritingMode"/>
|
1377
|
+
<fo:block font-size="16pt" margin-top="3pt">
|
1378
|
+
<xsl:if test="/itu:itu-standard/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1379
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1380
|
+
<xsl:if test="$doctype = 'recommendation-supplement'">
|
1381
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1342
1382
|
</xsl:if>
|
1343
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1344
|
-
</xsl:variable>
|
1345
|
-
<xsl:if test="normalize-space(translate($identifier, ' ', '')) != ''">
|
1346
|
-
<xsl:value-of select="$doctypeTitle"/>
|
1347
|
-
<xsl:value-of select="$identifier"/>
|
1348
1383
|
</xsl:if>
|
1349
|
-
</xsl:otherwise>
|
1350
|
-
</xsl:choose>
|
1351
1384
|
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1385
|
+
<xsl:choose>
|
1386
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
1387
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:status/itu:stage">
|
1388
|
+
<xsl:call-template name="capitalizeWords">
|
1389
|
+
<xsl:with-param name="str" select="/itu:itu-standard/itu:bibdata/itu:status/itu:stage"/>
|
1390
|
+
</xsl:call-template>
|
1391
|
+
<xsl:text> </xsl:text>
|
1392
|
+
</xsl:if>
|
1393
|
+
<xsl:variable name="identifier" select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type='ITU']"/>
|
1394
|
+
<xsl:if test="$identifier != ''">
|
1395
|
+
<xsl:value-of select="$doctypeTitle"/>
|
1396
|
+
<xsl:text> </xsl:text>
|
1397
|
+
<xsl:value-of select="$identifier"/>
|
1398
|
+
</xsl:if>
|
1399
|
+
</xsl:when>
|
1400
|
+
<xsl:when test="$doctype = 'implementers-guide'"/>
|
1401
|
+
<xsl:when test="$doctype = 'resolution'"/>
|
1402
|
+
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1403
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:status/itu:stage = 'draft'">Draft </xsl:if>
|
1404
|
+
<xsl:text>ITU-</xsl:text><xsl:value-of select="$bureau"/><xsl:text> </xsl:text>
|
1405
|
+
|
1406
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
1407
|
+
</xsl:when>
|
1408
|
+
<xsl:otherwise>
|
1409
|
+
<xsl:variable name="identifier">
|
1410
|
+
<xsl:text> </xsl:text>
|
1411
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:contributor/itu:organization/itu:abbreviation">
|
1412
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:contributor/itu:organization/itu:abbreviation"/>
|
1413
|
+
<xsl:text>-</xsl:text>
|
1414
|
+
</xsl:if>
|
1415
|
+
<xsl:if test="$doctype != 'recommendation'">
|
1416
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:bureau"/>
|
1417
|
+
<xsl:text> </xsl:text>
|
1418
|
+
</xsl:if>
|
1419
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1420
|
+
</xsl:variable>
|
1421
|
+
<xsl:if test="normalize-space(translate($identifier, ' ', '')) != ''">
|
1422
|
+
<xsl:value-of select="$doctypeTitle"/>
|
1423
|
+
<xsl:value-of select="$identifier"/>
|
1424
|
+
</xsl:if>
|
1425
|
+
</xsl:otherwise>
|
1426
|
+
</xsl:choose>
|
1427
|
+
|
1428
|
+
<xsl:if test="$annexid != ''">
|
1429
|
+
<xsl:value-of select="concat(' — ', $i18n_annex, ' ', $annexid)"/>
|
1430
|
+
</xsl:if>
|
1431
|
+
</fo:block>
|
1432
|
+
</fo:block-container>
|
1433
|
+
</fo:table-cell>
|
1434
|
+
</fo:table-row>
|
1435
|
+
</fo:table-body>
|
1436
|
+
</fo:table>
|
1437
|
+
</fo:block-container>
|
1438
|
+
</fo:flow>
|
1439
|
+
</fo:page-sequence>
|
1440
|
+
</xsl:if>
|
1441
|
+
</xsl:otherwise>
|
1442
|
+
</xsl:choose>
|
1443
|
+
<!-- ============================================= -->
|
1444
|
+
<!-- END Cover page -->
|
1445
|
+
<!-- ============================================= -->
|
1370
1446
|
|
1371
|
-
|
1372
|
-
<xsl:call-template name="updateXML"/>
|
1373
|
-
<!-- <xsl:copy-of select="."/> -->
|
1374
|
-
</xsl:variable>
|
1447
|
+
<!-- <xsl:for-each select="xalan:nodeset($updated_xml)/*"> -->
|
1375
1448
|
|
1376
|
-
|
1449
|
+
<!-- <xsl:for-each select="xalan:nodeset($updated_xml)//itu:itu-standard">
|
1450
|
+
|
1451
|
+
<xsl:variable name="current_document">
|
1452
|
+
<xsl:copy-of select="."/>
|
1453
|
+
</xsl:variable>
|
1454
|
+
|
1455
|
+
<xsl:for-each select="xalan:nodeset($current_document)"> -->
|
1377
1456
|
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1457
|
+
<xsl:variable name="updated_xml_with_pages">
|
1458
|
+
<xsl:call-template name="processPrefaceAndMainSectionsDefault_items"/>
|
1459
|
+
</xsl:variable>
|
1381
1460
|
|
1382
|
-
|
1461
|
+
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
|
1383
1462
|
|
1384
|
-
|
1463
|
+
<xsl:for-each select=".//*[local-name() = 'page_sequence'][parent::*[local-name() = 'preface']][normalize-space() != '' or .//*[local-name() = 'image'] or .//*[local-name() = 'svg']]">
|
1385
1464
|
|
1386
|
-
|
1465
|
+
<fo:page-sequence master-reference="document-preface" format="i" force-page-count="no-force">
|
1387
1466
|
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1467
|
+
<xsl:if test="$doctype = 'resolution'">
|
1468
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1469
|
+
</xsl:if>
|
1470
|
+
<xsl:if test="$doctype = 'service-publication'">
|
1471
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1472
|
+
<xsl:attribute name="font-family">Arial, STIX Two Math</xsl:attribute>
|
1473
|
+
</xsl:if>
|
1392
1474
|
|
1393
|
-
<xsl:if test="$doctype = 'service-publication'">
|
1394
1475
|
<xsl:attribute name="master-reference">
|
1395
|
-
<xsl:text>document</xsl:text>
|
1476
|
+
<xsl:text>document-preface</xsl:text>
|
1396
1477
|
<xsl:call-template name="getPageSequenceOrientation"/>
|
1397
1478
|
</xsl:attribute>
|
1398
|
-
<xsl:attribute name="format">1</xsl:attribute>
|
1399
|
-
</xsl:if>
|
1400
1479
|
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1480
|
+
<xsl:if test="$doctype = 'service-publication'">
|
1481
|
+
<xsl:attribute name="master-reference">
|
1482
|
+
<xsl:text>document</xsl:text>
|
1483
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
1484
|
+
</xsl:attribute>
|
1485
|
+
<xsl:attribute name="format">1</xsl:attribute>
|
1486
|
+
</xsl:if>
|
1404
1487
|
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
</xsl:when>
|
1409
|
-
<xsl:otherwise>
|
1410
|
-
<xsl:call-template name="insertHeaderFooter"/>
|
1411
|
-
</xsl:otherwise>
|
1412
|
-
</xsl:choose>
|
1488
|
+
<xsl:if test="position() = 1">
|
1489
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
1490
|
+
</xsl:if>
|
1413
1491
|
|
1414
|
-
|
1492
|
+
<xsl:choose>
|
1493
|
+
<xsl:when test="$doctype = 'service-publication'">
|
1494
|
+
<xsl:call-template name="insertHeaderFooterSP">
|
1495
|
+
<xsl:with-param name="footer-text" select="$footer-text"/>
|
1496
|
+
</xsl:call-template>
|
1497
|
+
</xsl:when>
|
1498
|
+
<xsl:otherwise>
|
1499
|
+
<xsl:call-template name="insertHeaderFooter">
|
1500
|
+
<xsl:with-param name="footer-text" select="$footer-text"/>
|
1501
|
+
</xsl:call-template>
|
1502
|
+
</xsl:otherwise>
|
1503
|
+
</xsl:choose>
|
1415
1504
|
|
1416
|
-
<
|
1505
|
+
<fo:flow flow-name="xsl-region-body">
|
1417
1506
|
|
1418
|
-
<xsl:if test="
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
<xsl:
|
1423
|
-
<
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
<
|
1430
|
-
|
1431
|
-
<
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
<xsl:
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1507
|
+
<xsl:if test="/itu:itu-standard/itu:preface/*[not(@type = 'toc')] or /itu:itu-standard/itu:bibdata/itu:keyword">
|
1508
|
+
|
1509
|
+
<xsl:if test="position() = 1">
|
1510
|
+
<fo:block-container font-size="14pt" font-weight="bold">
|
1511
|
+
<xsl:choose>
|
1512
|
+
<xsl:when test="$doctype = 'implementers-guide'"/>
|
1513
|
+
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1514
|
+
<fo:block>
|
1515
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Internal']"/>
|
1516
|
+
</fo:block>
|
1517
|
+
</xsl:when>
|
1518
|
+
<xsl:when test="$doctype = 'service-publication'"/>
|
1519
|
+
<xsl:otherwise>
|
1520
|
+
<fo:block>
|
1521
|
+
<xsl:value-of select="$doctypeTitle"/>
|
1522
|
+
<xsl:text> </xsl:text>
|
1523
|
+
<xsl:value-of select="$docname"/>
|
1524
|
+
</fo:block>
|
1525
|
+
</xsl:otherwise>
|
1526
|
+
</xsl:choose>
|
1527
|
+
<fo:block text-align="center" margin-top="15pt" margin-bottom="15pt" role="H1">
|
1528
|
+
<xsl:if test="$doctype = 'service-publication'">
|
1529
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1530
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1531
|
+
</xsl:if>
|
1532
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
1533
|
+
</fo:block>
|
1534
|
+
</fo:block-container>
|
1535
|
+
</xsl:if>
|
1445
1536
|
|
1446
|
-
|
1537
|
+
<!-- Summary, History ... -->
|
1447
1538
|
|
1448
|
-
|
1449
|
-
|
1539
|
+
<!-- <xsl:call-template name="processPrefaceSectionsDefault"/> -->
|
1540
|
+
<xsl:apply-templates/>
|
1450
1541
|
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1542
|
+
<xsl:if test="position() = last()">
|
1543
|
+
<!-- Keywords -->
|
1544
|
+
<xsl:if test="/itu:itu-standard/itu:bibdata/itu:keyword">
|
1545
|
+
<fo:block font-size="12pt">
|
1546
|
+
<xsl:value-of select="$linebreak"/>
|
1547
|
+
<xsl:value-of select="$linebreak"/>
|
1548
|
+
</fo:block>
|
1549
|
+
<fo:block font-weight="bold" margin-top="18pt" margin-bottom="18pt">
|
1550
|
+
<xsl:value-of select="$i18n_keywords"/>
|
1551
|
+
</fo:block>
|
1552
|
+
<fo:block>
|
1553
|
+
<xsl:call-template name="insertKeywords"/>
|
1554
|
+
</fo:block>
|
1555
|
+
</xsl:if>
|
1465
1556
|
|
1466
|
-
|
1467
|
-
|
1557
|
+
<xsl:if test="$doctype != 'service-publication'">
|
1558
|
+
<fo:block break-after="page"/>
|
1559
|
+
</xsl:if>
|
1468
1560
|
</xsl:if>
|
1469
1561
|
</xsl:if>
|
1470
|
-
</xsl:if>
|
1471
1562
|
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1563
|
+
<xsl:if test="position() = last()">
|
1564
|
+
<!-- FOREWORD -->
|
1565
|
+
<fo:block font-size="11pt" text-align="justify">
|
1566
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:legal-statement"/>
|
1567
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:license-statement"/>
|
1568
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:boilerplate/itu:copyright-statement"/>
|
1569
|
+
</fo:block>
|
1570
|
+
|
1571
|
+
<xsl:if test="$debug = 'true'">
|
1572
|
+
<redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
|
1573
|
+
<xsl:copy-of select="$contents"/>
|
1574
|
+
</redirect:write>
|
1575
|
+
</xsl:if>
|
1479
1576
|
|
1480
|
-
|
1481
|
-
|
1482
|
-
<xsl:
|
1483
|
-
</
|
1577
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']//*[local-name() = 'clause'][@type = 'toc']">
|
1578
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
1579
|
+
<xsl:with-param name="num" select="$num"/>
|
1580
|
+
</xsl:apply-templates>
|
1484
1581
|
</xsl:if>
|
1485
1582
|
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
</xsl:if>
|
1583
|
+
</fo:flow>
|
1584
|
+
</fo:page-sequence>
|
1585
|
+
</xsl:for-each> <!-- END: preface pages -->
|
1490
1586
|
|
1491
|
-
|
1492
|
-
</fo:page-sequence>
|
1493
|
-
</xsl:for-each> <!-- END: preface pages -->
|
1587
|
+
<xsl:for-each select=".//*[local-name() = 'page_sequence'][not(parent::*[local-name() = 'preface'])][normalize-space() != '' or .//*[local-name() = 'image'] or .//*[local-name() = 'svg']]">
|
1494
1588
|
|
1495
|
-
|
1589
|
+
<!-- BODY -->
|
1590
|
+
<fo:page-sequence master-reference="document" force-page-count="no-force">
|
1496
1591
|
|
1497
|
-
|
1498
|
-
|
1592
|
+
<xsl:if test="$doctype = 'resolution'">
|
1593
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1594
|
+
</xsl:if>
|
1595
|
+
<xsl:if test="$doctype = 'service-publication'">
|
1596
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1597
|
+
<xsl:attribute name="font-family">Arial, STIX Two Math</xsl:attribute>
|
1598
|
+
</xsl:if>
|
1499
1599
|
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1600
|
+
<xsl:attribute name="master-reference">
|
1601
|
+
<xsl:text>document</xsl:text>
|
1602
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
1603
|
+
</xsl:attribute>
|
1504
1604
|
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1605
|
+
<xsl:if test="position() = 1">
|
1606
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
1607
|
+
</xsl:if>
|
1508
1608
|
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1609
|
+
<xsl:if test="$doctype = 'service-publication'">
|
1610
|
+
<xsl:attribute name="initial-page-number">auto</xsl:attribute>
|
1611
|
+
</xsl:if>
|
1612
|
+
<fo:static-content flow-name="xsl-footnote-separator">
|
1613
|
+
<fo:block>
|
1614
|
+
<fo:leader leader-pattern="rule" leader-length="30%"/>
|
1615
|
+
</fo:block>
|
1616
|
+
</fo:static-content>
|
1617
|
+
<xsl:choose>
|
1618
|
+
<xsl:when test="$doctype = 'service-publication'">
|
1619
|
+
<xsl:call-template name="insertHeaderFooterSP">
|
1620
|
+
<xsl:with-param name="footer-text" select="$footer-text"/>
|
1621
|
+
</xsl:call-template>
|
1622
|
+
</xsl:when>
|
1623
|
+
<xsl:otherwise>
|
1624
|
+
<xsl:call-template name="insertHeaderFooter">
|
1625
|
+
<xsl:with-param name="footer-text" select="$footer-text"/>
|
1626
|
+
</xsl:call-template>
|
1627
|
+
</xsl:otherwise>
|
1628
|
+
</xsl:choose>
|
1525
1629
|
|
1526
|
-
|
1630
|
+
<fo:flow flow-name="xsl-region-body">
|
1527
1631
|
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
<fo:block font-weight="bold" text-align="center" margin-top="15pt" margin-bottom="15pt" role="H1">
|
1552
|
-
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
1553
|
-
|
1554
|
-
<xsl:variable name="subtitle" select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
1555
|
-
<xsl:if test="$subtitle != ''">
|
1556
|
-
<fo:block margin-top="18pt" font-weight="normal" font-style="italic">
|
1557
|
-
<xsl:if test="$lang = 'ar'">
|
1558
|
-
<xsl:attribute name="font-style">normal</xsl:attribute>
|
1559
|
-
</xsl:if>
|
1560
|
-
<xsl:value-of select="$subtitle"/>
|
1561
|
-
</fo:block>
|
1562
|
-
</xsl:if>
|
1632
|
+
<!-- <xsl:if test="$doctype != 'service-publication' and 1 = 2">
|
1633
|
+
<fo:block-container font-size="14pt" >
|
1634
|
+
<xsl:choose>
|
1635
|
+
<xsl:when test="$doctype = 'resolution'">
|
1636
|
+
<fo:block text-align="center">
|
1637
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type='resolution' and @language = $lang]"/>
|
1638
|
+
</fo:block>
|
1639
|
+
</xsl:when>
|
1640
|
+
<xsl:when test="$doctype = 'implementers-guide'"></xsl:when>
|
1641
|
+
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1642
|
+
<fo:block font-weight="bold">
|
1643
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Internal']"/>
|
1644
|
+
</fo:block>
|
1645
|
+
</xsl:when>
|
1646
|
+
<xsl:otherwise>
|
1647
|
+
<fo:block font-weight="bold">
|
1648
|
+
<xsl:value-of select="$doctypeTitle"/>
|
1649
|
+
<xsl:text> </xsl:text>
|
1650
|
+
<xsl:value-of select="$docname"/>
|
1651
|
+
</fo:block>
|
1652
|
+
</xsl:otherwise>
|
1653
|
+
</xsl:choose>
|
1563
1654
|
|
1564
|
-
<
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1655
|
+
<fo:block font-weight="bold" text-align="center" margin-top="15pt" margin-bottom="15pt" role="H1">
|
1656
|
+
<xsl:value-of select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
1657
|
+
|
1658
|
+
<xsl:variable name="subtitle" select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
1659
|
+
<xsl:if test="$subtitle != ''">
|
1660
|
+
<fo:block margin-top="18pt" font-weight="normal" font-style="italic">
|
1568
1661
|
<xsl:if test="$lang = 'ar'">
|
1569
1662
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
1570
1663
|
</xsl:if>
|
1571
|
-
<xsl:
|
1572
|
-
</fo:
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1664
|
+
<xsl:value-of select="$subtitle"/>
|
1665
|
+
</fo:block>
|
1666
|
+
</xsl:if>
|
1667
|
+
|
1668
|
+
<xsl:variable name="resolution-placedate" select="/itu:itu-standard/itu:bibdata/itu:title[@type = 'resolution-placedate' and @language = $lang]"/>
|
1669
|
+
<xsl:if test="$doctype = 'resolution' and $resolution-placedate != ''">
|
1670
|
+
<fo:block font-size="11pt" margin-top="6pt" font-weight="normal">
|
1671
|
+
<fo:inline font-style="italic">
|
1672
|
+
<xsl:if test="$lang = 'ar'">
|
1673
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
1674
|
+
</xsl:if>
|
1675
|
+
<xsl:text>(</xsl:text><xsl:value-of select="$resolution-placedate"/><xsl:text>)</xsl:text>
|
1676
|
+
</fo:inline>
|
1677
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:bibdata/itu:note[@type = 'title-footnote']" mode="title_footnote"/>
|
1678
|
+
</fo:block>
|
1679
|
+
</xsl:if>
|
1680
|
+
</fo:block>
|
1681
|
+
</fo:block-container>
|
1682
|
+
</xsl:if> -->
|
1579
1683
|
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1684
|
+
<!-- Clause(s) -->
|
1685
|
+
<fo:block>
|
1686
|
+
<!-- Scope -->
|
1687
|
+
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:sections/itu:clause[@type='scope']" /> -->
|
1584
1688
|
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1689
|
+
<!-- Normative references -->
|
1690
|
+
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:bibliography/itu:references[@normative='true']" />
|
1691
|
+
|
1692
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:sections/*[not(@type='scope')]" />
|
1693
|
+
|
1694
|
+
<xsl:apply-templates select="/itu:itu-standard/itu:annex"/> -->
|
1591
1695
|
|
1592
|
-
|
1593
|
-
|
1696
|
+
<!-- Bibliography -->
|
1697
|
+
<!-- <xsl:apply-templates select="/itu:itu-standard/itu:bibliography/itu:references[not(@normative='true')]"/> -->
|
1594
1698
|
|
1595
|
-
|
1596
|
-
|
1699
|
+
<!-- <xsl:call-template name="processMainSectionsDefault"/> -->
|
1700
|
+
<xsl:apply-templates/>
|
1597
1701
|
|
1598
|
-
|
1702
|
+
</fo:block>
|
1599
1703
|
|
1600
|
-
|
1601
|
-
|
1704
|
+
</fo:flow>
|
1705
|
+
</fo:page-sequence>
|
1706
|
+
</xsl:for-each>
|
1602
1707
|
</xsl:for-each>
|
1603
1708
|
</xsl:for-each>
|
1604
1709
|
</xsl:for-each>
|
@@ -1648,6 +1753,7 @@
|
|
1648
1753
|
</xsl:template>
|
1649
1754
|
|
1650
1755
|
<xsl:template name="insertSeriesTitleMain">
|
1756
|
+
<xsl:param name="i18n_series"/>
|
1651
1757
|
<xsl:variable name="series_title_full" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'full'])"/>
|
1652
1758
|
<xsl:variable name="series_title">
|
1653
1759
|
<xsl:value-of select="$series_title_full"/>
|
@@ -1697,8 +1803,10 @@
|
|
1697
1803
|
|
1698
1804
|
<xsl:template match="itu:preface//itu:clause[@type = 'toc']" priority="4">
|
1699
1805
|
<xsl:param name="process">false</xsl:param>
|
1806
|
+
<xsl:param name="num"/>
|
1700
1807
|
|
1701
1808
|
<xsl:if test="$process = 'true'">
|
1809
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1702
1810
|
<xsl:if test="$doctype != 'resolution' and $doctype != 'service-publication'">
|
1703
1811
|
<fo:block break-after="page"/>
|
1704
1812
|
<fo:block-container>
|
@@ -1708,7 +1816,7 @@
|
|
1708
1816
|
|
1709
1817
|
<xsl:if test="count(*) = 1 and *[local-name() = 'title']"> <!-- if there isn't user ToC -->
|
1710
1818
|
|
1711
|
-
<xsl:for-each select="$contents//item[@display = 'true']">
|
1819
|
+
<xsl:for-each select="$contents/doc[@num = $num]//item[@display = 'true']">
|
1712
1820
|
<fo:block role="TOCI">
|
1713
1821
|
<xsl:if test="@level = 1">
|
1714
1822
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
@@ -1761,6 +1869,8 @@
|
|
1761
1869
|
</fo:block>
|
1762
1870
|
</xsl:for-each>
|
1763
1871
|
|
1872
|
+
<xsl:variable name="i18n_page"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Page.sg</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
1873
|
+
|
1764
1874
|
<!-- List of Tables -->
|
1765
1875
|
<xsl:if test="$contents//tables/table">
|
1766
1876
|
<xsl:call-template name="insertListOf_Title">
|
@@ -1806,6 +1916,7 @@
|
|
1806
1916
|
<xsl:apply-templates/>
|
1807
1917
|
</fo:block>
|
1808
1918
|
<fo:block margin-top="6pt" text-align="end" font-weight="bold">
|
1919
|
+
<xsl:variable name="i18n_page"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">Page.sg</xsl:with-param><xsl:with-param name="bibdata_updated" select="/*/itu:bibdata"/></xsl:call-template></xsl:variable>
|
1809
1920
|
<xsl:value-of select="$i18n_page"/>
|
1810
1921
|
</fo:block>
|
1811
1922
|
</xsl:template>
|
@@ -1813,6 +1924,7 @@
|
|
1813
1924
|
<xsl:template match="itu:clause[@type = 'keyword']" priority="4"/>
|
1814
1925
|
|
1815
1926
|
<xsl:template match="itu:sections//itu:p[@class = 'zzSTDTitle1']" priority="4">
|
1927
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1816
1928
|
<fo:block font-size="14pt">
|
1817
1929
|
<xsl:choose>
|
1818
1930
|
<xsl:when test="$doctype = 'resolution'">
|
@@ -1944,6 +2056,7 @@
|
|
1944
2056
|
</xsl:template>
|
1945
2057
|
|
1946
2058
|
<xsl:template match="itu:preface/*/itu:clause" priority="3">
|
2059
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1947
2060
|
<xsl:if test="$doctype != 'service-publication'">
|
1948
2061
|
<fo:block font-size="12pt">
|
1949
2062
|
<xsl:value-of select="$linebreak"/>
|
@@ -1961,6 +2074,7 @@
|
|
1961
2074
|
<xsl:variable name="level">
|
1962
2075
|
<xsl:call-template name="getLevel"/>
|
1963
2076
|
</xsl:variable>
|
2077
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1964
2078
|
<fo:block font-weight="bold" margin-top="18pt" margin-bottom="18pt" keep-with-next="always" role="H{$level}">
|
1965
2079
|
<xsl:if test="$doctype = 'service-publication'">
|
1966
2080
|
<xsl:attribute name="margin-top">24pt</xsl:attribute>
|
@@ -1982,6 +2096,7 @@
|
|
1982
2096
|
<!-- ============================= -->
|
1983
2097
|
<xsl:template match="itu:p | itu:sections/itu:p" name="paragraph">
|
1984
2098
|
<xsl:param name="split_keep-within-line"/>
|
2099
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1985
2100
|
<xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
|
1986
2101
|
<xsl:variable name="element-name">
|
1987
2102
|
<xsl:choose>
|
@@ -2067,6 +2182,7 @@
|
|
2067
2182
|
<!-- title -->
|
2068
2183
|
<!-- ====== -->
|
2069
2184
|
<xsl:template match="itu:annex/itu:title">
|
2185
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2070
2186
|
<fo:block font-size="14pt" font-weight="bold" text-align="center" margin-bottom="18pt" role="H1">
|
2071
2187
|
<fo:block>
|
2072
2188
|
<xsl:apply-templates/>
|
@@ -2095,6 +2211,7 @@
|
|
2095
2211
|
|
2096
2212
|
<!-- Bibliography -->
|
2097
2213
|
<xsl:template match="itu:references[not(@normative='true')]/itu:title">
|
2214
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2098
2215
|
<fo:block font-size="14pt" font-weight="bold" text-align="center" margin-bottom="18pt" role="H1">
|
2099
2216
|
<xsl:if test="$doctype = 'implementers-guide'">
|
2100
2217
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -2111,6 +2228,8 @@
|
|
2111
2228
|
<xsl:call-template name="getLevel"/>
|
2112
2229
|
</xsl:variable>
|
2113
2230
|
|
2231
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2232
|
+
|
2114
2233
|
<xsl:variable name="font-size">
|
2115
2234
|
<xsl:choose>
|
2116
2235
|
<xsl:when test="$level = 1 and $doctype = 'resolution'">14pt</xsl:when>
|
@@ -2369,6 +2488,7 @@
|
|
2369
2488
|
</xsl:template>
|
2370
2489
|
|
2371
2490
|
<xsl:template match="itu:ul | itu:ol | itu:sections/itu:ul | itu:sections/itu:ol" mode="list" priority="2">
|
2491
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2372
2492
|
<xsl:if test="preceding-sibling::*[1][local-name() = 'title'] and $doctype != 'service-publication'">
|
2373
2493
|
<fo:block padding-top="-8pt" font-size="1pt"> </fo:block>
|
2374
2494
|
</xsl:if>
|
@@ -2405,6 +2525,7 @@
|
|
2405
2525
|
</xsl:template>
|
2406
2526
|
|
2407
2527
|
<xsl:template match="itu:li" priority="2">
|
2528
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2408
2529
|
<xsl:choose>
|
2409
2530
|
<xsl:when test="$doctype = 'service-publication'">
|
2410
2531
|
<fo:block id="{@id}">
|
@@ -2463,6 +2584,7 @@
|
|
2463
2584
|
<!-- <xsl:if test="local-name(ancestor::itu:li[1]/..) = 'ul'">
|
2464
2585
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
2465
2586
|
</xsl:if> -->
|
2587
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2466
2588
|
<xsl:if test="not(preceding-sibling::*) and parent::itu:li and $doctype = 'service-publication'">
|
2467
2589
|
<fo:inline padding-right="9mm">
|
2468
2590
|
<xsl:if test="$lang = 'ar'">
|
@@ -2490,6 +2612,140 @@
|
|
2490
2612
|
</fo:inline>
|
2491
2613
|
</xsl:template>
|
2492
2614
|
|
2615
|
+
<!-- https://github.com/metanorma/metanorma-itu/issues/607 -->
|
2616
|
+
<xsl:template match="*[local-name() = 'references']/*[local-name() = 'bibitem'][1]" priority="5">
|
2617
|
+
<xsl:param name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2618
|
+
|
2619
|
+
<xsl:variable name="docidentifier_metanorma_ordinal" select="normalize-space(itu:docidentifier[@type = 'metanorma-ordinal'])"/>
|
2620
|
+
|
2621
|
+
<xsl:variable name="bibitem_label">
|
2622
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
2623
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
2624
|
+
</xsl:apply-templates>
|
2625
|
+
</xsl:variable>
|
2626
|
+
|
2627
|
+
<xsl:choose>
|
2628
|
+
<xsl:when test="$bibitem_label != '' and $bibitem_label != $docidentifier_metanorma_ordinal">
|
2629
|
+
|
2630
|
+
<xsl:variable name="bibitems_table_simple">
|
2631
|
+
<tbody>
|
2632
|
+
<xsl:call-template name="bibitem_itu"/>
|
2633
|
+
<xsl:for-each select="following-sibling::*[local-name() = 'bibitem']">
|
2634
|
+
<xsl:call-template name="bibitem_itu"/>
|
2635
|
+
</xsl:for-each>
|
2636
|
+
</tbody>
|
2637
|
+
</xsl:variable>
|
2638
|
+
<!-- bibitems_table_simple='<xsl:copy-of select="$bibitems_table_simple"/>' -->
|
2639
|
+
|
2640
|
+
<xsl:variable name="root-style">
|
2641
|
+
<root-style xsl:use-attribute-sets="root-style"/>
|
2642
|
+
</xsl:variable>
|
2643
|
+
<!-- <xsl:variable name="font_family" select="normalize-space(substring-before(xalan:nodeset($root-style)/root-style/@font-family, ' '))"/> -->
|
2644
|
+
<xsl:variable name="font_size" select="normalize-space(translate(xalan:nodeset($root-style)/root-style/@font-size, 'pt', ''))"/>
|
2645
|
+
|
2646
|
+
<!-- maximum row length is 65 characters (experimentally calculated by char 'E', 12pt Times New Roman) -->
|
2647
|
+
<xsl:variable name="col1_widths">
|
2648
|
+
<xsl:for-each select="itu:biblio-tag | following-sibling::*[local-name() = 'bibitem']/itu:biblio-tag">
|
2649
|
+
<colwidth v="{.}"><xsl:value-of select="format-number(java:org.metanorma.fop.Util.getStringWidthByFontSize(., $font_main, $font_size), '#')"/></colwidth>
|
2650
|
+
</xsl:for-each>
|
2651
|
+
</xsl:variable>
|
2652
|
+
<!-- col1_widths='<xsl:copy-of select="$col1_widths"/>'
|
2653
|
+
font_size='<xsl:value-of select="$font_size"/>' -->
|
2654
|
+
|
2655
|
+
<xsl:variable name="col1_width_">
|
2656
|
+
<xsl:for-each select="xalan:nodeset($col1_widths)/colwidth">
|
2657
|
+
<xsl:sort select="." data-type="number"/>
|
2658
|
+
<xsl:if test="position() = last()">
|
2659
|
+
<xsl:value-of select=". * $font_size * 0.0264583333"/> <!-- em to mm: (em * em size) * 0.0264583333 -->
|
2660
|
+
</xsl:if>
|
2661
|
+
</xsl:for-each>
|
2662
|
+
<!-- <xsl:for-each select="itu:biblio-tag | following-sibling::*[local-name() = 'bibitem']/itu:biblio-tag">
|
2663
|
+
<xsl:sort select="string-length(.)" data-type="number" />
|
2664
|
+
<xsl:if test="position() = last()">
|
2665
|
+
<xsl:value-of select="string-length(.)" />
|
2666
|
+
</xsl:if>
|
2667
|
+
</xsl:for-each> -->
|
2668
|
+
</xsl:variable>
|
2669
|
+
<xsl:variable name="col1_width" select="format-number(number(normalize-space($col1_width_)), '#') + 10"/>
|
2670
|
+
|
2671
|
+
<!-- col1_width='<xsl:value-of select="$col1_width"/>'
|
2672
|
+
width_effective='<xsl:value-of select="$width_effective"/>' -->
|
2673
|
+
|
2674
|
+
<xsl:variable name="colwidths">
|
2675
|
+
<xsl:choose>
|
2676
|
+
<!-- <xsl:when test="$col1_width < 50">
|
2677
|
+
<column><xsl:value-of select="$col1_width"/></column>
|
2678
|
+
<column><xsl:value-of select="65 - $col1_width"/></column>
|
2679
|
+
</xsl:when> -->
|
2680
|
+
<xsl:when test="$col1_width < $width_effective div 2">
|
2681
|
+
<column><xsl:value-of select="$col1_width"/></column>
|
2682
|
+
<column><xsl:value-of select="$width_effective - $col1_width"/></column>
|
2683
|
+
</xsl:when>
|
2684
|
+
|
2685
|
+
<xsl:otherwise>
|
2686
|
+
<column>1</column>
|
2687
|
+
<column>1</column>
|
2688
|
+
</xsl:otherwise>
|
2689
|
+
</xsl:choose>
|
2690
|
+
</xsl:variable>
|
2691
|
+
|
2692
|
+
<fo:table width="100%" table-layout="fixed">
|
2693
|
+
<xsl:for-each select="xalan:nodeset($colwidths)/column">
|
2694
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
2695
|
+
</xsl:for-each>
|
2696
|
+
<fo:table-body>
|
2697
|
+
<xsl:for-each select="xalan:nodeset($bibitems_table_simple)//tr">
|
2698
|
+
<fo:table-row>
|
2699
|
+
<fo:table-cell><fo:block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-style"><xsl:copy-of select="td[1]/node()"/></fo:block></fo:table-cell>
|
2700
|
+
<fo:table-cell><fo:block xsl:use-attribute-sets="bibitem-non-normative-style"><xsl:copy-of select="td[2]/node()"/></fo:block></fo:table-cell>
|
2701
|
+
</fo:table-row>
|
2702
|
+
</xsl:for-each>
|
2703
|
+
|
2704
|
+
</fo:table-body>
|
2705
|
+
</fo:table>
|
2706
|
+
|
2707
|
+
</xsl:when>
|
2708
|
+
<xsl:otherwise>
|
2709
|
+
<xsl:for-each select=". | following-sibling::*[local-name() = 'bibitem']">
|
2710
|
+
<xsl:choose>
|
2711
|
+
<xsl:when test="ancestor::*[local-name() = 'references'][1][not(@normative='true')]">
|
2712
|
+
<xsl:call-template name="bibitem_non_normative">
|
2713
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
2714
|
+
</xsl:call-template>
|
2715
|
+
</xsl:when>
|
2716
|
+
<xsl:otherwise> <!-- normative reference -->
|
2717
|
+
<xsl:call-template name="bibitem">
|
2718
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
2719
|
+
</xsl:call-template>
|
2720
|
+
</xsl:otherwise>
|
2721
|
+
</xsl:choose>
|
2722
|
+
|
2723
|
+
</xsl:for-each>
|
2724
|
+
</xsl:otherwise>
|
2725
|
+
</xsl:choose>
|
2726
|
+
</xsl:template>
|
2727
|
+
|
2728
|
+
<xsl:template name="bibitem_itu">
|
2729
|
+
<xsl:variable name="bibitem_label">
|
2730
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
2731
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
2732
|
+
</xsl:apply-templates>
|
2733
|
+
</xsl:variable>
|
2734
|
+
|
2735
|
+
<xsl:variable name="bibitem_body">
|
2736
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
2737
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
2738
|
+
</xsl:apply-templates>
|
2739
|
+
<xsl:apply-templates select="itu:formattedref"/>
|
2740
|
+
</xsl:variable>
|
2741
|
+
|
2742
|
+
<tr id="{@id}">
|
2743
|
+
<td><xsl:copy-of select="$bibitem_label"/></td>
|
2744
|
+
<td><xsl:copy-of select="$bibitem_body"/></td>
|
2745
|
+
</tr>
|
2746
|
+
|
2747
|
+
</xsl:template>
|
2748
|
+
|
2493
2749
|
<!--
|
2494
2750
|
<xsl:template match="itu:annex/itu:clause">
|
2495
2751
|
<xsl:apply-templates />
|
@@ -2512,6 +2768,7 @@
|
|
2512
2768
|
</xsl:template> -->
|
2513
2769
|
|
2514
2770
|
<xsl:template name="insertHeaderFooter">
|
2771
|
+
<xsl:param name="footer-text"/>
|
2515
2772
|
<fo:static-content flow-name="footer-even" font-family="Times New Roman" font-size="11pt" role="artifact">
|
2516
2773
|
<fo:block-container height="19mm" display-align="after">
|
2517
2774
|
<fo:table table-layout="fixed" width="100%" display-align="after">
|
@@ -2551,6 +2808,7 @@
|
|
2551
2808
|
</xsl:template>
|
2552
2809
|
|
2553
2810
|
<xsl:template name="insertHeaderFooterSP">
|
2811
|
+
<xsl:param name="footer-text"/>
|
2554
2812
|
<fo:static-content flow-name="footer-even" role="artifact">
|
2555
2813
|
<fo:block-container height="20mm">
|
2556
2814
|
<fo:table table-layout="fixed" width="100%" margin-top="3mm">
|
@@ -2664,7 +2922,8 @@
|
|
2664
2922
|
</svg>
|
2665
2923
|
</xsl:variable>
|
2666
2924
|
|
2667
|
-
<xsl:
|
2925
|
+
<xsl:template name="Image-ITU-Globe-Logo-Blue">
|
2926
|
+
<xsl:param name="color_cover_itu_logo"/>
|
2668
2927
|
<svg xmlns="http://www.w3.org/2000/svg" id="ITU-logo" data-name="Layer 1" width="272" height="300" viewBox="0 0 272 300">
|
2669
2928
|
<defs>
|
2670
2929
|
<style>.cls-1{fill:<xsl:value-of select="$color_cover_itu_logo"/>;}</style>
|
@@ -2675,9 +2934,11 @@
|
|
2675
2934
|
<path class="cls-1" d="M244.46942,124.04334a1.40422,1.40422,0,0,1,1.40663,1.40094v43.22185c0,28.627-15.0027,43.76154-43.38279,43.76154-27.4157,0-41.31559-14.93933-41.31559-44.4046V125.44428a1.39921,1.39921,0,0,1,1.401-1.40094h25.38284a1.40043,1.40043,0,0,1,1.40664,1.40094v42.441c0,9.33564,2.45758,20.46263,14.1585,20.46263,9.5251,0,14.1529-6.69457,14.1529-20.46263v-42.441a1.404,1.404,0,0,1,1.40664-1.40094h25.3832"/>
|
2676
2935
|
<path class="cls-1" d="M271.12012,299c-16.84562-8.30792-35.804-17.7871-53.2867-28.20789q4.4696-3.46207,8.635-7.28018A133.03915,133.03915,0,0,0,247.28128,89.2695a134.47457,134.47457,0,0,0-183.33695-38.91C53.0126,35.11588,42.035,18.58043,30.43146,1,34.083,8.41225,44.91131,31.26336,57.60572,54.60822A135.0389,135.0389,0,0,0,.87988,164.51161,132.39673,132.39673,0,0,0,14.19454,222.5522,134.51424,134.51424,0,0,0,209.97884,276.436c20.48556,8.47442,41.07449,15.55367,61.14128,22.564M122.93256,287.31035a124.4229,124.4229,0,0,1-79.12931-39.63342,33.60229,33.60229,0,0,1-5.5575-15.96706,175.63893,175.63893,0,0,0,46.236,31.6298,187.00148,187.00148,0,0,0,59.79738,17.44261c-6.9757,4.87453-14.19285,7.13093-21.34657,6.52807M35.2888,220.36472c-.12055,1.24016-.19519,2.4516-.24705,3.65157-1.11368-1.21145-2.21053-2.42291-3.25517-3.65157H27.79026c2.23365,2.74441,4.65654,5.44865,7.22871,8.107a45.77546,45.77546,0,0,0,1.52718,10.55285A122.68891,122.68891,0,0,1,31.91274,96.4923a67.04283,67.04283,0,0,0-1.91757,18.82631H32.998a60.01641,60.01641,0,0,1,4.93163-27.09979A124.9733,124.9733,0,0,1,54.3905,71.115q4.70245-2.64395,9.6516-4.9262c7.3377,12.87816,14.97957,25.13044,22.00714,34.18475a148.36379,148.36379,0,0,1-23.71234-.49375l1.28609.36171c-.40756-.03445-.8095-.07464-1.223-.11483,2.50313,5.2075,5.24211,10.26575,8.14719,15.192h51.174q-4.01332-3.28127-7.90049-6.80366A214.83757,214.83757,0,0,1,150.4569,84.37778a53.34945,53.34945,0,0,0,15.33,11.7241,55.86873,55.86873,0,0,0,23.69482,6.4649c.90166,4.13961,1.67681,8.39979,2.31986,12.75183h3.05436q-.94722-6.53667-2.29077-12.77481c7.64748-.32152,14.16411-2.77312,18.07423-7.25146a134.07139,134.07139,0,0,1,17.02329,20.02627h3.6459A136.97749,136.97749,0,0,0,212.41925,92.812a16.79184,16.79184,0,0,0,1.36633-12.93552,28.74433,28.74433,0,0,0-4.31767-8.95674,30.75992,30.75992,0,0,1,14.968,7.02761,122.772,122.772,0,0,1,27.39258,131.0722c-10.52418,21.89225-35.98762,33.78285-67.28436,34.65556,13.21689-3.34152,23.74668-7.92323,36.22872-15.82926-4.66776-2.14155-9.35268-4.48408-14.038-6.98737-1.44658.07464-2.91069.12057-4.4207.12057-26.07215,0-42.30907-11.483-47.59113-34.18476-8.18749-6.27545-16.18541-12.815-23.91909-19.48085V186.312c10.95486,9.9787,21.89219,19.14211,32.10623,27.5878-7.85984,5.23625-33.30611,12.96428-38.29,13.837q6.425,5.14149,13.00454,9.78347a193.15732,193.15732,0,0,1-31.4229-11.83893q-1.50755-.72342-2.99724-1.46982c-.14333-.06891-.2814-.13779-.41912-.20669q-2.79014-1.40381-5.506-2.87648a142.74922,142.74922,0,0,1-33.249-24.631v4.21425q4.43541,4.2975,9.41015,8.2907a161.36744,161.36744,0,0,0,33.77149,20.4741,193.87776,193.87776,0,0,0,37.5954,13.00445q10.4809,6.97591,21.226,12.9413c-.08025.14355-.16646.29281-.25267.4421-5.52876,9.37583-11.54042,16.78233-17.79283,22.05875-19.77944-1.72244-41.33837-7.50411-62.26618-17.5115-18.82626-9.00265-35.19529-20.5832-47.72885-33.30632a59.25825,59.25825,0,0,1,.32135-6.74049ZM143.4006,71.93026a29.50071,29.50071,0,0,0,5.09283,10.05906,219.33257,219.33257,0,0,0-36.93484,24.46443c-13.62445-12.64847-26.25017-27.427-38.72625-43.98547.06869-.023.13211-.05738.2008-.08038.01156-.00574.02873-.01147.0403-.01721v.00574A109.521,109.521,0,0,1,90.648,57.42727a126.6736,126.6736,0,0,1,54.11372,1.57318,16.75412,16.75412,0,0,0-1.36108,12.92981m2.917-.77512a13.70221,13.70221,0,0,1,1.3835-11.18439c.0403-.06316.09182-.12059.13212-.18371a143.44783,143.44783,0,0,1,28.32857,10.93177q-2.86792.82678-5.82768,1.83727a157.61385,157.61385,0,0,0-19.06175,8.03234,26.81162,26.81162,0,0,1-4.95476-9.43328m31.05564-3.198A147.18752,147.18752,0,0,0,150.02657,57.255c3.72019-3.37024,9.47919-5.08123,16.14476-5.0927a69.51757,69.51757,0,0,1,11.20191,15.7948m-6.7693-15.5594a54.77565,54.77565,0,0,1,19.40027,5.9941,52.42951,52.42951,0,0,1,12.06888,8.58352,78.61407,78.61407,0,0,0-20.57772,2.34825,79.14234,79.14234,0,0,0-10.89143-16.92587m.70612,23.01761c2.90508-.9933,5.73587-1.83728,8.50884-2.555q1.83451,3.953,3.47944,8.34234a152.17933,152.17933,0,0,1,5.50038,18.37848,53.66044,53.66044,0,0,1-21.61675-6.1606,50.91755,50.91755,0,0,1-13.90024-10.461,154.40473,154.40473,0,0,1,18.02833-7.54427m14.81872,4.731q-.973-2.60091-2.01533-5.05249a142.63376,142.63376,0,0,1,24.3326,18.12584c-3.45071,4.07645-9.43328,6.2295-16.52988,6.40748a157.66347,157.66347,0,0,0-5.78739-19.48083M184.412,71.781a69.52887,69.52887,0,0,1,20.74978-1.487A27.61015,27.61015,0,0,1,210.863,80.65155a14.07557,14.07557,0,0,1-.71769,10.01889A146.12178,146.12178,0,0,0,184.412,71.781m6.98165-16.07038a55.6803,55.6803,0,0,0-23.71794-6.45916,43.3225,43.3225,0,0,0-7.05069-5.71279,124.27675,124.27675,0,0,1,53.95848,25.47493,42.49122,42.49122,0,0,0-7.96322-1.69373,53.22364,53.22364,0,0,0-15.22663-11.60925m-28.1905-6.35583c-6.95293.54545-12.86086,2.89944-16.53549,7.01035a129.93743,129.93743,0,0,0-56.59934-1.90043,113.03233,113.03233,0,0,0-18.574,5.27067v.01148c-.178.0689-.36164.14354-.54527.21245-.13772-.1895-.287-.38469-.42508-.57414a124.53515,124.53515,0,0,1,65.22347-18.31533q5.55453,0,10.9892.47654c5.74709.67747,11.30494,3.353,16.46646,7.80841M148.72892,281.20141c3.85265.30431,7.66465.47655,11.41988.47655,2.78453,0,5.54629-.08612,8.26179-.25837,3.69741-.22965,7.25744-.63156,10.67906-1.17125a124.84385,124.84385,0,0,1-41.6082,7.68209,45.52058,45.52058,0,0,0,11.24747-6.729m3.44475-2.97408a92.61049,92.61049,0,0,0,16.20818-20.83009c.10338-.17224.20115-.34447.29857-.51671,9.70907,5.31086,19.54395,10.08778,29.42508,14.47425-.683.39616-1.3779.76936-2.06685,1.1483-12.26968,4.7482-27.3698,6.68882-43.865,5.72425m31.343-31.515c4.19678-.08612,8.33643-.36171,12.37831-.83826,20.75575-2.46308,37.45173-9.88683,48.60739-21.364a124.33918,124.33918,0,0,1-36.27463,40.34537,214.60728,214.60728,0,0,1-24.71107-18.14309"/>
|
2677
2936
|
</svg>
|
2678
|
-
</xsl:
|
2937
|
+
</xsl:template>
|
2679
2938
|
|
2680
2939
|
<xsl:template name="insertImageCoverColorBand">
|
2940
|
+
<xsl:param name="bureau"/>
|
2941
|
+
<xsl:param name="doctype"/>
|
2681
2942
|
<xsl:variable name="color">
|
2682
2943
|
<xsl:choose>
|
2683
2944
|
<xsl:when test="$bureau = 'R'">
|
@@ -3429,6 +3690,7 @@
|
|
3429
3690
|
<xsl:template name="refine_table-container-style">
|
3430
3691
|
<xsl:param name="margin-side"/>
|
3431
3692
|
|
3693
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3432
3694
|
<xsl:if test="$doctype = 'service-publication' and $lang != 'ar'">
|
3433
3695
|
<xsl:attribute name="font-family">Calibri</xsl:attribute>
|
3434
3696
|
</xsl:if>
|
@@ -3447,6 +3709,7 @@
|
|
3447
3709
|
|
3448
3710
|
<xsl:call-template name="setBordersTableArray"/>
|
3449
3711
|
|
3712
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3450
3713
|
<xsl:if test="$doctype = 'service-publication'">
|
3451
3714
|
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
|
3452
3715
|
</xsl:if>
|
@@ -3481,6 +3744,7 @@
|
|
3481
3744
|
|
3482
3745
|
<xsl:call-template name="setBordersTableArray"/>
|
3483
3746
|
|
3747
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3484
3748
|
<xsl:if test="$doctype = 'service-publication'">
|
3485
3749
|
<xsl:attribute name="border-bottom">1.1pt solid black</xsl:attribute>
|
3486
3750
|
</xsl:if>
|
@@ -3517,6 +3781,7 @@
|
|
3517
3781
|
|
3518
3782
|
<xsl:call-template name="setBordersTableArray"/>
|
3519
3783
|
|
3784
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3520
3785
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3521
3786
|
<xsl:if test="$doctype != 'service-publication'">
|
3522
3787
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
@@ -3559,6 +3824,7 @@
|
|
3559
3824
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3560
3825
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
3561
3826
|
</xsl:if>
|
3827
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3562
3828
|
<xsl:if test="$doctype = 'service-publication'">
|
3563
3829
|
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
|
3564
3830
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
@@ -3576,6 +3842,7 @@
|
|
3576
3842
|
|
3577
3843
|
<xsl:template name="refine_table-footer-cell-style">
|
3578
3844
|
|
3845
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3579
3846
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3580
3847
|
<xsl:if test="$doctype != 'service-publication'">
|
3581
3848
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
@@ -3976,6 +4243,9 @@
|
|
3976
4243
|
|
3977
4244
|
</xsl:attribute-set>
|
3978
4245
|
|
4246
|
+
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4247
|
+
</xsl:attribute-set>
|
4248
|
+
|
3979
4249
|
<xsl:attribute-set name="definition-style">
|
3980
4250
|
|
3981
4251
|
</xsl:attribute-set>
|
@@ -4102,6 +4372,7 @@
|
|
4102
4372
|
|
4103
4373
|
<xsl:template name="refine_fn-body-style">
|
4104
4374
|
|
4375
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
4105
4376
|
<xsl:if test="$doctype = 'service-publication'">
|
4106
4377
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4107
4378
|
</xsl:if>
|
@@ -5052,6 +5323,7 @@
|
|
5052
5323
|
|
5053
5324
|
<xsl:variable name="table-preamble">
|
5054
5325
|
|
5326
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
5055
5327
|
<xsl:if test="$doctype != 'service-publication'">
|
5056
5328
|
<fo:block space-before="18pt"> </fo:block>
|
5057
5329
|
</xsl:if>
|
@@ -5797,6 +6069,7 @@
|
|
5797
6069
|
</xsl:choose>
|
5798
6070
|
</xsl:for-each>
|
5799
6071
|
|
6072
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
5800
6073
|
<xsl:if test="$doctype = 'service-publication'">
|
5801
6074
|
<xsl:attribute name="border">none</xsl:attribute>
|
5802
6075
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
@@ -5827,6 +6100,7 @@
|
|
5827
6100
|
|
5828
6101
|
<!-- fn will be processed inside 'note' processing -->
|
5829
6102
|
|
6103
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
5830
6104
|
<xsl:if test="$doctype = 'service-publication'">
|
5831
6105
|
<fo:block margin-top="7pt" margin-bottom="2pt" role="SKIP"><fo:inline>____________</fo:inline></fo:block>
|
5832
6106
|
</xsl:if>
|
@@ -6027,6 +6301,7 @@
|
|
6027
6301
|
|
6028
6302
|
<xsl:template name="setTableRowAttributes">
|
6029
6303
|
|
6304
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
6030
6305
|
<xsl:if test="$doctype = 'service-publication'">
|
6031
6306
|
<xsl:attribute name="min-height">5mm</xsl:attribute>
|
6032
6307
|
</xsl:if>
|
@@ -6247,7 +6522,9 @@
|
|
6247
6522
|
<xsl:with-param name="element">
|
6248
6523
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
|
6249
6524
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
6525
|
+
|
6250
6526
|
<xsl:copy-of select="$current_fn_number_text"/>
|
6527
|
+
|
6251
6528
|
</fo:inline>
|
6252
6529
|
</fo:basic-link>
|
6253
6530
|
</xsl:with-param>
|
@@ -6266,8 +6543,7 @@
|
|
6266
6543
|
|
6267
6544
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
6268
6545
|
|
6269
|
-
<
|
6270
|
-
|
6546
|
+
<xsl:variable name="fn_block">
|
6271
6547
|
<xsl:call-template name="refine_fn-body-style"/>
|
6272
6548
|
|
6273
6549
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
@@ -6275,9 +6551,15 @@
|
|
6275
6551
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
6276
6552
|
|
6277
6553
|
<xsl:value-of select="$current_fn_number_text"/>
|
6554
|
+
|
6278
6555
|
</fo:inline>
|
6279
6556
|
<xsl:apply-templates/>
|
6280
|
-
</
|
6557
|
+
</xsl:variable>
|
6558
|
+
|
6559
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
6560
|
+
<xsl:copy-of select="$fn_block"/>
|
6561
|
+
</fo:block>
|
6562
|
+
|
6281
6563
|
</fo:block-container>
|
6282
6564
|
</fo:footnote-body>
|
6283
6565
|
</fo:footnote>
|
@@ -12362,14 +12644,17 @@
|
|
12362
12644
|
</fo:block>
|
12363
12645
|
</xsl:template>
|
12364
12646
|
|
12365
|
-
<xsl:template match="*[local-name() = 'domain']">
|
12647
|
+
<!-- <xsl:template match="*[local-name() = 'domain']"> -->
|
12366
12648
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
12367
12649
|
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
12368
12650
|
<xsl:text> </xsl:text> -->
|
12369
|
-
<xsl:if test="not(@hidden = 'true')">
|
12651
|
+
<!-- <xsl:if test="not(@hidden = 'true')">
|
12370
12652
|
<xsl:apply-templates/>
|
12371
12653
|
</xsl:if>
|
12372
|
-
</xsl:template>
|
12654
|
+
</xsl:template> -->
|
12655
|
+
|
12656
|
+
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
12657
|
+
<xsl:template match="*[local-name() = 'domain']"/>
|
12373
12658
|
|
12374
12659
|
<xsl:template match="*[local-name() = 'admitted']">
|
12375
12660
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
@@ -12384,9 +12669,11 @@
|
|
12384
12669
|
</xsl:template>
|
12385
12670
|
|
12386
12671
|
<xsl:template name="setStyle_preferred">
|
12387
|
-
|
12388
|
-
|
12389
|
-
|
12672
|
+
|
12673
|
+
<xsl:if test="*[local-name() = 'strong']">
|
12674
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
12675
|
+
</xsl:if>
|
12676
|
+
|
12390
12677
|
</xsl:template>
|
12391
12678
|
|
12392
12679
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -12396,6 +12683,17 @@
|
|
12396
12683
|
</xsl:template>
|
12397
12684
|
<!-- End Preferred, admitted, deprecated -->
|
12398
12685
|
|
12686
|
+
<xsl:template match="*[local-name() = 'fmt-related']">
|
12687
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
12688
|
+
<xsl:apply-templates/>
|
12689
|
+
</fo:block>
|
12690
|
+
</xsl:template>
|
12691
|
+
<xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
|
12692
|
+
<fo:block>
|
12693
|
+
<xsl:apply-templates/>
|
12694
|
+
</fo:block>
|
12695
|
+
</xsl:template>
|
12696
|
+
|
12399
12697
|
<!-- ========== -->
|
12400
12698
|
<!-- definition -->
|
12401
12699
|
<!-- ========== -->
|
@@ -13308,11 +13606,16 @@
|
|
13308
13606
|
|
13309
13607
|
<!-- Normative references -->
|
13310
13608
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
13609
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
13311
13610
|
|
13312
|
-
<
|
13313
|
-
|
13314
|
-
<xsl:
|
13315
|
-
|
13611
|
+
<xsl:choose>
|
13612
|
+
<xsl:when test="$skip = 'true'"><!-- skip bibitem --></xsl:when>
|
13613
|
+
<xsl:otherwise>
|
13614
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
13615
|
+
<xsl:call-template name="processBibitem"/>
|
13616
|
+
</fo:block>
|
13617
|
+
</xsl:otherwise>
|
13618
|
+
</xsl:choose>
|
13316
13619
|
|
13317
13620
|
</xsl:template> <!-- bibitem -->
|
13318
13621
|
|
@@ -13320,9 +13623,14 @@
|
|
13320
13623
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
13321
13624
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
13322
13625
|
|
13323
|
-
<
|
13324
|
-
<xsl:
|
13325
|
-
|
13626
|
+
<xsl:choose>
|
13627
|
+
<xsl:when test="$skip = 'true'"><!-- skip bibitem --></xsl:when>
|
13628
|
+
<xsl:otherwise>
|
13629
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-style">
|
13630
|
+
<xsl:call-template name="processBibitem"/>
|
13631
|
+
</fo:block>
|
13632
|
+
</xsl:otherwise>
|
13633
|
+
</xsl:choose>
|
13326
13634
|
|
13327
13635
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
13328
13636
|
|
@@ -13361,6 +13669,7 @@
|
|
13361
13669
|
|
13362
13670
|
<!-- start ITU bibitem processing -->
|
13363
13671
|
<!-- Example: [ITU-T A.23] ITU-T A.23, Recommendation ITU-T A.23, Annex A (2014), Guide for ITU-T and ISO/IEC JTC 1 cooperation. -->
|
13672
|
+
<xsl:variable name="doctype" select="ancestor::itu:itu-standard/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
13364
13673
|
<xsl:if test="$doctype = 'implementers-guide'">
|
13365
13674
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
13366
13675
|
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
@@ -14053,7 +14362,8 @@
|
|
14053
14362
|
<!-- add @id - first element with @id plus '_element_name' -->
|
14054
14363
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
14055
14364
|
<xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
|
14056
|
-
<xsl:
|
14365
|
+
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
|
14366
|
+
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
14057
14367
|
</xsl:if>
|
14058
14368
|
</xsl:template>
|
14059
14369
|
|
@@ -14110,6 +14420,31 @@
|
|
14110
14420
|
<xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
14111
14421
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
14112
14422
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
14423
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
14424
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
|
14425
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
|
14426
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
|
14427
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
14428
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
|
14429
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
|
14430
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
|
14431
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
|
14432
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
|
14433
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
|
14434
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
|
14435
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
|
14436
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
|
14437
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
|
14438
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
|
14439
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
|
14440
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
|
14441
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
|
14442
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
|
14443
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
|
14444
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
|
14445
|
+
|
14446
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
14447
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
|
14113
14448
|
|
14114
14449
|
<xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
|
14115
14450
|
<xsl:copy>
|
@@ -14154,6 +14489,94 @@
|
|
14154
14489
|
</xsl:element>
|
14155
14490
|
</xsl:template>
|
14156
14491
|
|
14492
|
+
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
14493
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
|
14494
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14495
|
+
</xsl:template>
|
14496
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
|
14497
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
14498
|
+
<xsl:copy-of select="@*"/>
|
14499
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14500
|
+
</xsl:element>
|
14501
|
+
</xsl:template>
|
14502
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
|
14503
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14504
|
+
</xsl:template>
|
14505
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
|
14506
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
14507
|
+
<xsl:copy-of select="@*"/>
|
14508
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14509
|
+
</xsl:element>
|
14510
|
+
</xsl:template>
|
14511
|
+
|
14512
|
+
<xsl:template match="*[local-name() = 'fmt-admitted']"/>
|
14513
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
|
14514
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14515
|
+
</xsl:template>
|
14516
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
|
14517
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
14518
|
+
<xsl:copy-of select="@*"/>
|
14519
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14520
|
+
</xsl:element>
|
14521
|
+
</xsl:template>
|
14522
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
|
14523
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14524
|
+
</xsl:template>
|
14525
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
|
14526
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
14527
|
+
<xsl:copy-of select="@*"/>
|
14528
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14529
|
+
</xsl:element>
|
14530
|
+
</xsl:template>
|
14531
|
+
|
14532
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates']"/>
|
14533
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
|
14534
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14535
|
+
</xsl:template>
|
14536
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
|
14537
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
14538
|
+
<xsl:copy-of select="@*"/>
|
14539
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14540
|
+
</xsl:element>
|
14541
|
+
</xsl:template>
|
14542
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
|
14543
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14544
|
+
</xsl:template>
|
14545
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
|
14546
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
14547
|
+
<xsl:copy-of select="@*"/>
|
14548
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14549
|
+
</xsl:element>
|
14550
|
+
</xsl:template>
|
14551
|
+
|
14552
|
+
<xsl:template match="*[local-name() = 'fmt-definition']"/>
|
14553
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
|
14554
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
14555
|
+
<xsl:copy-of select="@*"/>
|
14556
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14557
|
+
</xsl:element>
|
14558
|
+
</xsl:template>
|
14559
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
|
14560
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
14561
|
+
<xsl:copy-of select="@*"/>
|
14562
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14563
|
+
</xsl:element>
|
14564
|
+
</xsl:template>
|
14565
|
+
|
14566
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']"/>
|
14567
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
|
14568
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
14569
|
+
<xsl:copy-of select="@*"/>
|
14570
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14571
|
+
</xsl:element>
|
14572
|
+
</xsl:template>
|
14573
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
|
14574
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
14575
|
+
<xsl:copy-of select="@*"/>
|
14576
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14577
|
+
</xsl:element>
|
14578
|
+
</xsl:template>
|
14579
|
+
|
14157
14580
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14158
14581
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14159
14582
|
</xsl:template>
|
@@ -15285,7 +15708,7 @@
|
|
15285
15708
|
</xsl:template>
|
15286
15709
|
|
15287
15710
|
<xsl:template name="namespaceCheck">
|
15288
|
-
<xsl:variable name="documentNS" select="namespace-uri(/*)
|
15711
|
+
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
15289
15712
|
<xsl:variable name="XSLNS">
|
15290
15713
|
|
15291
15714
|
<xsl:value-of select="document('')//*/namespace::itu"/>
|
@@ -15375,6 +15798,9 @@
|
|
15375
15798
|
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
|
15376
15799
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
15377
15800
|
</xsl:when>
|
15801
|
+
<xsl:when test="string-length($bibdata_updated) != ''">
|
15802
|
+
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
15803
|
+
</xsl:when>
|
15378
15804
|
<xsl:when test="$formatted = 'true'">
|
15379
15805
|
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
15380
15806
|
</xsl:when>
|