metanorma-itu 2.5.14 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/itu.implementers-guide.xsl +470 -202
- data/lib/isodoc/itu/itu.in-force.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +470 -202
- data/lib/isodoc/itu/itu.recommendation.xsl +470 -202
- data/lib/isodoc/itu/itu.resolution.xsl +470 -202
- data/lib/isodoc/itu/itu.service-publication.xsl +470 -202
- data/lib/isodoc/itu/itu.technical-paper.xsl +470 -202
- data/lib/isodoc/itu/itu.technical-report.xsl +470 -202
- data/lib/isodoc/itu/presentation_xml_convert.rb +4 -3
- data/lib/isodoc/itu/terms.rb +1 -1
- data/lib/isodoc/itu/word_convert.rb +1 -1
- data/lib/isodoc/itu/xref_section.rb +1 -1
- data/lib/metanorma/itu/isodoc.rng +12 -6
- data/lib/metanorma/itu/itu.rng +27 -30
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +4 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:itu="https://www.metanorma.org/ns/
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:itu="https://www.metanorma.org/ns/standoc" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:redirect="http://xml.apache.org/xalan/redirect" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java redirect" extension-element-prefixes="redirect" version="1.0">
|
2
2
|
|
3
3
|
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
|
4
4
|
|
@@ -11,14 +11,14 @@
|
|
11
11
|
<item id="term-script" display="false">3.2</item>
|
12
12
|
-->
|
13
13
|
<xsl:variable name="contents_">
|
14
|
-
<xsl:variable name="bundle" select="count(//itu:
|
14
|
+
<xsl:variable name="bundle" select="count(//itu:metanorma) > 1"/>
|
15
15
|
|
16
16
|
<xsl:if test="normalize-space($bundle) = 'true'">
|
17
17
|
<collection firstpage_id="firstpage_id_0"/>
|
18
18
|
</xsl:if>
|
19
19
|
|
20
|
-
<xsl:for-each select="//itu:
|
21
|
-
<xsl:variable name="num"><xsl:number level="any" count="itu:
|
20
|
+
<xsl:for-each select="//itu:metanorma">
|
21
|
+
<xsl:variable name="num"><xsl:number level="any" count="itu:metanorma"/></xsl:variable>
|
22
22
|
<xsl:variable name="docidentifier"><xsl:value-of select="itu:bibdata/itu:docidentifier[@type = 'ITU']"/></xsl:variable>
|
23
23
|
<xsl:variable name="docnumber_">
|
24
24
|
<xsl:value-of select="$docidentifier"/>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
<xsl:apply-templates select="//itu:table" mode="contents"/>
|
40
40
|
|
41
|
-
<xsl:variable name="doctype" select="/itu:
|
41
|
+
<xsl:variable name="doctype" select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
42
42
|
|
43
43
|
<xsl:call-template name="processTablesFigures_Contents">
|
44
44
|
<xsl:with-param name="always" select="$doctype = 'technical-report' or $doctype = 'technical-paper'"/>
|
@@ -225,8 +225,8 @@
|
|
225
225
|
</redirect:write>
|
226
226
|
</xsl:if>
|
227
227
|
|
228
|
-
<xsl:for-each select="xalan:nodeset($updated_xml)//itu:
|
229
|
-
<xsl:variable name="num"><xsl:number level="any" count="itu:
|
228
|
+
<xsl:for-each select="xalan:nodeset($updated_xml)//itu:metanorma">
|
229
|
+
<xsl:variable name="num"><xsl:number level="any" count="itu:metanorma"/></xsl:variable>
|
230
230
|
|
231
231
|
<xsl:variable name="current_document">
|
232
232
|
<xsl:copy-of select="."/>
|
@@ -234,11 +234,11 @@
|
|
234
234
|
|
235
235
|
<xsl:for-each select="xalan:nodeset($current_document)">
|
236
236
|
|
237
|
-
<xsl:variable name="annexid" select="normalize-space(/itu:
|
237
|
+
<xsl:variable name="annexid" select="normalize-space(/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:annexid)"/>
|
238
238
|
|
239
|
-
<xsl:variable name="bureau" select="/itu:
|
239
|
+
<xsl:variable name="bureau" select="/itu:metanorma/itu:bibdata/itu:ext/itu:editorialgroup/itu:bureau"/>
|
240
240
|
|
241
|
-
<xsl:variable name="docidentifier_ITU" select="/itu:
|
241
|
+
<xsl:variable name="docidentifier_ITU" select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU']"/>
|
242
242
|
<xsl:variable name="docidentifier_ITU_left_part_" select="normalize-space(substring-before($docidentifier_ITU, ' '))"/>
|
243
243
|
<xsl:variable name="docidentifier_ITU_left_part">
|
244
244
|
<xsl:value-of select="$docidentifier_ITU_left_part_"/>
|
@@ -252,27 +252,27 @@
|
|
252
252
|
<xsl:text> </xsl:text>
|
253
253
|
</xsl:variable>
|
254
254
|
|
255
|
-
<xsl:variable name="date_published" select="/itu:
|
255
|
+
<xsl:variable name="date_published" select="/itu:metanorma/itu:bibdata/itu:date[@type = 'published']/itu:on"/>
|
256
256
|
<xsl:variable name="docdate">
|
257
257
|
<xsl:call-template name="formatDate">
|
258
258
|
<xsl:with-param name="date" select="$date_published"/>
|
259
259
|
</xsl:call-template>
|
260
260
|
</xsl:variable>
|
261
261
|
|
262
|
-
<xsl:variable name="doctype" select="/itu:
|
262
|
+
<xsl:variable name="doctype" select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
263
263
|
|
264
|
-
<xsl:variable name="docnumber" select="normalize-space(/itu:
|
264
|
+
<xsl:variable name="docnumber" select="normalize-space(/itu:metanorma/itu:bibdata/itu:docnumber)"/>
|
265
265
|
|
266
266
|
<xsl:variable name="xSTR-ACRONYM">
|
267
|
-
<xsl:variable name="x" select="/itu:
|
267
|
+
<xsl:variable name="x" select="/itu:metanorma/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'abbrev']"/>
|
268
268
|
<xsl:variable name="acronym" select="$docnumber"/>
|
269
269
|
<xsl:value-of select="concat($x,'STR-', $acronym)"/>
|
270
270
|
</xsl:variable>
|
271
271
|
|
272
272
|
<xsl:variable name="doctypeTitle">
|
273
273
|
<xsl:choose>
|
274
|
-
<xsl:when test="/itu:
|
275
|
-
<xsl:value-of select="/itu:
|
274
|
+
<xsl:when test="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]">
|
275
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
276
276
|
</xsl:when>
|
277
277
|
<xsl:otherwise>
|
278
278
|
<xsl:call-template name="capitalizeWords">
|
@@ -282,11 +282,11 @@
|
|
282
282
|
</xsl:choose>
|
283
283
|
</xsl:variable>
|
284
284
|
|
285
|
-
<xsl:variable name="isAmendment" select="normalize-space(/itu:
|
286
|
-
<xsl:variable name="isCorrigendum" select="normalize-space(/itu:
|
285
|
+
<xsl:variable name="isAmendment" select="normalize-space(/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:amendment[@language = $lang])"/>
|
286
|
+
<xsl:variable name="isCorrigendum" select="normalize-space(/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:corrigendum[@language = $lang])"/>
|
287
287
|
|
288
|
-
<xsl:variable name="TDnumber" select="normalize-space(/itu:
|
289
|
-
<xsl:variable name="provisionalIdentifier" select="normalize-space(/itu:
|
288
|
+
<xsl:variable name="TDnumber" select="normalize-space(/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-TemporaryDocument'])"/>
|
289
|
+
<xsl:variable name="provisionalIdentifier" select="normalize-space(/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-provisional'])"/>
|
290
290
|
|
291
291
|
<xsl:variable name="footer-text">
|
292
292
|
<xsl:variable name="additionalIdentifiers_">
|
@@ -297,39 +297,39 @@
|
|
297
297
|
<xsl:choose>
|
298
298
|
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
299
299
|
<xsl:variable name="date_">
|
300
|
-
<xsl:value-of select="/itu:
|
301
|
-
<xsl:if test="not(/itu:
|
300
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:version/itu:revision-date"/>
|
301
|
+
<xsl:if test="not(/itu:metanorma/itu:bibdata/itu:version/itu:revision-date)"/>
|
302
302
|
<xsl:value-of select="$date_published"/>
|
303
303
|
</xsl:variable>
|
304
304
|
<xsl:variable name="date" select="concat('(',substring($date_,1,7), ')')"/>
|
305
305
|
<xsl:value-of select="concat($xSTR-ACRONYM, $additionalIdentifiers, ' ', $date)"/>
|
306
306
|
</xsl:when>
|
307
307
|
<xsl:when test="$doctype = 'implementers-guide'">
|
308
|
-
<xsl:value-of select="/itu:
|
308
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
309
309
|
<xsl:value-of select="$additionalIdentifiers"/>
|
310
310
|
<xsl:text> for </xsl:text>
|
311
|
-
<xsl:value-of select="/itu:
|
311
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
312
312
|
<xsl:text> </xsl:text>
|
313
313
|
<xsl:variable name="date" select="concat('(',substring($date_published,1,7), ')')"/>
|
314
314
|
<xsl:value-of select="$date"/>
|
315
315
|
</xsl:when>
|
316
316
|
<xsl:when test="$doctype = 'resolution'">
|
317
317
|
<!-- WTSA-16 – Resolution 1 -->
|
318
|
-
<xsl:value-of select="/itu:
|
318
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting/@acronym"/>
|
319
319
|
<xsl:text> – </xsl:text>
|
320
320
|
<xsl:value-of select="$doctypeTitle"/>
|
321
321
|
<xsl:value-of select="$additionalIdentifiers"/>
|
322
322
|
<xsl:text> </xsl:text>
|
323
|
-
<xsl:value-of select="/itu:
|
323
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
324
324
|
</xsl:when>
|
325
325
|
<xsl:when test="$doctype = 'recommendation-supplement'">
|
326
|
-
<xsl:value-of select="/itu:
|
326
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Short']"/>
|
327
327
|
<xsl:value-of select="$additionalIdentifiers"/>
|
328
328
|
<xsl:text> </xsl:text>
|
329
329
|
<xsl:value-of select="$docdate"/>
|
330
330
|
</xsl:when>
|
331
331
|
<xsl:when test="$doctype = 'service-publication'">
|
332
|
-
<xsl:value-of select="/itu:
|
332
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-lang']"/>
|
333
333
|
<xsl:value-of select="$additionalIdentifiers"/>
|
334
334
|
</xsl:when>
|
335
335
|
<xsl:otherwise>
|
@@ -342,7 +342,7 @@
|
|
342
342
|
|
343
343
|
<xsl:variable name="en_dash_separator"> – </xsl:variable>
|
344
344
|
|
345
|
-
<xsl:variable name="document_scheme" select="normalize-space(/*[
|
345
|
+
<xsl:variable name="document_scheme" select="normalize-space(/*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
|
346
346
|
<xsl:variable name="layoutVersion_">
|
347
347
|
<xsl:choose>
|
348
348
|
<xsl:when test="$document_scheme = '' or $document_scheme = 'current'">2023</xsl:when>
|
@@ -351,21 +351,21 @@
|
|
351
351
|
</xsl:variable>
|
352
352
|
<xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
|
353
353
|
|
354
|
-
<xsl:variable name="color_cover_title_value" select="normalize-space(/itu:
|
354
|
+
<xsl:variable name="color_cover_title_value" select="normalize-space(/itu:metanorma/itu:metanorma-extension/itu:presentation-metadata/itu:color-cover-title)"/>
|
355
355
|
<xsl:variable name="color_cover_title_">
|
356
356
|
<xsl:value-of select="$color_cover_title_value"/>
|
357
357
|
<xsl:if test="$color_cover_title_value = ''">black</xsl:if>
|
358
358
|
</xsl:variable>
|
359
359
|
<xsl:variable name="color_cover_title" select="normalize-space($color_cover_title_)"/>
|
360
360
|
|
361
|
-
<xsl:variable name="cover_header_hide_value" select="normalize-space(/itu:
|
361
|
+
<xsl:variable name="cover_header_hide_value" select="normalize-space(/itu:metanorma/itu:metanorma-extension/itu:presentation-metadata/itu:cover-header-hide)"/>
|
362
362
|
<xsl:variable name="cover_header_hide_">
|
363
363
|
<xsl:value-of select="$cover_header_hide_value"/>
|
364
364
|
<xsl:if test="$cover_header_hide_value = ''">false</xsl:if>
|
365
365
|
</xsl:variable>
|
366
366
|
<xsl:variable name="cover_header_hide" select="normalize-space($cover_header_hide_)"/>
|
367
367
|
|
368
|
-
<xsl:variable name="color_cover_itu_logo_value" select="normalize-space(/itu:
|
368
|
+
<xsl:variable name="color_cover_itu_logo_value" select="normalize-space(/itu:metanorma/itu:metanorma-extension/itu:presentation-metadata/itu:color-cover-itu-logo)"/>
|
369
369
|
<xsl:variable name="color_cover_itu_logo_">
|
370
370
|
<xsl:value-of select="$color_cover_itu_logo_value"/>
|
371
371
|
<xsl:if test="$color_cover_itu_logo_value = ''">#1DA0DB</xsl:if>
|
@@ -432,13 +432,13 @@
|
|
432
432
|
<!-- collection/series (optional) -->
|
433
433
|
<fo:table-cell text-align="start">
|
434
434
|
<fo:block>
|
435
|
-
<xsl:value-of select="/itu:
|
435
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'collection']"/>
|
436
436
|
</fo:block>
|
437
437
|
</fo:table-cell>
|
438
438
|
<!-- Sector or Bureau name -->
|
439
439
|
<fo:table-cell text-align="end">
|
440
440
|
<fo:block>
|
441
|
-
<xsl:variable name="sector" select="normalize-space(/itu:
|
441
|
+
<xsl:variable name="sector" select="normalize-space(/itu:metanorma/itu:bibdata/itu:ext/itu:editorialgroup/itu:sector)"/>
|
442
442
|
<xsl:value-of select="$sector"/>
|
443
443
|
<xsl:if test="$sector = ''">
|
444
444
|
<xsl:variable name="bureau_key">
|
@@ -503,13 +503,13 @@
|
|
503
503
|
|
504
504
|
<xsl:when test="$doctype = 'service-publication'"> <!-- Flagship -->
|
505
505
|
<fo:block margin-top="11.5mm" font-size="34pt">
|
506
|
-
<xsl:value-of select="/itu:
|
506
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
507
507
|
</fo:block>
|
508
508
|
<fo:block margin-top="2mm" font-size="26pt">
|
509
|
-
<xsl:value-of select="/itu:
|
509
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
510
510
|
</fo:block>
|
511
511
|
<!-- https://github.com/metanorma/metanorma-itu/issues/474#issuecomment-1966298384 -->
|
512
|
-
<xsl:variable name="title_slogan" select="normalize-space(/itu:
|
512
|
+
<xsl:variable name="title_slogan" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'slogan'])"/>
|
513
513
|
<xsl:if test="$title_slogan != ''">
|
514
514
|
<fo:block margin-top="2mm" font-family="Adelle Devanagari" font-size="26pt">
|
515
515
|
<xsl:choose>
|
@@ -555,9 +555,9 @@
|
|
555
555
|
<xsl:when test="$doctype = 'implementers-guide'">
|
556
556
|
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
557
557
|
<xsl:text> </xsl:text>
|
558
|
-
<xsl:value-of select="/itu:
|
558
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
559
559
|
<xsl:text> </xsl:text>
|
560
|
-
<xsl:value-of select="/itu:
|
560
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
561
561
|
</xsl:when>
|
562
562
|
<xsl:when test="$doctype = 'resolution'">
|
563
563
|
<xsl:value-of select="$doctypeTitle"/>
|
@@ -620,9 +620,9 @@
|
|
620
620
|
|
621
621
|
<!-- Date, example: (11/2018) -->
|
622
622
|
<xsl:choose>
|
623
|
-
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:
|
623
|
+
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:metanorma/itu:bibdata/itu:version/itu:revision-date">
|
624
624
|
<xsl:call-template name="formatMeetingDate">
|
625
|
-
<xsl:with-param name="date" select="/itu:
|
625
|
+
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:version/itu:revision-date"/>
|
626
626
|
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
627
627
|
</xsl:call-template>
|
628
628
|
</xsl:when>
|
@@ -654,7 +654,7 @@
|
|
654
654
|
<xsl:choose>
|
655
655
|
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
656
656
|
<xsl:otherwise>
|
657
|
-
<xsl:if test="/itu:
|
657
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:series">
|
658
658
|
<fo:block font-weight="normal" margin-top="4mm">
|
659
659
|
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
660
660
|
</fo:block>
|
@@ -686,21 +686,21 @@
|
|
686
686
|
|
687
687
|
<fo:block margin-top="3pt">
|
688
688
|
<xsl:if test="$doctype = 'implementers-guide'">
|
689
|
-
<xsl:value-of select="/itu:
|
689
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
690
690
|
<xsl:text> for </xsl:text>
|
691
691
|
</xsl:if>
|
692
692
|
<xsl:if test="$doctype = 'resolution'">
|
693
693
|
<!-- Resolution 1 -->
|
694
694
|
<xsl:value-of select="$doctypeTitle"/>
|
695
695
|
<xsl:text> </xsl:text>
|
696
|
-
<xsl:value-of select="/itu:
|
696
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
697
697
|
<xsl:value-of select="$en_dash_separator"/>
|
698
698
|
</xsl:if>
|
699
|
-
<xsl:value-of select="/itu:
|
699
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
700
700
|
</fo:block>
|
701
701
|
|
702
702
|
<!-- Example: Annex F1 - ... -->
|
703
|
-
<xsl:for-each select="/itu:
|
703
|
+
<xsl:for-each select="/itu:metanorma/itu:bibdata/itu:title[@type = 'annex' and @language = $lang]">
|
704
704
|
<fo:block font-size="18pt" margin-top="3mm" role="H1">
|
705
705
|
<xsl:value-of select="$i18n_annex"/>
|
706
706
|
<xsl:text> </xsl:text>
|
@@ -714,7 +714,7 @@
|
|
714
714
|
<xsl:if test="$isAmendment != ''">
|
715
715
|
<fo:block margin-top="3mm" role="H1">
|
716
716
|
<xsl:value-of select="$isAmendment"/>
|
717
|
-
<xsl:variable name="title_amendment" select="normalize-space(/itu:
|
717
|
+
<xsl:variable name="title_amendment" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'amendment'])"/>
|
718
718
|
<xsl:if test="$title_amendment != ''">
|
719
719
|
<xsl:value-of select="$en_dash_separator"/>
|
720
720
|
<xsl:value-of select="$title_amendment"/>
|
@@ -725,7 +725,7 @@
|
|
725
725
|
<xsl:if test="$isCorrigendum != ''">
|
726
726
|
<fo:block margin-top="3mm" role="H1">
|
727
727
|
<xsl:value-of select="$isCorrigendum"/>
|
728
|
-
<xsl:variable name="title_corrigendum" select="normalize-space(/itu:
|
728
|
+
<xsl:variable name="title_corrigendum" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'corrigendum'])"/>
|
729
729
|
<xsl:if test="$title_corrigendum != ''">
|
730
730
|
<xsl:value-of select="$en_dash_separator"/>
|
731
731
|
<xsl:value-of select="$title_corrigendum"/>
|
@@ -733,11 +733,11 @@
|
|
733
733
|
</fo:block>
|
734
734
|
</xsl:if>
|
735
735
|
|
736
|
-
<xsl:if test="/itu:
|
736
|
+
<xsl:if test="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
737
737
|
<fo:block-container margin-left="1mm" margin-right="1mm" border="0.7mm solid black" margin-top="5mm">
|
738
738
|
<fo:block-container margin-left="1mm" margin-right="1mm">
|
739
739
|
<fo:block padding-top="3mm">
|
740
|
-
<xsl:apply-templates select="/itu:
|
740
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']" mode="caution"/>
|
741
741
|
</fo:block>
|
742
742
|
</fo:block-container>
|
743
743
|
</fo:block-container>
|
@@ -745,11 +745,11 @@
|
|
745
745
|
|
746
746
|
<xsl:if test="$doctype = 'recommendation-supplement'">
|
747
747
|
<fo:block font-size="16pt" margin-top="3mm">
|
748
|
-
<xsl:if test="/itu:
|
748
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:status/itu:stage = 'draft'">Draft </xsl:if>
|
749
749
|
<xsl:text>ITU-</xsl:text>
|
750
750
|
<xsl:value-of select="$bureau"/>
|
751
751
|
<xsl:text> </xsl:text>
|
752
|
-
<xsl:value-of select="/itu:
|
752
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
753
753
|
</fo:block>
|
754
754
|
</xsl:if>
|
755
755
|
</xsl:otherwise>
|
@@ -803,21 +803,21 @@
|
|
803
803
|
<fo:block font-weight="bold">Question(s):</fo:block>
|
804
804
|
</fo:table-cell>
|
805
805
|
<fo:table-cell padding-top="3mm">
|
806
|
-
<fo:block><xsl:value-of select="/itu:
|
806
|
+
<fo:block><xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:editorialgroup/itu:group/itu:name"/></fo:block>
|
807
807
|
</fo:table-cell>
|
808
808
|
<fo:table-cell padding-top="3mm">
|
809
809
|
<fo:block font-weight="bold">Meeting, date:</fo:block>
|
810
810
|
</fo:table-cell>
|
811
811
|
<fo:table-cell padding-top="3mm" text-align="right" padding-right="1mm">
|
812
812
|
<fo:block>
|
813
|
-
<xsl:value-of select="/itu:
|
813
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting"/>
|
814
814
|
<xsl:text>, </xsl:text>
|
815
815
|
<xsl:call-template name="formatMeetingDate">
|
816
|
-
<xsl:with-param name="date" select="/itu:
|
816
|
+
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting-date/itu:from"/>
|
817
817
|
</xsl:call-template>
|
818
818
|
<xsl:text>/</xsl:text>
|
819
819
|
<xsl:call-template name="formatMeetingDate">
|
820
|
-
<xsl:with-param name="date" select="/itu:
|
820
|
+
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting-date/itu:to"/>
|
821
821
|
</xsl:call-template>
|
822
822
|
</fo:block>
|
823
823
|
</fo:table-cell>
|
@@ -838,21 +838,21 @@
|
|
838
838
|
<fo:block font-weight="bold">Study Group:</fo:block>
|
839
839
|
</fo:table-cell>
|
840
840
|
<fo:table-cell padding-top="2mm">
|
841
|
-
<xsl:variable name="subgroup" select="/itu:
|
841
|
+
<xsl:variable name="subgroup" select="/itu:metanorma/itu:bibdata/itu:ext/itu:editorialgroup/itu:subgroup/itu:name"/>
|
842
842
|
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($subgroup),'(.)','$1')"/></fo:block>
|
843
843
|
</fo:table-cell>
|
844
844
|
<fo:table-cell padding-top="2mm">
|
845
845
|
<fo:block font-weight="bold">Working Party:</fo:block>
|
846
846
|
</fo:table-cell>
|
847
847
|
<fo:table-cell padding-top="2mm">
|
848
|
-
<xsl:variable name="workgroup" select="/itu:
|
848
|
+
<xsl:variable name="workgroup" select="/itu:metanorma/itu:bibdata/itu:ext/itu:editorialgroup/itu:workgroup/itu:name"/>
|
849
849
|
<fo:block><xsl:value-of select="java:replaceAll(java:java.lang.String.new($workgroup),'(.)','$1')"/></fo:block>
|
850
850
|
</fo:table-cell>
|
851
851
|
<fo:table-cell padding-top="2mm">
|
852
852
|
<fo:block font-weight="bold">Intended type of document <fo:inline font-weight="normal">(R-C-TD)</fo:inline>:</fo:block>
|
853
853
|
</fo:table-cell>
|
854
854
|
<fo:table-cell padding-top="2mm">
|
855
|
-
<fo:block font-weight="normal"><xsl:value-of select="/itu:
|
855
|
+
<fo:block font-weight="normal"><xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:intended-type"/></fo:block>
|
856
856
|
</fo:table-cell>
|
857
857
|
</fo:table-row>
|
858
858
|
<fo:table-row>
|
@@ -860,7 +860,7 @@
|
|
860
860
|
<fo:block font-weight="bold">Source:</fo:block>
|
861
861
|
</fo:table-cell>
|
862
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:
|
863
|
+
<fo:block><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/itu:metanorma/itu:bibdata/itu:ext/itu:source))"/></fo:block>
|
864
864
|
</fo:table-cell>
|
865
865
|
</fo:table-row>
|
866
866
|
<fo:table-row>
|
@@ -868,19 +868,19 @@
|
|
868
868
|
<fo:block font-weight="bold">Title:</fo:block>
|
869
869
|
</fo:table-cell>
|
870
870
|
<fo:table-cell number-columns-spanned="4" padding-top="2mm">
|
871
|
-
<fo:block role="H1"><xsl:value-of select="/itu:
|
871
|
+
<fo:block role="H1"><xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@language='en' and @type='main']"/></fo:block>
|
872
872
|
</fo:table-cell>
|
873
873
|
</fo:table-row>
|
874
874
|
</fo:table-body>
|
875
875
|
</fo:table>
|
876
876
|
|
877
|
-
<xsl:if test="/itu:
|
877
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:contributor/itu:person">
|
878
878
|
<fo:table width="175mm" table-layout="fixed" line-height="110%" id="__internal_layout__person_{generate-id()}">
|
879
879
|
<fo:table-column column-width="29mm"/>
|
880
880
|
<fo:table-column column-width="75mm"/>
|
881
881
|
<fo:table-column column-width="71mm"/>
|
882
882
|
<fo:table-body>
|
883
|
-
<xsl:for-each select="/itu:
|
883
|
+
<xsl:for-each select="/itu:metanorma/itu:bibdata/itu:contributor/itu:person">
|
884
884
|
<fo:table-row border-top="1.5pt solid black">
|
885
885
|
<xsl:if test="position() = last()">
|
886
886
|
<xsl:attribute name="border-bottom">1.5pt solid black</xsl:attribute>
|
@@ -1124,7 +1124,7 @@
|
|
1124
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
1125
|
<fo:block><xsl:value-of select="$linebreak"/></fo:block>
|
1126
1126
|
<xsl:call-template name="addLetterSpacing">
|
1127
|
-
<xsl:with-param name="text" select="/itu:
|
1127
|
+
<xsl:with-param name="text" select="/itu:metanorma/itu:bibdata/itu:contributor[itu:role/@type='author']/itu:organization/itu:name"/>
|
1128
1128
|
</xsl:call-template>
|
1129
1129
|
</fo:block>
|
1130
1130
|
</fo:block-container>
|
@@ -1153,23 +1153,23 @@
|
|
1153
1153
|
<xsl:value-of select="$doctypeTitle"/>
|
1154
1154
|
</xsl:when>
|
1155
1155
|
<xsl:when test="$doctype = 'implementers-guide'">
|
1156
|
-
<xsl:value-of select="/itu:
|
1156
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
1157
1157
|
<xsl:text> </xsl:text>
|
1158
|
-
<xsl:value-of select="/itu:
|
1158
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1159
1159
|
</xsl:when>
|
1160
1160
|
<xsl:when test="$doctype = 'resolution'"/>
|
1161
1161
|
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1162
1162
|
<!-- Series L -->
|
1163
1163
|
<xsl:value-of select="$i18n_series_Capitalized"/>
|
1164
1164
|
<xsl:text> </xsl:text>
|
1165
|
-
<xsl:value-of select="/itu:
|
1165
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:series[@type='main']/itu:title[@type='abbrev']"/>
|
1166
1166
|
<!-- Ex. Supplement 37 -->
|
1167
1167
|
<fo:block font-size="18pt">
|
1168
1168
|
<xsl:call-template name="getLocalizedString">
|
1169
1169
|
<xsl:with-param name="key">doctype_dict.recommendation-supplement</xsl:with-param>
|
1170
1170
|
</xsl:call-template>
|
1171
1171
|
<xsl:text> </xsl:text>
|
1172
|
-
<xsl:value-of select="/itu:
|
1172
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docnumber"/>
|
1173
1173
|
</fo:block>
|
1174
1174
|
</xsl:when>
|
1175
1175
|
<xsl:otherwise>
|
@@ -1240,9 +1240,9 @@
|
|
1240
1240
|
<xsl:copy-of select="$additionalNumbers"/>
|
1241
1241
|
<fo:block font-size="14pt">
|
1242
1242
|
<xsl:choose>
|
1243
|
-
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:
|
1243
|
+
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:metanorma/itu:bibdata/itu:version/itu:revision-date">
|
1244
1244
|
<xsl:call-template name="formatMeetingDate">
|
1245
|
-
<xsl:with-param name="date" select="/itu:
|
1245
|
+
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:version/itu:revision-date"/>
|
1246
1246
|
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
1247
1247
|
</xsl:call-template>
|
1248
1248
|
</xsl:when>
|
@@ -1282,7 +1282,7 @@
|
|
1282
1282
|
<xsl:choose>
|
1283
1283
|
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
1284
1284
|
<xsl:otherwise>
|
1285
|
-
<xsl:if test="/itu:
|
1285
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:series">
|
1286
1286
|
<fo:block margin-top="6pt">
|
1287
1287
|
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
1288
1288
|
</fo:block>
|
@@ -1301,26 +1301,26 @@
|
|
1301
1301
|
<fo:block-container>
|
1302
1302
|
<xsl:call-template name="setWritingMode"/>
|
1303
1303
|
<fo:block padding-right="2mm" margin-top="6pt" role="H1">
|
1304
|
-
<xsl:if test="not(/itu:
|
1304
|
+
<xsl:if test="not(/itu:metanorma/itu:bibdata/itu:title[@type = 'annex' and @language = 'en']) and $isAmendment = '' and $isCorrigendum = ''">
|
1305
1305
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1306
1306
|
</xsl:if>
|
1307
|
-
<xsl:if test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:
|
1307
|
+
<xsl:if test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:metanorma/itu:bibdata/itu:docnumber">
|
1308
1308
|
<fo:block font-weight="bold">
|
1309
1309
|
<xsl:value-of select="$docnumber"/>
|
1310
1310
|
</fo:block>
|
1311
1311
|
</xsl:if>
|
1312
1312
|
<xsl:if test="$doctype = 'implementers-guide'">
|
1313
|
-
<xsl:value-of select="/itu:
|
1313
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
1314
1314
|
<xsl:text> for </xsl:text>
|
1315
1315
|
</xsl:if>
|
1316
1316
|
<xsl:if test="$doctype = 'resolution'">
|
1317
1317
|
<!-- Resolution 1 -->
|
1318
|
-
<xsl:value-of select="$doctypeTitle"/><xsl:text> </xsl:text><xsl:value-of select="/itu:
|
1318
|
+
<xsl:value-of select="$doctypeTitle"/><xsl:text> </xsl:text><xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1319
1319
|
<xsl:text> – </xsl:text>
|
1320
1320
|
</xsl:if>
|
1321
|
-
<xsl:value-of select="/itu:
|
1321
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = 'en']"/>
|
1322
1322
|
</fo:block>
|
1323
|
-
<xsl:for-each select="/itu:
|
1323
|
+
<xsl:for-each select="/itu:metanorma/itu:bibdata/itu:title[@type = 'annex' and @language = 'en']">
|
1324
1324
|
<fo:block font-weight="bold" role="H1">
|
1325
1325
|
<xsl:value-of select="."/>
|
1326
1326
|
</fo:block>
|
@@ -1328,18 +1328,18 @@
|
|
1328
1328
|
<xsl:if test="$isAmendment != ''">
|
1329
1329
|
<fo:block padding-right="2mm" margin-top="6pt" font-weight="bold" role="H1">
|
1330
1330
|
<xsl:value-of select="$isAmendment"/>
|
1331
|
-
<xsl:if test="/itu:
|
1331
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:title[@type = 'amendment']">
|
1332
1332
|
<xsl:text>: </xsl:text>
|
1333
|
-
<xsl:value-of select="/itu:
|
1333
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'amendment']"/>
|
1334
1334
|
</xsl:if>
|
1335
1335
|
</fo:block>
|
1336
1336
|
</xsl:if>
|
1337
1337
|
<xsl:if test="$isCorrigendum != ''">
|
1338
1338
|
<fo:block padding-right="2mm" margin-top="6pt" font-weight="bold" role="H1">
|
1339
1339
|
<xsl:value-of select="$isCorrigendum"/>
|
1340
|
-
<xsl:if test="/itu:
|
1340
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:title[@type = 'corrigendum']">
|
1341
1341
|
<xsl:text>: </xsl:text>
|
1342
|
-
<xsl:value-of select="/itu:
|
1342
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'corrigendum']"/>
|
1343
1343
|
</xsl:if>
|
1344
1344
|
</fo:block>
|
1345
1345
|
</xsl:if>
|
@@ -1354,10 +1354,10 @@
|
|
1354
1354
|
<fo:block-container>
|
1355
1355
|
<xsl:call-template name="setWritingMode"/>
|
1356
1356
|
<xsl:choose>
|
1357
|
-
<xsl:when test="/itu:
|
1357
|
+
<xsl:when test="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1358
1358
|
<xsl:attribute name="border">0.7mm solid black</xsl:attribute>
|
1359
1359
|
<fo:block font-family="Times New Roman" padding-top="3mm" margin-left="1mm" margin-right="1mm">
|
1360
|
-
<xsl:apply-templates select="/itu:
|
1360
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']" mode="caution"/>
|
1361
1361
|
</fo:block>
|
1362
1362
|
</xsl:when>
|
1363
1363
|
<xsl:otherwise>
|
@@ -1375,7 +1375,7 @@
|
|
1375
1375
|
<fo:block-container>
|
1376
1376
|
<xsl:call-template name="setWritingMode"/>
|
1377
1377
|
<fo:block font-size="16pt" margin-top="3pt">
|
1378
|
-
<xsl:if test="/itu:
|
1378
|
+
<xsl:if test="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[@id='draft-warning']">
|
1379
1379
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1380
1380
|
<xsl:if test="$doctype = 'recommendation-supplement'">
|
1381
1381
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
@@ -1384,13 +1384,13 @@
|
|
1384
1384
|
|
1385
1385
|
<xsl:choose>
|
1386
1386
|
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
1387
|
-
<xsl:if test="/itu:
|
1387
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:status/itu:stage">
|
1388
1388
|
<xsl:call-template name="capitalizeWords">
|
1389
|
-
<xsl:with-param name="str" select="/itu:
|
1389
|
+
<xsl:with-param name="str" select="/itu:metanorma/itu:bibdata/itu:status/itu:stage"/>
|
1390
1390
|
</xsl:call-template>
|
1391
1391
|
<xsl:text> </xsl:text>
|
1392
1392
|
</xsl:if>
|
1393
|
-
<xsl:variable name="identifier" select="/itu:
|
1393
|
+
<xsl:variable name="identifier" select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU']"/>
|
1394
1394
|
<xsl:if test="$identifier != ''">
|
1395
1395
|
<xsl:value-of select="$doctypeTitle"/>
|
1396
1396
|
<xsl:text> </xsl:text>
|
@@ -1400,23 +1400,23 @@
|
|
1400
1400
|
<xsl:when test="$doctype = 'implementers-guide'"/>
|
1401
1401
|
<xsl:when test="$doctype = 'resolution'"/>
|
1402
1402
|
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1403
|
-
<xsl:if test="/itu:
|
1403
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:status/itu:stage = 'draft'">Draft </xsl:if>
|
1404
1404
|
<xsl:text>ITU-</xsl:text><xsl:value-of select="$bureau"/><xsl:text> </xsl:text>
|
1405
1405
|
|
1406
|
-
<xsl:value-of select="/itu:
|
1406
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
1407
1407
|
</xsl:when>
|
1408
1408
|
<xsl:otherwise>
|
1409
1409
|
<xsl:variable name="identifier">
|
1410
1410
|
<xsl:text> </xsl:text>
|
1411
|
-
<xsl:if test="/itu:
|
1412
|
-
<xsl:value-of select="/itu:
|
1411
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:contributor/itu:organization/itu:abbreviation">
|
1412
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:contributor/itu:organization/itu:abbreviation"/>
|
1413
1413
|
<xsl:text>-</xsl:text>
|
1414
1414
|
</xsl:if>
|
1415
1415
|
<xsl:if test="$doctype != 'recommendation'">
|
1416
|
-
<xsl:value-of select="/itu:
|
1416
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:bureau"/>
|
1417
1417
|
<xsl:text> </xsl:text>
|
1418
1418
|
</xsl:if>
|
1419
|
-
<xsl:value-of select="/itu:
|
1419
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
1420
1420
|
</xsl:variable>
|
1421
1421
|
<xsl:if test="normalize-space(translate($identifier, ' ', '')) != ''">
|
1422
1422
|
<xsl:value-of select="$doctypeTitle"/>
|
@@ -1446,7 +1446,7 @@
|
|
1446
1446
|
|
1447
1447
|
<!-- <xsl:for-each select="xalan:nodeset($updated_xml)/*"> -->
|
1448
1448
|
|
1449
|
-
<!-- <xsl:for-each select="xalan:nodeset($updated_xml)//itu:
|
1449
|
+
<!-- <xsl:for-each select="xalan:nodeset($updated_xml)//itu:metanorma">
|
1450
1450
|
|
1451
1451
|
<xsl:variable name="current_document">
|
1452
1452
|
<xsl:copy-of select="."/>
|
@@ -1504,7 +1504,7 @@
|
|
1504
1504
|
|
1505
1505
|
<fo:flow flow-name="xsl-region-body">
|
1506
1506
|
|
1507
|
-
<xsl:if test="/itu:
|
1507
|
+
<xsl:if test="/itu:metanorma/itu:preface/*[not(@type = 'toc')] or /itu:metanorma/itu:bibdata/itu:keyword">
|
1508
1508
|
|
1509
1509
|
<xsl:if test="position() = 1">
|
1510
1510
|
<fo:block-container font-size="14pt" font-weight="bold">
|
@@ -1512,7 +1512,7 @@
|
|
1512
1512
|
<xsl:when test="$doctype = 'implementers-guide'"/>
|
1513
1513
|
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1514
1514
|
<fo:block>
|
1515
|
-
<xsl:value-of select="/itu:
|
1515
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Internal']"/>
|
1516
1516
|
</fo:block>
|
1517
1517
|
</xsl:when>
|
1518
1518
|
<xsl:when test="$doctype = 'service-publication'"/>
|
@@ -1529,7 +1529,7 @@
|
|
1529
1529
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1530
1530
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1531
1531
|
</xsl:if>
|
1532
|
-
<xsl:value-of select="/itu:
|
1532
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
1533
1533
|
</fo:block>
|
1534
1534
|
</fo:block-container>
|
1535
1535
|
</xsl:if>
|
@@ -1541,7 +1541,7 @@
|
|
1541
1541
|
|
1542
1542
|
<xsl:if test="position() = last()">
|
1543
1543
|
<!-- Keywords -->
|
1544
|
-
<xsl:if test="/itu:
|
1544
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:keyword">
|
1545
1545
|
<fo:block font-size="12pt">
|
1546
1546
|
<xsl:value-of select="$linebreak"/>
|
1547
1547
|
<xsl:value-of select="$linebreak"/>
|
@@ -1563,9 +1563,9 @@
|
|
1563
1563
|
<xsl:if test="position() = last()">
|
1564
1564
|
<!-- FOREWORD -->
|
1565
1565
|
<fo:block font-size="11pt" text-align="justify">
|
1566
|
-
<xsl:apply-templates select="/itu:
|
1567
|
-
<xsl:apply-templates select="/itu:
|
1568
|
-
<xsl:apply-templates select="/itu:
|
1566
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:legal-statement"/>
|
1567
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:license-statement"/>
|
1568
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:copyright-statement"/>
|
1569
1569
|
</fo:block>
|
1570
1570
|
|
1571
1571
|
<xsl:if test="$debug = 'true'">
|
@@ -1634,13 +1634,13 @@
|
|
1634
1634
|
<xsl:choose>
|
1635
1635
|
<xsl:when test="$doctype = 'resolution'">
|
1636
1636
|
<fo:block text-align="center">
|
1637
|
-
<xsl:value-of select="/itu:
|
1637
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type='resolution' and @language = $lang]"/>
|
1638
1638
|
</fo:block>
|
1639
1639
|
</xsl:when>
|
1640
1640
|
<xsl:when test="$doctype = 'implementers-guide'"></xsl:when>
|
1641
1641
|
<xsl:when test="$doctype = 'recommendation-supplement'">
|
1642
1642
|
<fo:block font-weight="bold">
|
1643
|
-
<xsl:value-of select="/itu:
|
1643
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement-Internal']"/>
|
1644
1644
|
</fo:block>
|
1645
1645
|
</xsl:when>
|
1646
1646
|
<xsl:otherwise>
|
@@ -1653,9 +1653,9 @@
|
|
1653
1653
|
</xsl:choose>
|
1654
1654
|
|
1655
1655
|
<fo:block font-weight="bold" text-align="center" margin-top="15pt" margin-bottom="15pt" role="H1">
|
1656
|
-
<xsl:value-of select="/itu:
|
1656
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
1657
1657
|
|
1658
|
-
<xsl:variable name="subtitle" select="/itu:
|
1658
|
+
<xsl:variable name="subtitle" select="/itu:metanorma/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
1659
1659
|
<xsl:if test="$subtitle != ''">
|
1660
1660
|
<fo:block margin-top="18pt" font-weight="normal" font-style="italic">
|
1661
1661
|
<xsl:if test="$lang = 'ar'">
|
@@ -1665,7 +1665,7 @@
|
|
1665
1665
|
</fo:block>
|
1666
1666
|
</xsl:if>
|
1667
1667
|
|
1668
|
-
<xsl:variable name="resolution-placedate" select="/itu:
|
1668
|
+
<xsl:variable name="resolution-placedate" select="/itu:metanorma/itu:bibdata/itu:title[@type = 'resolution-placedate' and @language = $lang]"/>
|
1669
1669
|
<xsl:if test="$doctype = 'resolution' and $resolution-placedate != ''">
|
1670
1670
|
<fo:block font-size="11pt" margin-top="6pt" font-weight="normal">
|
1671
1671
|
<fo:inline font-style="italic">
|
@@ -1674,7 +1674,7 @@
|
|
1674
1674
|
</xsl:if>
|
1675
1675
|
<xsl:text>(</xsl:text><xsl:value-of select="$resolution-placedate"/><xsl:text>)</xsl:text>
|
1676
1676
|
</fo:inline>
|
1677
|
-
<xsl:apply-templates select="/itu:
|
1677
|
+
<xsl:apply-templates select="/itu:metanorma/itu:bibdata/itu:note[@type = 'title-footnote']" mode="title_footnote"/>
|
1678
1678
|
</fo:block>
|
1679
1679
|
</xsl:if>
|
1680
1680
|
</fo:block>
|
@@ -1684,17 +1684,17 @@
|
|
1684
1684
|
<!-- Clause(s) -->
|
1685
1685
|
<fo:block>
|
1686
1686
|
<!-- Scope -->
|
1687
|
-
<!-- <xsl:apply-templates select="/itu:
|
1687
|
+
<!-- <xsl:apply-templates select="/itu:metanorma/itu:sections/itu:clause[@type='scope']" /> -->
|
1688
1688
|
|
1689
1689
|
<!-- Normative references -->
|
1690
|
-
<!-- <xsl:apply-templates select="/itu:
|
1690
|
+
<!-- <xsl:apply-templates select="/itu:metanorma/itu:bibliography/itu:references[@normative='true']" />
|
1691
1691
|
|
1692
|
-
<xsl:apply-templates select="/itu:
|
1692
|
+
<xsl:apply-templates select="/itu:metanorma/itu:sections/*[not(@type='scope')]" />
|
1693
1693
|
|
1694
|
-
<xsl:apply-templates select="/itu:
|
1694
|
+
<xsl:apply-templates select="/itu:metanorma/itu:annex"/> -->
|
1695
1695
|
|
1696
1696
|
<!-- Bibliography -->
|
1697
|
-
<!-- <xsl:apply-templates select="/itu:
|
1697
|
+
<!-- <xsl:apply-templates select="/itu:metanorma/itu:bibliography/itu:references[not(@normative='true')]"/> -->
|
1698
1698
|
|
1699
1699
|
<!-- <xsl:call-template name="processMainSectionsDefault"/> -->
|
1700
1700
|
<xsl:apply-templates/>
|
@@ -1712,12 +1712,12 @@
|
|
1712
1712
|
</xsl:template>
|
1713
1713
|
|
1714
1714
|
<xsl:template name="insertMeetingInfo">
|
1715
|
-
<fo:block><xsl:value-of select="/itu:
|
1715
|
+
<fo:block><xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting"/></fo:block>
|
1716
1716
|
<fo:block>
|
1717
|
-
<xsl:variable name="meeting-place" select="/itu:
|
1718
|
-
<xsl:variable name="meeting-date_from" select="/itu:
|
1717
|
+
<xsl:variable name="meeting-place" select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting-place"/>
|
1718
|
+
<xsl:variable name="meeting-date_from" select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting-date/itu:from"/>
|
1719
1719
|
<xsl:variable name="meeting-date_from_year" select="substring($meeting-date_from, 1, 4)"/>
|
1720
|
-
<xsl:variable name="meeting-date_to" select="/itu:
|
1720
|
+
<xsl:variable name="meeting-date_to" select="/itu:metanorma/itu:bibdata/itu:ext/itu:meeting-date/itu:to"/>
|
1721
1721
|
<xsl:variable name="meeting-date_to_year" select="substring($meeting-date_to, 1, 4)"/>
|
1722
1722
|
|
1723
1723
|
<xsl:variable name="date_format">
|
@@ -1754,11 +1754,11 @@
|
|
1754
1754
|
|
1755
1755
|
<xsl:template name="insertSeriesTitleMain">
|
1756
1756
|
<xsl:param name="i18n_series"/>
|
1757
|
-
<xsl:variable name="series_title_full" select="normalize-space(/itu:
|
1757
|
+
<xsl:variable name="series_title_full" select="normalize-space(/itu:metanorma/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'full'])"/>
|
1758
1758
|
<xsl:variable name="series_title">
|
1759
1759
|
<xsl:value-of select="$series_title_full"/>
|
1760
1760
|
<xsl:if test="$series_title_full = ''">
|
1761
|
-
<xsl:value-of select="normalize-space(/itu:
|
1761
|
+
<xsl:value-of select="normalize-space(/itu:metanorma/itu:bibdata/itu:series[@type = 'main']/itu:title[(@type != 'full' and @type != 'abbrev') or not(@type)])"/>
|
1762
1762
|
</xsl:if>
|
1763
1763
|
</xsl:variable>
|
1764
1764
|
<xsl:if test="$series_title != ''">
|
@@ -1772,10 +1772,10 @@
|
|
1772
1772
|
</xsl:template>
|
1773
1773
|
|
1774
1774
|
<xsl:template name="insertSeriesTitleAdditional">
|
1775
|
-
<xsl:value-of select="/itu:
|
1776
|
-
<xsl:if test="normalize-space(/itu:
|
1775
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:series[@type = 'secondary']"/>
|
1776
|
+
<xsl:if test="normalize-space(/itu:metanorma/itu:bibdata/itu:series[@type = 'tertiary']) != ''">
|
1777
1777
|
<xsl:text> — </xsl:text>
|
1778
|
-
<xsl:value-of select="/itu:
|
1778
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:series[@type = 'tertiary']"/>
|
1779
1779
|
</xsl:if>
|
1780
1780
|
</xsl:template>
|
1781
1781
|
|
@@ -1806,7 +1806,7 @@
|
|
1806
1806
|
<xsl:param name="num"/>
|
1807
1807
|
|
1808
1808
|
<xsl:if test="$process = 'true'">
|
1809
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
1809
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1810
1810
|
<xsl:if test="$doctype != 'resolution' and $doctype != 'service-publication'">
|
1811
1811
|
<fo:block break-after="page"/>
|
1812
1812
|
<fo:block-container>
|
@@ -1924,7 +1924,7 @@
|
|
1924
1924
|
<xsl:template match="itu:clause[@type = 'keyword']" priority="4"/>
|
1925
1925
|
|
1926
1926
|
<xsl:template match="itu:sections//itu:p[@class = 'zzSTDTitle1']" priority="4">
|
1927
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
1927
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
1928
1928
|
<fo:block font-size="14pt">
|
1929
1929
|
<xsl:choose>
|
1930
1930
|
<xsl:when test="$doctype = 'resolution'">
|
@@ -2035,7 +2035,7 @@
|
|
2035
2035
|
<!-- PREFACE (Summary, History, ...) -->
|
2036
2036
|
<!-- ============================= -->
|
2037
2037
|
|
2038
|
-
<xsl:template match="//*[
|
2038
|
+
<xsl:template match="//*[local-name() = 'metanorma']//*[local-name() = 'preface']/*" priority="3">
|
2039
2039
|
<xsl:choose>
|
2040
2040
|
<xsl:when test="preceding-sibling::*">
|
2041
2041
|
<!-- page-break before 2nd and next elements only -->
|
@@ -2056,7 +2056,7 @@
|
|
2056
2056
|
</xsl:template>
|
2057
2057
|
|
2058
2058
|
<xsl:template match="itu:preface/*/itu:clause" priority="3">
|
2059
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2059
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2060
2060
|
<xsl:if test="$doctype != 'service-publication'">
|
2061
2061
|
<fo:block font-size="12pt">
|
2062
2062
|
<xsl:value-of select="$linebreak"/>
|
@@ -2074,7 +2074,7 @@
|
|
2074
2074
|
<xsl:variable name="level">
|
2075
2075
|
<xsl:call-template name="getLevel"/>
|
2076
2076
|
</xsl:variable>
|
2077
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2077
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2078
2078
|
<fo:block font-weight="bold" margin-top="18pt" margin-bottom="18pt" keep-with-next="always" role="H{$level}">
|
2079
2079
|
<xsl:if test="$doctype = 'service-publication'">
|
2080
2080
|
<xsl:attribute name="margin-top">24pt</xsl:attribute>
|
@@ -2096,7 +2096,7 @@
|
|
2096
2096
|
<!-- ============================= -->
|
2097
2097
|
<xsl:template match="itu:p | itu:sections/itu:p" name="paragraph">
|
2098
2098
|
<xsl:param name="split_keep-within-line"/>
|
2099
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2099
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2100
2100
|
<xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
|
2101
2101
|
<xsl:variable name="element-name">
|
2102
2102
|
<xsl:choose>
|
@@ -2182,7 +2182,7 @@
|
|
2182
2182
|
<!-- title -->
|
2183
2183
|
<!-- ====== -->
|
2184
2184
|
<xsl:template match="itu:annex/itu:title">
|
2185
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2185
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2186
2186
|
<fo:block font-size="14pt" font-weight="bold" text-align="center" margin-bottom="18pt" role="H1">
|
2187
2187
|
<fo:block>
|
2188
2188
|
<xsl:apply-templates/>
|
@@ -2211,7 +2211,7 @@
|
|
2211
2211
|
|
2212
2212
|
<!-- Bibliography -->
|
2213
2213
|
<xsl:template match="itu:references[not(@normative='true')]/itu:title">
|
2214
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2214
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2215
2215
|
<fo:block font-size="14pt" font-weight="bold" text-align="center" margin-bottom="18pt" role="H1">
|
2216
2216
|
<xsl:if test="$doctype = 'implementers-guide'">
|
2217
2217
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -2228,7 +2228,7 @@
|
|
2228
2228
|
<xsl:call-template name="getLevel"/>
|
2229
2229
|
</xsl:variable>
|
2230
2230
|
|
2231
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2231
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2232
2232
|
|
2233
2233
|
<xsl:variable name="font-size">
|
2234
2234
|
<xsl:choose>
|
@@ -2488,7 +2488,7 @@
|
|
2488
2488
|
</xsl:template>
|
2489
2489
|
|
2490
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:
|
2491
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2492
2492
|
<xsl:if test="preceding-sibling::*[1][local-name() = 'title'] and $doctype != 'service-publication'">
|
2493
2493
|
<fo:block padding-top="-8pt" font-size="1pt"> </fo:block>
|
2494
2494
|
</xsl:if>
|
@@ -2525,7 +2525,7 @@
|
|
2525
2525
|
</xsl:template>
|
2526
2526
|
|
2527
2527
|
<xsl:template match="itu:li" priority="2">
|
2528
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2528
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2529
2529
|
<xsl:choose>
|
2530
2530
|
<xsl:when test="$doctype = 'service-publication'">
|
2531
2531
|
<fo:block id="{@id}">
|
@@ -2584,7 +2584,7 @@
|
|
2584
2584
|
<!-- <xsl:if test="local-name(ancestor::itu:li[1]/..) = 'ul'">
|
2585
2585
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
2586
2586
|
</xsl:if> -->
|
2587
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
2587
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2588
2588
|
<xsl:if test="not(preceding-sibling::*) and parent::itu:li and $doctype = 'service-publication'">
|
2589
2589
|
<fo:inline padding-right="9mm">
|
2590
2590
|
<xsl:if test="$lang = 'ar'">
|
@@ -2614,7 +2614,7 @@
|
|
2614
2614
|
|
2615
2615
|
<!-- https://github.com/metanorma/metanorma-itu/issues/607 -->
|
2616
2616
|
<xsl:template match="*[local-name() = 'references']/*[local-name() = 'bibitem'][1]" priority="5">
|
2617
|
-
<xsl:param name="doctype" select="ancestor::itu:
|
2617
|
+
<xsl:param name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
2618
2618
|
|
2619
2619
|
<xsl:variable name="docidentifier_metanorma_ordinal" select="normalize-space(itu:docidentifier[@type = 'metanorma-ordinal'])"/>
|
2620
2620
|
|
@@ -3043,21 +3043,21 @@
|
|
3043
3043
|
|
3044
3044
|
<xsl:variable name="namespace_full_">
|
3045
3045
|
<xsl:choose>
|
3046
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[
|
3047
|
-
<xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/
|
3046
|
+
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
3047
|
+
<xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/standoc -->
|
3048
3048
|
</xsl:choose>
|
3049
3049
|
</xsl:variable>
|
3050
3050
|
<xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
|
3051
3051
|
|
3052
3052
|
<xsl:variable name="root_element_">
|
3053
3053
|
<xsl:choose>
|
3054
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[
|
3055
|
-
<xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: iso-standard -->
|
3054
|
+
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
3055
|
+
<xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: metanorma (former iso-standard) -->
|
3056
3056
|
</xsl:choose>
|
3057
3057
|
</xsl:variable>
|
3058
3058
|
<xsl:variable name="root_element" select="normalize-space($root_element_)"/>
|
3059
3059
|
|
3060
|
-
<xsl:variable name="document_scheme" select="normalize-space(//*[
|
3060
|
+
<xsl:variable name="document_scheme" select="normalize-space(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
|
3061
3061
|
|
3062
3062
|
<!-- external parameters -->
|
3063
3063
|
|
@@ -3158,7 +3158,7 @@
|
|
3158
3158
|
</metanorma-extension>
|
3159
3159
|
-->
|
3160
3160
|
|
3161
|
-
<xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[
|
3161
|
+
<xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
|
3162
3162
|
<xsl:variable name="papersize_width_">
|
3163
3163
|
<xsl:choose>
|
3164
3164
|
<xsl:when test="$papersize = 'letter'">215.9</xsl:when>
|
@@ -3220,7 +3220,7 @@
|
|
3220
3220
|
<xsl:variable name="marginBottom" select="normalize-space($marginBottom_)"/>
|
3221
3221
|
|
3222
3222
|
<xsl:variable name="layout_columns_default">1</xsl:variable>
|
3223
|
-
<xsl:variable name="layout_columns_" select="normalize-space((//*[
|
3223
|
+
<xsl:variable name="layout_columns_" select="normalize-space((//*[local-name() = 'metanorma'])[1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'layout-columns'])"/>
|
3224
3224
|
<xsl:variable name="layout_columns">
|
3225
3225
|
<xsl:choose>
|
3226
3226
|
<xsl:when test="$layout_columns_ != ''"><xsl:value-of select="$layout_columns_"/></xsl:when>
|
@@ -3281,7 +3281,7 @@
|
|
3281
3281
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
3282
3282
|
|
3283
3283
|
<xsl:variable name="title-list-tables">
|
3284
|
-
<xsl:variable name="toc_table_title" select="//*[
|
3284
|
+
<xsl:variable name="toc_table_title" select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
3285
3285
|
<xsl:value-of select="$toc_table_title"/>
|
3286
3286
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
3287
3287
|
<xsl:call-template name="getLocalizedString">
|
@@ -3291,7 +3291,7 @@
|
|
3291
3291
|
</xsl:variable>
|
3292
3292
|
|
3293
3293
|
<xsl:variable name="title-list-figures">
|
3294
|
-
<xsl:variable name="toc_figure_title" select="//*[
|
3294
|
+
<xsl:variable name="toc_figure_title" select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
3295
3295
|
<xsl:value-of select="$toc_figure_title"/>
|
3296
3296
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
3297
3297
|
<xsl:call-template name="getLocalizedString">
|
@@ -3301,7 +3301,7 @@
|
|
3301
3301
|
</xsl:variable>
|
3302
3302
|
|
3303
3303
|
<xsl:variable name="title-list-recommendations">
|
3304
|
-
<xsl:variable name="toc_requirement_title" select="//*[
|
3304
|
+
<xsl:variable name="toc_requirement_title" select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
3305
3305
|
<xsl:value-of select="$toc_requirement_title"/>
|
3306
3306
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
3307
3307
|
<xsl:call-template name="getLocalizedString">
|
@@ -3311,8 +3311,8 @@
|
|
3311
3311
|
</xsl:variable>
|
3312
3312
|
|
3313
3313
|
<xsl:variable name="bibdata">
|
3314
|
-
<xsl:copy-of select="//*[
|
3315
|
-
<xsl:copy-of select="//*[
|
3314
|
+
<xsl:copy-of select="//*[local-name() = 'metanorma']/*[local-name() = 'bibdata']"/>
|
3315
|
+
<xsl:copy-of select="//*[local-name() = 'metanorma']/*[local-name() = 'localized-strings']"/>
|
3316
3316
|
</xsl:variable>
|
3317
3317
|
|
3318
3318
|
<!-- Characters -->
|
@@ -3377,7 +3377,7 @@
|
|
3377
3377
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
3378
3378
|
|
3379
3379
|
<xsl:variable name="additional_fonts_">
|
3380
|
-
<xsl:for-each select="//*[
|
3380
|
+
<xsl:for-each select="//*[local-name() = 'metanorma'][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[local-name() = 'metanorma'][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
|
3381
3381
|
<xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
|
3382
3382
|
</xsl:for-each>
|
3383
3383
|
</xsl:variable>
|
@@ -3690,7 +3690,7 @@
|
|
3690
3690
|
<xsl:template name="refine_table-container-style">
|
3691
3691
|
<xsl:param name="margin-side"/>
|
3692
3692
|
|
3693
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3693
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3694
3694
|
<xsl:if test="$doctype = 'service-publication' and $lang != 'ar'">
|
3695
3695
|
<xsl:attribute name="font-family">Calibri</xsl:attribute>
|
3696
3696
|
</xsl:if>
|
@@ -3709,7 +3709,7 @@
|
|
3709
3709
|
|
3710
3710
|
<xsl:call-template name="setBordersTableArray"/>
|
3711
3711
|
|
3712
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3712
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3713
3713
|
<xsl:if test="$doctype = 'service-publication'">
|
3714
3714
|
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
|
3715
3715
|
</xsl:if>
|
@@ -3744,7 +3744,7 @@
|
|
3744
3744
|
|
3745
3745
|
<xsl:call-template name="setBordersTableArray"/>
|
3746
3746
|
|
3747
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3747
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3748
3748
|
<xsl:if test="$doctype = 'service-publication'">
|
3749
3749
|
<xsl:attribute name="border-bottom">1.1pt solid black</xsl:attribute>
|
3750
3750
|
</xsl:if>
|
@@ -3781,7 +3781,7 @@
|
|
3781
3781
|
|
3782
3782
|
<xsl:call-template name="setBordersTableArray"/>
|
3783
3783
|
|
3784
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3784
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3785
3785
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3786
3786
|
<xsl:if test="$doctype != 'service-publication'">
|
3787
3787
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
@@ -3824,7 +3824,7 @@
|
|
3824
3824
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3825
3825
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
3826
3826
|
</xsl:if>
|
3827
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3827
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3828
3828
|
<xsl:if test="$doctype = 'service-publication'">
|
3829
3829
|
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
|
3830
3830
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
@@ -3842,7 +3842,7 @@
|
|
3842
3842
|
|
3843
3843
|
<xsl:template name="refine_table-footer-cell-style">
|
3844
3844
|
|
3845
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
3845
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
3846
3846
|
<xsl:if test="ancestor::*[local-name()='preface']">
|
3847
3847
|
<xsl:if test="$doctype != 'service-publication'">
|
3848
3848
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
@@ -4372,7 +4372,7 @@
|
|
4372
4372
|
|
4373
4373
|
<xsl:template name="refine_fn-body-style">
|
4374
4374
|
|
4375
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
4375
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
4376
4376
|
<xsl:if test="$doctype = 'service-publication'">
|
4377
4377
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4378
4378
|
</xsl:if>
|
@@ -4743,10 +4743,10 @@
|
|
4743
4743
|
|
4744
4744
|
<xsl:template name="processTablesFigures_Contents">
|
4745
4745
|
<xsl:param name="always"/>
|
4746
|
-
<xsl:if test="(//*[
|
4746
|
+
<xsl:if test="(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
4747
4747
|
<xsl:call-template name="processTables_Contents"/>
|
4748
4748
|
</xsl:if>
|
4749
|
-
<xsl:if test="(//*[
|
4749
|
+
<xsl:if test="(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
4750
4750
|
<xsl:call-template name="processFigures_Contents"/>
|
4751
4751
|
</xsl:if>
|
4752
4752
|
</xsl:template>
|
@@ -4826,7 +4826,7 @@
|
|
4826
4826
|
</xsl:template><!-- END: processMainSectionsDefault -->
|
4827
4827
|
|
4828
4828
|
<!-- Example:
|
4829
|
-
<
|
4829
|
+
<metanorma>
|
4830
4830
|
<preface>
|
4831
4831
|
<page_sequence>
|
4832
4832
|
<clause...
|
@@ -4849,7 +4849,7 @@
|
|
4849
4849
|
<page_sequence>
|
4850
4850
|
<annex ..
|
4851
4851
|
</page_sequence>
|
4852
|
-
</
|
4852
|
+
</metanorma>
|
4853
4853
|
-->
|
4854
4854
|
<xsl:template name="processPrefaceAndMainSectionsDefault_items">
|
4855
4855
|
|
@@ -4892,15 +4892,8 @@
|
|
4892
4892
|
</xsl:template> <!-- END: insertPrefaceSectionsPageSequences -->
|
4893
4893
|
|
4894
4894
|
<xsl:template name="insertMainSectionsPageSequences">
|
4895
|
-
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
|
4896
|
-
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4897
|
-
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
4898
|
-
<xsl:sort select="@displayorder" data-type="number"/>
|
4899
|
-
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4900
4895
|
|
4901
|
-
|
4902
|
-
</xsl:element>
|
4903
|
-
</xsl:element>
|
4896
|
+
<xsl:call-template name="insertSectionsInPageSequence"/>
|
4904
4897
|
|
4905
4898
|
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4906
4899
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
@@ -4919,6 +4912,18 @@
|
|
4919
4912
|
</xsl:element>
|
4920
4913
|
</xsl:template> <!-- END: insertMainSectionsPageSequences -->
|
4921
4914
|
|
4915
|
+
<xsl:template name="insertSectionsInPageSequence">
|
4916
|
+
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
|
4917
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4918
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
4919
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4920
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4921
|
+
|
4922
|
+
</xsl:for-each>
|
4923
|
+
</xsl:element>
|
4924
|
+
</xsl:element>
|
4925
|
+
</xsl:template>
|
4926
|
+
|
4922
4927
|
<xsl:template name="insertMainSectionsInSeparatePageSequences">
|
4923
4928
|
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
|
4924
4929
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
@@ -5323,7 +5328,7 @@
|
|
5323
5328
|
|
5324
5329
|
<xsl:variable name="table-preamble">
|
5325
5330
|
|
5326
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
5331
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
5327
5332
|
<xsl:if test="$doctype != 'service-publication'">
|
5328
5333
|
<fo:block space-before="18pt"> </fo:block>
|
5329
5334
|
</xsl:if>
|
@@ -6069,7 +6074,7 @@
|
|
6069
6074
|
</xsl:choose>
|
6070
6075
|
</xsl:for-each>
|
6071
6076
|
|
6072
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
6077
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
6073
6078
|
<xsl:if test="$doctype = 'service-publication'">
|
6074
6079
|
<xsl:attribute name="border">none</xsl:attribute>
|
6075
6080
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
@@ -6100,7 +6105,7 @@
|
|
6100
6105
|
|
6101
6106
|
<!-- fn will be processed inside 'note' processing -->
|
6102
6107
|
|
6103
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
6108
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
6104
6109
|
<xsl:if test="$doctype = 'service-publication'">
|
6105
6110
|
<fo:block margin-top="7pt" margin-bottom="2pt" role="SKIP"><fo:inline>____________</fo:inline></fo:block>
|
6106
6111
|
</xsl:if>
|
@@ -6301,7 +6306,7 @@
|
|
6301
6306
|
|
6302
6307
|
<xsl:template name="setTableRowAttributes">
|
6303
6308
|
|
6304
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
6309
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
6305
6310
|
<xsl:if test="$doctype = 'service-publication'">
|
6306
6311
|
<xsl:attribute name="min-height">5mm</xsl:attribute>
|
6307
6312
|
</xsl:if>
|
@@ -6463,7 +6468,7 @@
|
|
6463
6468
|
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
6464
6469
|
|
6465
6470
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
6466
|
-
<xsl:variable name="lang" select="ancestor::*[
|
6471
|
+
<xsl:variable name="lang" select="ancestor::*[local-name() = 'metanorma']/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
6467
6472
|
<xsl:variable name="reference_">
|
6468
6473
|
<xsl:value-of select="@reference"/>
|
6469
6474
|
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
@@ -6584,13 +6589,13 @@
|
|
6584
6589
|
footnotes in bibliography
|
6585
6590
|
footnotes in document's body (except table's head/body/foot and figure text)
|
6586
6591
|
-->
|
6587
|
-
<xsl:for-each select="ancestor::*[
|
6592
|
+
<xsl:for-each select="ancestor::*[local-name() = 'metanorma']/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
|
6588
6593
|
<fn gen_id="{generate-id(.)}">
|
6589
6594
|
<xsl:copy-of select="@*"/>
|
6590
6595
|
<xsl:copy-of select="node()"/>
|
6591
6596
|
</fn>
|
6592
6597
|
</xsl:for-each>
|
6593
|
-
<xsl:for-each select="ancestor::*[
|
6598
|
+
<xsl:for-each select="ancestor::*[local-name() = 'metanorma']/*[local-name()='boilerplate']/* | ancestor::*[local-name() = 'metanorma']//*[local-name()='preface']/* | ancestor::*[local-name() = 'metanorma']//*[local-name()='sections']/* | ancestor::*[local-name() = 'metanorma']//*[local-name()='annex'] | ancestor::*[local-name() = 'metanorma']//*[local-name()='bibliography']/*">
|
6594
6599
|
<xsl:sort select="@displayorder" data-type="number"/>
|
6595
6600
|
<!-- commented:
|
6596
6601
|
.//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] |
|
@@ -8999,6 +9004,8 @@
|
|
8999
9004
|
<!-- ======================================= -->
|
9000
9005
|
<!-- math -->
|
9001
9006
|
<!-- ======================================= -->
|
9007
|
+
<xsl:template match="*[local-name() = 'stem'][following-sibling::*[1][local-name() = 'fmt-stem']]"/> <!-- for tablesonly.xml generated by mn2pdf -->
|
9008
|
+
|
9002
9009
|
<xsl:template match="mathml:math">
|
9003
9010
|
<xsl:variable name="isAdded" select="@added"/>
|
9004
9011
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
@@ -9358,10 +9365,10 @@
|
|
9358
9365
|
<xsl:template match="*[local-name()='localityStack']"/>
|
9359
9366
|
|
9360
9367
|
<xsl:variable name="pdfAttachmentsList_">
|
9361
|
-
<xsl:for-each select="//*[
|
9368
|
+
<xsl:for-each select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
9362
9369
|
<attachment filename="{@name}"/>
|
9363
9370
|
</xsl:for-each>
|
9364
|
-
<xsl:if test="not(//*[
|
9371
|
+
<xsl:if test="not(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
|
9365
9372
|
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
|
9366
9373
|
<xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
|
9367
9374
|
<attachment filename="{$attachment_path}"/>
|
@@ -10831,7 +10838,9 @@
|
|
10831
10838
|
<xsl:apply-templates mode="bookmarks"/>
|
10832
10839
|
</xsl:template>
|
10833
10840
|
|
10834
|
-
<xsl:template match="*[local-name() = '
|
10841
|
+
<xsl:template match="*[local-name() = 'stem']" mode="contents"/>
|
10842
|
+
|
10843
|
+
<xsl:template match="*[local-name() = 'title' or local-name() = 'name' or local-name() = 'fmt-title' or local-name() = 'fmt-name']//*[local-name() = 'fmt-stem']" mode="contents">
|
10835
10844
|
<xsl:apply-templates select="."/>
|
10836
10845
|
</xsl:template>
|
10837
10846
|
|
@@ -10848,7 +10857,15 @@
|
|
10848
10857
|
<xsl:apply-templates mode="contents"/>
|
10849
10858
|
</xsl:template>
|
10850
10859
|
|
10851
|
-
<xsl:template match="*[local-name() = '
|
10860
|
+
<xsl:template match="*[local-name() = 'concept']" mode="contents"/>
|
10861
|
+
<xsl:template match="*[local-name() = 'eref']" mode="contents"/>
|
10862
|
+
<xsl:template match="*[local-name() = 'xref']" mode="contents"/>
|
10863
|
+
<xsl:template match="*[local-name() = 'link']" mode="contents"/>
|
10864
|
+
<xsl:template match="*[local-name() = 'origin']" mode="contents"/>
|
10865
|
+
<xsl:template match="*[local-name() = 'erefstack ']" mode="contents"/>
|
10866
|
+
|
10867
|
+
<xsl:template match="*[local-name() = 'stem']" mode="bookmarks"/>
|
10868
|
+
<xsl:template match="*[local-name() = 'fmt-stem']" mode="bookmarks">
|
10852
10869
|
<xsl:apply-templates mode="bookmarks"/>
|
10853
10870
|
</xsl:template>
|
10854
10871
|
|
@@ -10861,6 +10878,13 @@
|
|
10861
10878
|
<xsl:apply-templates mode="bookmarks"/>
|
10862
10879
|
</xsl:template>
|
10863
10880
|
|
10881
|
+
<xsl:template match="*[local-name() = 'concept']" mode="bookmarks"/>
|
10882
|
+
<xsl:template match="*[local-name() = 'eref']" mode="bookmarks"/>
|
10883
|
+
<xsl:template match="*[local-name() = 'xref']" mode="bookmarks"/>
|
10884
|
+
<xsl:template match="*[local-name() = 'link']" mode="bookmarks"/>
|
10885
|
+
<xsl:template match="*[local-name() = 'origin']" mode="bookmarks"/>
|
10886
|
+
<xsl:template match="*[local-name() = 'erefstack ']" mode="bookmarks"/>
|
10887
|
+
|
10864
10888
|
<!-- Bookmarks -->
|
10865
10889
|
<xsl:template name="addBookmarks">
|
10866
10890
|
<xsl:param name="contents"/>
|
@@ -11145,6 +11169,13 @@
|
|
11145
11169
|
|
11146
11170
|
<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="contents_item"/>
|
11147
11171
|
|
11172
|
+
<xsl:template match="*[local-name() = 'concept']" mode="contents_item"/>
|
11173
|
+
<xsl:template match="*[local-name() = 'eref']" mode="contents_item"/>
|
11174
|
+
<xsl:template match="*[local-name() = 'xref']" mode="contents_item"/>
|
11175
|
+
<xsl:template match="*[local-name() = 'link']" mode="contents_item"/>
|
11176
|
+
<xsl:template match="*[local-name() = 'origin']" mode="contents_item"/>
|
11177
|
+
<xsl:template match="*[local-name() = 'erefstack ']" mode="contents_item"/>
|
11178
|
+
|
11148
11179
|
<xsl:template name="getSection">
|
11149
11180
|
<xsl:choose>
|
11150
11181
|
<xsl:when test="*[local-name() = 'fmt-title']">
|
@@ -11264,7 +11295,8 @@
|
|
11264
11295
|
</xsl:copy>
|
11265
11296
|
</xsl:template>
|
11266
11297
|
|
11267
|
-
<xsl:template match="*[local-name() = 'stem']" mode="contents_item"
|
11298
|
+
<xsl:template match="*[local-name() = 'stem']" mode="contents_item"/>
|
11299
|
+
<xsl:template match="*[local-name() = 'fmt-stem']" mode="contents_item">
|
11268
11300
|
<xsl:copy-of select="."/>
|
11269
11301
|
</xsl:template>
|
11270
11302
|
|
@@ -11328,7 +11360,7 @@
|
|
11328
11360
|
<!-- sourcecode -->
|
11329
11361
|
<!-- =============== -->
|
11330
11362
|
|
11331
|
-
<xsl:variable name="source-highlighter-css_" select="//*[
|
11363
|
+
<xsl:variable name="source-highlighter-css_" select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
|
11332
11364
|
<xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
|
11333
11365
|
<xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
|
11334
11366
|
|
@@ -12788,7 +12820,7 @@
|
|
12788
12820
|
|
12789
12821
|
</xsl:template> <!-- sections_element_style -->
|
12790
12822
|
|
12791
|
-
<xsl:template match="//*[
|
12823
|
+
<xsl:template match="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*" priority="2" name="preface_node"> <!-- /*/*[local-name() = 'preface']/* -->
|
12792
12824
|
|
12793
12825
|
<fo:block break-after="page"/>
|
12794
12826
|
|
@@ -12896,7 +12928,7 @@
|
|
12896
12928
|
<fo:block id="{@id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@id}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12897
12929
|
</xsl:when>
|
12898
12930
|
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
12899
|
-
<xsl:when test="ancestor::*[
|
12931
|
+
<xsl:when test="ancestor::*[local-name() = 'metanorma'] and not(ancestor::*[local-name() = 'metanorma']//*[@id = $id_from])">
|
12900
12932
|
<fo:block id="{@from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12901
12933
|
</xsl:when>
|
12902
12934
|
<xsl:when test="not(/*[@id = $id_from]) and not(/*//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
@@ -13674,7 +13706,7 @@
|
|
13674
13706
|
|
13675
13707
|
<!-- start ITU bibitem processing -->
|
13676
13708
|
<!-- 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. -->
|
13677
|
-
<xsl:variable name="doctype" select="ancestor::itu:
|
13709
|
+
<xsl:variable name="doctype" select="ancestor::itu:metanorma/itu:bibdata/itu:ext/itu:doctype[not(@language) or @language = '']"/>
|
13678
13710
|
<xsl:if test="$doctype = 'implementers-guide'">
|
13679
13711
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
13680
13712
|
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
@@ -14272,7 +14304,7 @@
|
|
14272
14304
|
<xsl:variable name="nodes_sections" select="xalan:nodeset($nodes_sections_)"/>
|
14273
14305
|
|
14274
14306
|
<!-- move section 'Normative references' inside 'sections' -->
|
14275
|
-
<xsl:for-each select="* | ancestor::*[
|
14307
|
+
<xsl:for-each select="* | ancestor::*[local-name() = 'metanorma']/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | ancestor::*[local-name() = 'metanorma']/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]">
|
14276
14308
|
<xsl:sort select="@displayorder" data-type="number"/>
|
14277
14309
|
|
14278
14310
|
<!-- process Section's title -->
|
@@ -14333,10 +14365,126 @@
|
|
14333
14365
|
<xsl:template match="*[local-name() = 'preprocess-xslt']" mode="update_xml_step1"/>
|
14334
14366
|
<xsl:template match="*[local-name() = 'preprocess-xslt']" mode="update_xml_pres"/>
|
14335
14367
|
|
14336
|
-
<xsl:template match="*[local-name() = 'stem']
|
14368
|
+
<xsl:template match="*[local-name() = 'stem']" mode="update_xml_step1"/>
|
14369
|
+
<xsl:template match="*[local-name() = 'stem']" mode="update_xml_pres"/>
|
14370
|
+
|
14371
|
+
<xsl:template match="*[local-name() = 'fmt-stem'][not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])]" mode="update_xml_step1">
|
14372
|
+
<xsl:element name="stem" namespace="{$namespace_full}">
|
14373
|
+
<xsl:copy-of select="@*"/>
|
14374
|
+
<xsl:choose>
|
14375
|
+
<xsl:when test="*[local-name() = 'semx'] and count(node()) = 1">
|
14376
|
+
<xsl:copy-of select="*[local-name() = 'semx']/node()"/>
|
14377
|
+
</xsl:when>
|
14378
|
+
<xsl:otherwise>
|
14379
|
+
<xsl:copy-of select="node()"/>
|
14380
|
+
</xsl:otherwise>
|
14381
|
+
</xsl:choose>
|
14382
|
+
</xsl:element>
|
14383
|
+
</xsl:template>
|
14384
|
+
<xsl:template match="*[local-name() = 'fmt-stem'][not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])]" mode="update_xml_pres">
|
14385
|
+
<xsl:element name="stem" namespace="{$namespace_full}">
|
14386
|
+
<xsl:copy-of select="@*"/>
|
14387
|
+
<xsl:choose>
|
14388
|
+
<xsl:when test="*[local-name() = 'semx'] and count(node()) = 1">
|
14389
|
+
<xsl:copy-of select="*[local-name() = 'semx']/node()"/>
|
14390
|
+
</xsl:when>
|
14391
|
+
<xsl:otherwise>
|
14392
|
+
<xsl:copy-of select="node()"/>
|
14393
|
+
</xsl:otherwise>
|
14394
|
+
</xsl:choose>
|
14395
|
+
</xsl:element>
|
14396
|
+
</xsl:template>
|
14397
|
+
|
14398
|
+
<xsl:template match="*[local-name() = 'image'][not(.//*[local-name() = 'passthrough'])] | *[local-name() = 'bibdata'][not(.//*[local-name() = 'passthrough'])] | *[local-name() = 'localized-strings']" mode="update_xml_step1">
|
14337
14399
|
<xsl:copy-of select="."/>
|
14338
14400
|
</xsl:template>
|
14339
14401
|
|
14402
|
+
<!-- https://github.com/metanorma/isodoc/issues/651 -->
|
14403
|
+
<!-- *[local-name() = 'sourcecode'][not(.//*[local-name() = 'passthrough']) and not(.//*[local-name() = 'fmt-name'])] -->
|
14404
|
+
<xsl:template match="*[local-name() = 'sourcecode']" mode="update_xml_step1">
|
14405
|
+
<xsl:copy>
|
14406
|
+
<xsl:copy-of select="@*"/>
|
14407
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
14408
|
+
<xsl:choose>
|
14409
|
+
<xsl:when test="*[local-name() = 'fmt-sourcecode']">
|
14410
|
+
<xsl:choose>
|
14411
|
+
<xsl:when test="*[local-name() = 'fmt-sourcecode'][not(.//*[local-name() = 'passthrough'])] and not(.//*[local-name() = 'fmt-name'])">
|
14412
|
+
<xsl:copy-of select="*[local-name() = 'fmt-sourcecode']/node()"/>
|
14413
|
+
</xsl:when>
|
14414
|
+
<xsl:otherwise>
|
14415
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-sourcecode']/node()" mode="update_xml_step1"/>
|
14416
|
+
</xsl:otherwise>
|
14417
|
+
</xsl:choose>
|
14418
|
+
</xsl:when>
|
14419
|
+
<xsl:otherwise> <!-- If fmt-sourcecode is not present -->
|
14420
|
+
<xsl:choose>
|
14421
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[local-name() = 'fmt-name'])">
|
14422
|
+
<xsl:copy-of select="node()"/>
|
14423
|
+
</xsl:when>
|
14424
|
+
<xsl:otherwise>
|
14425
|
+
<xsl:apply-templates select="node()[not(local-name() = 'fmt-name')]" mode="update_xml_step1"/>
|
14426
|
+
</xsl:otherwise>
|
14427
|
+
</xsl:choose>
|
14428
|
+
</xsl:otherwise>
|
14429
|
+
</xsl:choose>
|
14430
|
+
</xsl:copy>
|
14431
|
+
</xsl:template>
|
14432
|
+
<xsl:template match="*[local-name() = 'sourcecode']" mode="update_xml_pres">
|
14433
|
+
<xsl:copy>
|
14434
|
+
<xsl:copy-of select="@*"/>
|
14435
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_pres"/>
|
14436
|
+
<xsl:choose>
|
14437
|
+
<xsl:when test="*[local-name() = 'fmt-sourcecode']">
|
14438
|
+
<xsl:choose>
|
14439
|
+
<xsl:when test="*[local-name() = 'fmt-sourcecode'][not(.//*[local-name() = 'passthrough'])] and not(.//*[local-name() = 'fmt-name'])">
|
14440
|
+
<xsl:copy-of select="*[local-name() = 'fmt-sourcecode']/node()"/>
|
14441
|
+
</xsl:when>
|
14442
|
+
<xsl:otherwise>
|
14443
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-sourcecode']/node()" mode="update_xml_pres"/>
|
14444
|
+
</xsl:otherwise>
|
14445
|
+
</xsl:choose>
|
14446
|
+
</xsl:when>
|
14447
|
+
<xsl:otherwise> <!-- If fmt-sourcecode is not present -->
|
14448
|
+
<xsl:choose>
|
14449
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[local-name() = 'fmt-name'])">
|
14450
|
+
<xsl:copy-of select="node()"/>
|
14451
|
+
</xsl:when>
|
14452
|
+
<xsl:otherwise>
|
14453
|
+
<xsl:apply-templates select="node()[not(local-name() = 'fmt-name')]" mode="update_xml_pres"/>
|
14454
|
+
</xsl:otherwise>
|
14455
|
+
</xsl:choose>
|
14456
|
+
</xsl:otherwise>
|
14457
|
+
</xsl:choose>
|
14458
|
+
</xsl:copy>
|
14459
|
+
</xsl:template>
|
14460
|
+
|
14461
|
+
<!-- https://github.com/metanorma/isodoc/issues/651 -->
|
14462
|
+
<xsl:template match="*[local-name() = 'figure'][*[local-name() = 'fmt-figure']]" mode="update_xml_step1" priority="2">
|
14463
|
+
<xsl:copy>
|
14464
|
+
<xsl:copy-of select="@*"/>
|
14465
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
14466
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-figure']/node()" mode="update_xml_step1"/>
|
14467
|
+
</xsl:copy>
|
14468
|
+
</xsl:template>
|
14469
|
+
<xsl:template match="*[local-name() = 'figure'][*[local-name() = 'fmt-figure']]" mode="update_xml_pres" priority="2">
|
14470
|
+
<xsl:copy>
|
14471
|
+
<xsl:copy-of select="@*"/>
|
14472
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_pres"/>
|
14473
|
+
<xsl:apply-templates select="*[local-name() = 'fmt-figure']/node()" mode="update_xml_pres"/>
|
14474
|
+
</xsl:copy>
|
14475
|
+
</xsl:template>
|
14476
|
+
|
14477
|
+
<!-- https://github.com/metanorma/isodoc/issues/652 -->
|
14478
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'source']"/>
|
14479
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']"/>
|
14480
|
+
<xsl:template match="*[local-name() = 'amend']"/>
|
14481
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'source']" mode="update_xml_step1"/>
|
14482
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_step1"/>
|
14483
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'source']" mode="update_xml_pres"/>
|
14484
|
+
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
14485
|
+
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
14486
|
+
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
14487
|
+
|
14340
14488
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
14341
14489
|
<xsl:copy>
|
14342
14490
|
<xsl:copy-of select="@*"/>
|
@@ -14367,7 +14515,7 @@
|
|
14367
14515
|
<!-- add @id - first element with @id plus '_element_name' -->
|
14368
14516
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
14369
14517
|
<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>
|
14370
|
-
<xsl:variable name="document_suffix" select="ancestor::*[
|
14518
|
+
<xsl:variable name="document_suffix" select="ancestor::*[local-name() = 'metanorma']/@document_suffix"/>
|
14371
14519
|
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
14372
14520
|
</xsl:if>
|
14373
14521
|
</xsl:template>
|
@@ -14617,6 +14765,126 @@
|
|
14617
14765
|
<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="update_xml_step1"/>
|
14618
14766
|
<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="update_xml_pres"/>
|
14619
14767
|
|
14768
|
+
<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="update_xml_step1">
|
14769
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14770
|
+
</xsl:template>
|
14771
|
+
|
14772
|
+
<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="update_xml_pres">
|
14773
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14774
|
+
</xsl:template>
|
14775
|
+
|
14776
|
+
<xsl:template match="*[local-name() = 'requirement']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'recommendation']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'permission']/*[not(starts-with(local-name(), 'fmt-'))]" mode="update_xml_step1"/>
|
14777
|
+
|
14778
|
+
<xsl:template match="*[local-name() = 'requirement']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'recommendation']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'permission']/*[not(starts-with(local-name(), 'fmt-'))]" mode="update_xml_pres"/>
|
14779
|
+
|
14780
|
+
<xsl:template match="*[local-name() = 'fmt-provision']" mode="update_xml_step1">
|
14781
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14782
|
+
</xsl:template>
|
14783
|
+
<xsl:template match="*[local-name() = 'fmt-provision']" mode="update_xml_pres">
|
14784
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14785
|
+
</xsl:template>
|
14786
|
+
|
14787
|
+
<xsl:template match="*[local-name() = 'identifier']" mode="update_xml_step1"/>
|
14788
|
+
<xsl:template match="*[local-name() = 'identifier']" mode="update_xml_pres"/>
|
14789
|
+
<xsl:template match="*[local-name() = 'fmt-identifier']" mode="update_xml_step1">
|
14790
|
+
<xsl:element name="identifier" namespace="{$namespace_full}">
|
14791
|
+
<xsl:copy-of select="@*"/>
|
14792
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14793
|
+
</xsl:element>
|
14794
|
+
</xsl:template>
|
14795
|
+
<xsl:template match="*[local-name() = 'fmt-identifier']" mode="update_xml_pres">
|
14796
|
+
<xsl:element name="identifier" namespace="{$namespace_full}">
|
14797
|
+
<xsl:copy-of select="@*"/>
|
14798
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14799
|
+
</xsl:element>
|
14800
|
+
</xsl:template>
|
14801
|
+
|
14802
|
+
<xsl:template match="*[local-name() = 'concept']"/>
|
14803
|
+
<xsl:template match="*[local-name() = 'concept']" mode="update_xml_step1"/>
|
14804
|
+
<xsl:template match="*[local-name() = 'concept']" mode="update_xml_pres"/>
|
14805
|
+
|
14806
|
+
<xsl:template match="*[local-name() = 'fmt-concept']">
|
14807
|
+
<xsl:apply-templates/>
|
14808
|
+
</xsl:template>
|
14809
|
+
<xsl:template match="*[local-name() = 'fmt-concept']" mode="update_xml_step1">
|
14810
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14811
|
+
</xsl:template>
|
14812
|
+
<xsl:template match="*[local-name() = 'fmt-concept']" mode="update_xml_pres">
|
14813
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14814
|
+
</xsl:template>
|
14815
|
+
|
14816
|
+
<xsl:template match="*[local-name() = 'eref']" mode="update_xml_step1"/>
|
14817
|
+
<xsl:template match="*[local-name() = 'eref']" mode="update_xml_pres"/>
|
14818
|
+
|
14819
|
+
<xsl:template match="*[local-name() = 'fmt-eref']" mode="update_xml_step1">
|
14820
|
+
<xsl:element name="eref" namespace="{$namespace_full}">
|
14821
|
+
<xsl:copy-of select="@*"/>
|
14822
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14823
|
+
</xsl:element>
|
14824
|
+
</xsl:template>
|
14825
|
+
<xsl:template match="*[local-name() = 'fmt-eref']" mode="update_xml_pres">
|
14826
|
+
<xsl:element name="eref" namespace="{$namespace_full}">
|
14827
|
+
<xsl:copy-of select="@*"/>
|
14828
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14829
|
+
</xsl:element>
|
14830
|
+
</xsl:template>
|
14831
|
+
|
14832
|
+
<xsl:template match="*[local-name() = 'xref']" mode="update_xml_step1"/>
|
14833
|
+
<xsl:template match="*[local-name() = 'xref']" mode="update_xml_pres"/>
|
14834
|
+
|
14835
|
+
<xsl:template match="*[local-name() = 'fmt-xref']" mode="update_xml_step1">
|
14836
|
+
<xsl:element name="xref" namespace="{$namespace_full}">
|
14837
|
+
<xsl:copy-of select="@*"/>
|
14838
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14839
|
+
</xsl:element>
|
14840
|
+
</xsl:template>
|
14841
|
+
<xsl:template match="*[local-name() = 'fmt-xref']" mode="update_xml_pres">
|
14842
|
+
<xsl:element name="xref" namespace="{$namespace_full}">
|
14843
|
+
<xsl:copy-of select="@*"/>
|
14844
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14845
|
+
</xsl:element>
|
14846
|
+
</xsl:template>
|
14847
|
+
|
14848
|
+
<xsl:template match="*[local-name() = 'link']" mode="update_xml_step1"/>
|
14849
|
+
<xsl:template match="*[local-name() = 'link']" mode="update_xml_pres"/>
|
14850
|
+
|
14851
|
+
<xsl:template match="*[local-name() = 'fmt-link']" mode="update_xml_step1">
|
14852
|
+
<xsl:element name="link" namespace="{$namespace_full}">
|
14853
|
+
<xsl:copy-of select="@*"/>
|
14854
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14855
|
+
</xsl:element>
|
14856
|
+
</xsl:template>
|
14857
|
+
<xsl:template match="*[local-name() = 'fmt-link']" mode="update_xml_pres">
|
14858
|
+
<xsl:element name="link" namespace="{$namespace_full}">
|
14859
|
+
<xsl:copy-of select="@*"/>
|
14860
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14861
|
+
</xsl:element>
|
14862
|
+
</xsl:template>
|
14863
|
+
|
14864
|
+
<xsl:template match="*[local-name() = 'origin']" mode="update_xml_step1"/>
|
14865
|
+
<xsl:template match="*[local-name() = 'origin']" mode="update_xml_pres"/>
|
14866
|
+
|
14867
|
+
<xsl:template match="*[local-name() = 'fmt-origin']" mode="update_xml_step1">
|
14868
|
+
<xsl:element name="origin" namespace="{$namespace_full}">
|
14869
|
+
<xsl:copy-of select="@*"/>
|
14870
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14871
|
+
</xsl:element>
|
14872
|
+
</xsl:template>
|
14873
|
+
<xsl:template match="*[local-name() = 'fmt-origin']" mode="update_xml_pres">
|
14874
|
+
<xsl:element name="origin" namespace="{$namespace_full}">
|
14875
|
+
<xsl:copy-of select="@*"/>
|
14876
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14877
|
+
</xsl:element>
|
14878
|
+
</xsl:template>
|
14879
|
+
|
14880
|
+
<xsl:template match="*[local-name() = 'erefstack']"/>
|
14881
|
+
<xsl:template match="*[local-name() = 'erefstack']" mode="update_xml_step1"/>
|
14882
|
+
<xsl:template match="*[local-name() = 'erefstack']" mode="update_xml_pres"/>
|
14883
|
+
|
14884
|
+
<xsl:template match="*[local-name() = 'svgmap']"/>
|
14885
|
+
<xsl:template match="*[local-name() = 'svgmap']" mode="update_xml_step1"/>
|
14886
|
+
<xsl:template match="*[local-name() = 'svgmap']" mode="update_xml_pres"/>
|
14887
|
+
|
14620
14888
|
<!-- END: update new Presentation XML -->
|
14621
14889
|
|
14622
14890
|
<!-- =========================================================================== -->
|
@@ -14689,7 +14957,7 @@
|
|
14689
14957
|
|
14690
14958
|
<xsl:choose>
|
14691
14959
|
<xsl:when test="$page_sequence_at_top = 'true'">
|
14692
|
-
<xsl:for-each select="ancestor::*[ancestor::*[
|
14960
|
+
<xsl:for-each select="ancestor::*[ancestor::*[local-name() = 'metanorma']]">
|
14693
14961
|
<element pos="{position()}">
|
14694
14962
|
<xsl:copy-of select="@*[local-name() != 'id']"/>
|
14695
14963
|
<xsl:value-of select="name()"/>
|
@@ -15117,7 +15385,7 @@
|
|
15117
15385
|
</xsl:when>
|
15118
15386
|
<xsl:when test="contains($text, $replace)">
|
15119
15387
|
<xsl:value-of select="substring-before($text,$replace)"/>
|
15120
|
-
<xsl:element name="inlineChar" namespace="https://www.metanorma.org/ns/
|
15388
|
+
<xsl:element name="inlineChar" namespace="https://www.metanorma.org/ns/standoc"><xsl:value-of select="$by"/></xsl:element>
|
15121
15389
|
<xsl:call-template name="replaceChar">
|
15122
15390
|
<xsl:with-param name="text" select="substring-after($text,$replace)"/>
|
15123
15391
|
<xsl:with-param name="replace" select="$replace"/>
|
@@ -15154,7 +15422,7 @@
|
|
15154
15422
|
</xsl:variable>
|
15155
15423
|
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
15156
15424
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
15157
|
-
<xsl:variable name="lang" select="ancestor::*[
|
15425
|
+
<xsl:variable name="lang" select="ancestor::*[local-name() = 'metanorma']/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
15158
15426
|
<xsl:variable name="reference" select="@reference"/>
|
15159
15427
|
<!-- fn sequence number in document -->
|
15160
15428
|
<xsl:variable name="current_fn_number" select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
|
@@ -15199,7 +15467,7 @@
|
|
15199
15467
|
</xsl:template>
|
15200
15468
|
|
15201
15469
|
<xsl:template name="printEdition">
|
15202
|
-
<xsl:variable name="edition_i18n" select="normalize-space((//*[
|
15470
|
+
<xsl:variable name="edition_i18n" select="normalize-space((//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
15203
15471
|
|
15204
15472
|
<xsl:choose>
|
15205
15473
|
<xsl:when test="$edition_i18n != ''">
|
@@ -15209,7 +15477,7 @@
|
|
15209
15477
|
</xsl:call-template>
|
15210
15478
|
</xsl:when>
|
15211
15479
|
<xsl:otherwise>
|
15212
|
-
<xsl:variable name="edition" select="normalize-space((//*[
|
15480
|
+
<xsl:variable name="edition" select="normalize-space((//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'])"/>
|
15213
15481
|
<xsl:if test="$edition != ''"> <!-- Example: 1.3 -->
|
15214
15482
|
<xsl:call-template name="capitalize">
|
15215
15483
|
<xsl:with-param name="str">
|
@@ -15343,7 +15611,7 @@
|
|
15343
15611
|
<xsl:param name="charDelim" select="', '"/>
|
15344
15612
|
<xsl:choose>
|
15345
15613
|
<xsl:when test="$sorting = 'true' or $sorting = 'yes'">
|
15346
|
-
<xsl:for-each select="//*[
|
15614
|
+
<xsl:for-each select="//*[local-name() = 'metanorma']/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
15347
15615
|
<xsl:sort data-type="text" order="ascending"/>
|
15348
15616
|
<xsl:call-template name="insertKeyword">
|
15349
15617
|
<xsl:with-param name="meta" select="$meta"/>
|
@@ -15353,7 +15621,7 @@
|
|
15353
15621
|
</xsl:for-each>
|
15354
15622
|
</xsl:when>
|
15355
15623
|
<xsl:otherwise>
|
15356
|
-
<xsl:for-each select="//*[
|
15624
|
+
<xsl:for-each select="//*[local-name() = 'metanorma']/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
15357
15625
|
<xsl:call-template name="insertKeyword">
|
15358
15626
|
<xsl:with-param name="meta" select="$meta"/>
|
15359
15627
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
@@ -15428,7 +15696,7 @@
|
|
15428
15696
|
<!-- Dublin Core properties go here -->
|
15429
15697
|
<dc:title>
|
15430
15698
|
<xsl:variable name="title">
|
15431
|
-
<xsl:for-each select="(//*[
|
15699
|
+
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
15432
15700
|
|
15433
15701
|
<xsl:value-of select="*[local-name() = 'title'][@type='main']"/>
|
15434
15702
|
|
@@ -15448,7 +15716,7 @@
|
|
15448
15716
|
</rdf:Alt>
|
15449
15717
|
</dc:title>
|
15450
15718
|
<xsl:variable name="dc_creator">
|
15451
|
-
<xsl:for-each select="(//*[
|
15719
|
+
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
15452
15720
|
|
15453
15721
|
<rdf:Seq>
|
15454
15722
|
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
|
@@ -15470,7 +15738,7 @@
|
|
15470
15738
|
<xsl:variable name="dc_description">
|
15471
15739
|
<xsl:variable name="abstract">
|
15472
15740
|
|
15473
|
-
<xsl:copy-of select="//*[
|
15741
|
+
<xsl:copy-of select="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'fmt-title']) and not(ancestor::*[local-name() = 'title']) and not(ancestor::*[local-name() = 'fmt-xref-label'])]"/>
|
15474
15742
|
|
15475
15743
|
</xsl:variable>
|
15476
15744
|
<rdf:Alt>
|
@@ -15498,7 +15766,7 @@
|
|
15498
15766
|
</rdf:RDF>
|
15499
15767
|
</x:xmpmeta>
|
15500
15768
|
<!-- add attachments -->
|
15501
|
-
<xsl:for-each select="//*[
|
15769
|
+
<xsl:for-each select="//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
15502
15770
|
<xsl:variable name="bibitem_attachment_" select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment'] = current()/@name]"/>
|
15503
15771
|
<xsl:variable name="bibitem_attachment" select="xalan:nodeset($bibitem_attachment_)"/>
|
15504
15772
|
<xsl:variable name="description" select="normalize-space($bibitem_attachment/*[local-name() = 'formattedref'])"/>
|
@@ -15532,7 +15800,7 @@
|
|
15532
15800
|
</pdf:embedded-file>
|
15533
15801
|
</xsl:for-each>
|
15534
15802
|
<!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
|
15535
|
-
<xsl:if test="not(//*[
|
15803
|
+
<xsl:if test="not(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
|
15536
15804
|
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
|
15537
15805
|
<xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
|
15538
15806
|
<xsl:variable name="attachment_name" select="java:org.metanorma.fop.Util.getFilenameFromPath($attachment_path)"/>
|
@@ -15736,9 +16004,9 @@
|
|
15736
16004
|
<xsl:value-of select="document('')//*/namespace::itu"/>
|
15737
16005
|
|
15738
16006
|
</xsl:variable>
|
15739
|
-
<xsl:if test="$documentNS != $XSLNS">
|
16007
|
+
<!-- <xsl:if test="$documentNS != $XSLNS">
|
15740
16008
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
15741
|
-
</xsl:if>
|
16009
|
+
</xsl:if> -->
|
15742
16010
|
</xsl:template> <!-- namespaceCheck -->
|
15743
16011
|
|
15744
16012
|
<xsl:template name="getLanguage">
|
@@ -15817,10 +16085,10 @@
|
|
15817
16085
|
|
15818
16086
|
<xsl:variable name="data_value">
|
15819
16087
|
<xsl:choose>
|
15820
|
-
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) !=
|
16088
|
+
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != 0">
|
15821
16089
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
15822
16090
|
</xsl:when>
|
15823
|
-
<xsl:when test="string-length($bibdata_updated) !=
|
16091
|
+
<xsl:when test="string-length($bibdata_updated) != 0">
|
15824
16092
|
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
15825
16093
|
</xsl:when>
|
15826
16094
|
<xsl:when test="$formatted = 'true'">
|
@@ -15958,7 +16226,7 @@
|
|
15958
16226
|
<!-- background image -->
|
15959
16227
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
|
15960
16228
|
<fo:block>
|
15961
|
-
<xsl:for-each select="/*[
|
16229
|
+
<xsl:for-each select="/*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = $name][1]/*[local-name() = 'value']/*[local-name() = 'image'][$num]">
|
15962
16230
|
<xsl:choose>
|
15963
16231
|
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
15964
16232
|
<fo:instream-foreign-object fox:alt-text="Image Front">
|