metanorma-itu 2.6.6 → 2.6.7
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/html/_coverpage.css +0 -2
- data/lib/isodoc/itu/html/htmlstyle.css +0 -2
- data/lib/isodoc/itu/itu.implementers-guide.xsl +233 -228
- data/lib/isodoc/itu/itu.in-force.xsl +233 -228
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +233 -228
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +233 -228
- data/lib/isodoc/itu/itu.recommendation.xsl +233 -228
- data/lib/isodoc/itu/itu.resolution.xsl +233 -228
- data/lib/isodoc/itu/itu.service-publication.xsl +233 -228
- data/lib/isodoc/itu/itu.technical-paper.xsl +233 -228
- data/lib/isodoc/itu/itu.technical-report.xsl +233 -228
- data/lib/metanorma/itu/cleanup_section.rb +3 -3
- data/lib/metanorma/itu/converter.rb +7 -0
- data/lib/metanorma/itu/isodoc.rng +14 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
@@ -495,267 +495,271 @@
|
|
495
495
|
<fo:block id="firstpage_id_{$num}"> </fo:block>
|
496
496
|
</fo:block-container>
|
497
497
|
|
498
|
-
<fo:block-container
|
498
|
+
<fo:block-container margin-right="15.7mm">
|
499
499
|
|
500
|
-
<
|
500
|
+
<fo:block-container font-size="22pt" font-weight="bold" color="{$color_cover_title}" margin-right="0mm">
|
501
501
|
|
502
|
-
|
502
|
+
<xsl:call-template name="setWritingMode"/>
|
503
503
|
|
504
|
-
<xsl:
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
510
|
-
</fo:block>
|
511
|
-
<!-- https://github.com/metanorma/metanorma-itu/issues/474#issuecomment-1966298384 -->
|
512
|
-
<xsl:variable name="title_slogan" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'slogan'])"/>
|
513
|
-
<xsl:if test="$title_slogan != ''">
|
514
|
-
<fo:block margin-top="2mm" font-family="Adelle Devanagari" font-size="26pt">
|
515
|
-
<xsl:choose>
|
516
|
-
<xsl:when test="$lang = 'ar'"><xsl:attribute name="font-family">Traditional Arabic</xsl:attribute></xsl:when>
|
517
|
-
<xsl:when test="$lang = 'zh'"><xsl:attribute name="font-family">STKaiti</xsl:attribute></xsl:when>
|
518
|
-
<!-- <xsl:otherwise><xsl:attribute name="font-style">italic</xsl:attribute></xsl:otherwise> -->
|
519
|
-
</xsl:choose>
|
520
|
-
<xsl:value-of select="$title_slogan"/>
|
504
|
+
<xsl:choose>
|
505
|
+
|
506
|
+
<xsl:when test="$doctype = 'service-publication'"> <!-- Flagship -->
|
507
|
+
<fo:block margin-top="11.5mm" font-size="34pt">
|
508
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
521
509
|
</fo:block>
|
522
|
-
|
523
|
-
|
524
|
-
<xsl:if test="$year_published != ''">
|
525
|
-
<!-- Examples:
|
526
|
-
2020 edition
|
527
|
-
Édition 2020
|
528
|
-
Edición 2020
|
529
|
-
طبعة 2020
|
530
|
-
2020 年版
|
531
|
-
Издание 2020 года -->
|
532
|
-
<fo:block margin-top="3mm" font-size="22pt">
|
533
|
-
<xsl:choose>
|
534
|
-
<xsl:when test="$lang = 'en' or $lang = 'ar' or $lang = 'zh'">
|
535
|
-
<xsl:value-of select="concat($year_published, ' ', $i18n_edition)"/>
|
536
|
-
</xsl:when>
|
537
|
-
<xsl:otherwise>
|
538
|
-
<xsl:value-of select="concat($i18n_edition_Capitalized, ' ', $year_published)"/>
|
539
|
-
<xsl:if test="$lang = 'ru'"> года</xsl:if>
|
540
|
-
</xsl:otherwise>
|
541
|
-
</xsl:choose>
|
510
|
+
<fo:block margin-top="2mm" font-size="26pt">
|
511
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'subtitle' and @language = $lang]"/>
|
542
512
|
</fo:block>
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
<xsl:
|
553
|
-
|
554
|
-
</xsl:when>
|
555
|
-
<xsl:when test="$doctype = 'implementers-guide'">
|
556
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
557
|
-
<xsl:text> </xsl:text>
|
558
|
-
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
559
|
-
<xsl:text> </xsl:text>
|
560
|
-
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
561
|
-
</xsl:when>
|
562
|
-
<xsl:when test="$doctype = 'resolution'">
|
563
|
-
<xsl:value-of select="$doctypeTitle"/>
|
564
|
-
<xsl:text> </xsl:text>
|
565
|
-
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
566
|
-
</xsl:when>
|
567
|
-
<xsl:otherwise>
|
568
|
-
<xsl:value-of select="$doctypeTitle"/>
|
569
|
-
<xsl:text> </xsl:text>
|
570
|
-
<xsl:value-of select="$docidentifier_ITU"/>
|
571
|
-
</xsl:otherwise>
|
572
|
-
</xsl:choose>
|
573
|
-
</fo:block>
|
574
|
-
|
575
|
-
<fo:block-container font-size="14pt" margin-top="1mm" margin-right="2mm">
|
576
|
-
<xsl:if test="$bureau = 'T'">
|
577
|
-
<xsl:attribute name="text-align">end</xsl:attribute>
|
513
|
+
<!-- https://github.com/metanorma/metanorma-itu/issues/474#issuecomment-1966298384 -->
|
514
|
+
<xsl:variable name="title_slogan" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'slogan'])"/>
|
515
|
+
<xsl:if test="$title_slogan != ''">
|
516
|
+
<fo:block margin-top="2mm" font-family="Adelle Devanagari" font-size="26pt">
|
517
|
+
<xsl:choose>
|
518
|
+
<xsl:when test="$lang = 'ar'"><xsl:attribute name="font-family">Traditional Arabic</xsl:attribute></xsl:when>
|
519
|
+
<xsl:when test="$lang = 'zh'"><xsl:attribute name="font-family">STKaiti</xsl:attribute></xsl:when>
|
520
|
+
<!-- <xsl:otherwise><xsl:attribute name="font-style">italic</xsl:attribute></xsl:otherwise> -->
|
521
|
+
</xsl:choose>
|
522
|
+
<xsl:value-of select="$title_slogan"/>
|
523
|
+
</fo:block>
|
578
524
|
</xsl:if>
|
579
|
-
<
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
</fo:block-container>
|
590
|
-
</xsl:if>
|
591
|
-
<xsl:if test="$provisionalIdentifier != ''">
|
592
|
-
<fo:block-container>
|
593
|
-
<xsl:call-template name="setWritingMode"/>
|
594
|
-
<fo:block>Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/>
|
595
|
-
</fo:block>
|
596
|
-
</fo:block-container>
|
597
|
-
</xsl:if>
|
598
|
-
<xsl:if test="$annexid != ''">
|
599
|
-
<fo:block-container>
|
600
|
-
<xsl:call-template name="setWritingMode"/>
|
601
|
-
<fo:block>
|
602
|
-
<xsl:value-of select="$i18n_annex"/>
|
603
|
-
<xsl:text> </xsl:text>
|
604
|
-
<xsl:value-of select="$annexid"/>
|
605
|
-
</fo:block>
|
606
|
-
</fo:block-container>
|
607
|
-
</xsl:if>
|
608
|
-
<xsl:if test="$isAmendment != ''">
|
609
|
-
<fo:block-container>
|
610
|
-
<xsl:call-template name="setWritingMode"/>
|
611
|
-
<fo:block><xsl:value-of select="$isAmendment"/></fo:block>
|
612
|
-
</fo:block-container>
|
613
|
-
</xsl:if>
|
614
|
-
<xsl:if test="$isCorrigendum != ''">
|
615
|
-
<fo:block-container>
|
616
|
-
<xsl:call-template name="setWritingMode"/>
|
617
|
-
<fo:block><xsl:value-of select="$isCorrigendum"/></fo:block>
|
618
|
-
</fo:block-container>
|
619
|
-
</xsl:if>
|
620
|
-
|
621
|
-
<!-- Date, example: (11/2018) -->
|
525
|
+
<xsl:variable name="year_published" select="substring($date_published,1,4)"/>
|
526
|
+
<xsl:if test="$year_published != ''">
|
527
|
+
<!-- Examples:
|
528
|
+
2020 edition
|
529
|
+
Édition 2020
|
530
|
+
Edición 2020
|
531
|
+
طبعة 2020
|
532
|
+
2020 年版
|
533
|
+
Издание 2020 года -->
|
534
|
+
<fo:block margin-top="3mm" font-size="22pt">
|
622
535
|
<xsl:choose>
|
623
|
-
<xsl:when test="
|
624
|
-
<xsl:
|
625
|
-
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:version/itu:revision-date"/>
|
626
|
-
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
627
|
-
</xsl:call-template>
|
536
|
+
<xsl:when test="$lang = 'en' or $lang = 'ar' or $lang = 'zh'">
|
537
|
+
<xsl:value-of select="concat($year_published, ' ', $i18n_edition)"/>
|
628
538
|
</xsl:when>
|
629
539
|
<xsl:otherwise>
|
630
|
-
<xsl:
|
631
|
-
|
632
|
-
</xsl:call-template>
|
540
|
+
<xsl:value-of select="concat($i18n_edition_Capitalized, ' ', $year_published)"/>
|
541
|
+
<xsl:if test="$lang = 'ru'"> года</xsl:if>
|
633
542
|
</xsl:otherwise>
|
634
543
|
</xsl:choose>
|
635
|
-
</xsl:variable>
|
636
|
-
<fo:block>
|
637
|
-
<xsl:copy-of select="$additional_block"/>
|
638
|
-
<xsl:if test="normalize-space($additional_block) = ''"> </xsl:if>
|
639
544
|
</fo:block>
|
640
|
-
</
|
641
|
-
</
|
545
|
+
</xsl:if>
|
546
|
+
</xsl:when> <!-- $doctype = 'service-publication' -->
|
642
547
|
|
643
|
-
<xsl:
|
644
|
-
<fo:block margin-
|
645
|
-
<xsl:
|
548
|
+
<xsl:otherwise>
|
549
|
+
<fo:block margin-top="11.5mm">
|
550
|
+
<xsl:choose>
|
551
|
+
<xsl:when test="$doctype = 'technical-report' or $doctype = 'technical-paper'">
|
552
|
+
<!-- Example: ITU-T Technical Paper -->
|
553
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
554
|
+
<xsl:text> </xsl:text>
|
555
|
+
<xsl:value-of select="$doctypeTitle"/>
|
556
|
+
</xsl:when>
|
557
|
+
<xsl:when test="$doctype = 'implementers-guide'">
|
558
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
559
|
+
<xsl:text> </xsl:text>
|
560
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type='ITU-Recommendation']"/>
|
561
|
+
<xsl:text> </xsl:text>
|
562
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
563
|
+
</xsl:when>
|
564
|
+
<xsl:when test="$doctype = 'resolution'">
|
565
|
+
<xsl:value-of select="$doctypeTitle"/>
|
566
|
+
<xsl:text> </xsl:text>
|
567
|
+
<xsl:value-of select="$docidentifier_ITU_left_part"/>
|
568
|
+
</xsl:when>
|
569
|
+
<xsl:otherwise>
|
570
|
+
<xsl:value-of select="$doctypeTitle"/>
|
571
|
+
<xsl:text> </xsl:text>
|
572
|
+
<xsl:value-of select="$docidentifier_ITU"/>
|
573
|
+
</xsl:otherwise>
|
574
|
+
</xsl:choose>
|
646
575
|
</fo:block>
|
647
|
-
</xsl:if>
|
648
|
-
|
649
|
-
<!-- Series: -->
|
650
|
-
<xsl:variable name="series">
|
651
|
-
<xsl:call-template name="insertSeriesTitleMain">
|
652
|
-
<xsl:with-param name="i18n_series" select="$i18n_series"/>
|
653
|
-
</xsl:call-template>
|
654
|
-
<xsl:choose>
|
655
|
-
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
656
|
-
<xsl:otherwise>
|
657
|
-
<xsl:if test="/itu:metanorma/itu:bibdata/itu:series">
|
658
|
-
<fo:block font-weight="normal" margin-top="4mm">
|
659
|
-
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
660
|
-
</fo:block>
|
661
|
-
</xsl:if>
|
662
|
-
</xsl:otherwise>
|
663
|
-
</xsl:choose>
|
664
|
-
</xsl:variable>
|
665
576
|
|
666
|
-
|
667
|
-
|
577
|
+
<fo:block-container font-size="14pt" margin-top="1mm" margin-right="2mm">
|
578
|
+
<xsl:if test="$bureau = 'T'">
|
579
|
+
<xsl:attribute name="text-align">end</xsl:attribute>
|
580
|
+
<xsl:attribute name="margin-right">-13.7mm</xsl:attribute>
|
581
|
+
</xsl:if>
|
668
582
|
<fo:block-container margin-right="0mm">
|
669
|
-
|
670
|
-
|
671
|
-
|
583
|
+
|
584
|
+
<xsl:variable name="additional_block">
|
585
|
+
<!-- Examples:
|
586
|
+
Amendment 1
|
587
|
+
Supplement 37 -->
|
588
|
+
<xsl:if test="$TDnumber != ''">
|
589
|
+
<fo:block-container>
|
590
|
+
<xsl:call-template name="setWritingMode"/>
|
591
|
+
<fo:block>TD number: <xsl:value-of select="$TDnumber"/></fo:block>
|
592
|
+
</fo:block-container>
|
593
|
+
</xsl:if>
|
594
|
+
<xsl:if test="$provisionalIdentifier != ''">
|
595
|
+
<fo:block-container>
|
596
|
+
<xsl:call-template name="setWritingMode"/>
|
597
|
+
<fo:block>Provisional identifier: <xsl:value-of select="$provisionalIdentifier"/>
|
598
|
+
</fo:block>
|
599
|
+
</fo:block-container>
|
600
|
+
</xsl:if>
|
601
|
+
<xsl:if test="$annexid != ''">
|
602
|
+
<fo:block-container>
|
603
|
+
<xsl:call-template name="setWritingMode"/>
|
604
|
+
<fo:block>
|
605
|
+
<xsl:value-of select="$i18n_annex"/>
|
606
|
+
<xsl:text> </xsl:text>
|
607
|
+
<xsl:value-of select="$annexid"/>
|
608
|
+
</fo:block>
|
609
|
+
</fo:block-container>
|
610
|
+
</xsl:if>
|
611
|
+
<xsl:if test="$isAmendment != ''">
|
612
|
+
<fo:block-container>
|
613
|
+
<xsl:call-template name="setWritingMode"/>
|
614
|
+
<fo:block><xsl:value-of select="$isAmendment"/></fo:block>
|
615
|
+
</fo:block-container>
|
616
|
+
</xsl:if>
|
617
|
+
<xsl:if test="$isCorrigendum != ''">
|
618
|
+
<fo:block-container>
|
619
|
+
<xsl:call-template name="setWritingMode"/>
|
620
|
+
<fo:block><xsl:value-of select="$isCorrigendum"/></fo:block>
|
621
|
+
</fo:block-container>
|
622
|
+
</xsl:if>
|
623
|
+
|
624
|
+
<!-- Date, example: (11/2018) -->
|
625
|
+
<xsl:choose>
|
626
|
+
<xsl:when test="($doctype = 'technical-report' or $doctype = 'technical-paper') and /itu:metanorma/itu:bibdata/itu:version/itu:revision-date">
|
627
|
+
<xsl:call-template name="formatMeetingDate">
|
628
|
+
<xsl:with-param name="date" select="/itu:metanorma/itu:bibdata/itu:version/itu:revision-date"/>
|
629
|
+
<xsl:with-param name="inParenthesis">true</xsl:with-param>
|
630
|
+
</xsl:call-template>
|
631
|
+
</xsl:when>
|
632
|
+
<xsl:otherwise>
|
633
|
+
<xsl:call-template name="formatDate">
|
634
|
+
<xsl:with-param name="date" select="$date_published"/>
|
635
|
+
</xsl:call-template>
|
636
|
+
</xsl:otherwise>
|
637
|
+
</xsl:choose>
|
638
|
+
</xsl:variable>
|
672
639
|
<fo:block>
|
673
|
-
<
|
640
|
+
<xsl:copy-of select="$additional_block"/>
|
641
|
+
<xsl:if test="normalize-space($additional_block) = ''"> </xsl:if>
|
674
642
|
</fo:block>
|
675
643
|
</fo:block-container>
|
676
|
-
</fo:block-container>
|
677
|
-
</xsl:if>
|
644
|
+
</fo:block-container> <!-- end of additional block -->
|
678
645
|
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
<xsl:value-of select="$docnumber"/>
|
646
|
+
<xsl:if test="$doctype = 'resolution'">
|
647
|
+
<fo:block margin-bottom="6pt">
|
648
|
+
<xsl:call-template name="insertMeetingInfo"/>
|
649
|
+
</fo:block>
|
684
650
|
</xsl:if>
|
685
|
-
</fo:block>
|
686
651
|
|
687
|
-
|
688
|
-
<xsl:
|
689
|
-
<xsl:
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
652
|
+
<!-- Series: -->
|
653
|
+
<xsl:variable name="series">
|
654
|
+
<xsl:call-template name="insertSeriesTitleMain">
|
655
|
+
<xsl:with-param name="i18n_series" select="$i18n_series"/>
|
656
|
+
</xsl:call-template>
|
657
|
+
<xsl:choose>
|
658
|
+
<xsl:when test="$doctype = 'recommendation-supplement'"/>
|
659
|
+
<xsl:otherwise>
|
660
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:series">
|
661
|
+
<fo:block font-weight="normal" margin-top="4mm">
|
662
|
+
<xsl:call-template name="insertSeriesTitleAdditional"/>
|
663
|
+
</fo:block>
|
664
|
+
</xsl:if>
|
665
|
+
</xsl:otherwise>
|
666
|
+
</xsl:choose>
|
667
|
+
</xsl:variable>
|
668
|
+
|
669
|
+
<xsl:if test="normalize-space($series) != ''">
|
670
|
+
<fo:block-container margin-right="5mm">
|
671
|
+
<fo:block-container margin-right="0mm">
|
672
|
+
<fo:block font-size="18pt" margin-top="5mm">
|
673
|
+
<xsl:copy-of select="$series"/>
|
674
|
+
</fo:block>
|
675
|
+
<fo:block>
|
676
|
+
<fo:leader leader-pattern="rule" rule-thickness="1pt" leader-length="100%"/>
|
677
|
+
</fo:block>
|
678
|
+
</fo:block-container>
|
679
|
+
</fo:block-container>
|
698
680
|
</xsl:if>
|
699
|
-
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
700
|
-
</fo:block>
|
701
681
|
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
<xsl:value-of select="$annexid"/>
|
708
|
-
<xsl:value-of select="$en_dash_separator"/>
|
709
|
-
<xsl:value-of select="."/>
|
710
|
-
</fo:block>
|
711
|
-
</xsl:for-each>
|
712
|
-
|
713
|
-
<!-- Example: Amendment 1 - ... -->
|
714
|
-
<xsl:if test="$isAmendment != ''">
|
715
|
-
<fo:block margin-top="3mm" role="H1">
|
716
|
-
<xsl:value-of select="$isAmendment"/>
|
717
|
-
<xsl:variable name="title_amendment" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'amendment'])"/>
|
718
|
-
<xsl:if test="$title_amendment != ''">
|
719
|
-
<xsl:value-of select="$en_dash_separator"/>
|
720
|
-
<xsl:value-of select="$title_amendment"/>
|
682
|
+
<fo:block role="H1">
|
683
|
+
<!-- margin-top="24mm" -->
|
684
|
+
<xsl:if test="($doctype = 'technical-report' or $doctype = 'technical-paper') and $docnumber != ''">
|
685
|
+
<xsl:attribute name="margin-top">3mm</xsl:attribute>
|
686
|
+
<xsl:value-of select="$docnumber"/>
|
721
687
|
</xsl:if>
|
722
688
|
</fo:block>
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
<xsl:if test="$
|
689
|
+
|
690
|
+
<fo:block margin-top="3pt">
|
691
|
+
<xsl:if test="$doctype = 'implementers-guide'">
|
692
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:doctype[@language = $lang]"/>
|
693
|
+
<xsl:text> for </xsl:text>
|
694
|
+
</xsl:if>
|
695
|
+
<xsl:if test="$doctype = 'resolution'">
|
696
|
+
<!-- Resolution 1 -->
|
697
|
+
<xsl:value-of select="$doctypeTitle"/>
|
698
|
+
<xsl:text> </xsl:text>
|
699
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:ext/itu:structuredidentifier/itu:docnumber"/>
|
730
700
|
<xsl:value-of select="$en_dash_separator"/>
|
731
|
-
<xsl:value-of select="$title_corrigendum"/>
|
732
701
|
</xsl:if>
|
702
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:title[@type = 'main' and @language = $lang]"/>
|
733
703
|
</fo:block>
|
734
|
-
</xsl:if>
|
735
704
|
|
736
|
-
|
737
|
-
<
|
738
|
-
<fo:block
|
739
|
-
<
|
740
|
-
|
741
|
-
|
705
|
+
<!-- Example: Annex F1 - ... -->
|
706
|
+
<xsl:for-each select="/itu:metanorma/itu:bibdata/itu:title[@type = 'annex' and @language = $lang]">
|
707
|
+
<fo:block font-size="18pt" margin-top="3mm" role="H1">
|
708
|
+
<xsl:value-of select="$i18n_annex"/>
|
709
|
+
<xsl:text> </xsl:text>
|
710
|
+
<xsl:value-of select="$annexid"/>
|
711
|
+
<xsl:value-of select="$en_dash_separator"/>
|
712
|
+
<xsl:value-of select="."/>
|
713
|
+
</fo:block>
|
714
|
+
</xsl:for-each>
|
715
|
+
|
716
|
+
<!-- Example: Amendment 1 - ... -->
|
717
|
+
<xsl:if test="$isAmendment != ''">
|
718
|
+
<fo:block margin-top="3mm" role="H1">
|
719
|
+
<xsl:value-of select="$isAmendment"/>
|
720
|
+
<xsl:variable name="title_amendment" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'amendment'])"/>
|
721
|
+
<xsl:if test="$title_amendment != ''">
|
722
|
+
<xsl:value-of select="$en_dash_separator"/>
|
723
|
+
<xsl:value-of select="$title_amendment"/>
|
724
|
+
</xsl:if>
|
725
|
+
</fo:block>
|
726
|
+
</xsl:if>
|
727
|
+
<!-- Example: Corrigendum 1 - ... -->
|
728
|
+
<xsl:if test="$isCorrigendum != ''">
|
729
|
+
<fo:block margin-top="3mm" role="H1">
|
730
|
+
<xsl:value-of select="$isCorrigendum"/>
|
731
|
+
<xsl:variable name="title_corrigendum" select="normalize-space(/itu:metanorma/itu:bibdata/itu:title[@type = 'corrigendum'])"/>
|
732
|
+
<xsl:if test="$title_corrigendum != ''">
|
733
|
+
<xsl:value-of select="$en_dash_separator"/>
|
734
|
+
<xsl:value-of select="$title_corrigendum"/>
|
735
|
+
</xsl:if>
|
736
|
+
</fo:block>
|
737
|
+
</xsl:if>
|
738
|
+
|
739
|
+
<xsl:if test="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[starts-with(@id, 'draft-warning')]">
|
740
|
+
<fo:block-container margin-left="1mm" margin-right="1mm" border="0.7mm solid black" margin-top="5mm">
|
741
|
+
<fo:block-container margin-left="1mm" margin-right="1mm">
|
742
|
+
<fo:block padding-top="3mm">
|
743
|
+
<xsl:apply-templates select="/itu:metanorma/itu:boilerplate/itu:legal-statement/itu:clause[starts-with(@id, 'draft-warning')]" mode="caution"/>
|
744
|
+
</fo:block>
|
745
|
+
</fo:block-container>
|
742
746
|
</fo:block-container>
|
743
|
-
</
|
744
|
-
</xsl:if>
|
747
|
+
</xsl:if>
|
745
748
|
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
749
|
+
<xsl:if test="$doctype = 'recommendation-supplement'">
|
750
|
+
<fo:block font-size="16pt" margin-top="3mm">
|
751
|
+
<xsl:if test="/itu:metanorma/itu:bibdata/itu:status/itu:stage = 'draft'">Draft </xsl:if>
|
752
|
+
<xsl:text>ITU-</xsl:text>
|
753
|
+
<xsl:value-of select="$bureau"/>
|
754
|
+
<xsl:text> </xsl:text>
|
755
|
+
<xsl:value-of select="/itu:metanorma/itu:bibdata/itu:docidentifier[@type = 'ITU-Supplement']"/>
|
756
|
+
</fo:block>
|
757
|
+
</xsl:if>
|
758
|
+
</xsl:otherwise>
|
756
759
|
|
757
|
-
|
760
|
+
</xsl:choose>
|
758
761
|
|
762
|
+
</fo:block-container>
|
759
763
|
</fo:block-container>
|
760
764
|
</fo:flow>
|
761
765
|
</fo:page-sequence>
|
@@ -2973,7 +2977,7 @@
|
|
2973
2977
|
</style>
|
2974
2978
|
<g>
|
2975
2979
|
<g>
|
2976
|
-
<rect x="0
|
2980
|
+
<rect x="0" y="0.6" class="st0" width="612" height="16.5"/>
|
2977
2981
|
</g>
|
2978
2982
|
<xsl:choose>
|
2979
2983
|
<xsl:when test="$lang = 'ar'">
|
@@ -3323,6 +3327,7 @@
|
|
3323
3327
|
<xsl:variable name="hair_space"> </xsl:variable>
|
3324
3328
|
<xsl:variable name="en_dash">–</xsl:variable>
|
3325
3329
|
<xsl:variable name="em_dash">—</xsl:variable>
|
3330
|
+
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
3326
3331
|
<xsl:variable name="cr"> </xsl:variable>
|
3327
3332
|
<xsl:variable name="lf">
|
3328
3333
|
</xsl:variable>
|
@@ -140,10 +140,10 @@ module Metanorma
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def sections_names_pref_cleanup(xml)
|
143
|
+
t = xml.at("//preface//abstract/title")
|
144
|
+
t&.text&.downcase == "summary" and summary = true
|
143
145
|
super
|
144
|
-
|
145
|
-
t["anchor"] == "_summary" and
|
146
|
-
replace_title(xml, "//preface//abstract", @i18n&.summary)
|
146
|
+
summary and replace_title(xml, "//preface//abstract", @i18n&.summary)
|
147
147
|
end
|
148
148
|
end
|
149
149
|
end
|
@@ -116,6 +116,13 @@ module Metanorma
|
|
116
116
|
super
|
117
117
|
end
|
118
118
|
|
119
|
+
def abstract_parse(attrs, xml, node)
|
120
|
+
xml.abstract **attr_code(attrs) do |xml_section|
|
121
|
+
xml_section.title { |name| name << node.title }
|
122
|
+
xml_section << node.content
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
119
126
|
def document_scheme(node)
|
120
127
|
super || "current"
|
121
128
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.0.
|
3
|
+
<!-- VERSION v2.0.6 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -801,6 +801,12 @@ titlecase, or lowercase</a:documentation>
|
|
801
801
|
<a:documentation>User-supplied anchor of element; replaced by content-based id, with all references to the anchor updated accordingly</a:documentation>
|
802
802
|
</attribute>
|
803
803
|
</optional>
|
804
|
+
<optional>
|
805
|
+
<attribute name="source">
|
806
|
+
<a:documentation>Sourcing of the current element in an external data model</a:documentation>
|
807
|
+
<ref name="IdRefType"/>
|
808
|
+
</attribute>
|
809
|
+
</optional>
|
804
810
|
</define>
|
805
811
|
<define name="OptionalId" combine="interleave">
|
806
812
|
<optional>
|
@@ -808,6 +814,12 @@ titlecase, or lowercase</a:documentation>
|
|
808
814
|
<a:documentation> User-supplied anchor of element; replaced by content-based id, with all references to the anchor updated accordingly</a:documentation>
|
809
815
|
</attribute>
|
810
816
|
</optional>
|
817
|
+
<optional>
|
818
|
+
<attribute name="source">
|
819
|
+
<a:documentation>Sourcing of the current element in an external data model</a:documentation>
|
820
|
+
<ref name="IdRefType"/>
|
821
|
+
</attribute>
|
822
|
+
</optional>
|
811
823
|
</define>
|
812
824
|
<define name="ObligationType">
|
813
825
|
<a:documentation>The force of a clause in a standard document: whether it has normative or informative effect</a:documentation>
|
@@ -954,6 +966,7 @@ titlecase, or lowercase</a:documentation>
|
|
954
966
|
is used in particular to capture mutually agreed definitions of codepoints in Unicode Private Use Area</a:documentation>
|
955
967
|
</attribute>
|
956
968
|
</optional>
|
969
|
+
<ref name="OptionalId"/>
|
957
970
|
<oneOrMore>
|
958
971
|
<ref name="TextElement">
|
959
972
|
<a:documentation>Textual content of span</a:documentation>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|