metanorma-ieee 1.5.5 → 1.5.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/html2doc/ieee/lists.rb +4 -6
- data/lib/isodoc/ieee/html/htmlstyle.css +1 -1
- data/lib/isodoc/ieee/html/htmlstyle.scss +1 -1
- data/lib/isodoc/ieee/ieee.amendment.xsl +366 -395
- data/lib/isodoc/ieee/ieee.standard.xsl +366 -395
- data/lib/isodoc/ieee/init.rb +2 -2
- data/lib/isodoc/ieee/presentation_ref.rb +1 -1
- data/lib/isodoc/ieee/presentation_xml_convert.rb +24 -25
- data/lib/isodoc/ieee/word_cleanup.rb +1 -0
- data/lib/metanorma/ieee/biblio.rng +1 -1
- data/lib/metanorma/ieee/cleanup_ref.rb +2 -15
- data/lib/metanorma/ieee/isodoc.rng +35 -10
- data/lib/metanorma/ieee/version.rb +1 -1
- data/metanorma-ieee.gemspec +1 -1
- metadata +6 -6
@@ -353,8 +353,6 @@
|
|
353
353
|
|
354
354
|
<xsl:variable name="copyright_year" select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
|
355
355
|
|
356
|
-
<xsl:variable name="approved_date_year" select="substring(normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'issued']),1,4)"/>
|
357
|
-
|
358
356
|
<xsl:variable name="designation" select="/mn:metanorma/mn:bibdata/mn:docnumber"/>
|
359
357
|
|
360
358
|
<!-- IEEE Std 802.1X™-2020 -->
|
@@ -453,12 +451,13 @@
|
|
453
451
|
<xsl:variable name="enabler" select="xalan:nodeset($enabler_)"/>
|
454
452
|
|
455
453
|
<xsl:variable name="approved_by">IEEE SA Standards Board</xsl:variable>
|
456
|
-
<xsl:variable name="approved_date">
|
454
|
+
<!-- <xsl:variable name="approved_date">
|
457
455
|
<xsl:call-template name="convertDate">
|
458
456
|
<xsl:with-param name="date" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'issued'])"/>
|
459
457
|
<xsl:with-param name="format" select="'ddMMyyyy'"/>
|
460
458
|
</xsl:call-template>
|
461
|
-
</xsl:variable>
|
459
|
+
</xsl:variable> -->
|
460
|
+
<xsl:variable name="approved_date" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'ieee-sasb-approved' and @format = 'ddMMMyyyy'])"/>
|
462
461
|
|
463
462
|
<!-- Example: Revision of IEEE Std 802.1X™-2010
|
464
463
|
Incorporating IEEE Std 802.1Xbx™-2014
|
@@ -521,226 +520,20 @@
|
|
521
520
|
<xsl:with-param name="history_text" select="$history_text"/>
|
522
521
|
</xsl:call-template>
|
523
522
|
|
524
|
-
<xsl:
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
<fo:block font-size="18pt" margin-left="6mm">
|
539
|
-
Example Local and Metropolitan Area Networks—
|
540
|
-
<xsl:copy-of select="$title_intro"/>
|
541
|
-
</fo:block>
|
542
|
-
</xsl:otherwise>
|
543
|
-
</xsl:choose> -->
|
544
|
-
|
545
|
-
<fo:block font-size="23pt"> <!-- 18pt -->
|
546
|
-
<!-- <xsl:value-of select="$title_prefix"/> -->
|
547
|
-
<xsl:copy-of select="$title_main"/>
|
548
|
-
</fo:block>
|
549
|
-
|
550
|
-
</xsl:variable>
|
551
|
-
<xsl:variable name="title_standard_coverpage" select="xalan:nodeset($title_standard_coverpage_)"/>
|
552
|
-
|
553
|
-
<!-- =================== -->
|
554
|
-
<!-- Second page(s) -->
|
555
|
-
<!-- =================== -->
|
556
|
-
<xsl:choose>
|
557
|
-
|
558
|
-
<xsl:when test="$current_template = 'draft'">
|
559
|
-
<!-- Legal statement -->
|
560
|
-
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" format="1">
|
561
|
-
<xsl:call-template name="insertFootnoteSeparator"/>
|
562
|
-
|
563
|
-
<xsl:call-template name="insertHeaderFooter">
|
564
|
-
<xsl:with-param name="document_id" select="$document_id"/>
|
565
|
-
<xsl:with-param name="title" select="$title"/>
|
566
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
567
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
568
|
-
<xsl:with-param name="hideFooter"><xsl:if test="not(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '')">false</xsl:if></xsl:with-param>
|
569
|
-
</xsl:call-template>
|
570
|
-
|
571
|
-
<fo:flow flow-name="xsl-region-body">
|
572
|
-
<fo:block>
|
573
|
-
<!-- Example:
|
574
|
-
Important Notices and Disclaimers Concerning IEEE Standards Documents
|
575
|
-
IEEE Standards documents are made available for use subject to important notices and legal disclaimers. These notices and disclaimers, or a reference to this page (https://standards.ieee.org/ipr/disclaimers.html), appear in all standards and may be found under the heading “Important Notices and Disclaimers Concerning IEEE Standards Documents.”
|
576
|
-
...
|
577
|
-
-->
|
578
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
579
|
-
</fo:block>
|
580
|
-
</fo:flow>
|
581
|
-
|
582
|
-
</fo:page-sequence> <!-- End: Legal statement -->
|
583
|
-
|
584
|
-
</xsl:when> <!-- $current_template = 'draft' -->
|
585
|
-
|
586
|
-
<xsl:when test="$current_template = 'standard'">
|
587
|
-
<!-- Second, third page -->
|
588
|
-
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" font-family="Arial" initial-page-number="1">
|
589
|
-
|
590
|
-
<xsl:call-template name="insertFootnoteSeparator"/>
|
591
|
-
|
592
|
-
<xsl:call-template name="insertHeaderFooter">
|
593
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
594
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
595
|
-
<!-- <xsl:with-param name="hideHeader">true</xsl:with-param> -->
|
596
|
-
<xsl:with-param name="hideFooter">true</xsl:with-param>
|
597
|
-
</xsl:call-template>
|
598
|
-
|
599
|
-
<fo:flow flow-name="xsl-region-body">
|
600
|
-
<fo:block text-align="right" margin-top="-11.5mm" id="__internal_layout__titlepage_{generate-id()}"> <!-- margin-top="2mm" -->
|
601
|
-
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
602
|
-
<fo:block font-size="9pt"><xsl:value-of select="$history_text"/></fo:block>
|
603
|
-
</fo:block>
|
604
|
-
|
605
|
-
<fo:block-container width="105%"> <!-- width="135mm" -->
|
606
|
-
<fo:block font-weight="bold" space-before="25.5mm" line-height="1.15"> <!-- space-before="13mm" -->
|
607
|
-
<xsl:copy-of select="$title_standard_coverpage"/>
|
608
|
-
</fo:block>
|
609
|
-
</fo:block-container>
|
610
|
-
|
611
|
-
<xsl:if test="$committee != ''">
|
612
|
-
<fo:block font-size="10pt" space-before="11mm" space-after="4pt"><xsl:value-of select="$developed_by"/></fo:block>
|
613
|
-
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
614
|
-
<!-- Example: LAN/MAN Standards Committee -->
|
615
|
-
<fo:block line-height="1.12"><xsl:value-of select="$committee"/></fo:block>
|
616
|
-
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
617
|
-
<!-- Example: IEEE Computer Society -->
|
618
|
-
<fo:block><xsl:value-of select="$society"/></fo:block>
|
619
|
-
</fo:block>
|
620
|
-
</xsl:if>
|
621
|
-
|
622
|
-
<xsl:if test="normalize-space($enabler) != ''">
|
623
|
-
<fo:block font-size="10pt" space-before="9mm" space-after="4pt"><xsl:value-of select="$sponsored_by"/></fo:block>
|
624
|
-
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
625
|
-
<!-- Sponsored by the
|
626
|
-
LAN/MAN Standards Committee -->
|
627
|
-
<xsl:for-each select="$enabler/mn:subdivision">
|
628
|
-
<fo:block line-height="1.12"><xsl:value-of select="mn:subdivision/mn:name"/></fo:block>
|
629
|
-
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
630
|
-
<fo:block><xsl:value-of select="concat(../mn:abbreviation, ' ', mn:name)"/></fo:block>
|
631
|
-
<xsl:if test="position() != last()">
|
632
|
-
<fo:block font-weight="normal" font-size="10pt">and the</fo:block>
|
633
|
-
</xsl:if>
|
634
|
-
</xsl:for-each>
|
635
|
-
</fo:block>
|
636
|
-
</xsl:if>
|
637
|
-
|
638
|
-
<fo:block font-size="10pt" space-before="8mm" space-after="4pt">Approved <xsl:value-of select="$approved_date"/></fo:block>
|
639
|
-
<!-- Example: IEEE SA Standards Board -->
|
640
|
-
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm"><xsl:value-of select="$approved_by"/></fo:block>
|
641
|
-
|
642
|
-
<fo:block break-after="page"/>
|
643
|
-
|
644
|
-
<fo:block font-family="Arial" text-align="justify">
|
645
|
-
<fo:block>
|
646
|
-
<fo:inline font-weight="bold">
|
647
|
-
<xsl:call-template name="getLocalizedString">
|
648
|
-
<xsl:with-param name="key">abstract</xsl:with-param>
|
649
|
-
</xsl:call-template>
|
650
|
-
<xsl:text>: </xsl:text>
|
651
|
-
</fo:inline>
|
652
|
-
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:abstract/node()[not(self::mn:fmt-title)] | /mn:metanorma/mn:preface/mn:clause[@id = '_abstract' or mn:fmt-title = 'Abstract']/node()[not(self::mn:fmt-title)]"/>
|
653
|
-
</fo:block>
|
654
|
-
<fo:block> </fo:block>
|
655
|
-
<fo:block>
|
656
|
-
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
657
|
-
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:keyword">
|
658
|
-
<xsl:value-of select="."/>
|
659
|
-
<xsl:if test="position() != last()">, </xsl:if>
|
660
|
-
</xsl:for-each>
|
661
|
-
</fo:block>
|
662
|
-
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/>
|
663
|
-
</fo:block>
|
664
|
-
|
665
|
-
<!-- Example:
|
666
|
-
The Institute of Electrical and Electronics Engineers, Inc.
|
667
|
-
3 Park Avenue, New York, NY 10016-5997, USA
|
668
|
-
...
|
669
|
-
PDF: ISBN 978-0-XXXX-XXXX-X STDXXXXX
|
670
|
-
Print: ISBN 978-0-XXXX-XXXX-X STDPDXXXXX
|
671
|
-
-->
|
672
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
|
673
|
-
|
674
|
-
</fo:flow>
|
675
|
-
</fo:page-sequence>
|
676
|
-
|
677
|
-
<!-- Example:
|
678
|
-
Important Notices and Disclaimers Concerning IEEE Standards Documents
|
679
|
-
IEEE Standards documents are made available for use subject to important notices and legal disclaimers. These notices and disclaimers, or a reference to this page (https://standards.ieee.org/ipr/disclaimers.html), appear in all standards and may be found under the heading “Important Notices and Disclaimers Concerning IEEE Standards Documents.”
|
680
|
-
...
|
681
|
-
-->
|
682
|
-
<fo:page-sequence master-reference="document-draft-two-columns" force-page-count="no-force">
|
683
|
-
<xsl:call-template name="insertFootnoteSeparator"/>
|
684
|
-
<xsl:call-template name="insertHeaderFooter">
|
685
|
-
<xsl:with-param name="document_id" select="$document_id"/>
|
686
|
-
<xsl:with-param name="title" select="$title"/>
|
687
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
688
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
689
|
-
</xsl:call-template>
|
690
|
-
|
691
|
-
<fo:flow flow-name="xsl-region-body">
|
692
|
-
|
693
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
694
|
-
|
695
|
-
<xsl:if test="not(/mn:metanorma/mn:boilerplate/mn:legal-statement/*)">
|
696
|
-
<fo:block> </fo:block>
|
697
|
-
</xsl:if>
|
698
|
-
</fo:flow>
|
699
|
-
</fo:page-sequence>
|
700
|
-
</xsl:when> <!-- $current_template = 'standard' -->
|
701
|
-
|
702
|
-
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
703
|
-
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force" font-family="Calibri Light">
|
704
|
-
|
705
|
-
<xsl:call-template name="insertHeaderFooter">
|
706
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
707
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
708
|
-
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
709
|
-
</xsl:call-template>
|
710
|
-
|
711
|
-
<fo:flow flow-name="xsl-region-body">
|
712
|
-
<fo:block-container>
|
713
|
-
|
714
|
-
<fo:block>
|
715
|
-
<!-- TRADEMARKS AND DISCLAIMERS -->
|
716
|
-
<!-- ACKNOWLEDGEMENTS -->
|
717
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement/*[@id = 'boilerplate-tm' or normalize-space(mn:fmt-title) = 'Trademarks and Disclaimers' or @id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Acknowledgements']" mode="whitepaper"/>
|
718
|
-
</fo:block>
|
719
|
-
|
720
|
-
<!-- Example:
|
721
|
-
The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
|
722
|
-
...
|
723
|
-
PDF: STDXXXXX ISBN 978-0-XXXX-XXXX-X
|
724
|
-
-->
|
725
|
-
<fo:block font-style="italic">
|
726
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
|
727
|
-
</fo:block>
|
728
|
-
|
729
|
-
<!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA DOCUMENTS -->
|
730
|
-
<fo:block break-after="page"/>
|
731
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement/*[not(@id = 'boilerplate-tm') and not(normalize-space(mn:fmt-title) = 'Trademarks and Disclaimers') and not(@id = 'boilerplate-participants') and not(normalize-space(mn:title) = 'Acknowledgements')]"/>
|
732
|
-
|
733
|
-
</fo:block-container>
|
734
|
-
</fo:flow>
|
735
|
-
|
736
|
-
</fo:page-sequence>
|
737
|
-
|
738
|
-
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
739
|
-
|
740
|
-
</xsl:choose>
|
741
|
-
<!-- =================== -->
|
742
|
-
<!-- End Second page(s) -->
|
743
|
-
<!-- =================== -->
|
523
|
+
<xsl:call-template name="inner-cover-page">
|
524
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
525
|
+
<xsl:with-param name="title" select="$title"/>
|
526
|
+
<xsl:with-param name="society" select="$society"/>
|
527
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
528
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
529
|
+
<xsl:with-param name="committee" select="$committee"/>
|
530
|
+
<xsl:with-param name="enabler" select="$enabler"/>
|
531
|
+
<xsl:with-param name="approved_date" select="$approved_date"/>
|
532
|
+
<xsl:with-param name="approved_by" select="$approved_by"/>
|
533
|
+
<xsl:with-param name="title_main" select="$title_main"/>
|
534
|
+
<xsl:with-param name="standard_number" select="$standard_number"/>
|
535
|
+
<xsl:with-param name="history_text" select="$history_text"/>
|
536
|
+
</xsl:call-template>
|
744
537
|
|
745
538
|
<xsl:variable name="updated_xml_with_pages">
|
746
539
|
<xsl:call-template name="processPrefaceAndMainSectionsIEEE_items"/>
|
@@ -763,7 +556,7 @@
|
|
763
556
|
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
|
764
557
|
|
765
558
|
<!-- <xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]"> -->
|
766
|
-
<xsl:for-each select=".//mn:page_sequence[mn:introduction]">
|
559
|
+
<xsl:for-each select=".//mn:page_sequence[mn:introduction or mn:acknowledgements]">
|
767
560
|
|
768
561
|
<fo:page-sequence master-reference="document-draft"> <!-- format="i" initial-page-number="1" -->
|
769
562
|
|
@@ -943,9 +736,6 @@
|
|
943
736
|
<xsl:for-each select="/*/mn:preface/mn:introduction">
|
944
737
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
945
738
|
</xsl:for-each>
|
946
|
-
</xsl:element>
|
947
|
-
|
948
|
-
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
949
739
|
<xsl:for-each select="/*/mn:preface/mn:acknowledgements">
|
950
740
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
951
741
|
</xsl:for-each>
|
@@ -1162,6 +952,9 @@
|
|
1162
952
|
</xsl:variable>
|
1163
953
|
|
1164
954
|
<xsl:choose>
|
955
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
956
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
957
|
+
</xsl:when>
|
1165
958
|
|
1166
959
|
<xsl:when test="$current_template = 'draft'">
|
1167
960
|
|
@@ -1239,14 +1032,16 @@
|
|
1239
1032
|
<fo:block> </fo:block>
|
1240
1033
|
</xsl:if>
|
1241
1034
|
|
1242
|
-
<
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1035
|
+
<xsl:if test="$approved_date != ''">
|
1036
|
+
<fo:block>
|
1037
|
+
<!-- Approved <Date Approved> -->
|
1038
|
+
<xsl:text>Approved </xsl:text>
|
1039
|
+
<xsl:value-of select="$approved_date"/>
|
1040
|
+
</fo:block>
|
1041
|
+
<fo:block> </fo:block>
|
1042
|
+
<!-- Example: IEEE SA Standards Board -->
|
1043
|
+
<fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
|
1044
|
+
</xsl:if>
|
1250
1045
|
|
1251
1046
|
<xsl:if test="normalize-space($cutoff_date) != ''">
|
1252
1047
|
<fo:block> </fo:block>
|
@@ -1290,7 +1085,9 @@
|
|
1290
1085
|
<xsl:if test="position() != last()">, </xsl:if>
|
1291
1086
|
</xsl:for-each>
|
1292
1087
|
</fo:block>
|
1293
|
-
|
1088
|
+
<!-- From https://github.com/metanorma/metanorma-ieee/issues/566#issuecomment-3302383104:
|
1089
|
+
the Acknowledgements section comes immediately after Introduction, as shown in the StyleMan -->
|
1090
|
+
<!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/> -->
|
1294
1091
|
</fo:block>
|
1295
1092
|
|
1296
1093
|
<!-- Example:
|
@@ -1332,6 +1129,216 @@
|
|
1332
1129
|
<!-- ======================= -->
|
1333
1130
|
</xsl:template> <!-- END: cover-page -->
|
1334
1131
|
|
1132
|
+
<xsl:template name="inner-cover-page">
|
1133
|
+
<xsl:param name="document_id"/>
|
1134
|
+
<xsl:param name="title"/>
|
1135
|
+
<xsl:param name="society"/>
|
1136
|
+
<xsl:param name="copyright_holder"/>
|
1137
|
+
<xsl:param name="copyright_year"/>
|
1138
|
+
<xsl:param name="committee"/>
|
1139
|
+
<xsl:param name="enabler"/>
|
1140
|
+
<xsl:param name="approved_date"/>
|
1141
|
+
<xsl:param name="approved_by"/>
|
1142
|
+
<xsl:param name="title_main"/>
|
1143
|
+
<xsl:param name="standard_number"/>
|
1144
|
+
<xsl:param name="history_text"/>
|
1145
|
+
<!-- =================== -->
|
1146
|
+
<!-- Second page(s) -->
|
1147
|
+
<!-- =================== -->
|
1148
|
+
<xsl:choose>
|
1149
|
+
|
1150
|
+
<xsl:when test="$current_template = 'draft'">
|
1151
|
+
<!-- Legal statement -->
|
1152
|
+
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" format="1">
|
1153
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
1154
|
+
|
1155
|
+
<xsl:call-template name="insertHeaderFooter">
|
1156
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
1157
|
+
<xsl:with-param name="title" select="$title"/>
|
1158
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1159
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1160
|
+
<xsl:with-param name="hideFooter"><xsl:if test="not(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '')">false</xsl:if></xsl:with-param>
|
1161
|
+
</xsl:call-template>
|
1162
|
+
|
1163
|
+
<fo:flow flow-name="xsl-region-body">
|
1164
|
+
<fo:block>
|
1165
|
+
<!-- Example:
|
1166
|
+
Important Notices and Disclaimers Concerning IEEE Standards Documents
|
1167
|
+
IEEE Standards documents are made available for use subject to important notices and legal disclaimers. These notices and disclaimers, or a reference to this page (https://standards.ieee.org/ipr/disclaimers.html), appear in all standards and may be found under the heading “Important Notices and Disclaimers Concerning IEEE Standards Documents.”
|
1168
|
+
...
|
1169
|
+
-->
|
1170
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
1171
|
+
</fo:block>
|
1172
|
+
</fo:flow>
|
1173
|
+
|
1174
|
+
</fo:page-sequence> <!-- End: Legal statement -->
|
1175
|
+
|
1176
|
+
</xsl:when> <!-- $current_template = 'draft' -->
|
1177
|
+
|
1178
|
+
<xsl:when test="$current_template = 'standard'">
|
1179
|
+
<!-- Second, third page -->
|
1180
|
+
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" font-family="Arial" initial-page-number="1">
|
1181
|
+
|
1182
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
1183
|
+
|
1184
|
+
<xsl:call-template name="insertHeaderFooter">
|
1185
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1186
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1187
|
+
<!-- <xsl:with-param name="hideHeader">true</xsl:with-param> -->
|
1188
|
+
<xsl:with-param name="hideFooter">true</xsl:with-param>
|
1189
|
+
</xsl:call-template>
|
1190
|
+
|
1191
|
+
<fo:flow flow-name="xsl-region-body">
|
1192
|
+
<fo:block text-align="right" margin-top="-11.5mm" id="__internal_layout__titlepage_{generate-id()}"> <!-- margin-top="2mm" -->
|
1193
|
+
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
1194
|
+
<fo:block font-size="9pt"><xsl:value-of select="$history_text"/></fo:block>
|
1195
|
+
</fo:block>
|
1196
|
+
|
1197
|
+
<fo:block-container width="105%"> <!-- width="135mm" -->
|
1198
|
+
<fo:block font-size="23pt" font-weight="bold" space-before="25.5mm" line-height="1.15"> <!-- space-before="13mm" -->
|
1199
|
+
<xsl:copy-of select="$title_main"/>
|
1200
|
+
</fo:block>
|
1201
|
+
</fo:block-container>
|
1202
|
+
|
1203
|
+
<xsl:if test="$committee != ''">
|
1204
|
+
<fo:block font-size="10pt" space-before="11mm" space-after="4pt"><xsl:value-of select="$developed_by"/></fo:block>
|
1205
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
1206
|
+
<!-- Example: LAN/MAN Standards Committee -->
|
1207
|
+
<fo:block line-height="1.12"><xsl:value-of select="$committee"/></fo:block>
|
1208
|
+
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
1209
|
+
<!-- Example: IEEE Computer Society -->
|
1210
|
+
<fo:block><xsl:value-of select="$society"/></fo:block>
|
1211
|
+
</fo:block>
|
1212
|
+
</xsl:if>
|
1213
|
+
|
1214
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
1215
|
+
<fo:block font-size="10pt" space-before="9mm" space-after="4pt"><xsl:value-of select="$sponsored_by"/></fo:block>
|
1216
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
1217
|
+
<!-- Sponsored by the
|
1218
|
+
LAN/MAN Standards Committee -->
|
1219
|
+
<xsl:for-each select="$enabler/mn:subdivision">
|
1220
|
+
<fo:block line-height="1.12"><xsl:value-of select="mn:subdivision/mn:name"/></fo:block>
|
1221
|
+
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
1222
|
+
<fo:block><xsl:value-of select="concat(../mn:abbreviation, ' ', mn:name)"/></fo:block>
|
1223
|
+
<xsl:if test="position() != last()">
|
1224
|
+
<fo:block font-weight="normal" font-size="10pt">and the</fo:block>
|
1225
|
+
</xsl:if>
|
1226
|
+
</xsl:for-each>
|
1227
|
+
</fo:block>
|
1228
|
+
</xsl:if>
|
1229
|
+
|
1230
|
+
<xsl:if test="$approved_date != ''">
|
1231
|
+
<fo:block font-size="10pt" space-before="8mm" space-after="4pt">Approved <xsl:value-of select="$approved_date"/></fo:block>
|
1232
|
+
<!-- Example: IEEE SA Standards Board -->
|
1233
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm"><xsl:value-of select="$approved_by"/></fo:block>
|
1234
|
+
</xsl:if>
|
1235
|
+
|
1236
|
+
<fo:block break-after="page"/>
|
1237
|
+
|
1238
|
+
<fo:block font-family="Arial" text-align="justify">
|
1239
|
+
<fo:block>
|
1240
|
+
<fo:inline font-weight="bold">
|
1241
|
+
<xsl:call-template name="getLocalizedString">
|
1242
|
+
<xsl:with-param name="key">abstract</xsl:with-param>
|
1243
|
+
</xsl:call-template>
|
1244
|
+
<xsl:text>: </xsl:text>
|
1245
|
+
</fo:inline>
|
1246
|
+
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:abstract/node()[not(self::mn:fmt-title)] | /mn:metanorma/mn:preface/mn:clause[@id = '_abstract' or mn:fmt-title = 'Abstract']/node()[not(self::mn:fmt-title)]"/>
|
1247
|
+
</fo:block>
|
1248
|
+
<fo:block> </fo:block>
|
1249
|
+
<fo:block>
|
1250
|
+
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
1251
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:keyword">
|
1252
|
+
<xsl:value-of select="."/>
|
1253
|
+
<xsl:if test="position() != last()">, </xsl:if>
|
1254
|
+
</xsl:for-each>
|
1255
|
+
</fo:block>
|
1256
|
+
<!-- From https://github.com/metanorma/metanorma-ieee/issues/566#issuecomment-3302383104:
|
1257
|
+
the Acknowledgements section comes immediately after Introduction, as shown in the StyleMan -->
|
1258
|
+
<!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/> -->
|
1259
|
+
</fo:block>
|
1260
|
+
|
1261
|
+
<!-- Example:
|
1262
|
+
The Institute of Electrical and Electronics Engineers, Inc.
|
1263
|
+
3 Park Avenue, New York, NY 10016-5997, USA
|
1264
|
+
...
|
1265
|
+
PDF: ISBN 978-0-XXXX-XXXX-X STDXXXXX
|
1266
|
+
Print: ISBN 978-0-XXXX-XXXX-X STDPDXXXXX
|
1267
|
+
-->
|
1268
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
|
1269
|
+
|
1270
|
+
</fo:flow>
|
1271
|
+
</fo:page-sequence>
|
1272
|
+
|
1273
|
+
<!-- Example:
|
1274
|
+
Important Notices and Disclaimers Concerning IEEE Standards Documents
|
1275
|
+
IEEE Standards documents are made available for use subject to important notices and legal disclaimers. These notices and disclaimers, or a reference to this page (https://standards.ieee.org/ipr/disclaimers.html), appear in all standards and may be found under the heading “Important Notices and Disclaimers Concerning IEEE Standards Documents.”
|
1276
|
+
...
|
1277
|
+
-->
|
1278
|
+
<fo:page-sequence master-reference="document-draft-two-columns" force-page-count="no-force">
|
1279
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
1280
|
+
<xsl:call-template name="insertHeaderFooter">
|
1281
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
1282
|
+
<xsl:with-param name="title" select="$title"/>
|
1283
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1284
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1285
|
+
</xsl:call-template>
|
1286
|
+
|
1287
|
+
<fo:flow flow-name="xsl-region-body">
|
1288
|
+
|
1289
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
1290
|
+
|
1291
|
+
<xsl:if test="not(/mn:metanorma/mn:boilerplate/mn:legal-statement/*)">
|
1292
|
+
<fo:block> </fo:block>
|
1293
|
+
</xsl:if>
|
1294
|
+
</fo:flow>
|
1295
|
+
</fo:page-sequence>
|
1296
|
+
</xsl:when> <!-- $current_template = 'standard' -->
|
1297
|
+
|
1298
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1299
|
+
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force" font-family="Calibri Light">
|
1300
|
+
|
1301
|
+
<xsl:call-template name="insertHeaderFooter">
|
1302
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1303
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1304
|
+
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
1305
|
+
</xsl:call-template>
|
1306
|
+
|
1307
|
+
<fo:flow flow-name="xsl-region-body">
|
1308
|
+
<fo:block-container>
|
1309
|
+
|
1310
|
+
<fo:block>
|
1311
|
+
<!-- TRADEMARKS AND DISCLAIMERS -->
|
1312
|
+
<!-- ACKNOWLEDGEMENTS -->
|
1313
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement/*[@id = 'boilerplate-tm' or normalize-space(mn:fmt-title) = 'Trademarks and Disclaimers' or @id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Acknowledgements']" mode="whitepaper"/>
|
1314
|
+
</fo:block>
|
1315
|
+
|
1316
|
+
<!-- Example:
|
1317
|
+
The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
|
1318
|
+
...
|
1319
|
+
PDF: STDXXXXX ISBN 978-0-XXXX-XXXX-X
|
1320
|
+
-->
|
1321
|
+
<fo:block font-style="italic">
|
1322
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
|
1323
|
+
</fo:block>
|
1324
|
+
|
1325
|
+
<!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA DOCUMENTS -->
|
1326
|
+
<fo:block break-after="page"/>
|
1327
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement/*[not(@id = 'boilerplate-tm') and not(normalize-space(mn:fmt-title) = 'Trademarks and Disclaimers') and not(@id = 'boilerplate-participants') and not(normalize-space(mn:title) = 'Acknowledgements')]"/>
|
1328
|
+
|
1329
|
+
</fo:block-container>
|
1330
|
+
</fo:flow>
|
1331
|
+
|
1332
|
+
</fo:page-sequence>
|
1333
|
+
|
1334
|
+
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1335
|
+
|
1336
|
+
</xsl:choose>
|
1337
|
+
<!-- =================== -->
|
1338
|
+
<!-- End Second page(s) -->
|
1339
|
+
<!-- =================== -->
|
1340
|
+
</xsl:template> <!-- END: inner-cover-page -->
|
1341
|
+
|
1335
1342
|
<xsl:template match="mn:preface/mn:clause[@type = 'toc']" priority="3">
|
1336
1343
|
<xsl:param name="num"/>
|
1337
1344
|
|
@@ -1379,27 +1386,6 @@
|
|
1379
1386
|
</fo:block>
|
1380
1387
|
</fo:block>
|
1381
1388
|
</xsl:for-each>
|
1382
|
-
|
1383
|
-
<!-- List of Tables -->
|
1384
|
-
<xsl:for-each select="$contents//mnx:tables/mnx:table">
|
1385
|
-
<xsl:if test="position() = 1">
|
1386
|
-
<xsl:call-template name="insertListOf_Title">
|
1387
|
-
<xsl:with-param name="title" select="$title-list-tables"/>
|
1388
|
-
</xsl:call-template>
|
1389
|
-
</xsl:if>
|
1390
|
-
<xsl:call-template name="insertListOf_Item"/>
|
1391
|
-
</xsl:for-each>
|
1392
|
-
|
1393
|
-
<!-- List of Figures -->
|
1394
|
-
<xsl:for-each select="$contents//mnx:figures/mnx:figure">
|
1395
|
-
<xsl:if test="position() = 1">
|
1396
|
-
<xsl:call-template name="insertListOf_Title">
|
1397
|
-
<xsl:with-param name="title" select="$title-list-figures"/>
|
1398
|
-
</xsl:call-template>
|
1399
|
-
</xsl:if>
|
1400
|
-
<xsl:call-template name="insertListOf_Item"/>
|
1401
|
-
</xsl:for-each>
|
1402
|
-
|
1403
1389
|
</xsl:when> <!-- $stage = 'draft' -->
|
1404
1390
|
|
1405
1391
|
<xsl:when test="$stage = 'published' or $stage = 'approved' or $stage_published = 'true'">
|
@@ -1451,32 +1437,30 @@
|
|
1451
1437
|
|
1452
1438
|
</fo:list-block>
|
1453
1439
|
</xsl:for-each>
|
1454
|
-
|
1455
|
-
<!-- List of Figures -->
|
1456
|
-
<xsl:for-each select="$contents//mnx:figures/mnx:figure">
|
1457
|
-
<xsl:if test="position() = 1">
|
1458
|
-
<fo:block break-after="page"/>
|
1459
|
-
<xsl:call-template name="insertListOf_Title">
|
1460
|
-
<xsl:with-param name="title" select="'Figures'"/>
|
1461
|
-
</xsl:call-template>
|
1462
|
-
</xsl:if>
|
1463
|
-
<xsl:call-template name="insertListOf_Item"/>
|
1464
|
-
</xsl:for-each>
|
1465
|
-
|
1466
|
-
<!-- List of Tables -->
|
1467
|
-
<xsl:for-each select="$contents//mnx:tables/mnx:table">
|
1468
|
-
<xsl:if test="position() = 1">
|
1469
|
-
<fo:block break-after="page"/>
|
1470
|
-
<xsl:call-template name="insertListOf_Title">
|
1471
|
-
<xsl:with-param name="title" select="'Tables'"/>
|
1472
|
-
</xsl:call-template>
|
1473
|
-
</xsl:if>
|
1474
|
-
<xsl:call-template name="insertListOf_Item"/>
|
1475
|
-
</xsl:for-each>
|
1476
|
-
|
1477
1440
|
</xsl:when> <!-- $stage = 'published' or 'approved' -->
|
1478
1441
|
</xsl:choose>
|
1479
1442
|
|
1443
|
+
<!-- List of Tables -->
|
1444
|
+
<xsl:for-each select="$contents//mnx:tables/mnx:table">
|
1445
|
+
<xsl:if test="position() = 1">
|
1446
|
+
<!-- <fo:block break-after="page"/> -->
|
1447
|
+
<xsl:call-template name="insertListOf_Title">
|
1448
|
+
<xsl:with-param name="title" select="$title-list-tables"/>
|
1449
|
+
</xsl:call-template>
|
1450
|
+
</xsl:if>
|
1451
|
+
<xsl:call-template name="insertListOf_Item"/>
|
1452
|
+
</xsl:for-each>
|
1453
|
+
|
1454
|
+
<!-- List of Figures -->
|
1455
|
+
<xsl:for-each select="$contents//mnx:figures/mnx:figure">
|
1456
|
+
<xsl:if test="position() = 1">
|
1457
|
+
<!-- <fo:block break-after="page"/> -->
|
1458
|
+
<xsl:call-template name="insertListOf_Title">
|
1459
|
+
<xsl:with-param name="title" select="$title-list-figures"/>
|
1460
|
+
</xsl:call-template>
|
1461
|
+
</xsl:if>
|
1462
|
+
<xsl:call-template name="insertListOf_Item"/>
|
1463
|
+
</xsl:for-each>
|
1480
1464
|
</xsl:when> <!-- 'standard' or 'draft' -->
|
1481
1465
|
|
1482
1466
|
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -1908,7 +1892,7 @@
|
|
1908
1892
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
1909
1893
|
</xsl:template>
|
1910
1894
|
|
1911
|
-
<xsl:template match="mn:preface
|
1895
|
+
<xsl:template match="mn:preface//mn:acknowledgements" priority="3">
|
1912
1896
|
<fo:block>
|
1913
1897
|
<xsl:apply-templates/>
|
1914
1898
|
</fo:block>
|
@@ -2343,6 +2327,7 @@
|
|
2343
2327
|
<xsl:when test="$current_template = 'standard'">
|
2344
2328
|
<xsl:choose>
|
2345
2329
|
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:annex)">12pt</xsl:when> <!-- 12pt -->
|
2330
|
+
<xsl:when test="$level = 1 and ancestor::mn:acknowledgements">16pt</xsl:when>
|
2346
2331
|
<xsl:when test="$level = 1">20pt</xsl:when> <!-- 12pt -->
|
2347
2332
|
<xsl:when test="$level = 2">20pt</xsl:when>
|
2348
2333
|
<xsl:when test="$level >= 3">18pt</xsl:when>
|
@@ -2373,7 +2358,7 @@
|
|
2373
2358
|
</xsl:when>
|
2374
2359
|
<xsl:otherwise>
|
2375
2360
|
<xsl:choose>
|
2376
|
-
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction)">12pt</xsl:when>
|
2361
|
+
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:acknowledgements)">12pt</xsl:when>
|
2377
2362
|
<xsl:when test="$level = 1 and not(following-sibling::*[1][self::mn:clause])">12pt</xsl:when>
|
2378
2363
|
<xsl:when test="$level = 1">24pt</xsl:when>
|
2379
2364
|
<xsl:otherwise>12pt</xsl:otherwise>
|
@@ -2409,7 +2394,7 @@
|
|
2409
2394
|
<xsl:otherwise>
|
2410
2395
|
<xsl:choose>
|
2411
2396
|
<xsl:when test="@type = 'section-title'">12pt</xsl:when>
|
2412
|
-
<xsl:when test="ancestor::mn:acknowledgements">
|
2397
|
+
<xsl:when test="$level = 1 and ancestor::mn:acknowledgements">11pt</xsl:when>
|
2413
2398
|
<xsl:when test="$level = 1">12pt</xsl:when>
|
2414
2399
|
<xsl:when test="$level = 2">11pt</xsl:when>
|
2415
2400
|
<xsl:otherwise>10pt</xsl:otherwise> <!-- 3rd, 4th, ... levels -->
|
@@ -2632,7 +2617,8 @@
|
|
2632
2617
|
</xsl:template>
|
2633
2618
|
|
2634
2619
|
<xsl:template match="mn:term/mn:fmt-definition" priority="2">
|
2635
|
-
<fo:block xsl:use-attribute-sets="definition-style">
|
2620
|
+
<fo:block xsl:use-attribute-sets="term-definition-style">
|
2621
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
2636
2622
|
<xsl:apply-templates/>
|
2637
2623
|
</fo:block>
|
2638
2624
|
<!-- change termsource order - show after definition before termnote -->
|
@@ -2967,7 +2953,8 @@
|
|
2967
2953
|
<xsl:value-of select="$localized.source"/>
|
2968
2954
|
<xsl:text>: </xsl:text>
|
2969
2955
|
</fo:inline> -->
|
2970
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
2956
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
2957
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
2971
2958
|
<xsl:apply-templates/>
|
2972
2959
|
</fo:inline>
|
2973
2960
|
</fo:basic-link>
|
@@ -5649,7 +5636,6 @@
|
|
5649
5636
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
5650
5637
|
|
5651
5638
|
<xsl:template name="refine_feedback-statement-title-style">
|
5652
|
-
|
5653
5639
|
</xsl:template>
|
5654
5640
|
|
5655
5641
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -7301,83 +7287,77 @@
|
|
7301
7287
|
<xsl:template name="refine_term-style">
|
7302
7288
|
</xsl:template>
|
7303
7289
|
|
7304
|
-
<xsl:attribute-set name="term-
|
7290
|
+
<xsl:attribute-set name="term-number-style">
|
7305
7291
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7306
7292
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7307
7293
|
</xsl:attribute-set> <!-- term-name-style -->
|
7308
7294
|
|
7309
|
-
<xsl:template name="refine_term-
|
7295
|
+
<xsl:template name="refine_term-number-style">
|
7310
7296
|
</xsl:template>
|
7311
7297
|
|
7312
|
-
<xsl:attribute-set name="preferred-style">
|
7313
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
7314
|
-
|
7315
|
-
<xsl:template name="refine_preferred-style">
|
7316
|
-
</xsl:template>
|
7317
|
-
|
7318
|
-
<xsl:attribute-set name="preferred-block-style">
|
7298
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
7319
7299
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
7320
7300
|
|
7321
|
-
<xsl:template name="
|
7301
|
+
<xsl:template name="refine_term-preferred-block-style">
|
7322
7302
|
</xsl:template>
|
7323
7303
|
|
7324
|
-
<xsl:attribute-set name="preferred-
|
7304
|
+
<xsl:attribute-set name="term-preferred-style">
|
7325
7305
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7326
7306
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7327
7307
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
7328
7308
|
|
7329
|
-
<xsl:template name="
|
7309
|
+
<xsl:template name="refine_term-preferred-style">
|
7330
7310
|
<xsl:if test="mn:strong">
|
7331
7311
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
7332
7312
|
</xsl:if>
|
7333
7313
|
</xsl:template>
|
7334
7314
|
|
7335
|
-
<xsl:attribute-set name="domain-style">
|
7336
|
-
</xsl:attribute-set> <!-- domain-style -->
|
7315
|
+
<xsl:attribute-set name="term-domain-style">
|
7316
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
7337
7317
|
|
7338
|
-
<xsl:template name="
|
7318
|
+
<xsl:template name="refine_term-domain-style">
|
7339
7319
|
</xsl:template>
|
7340
7320
|
|
7341
|
-
<xsl:attribute-set name="admitted-style">
|
7342
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
7321
|
+
<xsl:attribute-set name="term-admitted-style">
|
7322
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
7343
7323
|
|
7344
|
-
<xsl:template name="
|
7324
|
+
<xsl:template name="refine_term-admitted-style">
|
7345
7325
|
</xsl:template>
|
7346
7326
|
|
7347
|
-
<xsl:attribute-set name="deprecates-style">
|
7348
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
7327
|
+
<xsl:attribute-set name="term-deprecates-style">
|
7328
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
7349
7329
|
|
7350
|
-
<xsl:template name="
|
7330
|
+
<xsl:template name="refine_term-deprecates-style">
|
7351
7331
|
</xsl:template>
|
7352
7332
|
|
7353
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
7333
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
7354
7334
|
</xsl:attribute-set>
|
7355
7335
|
|
7356
|
-
<xsl:template name="
|
7336
|
+
<xsl:template name="refine_term-related-block-style">
|
7357
7337
|
</xsl:template>
|
7358
7338
|
|
7359
|
-
<xsl:attribute-set name="definition-style">
|
7360
|
-
</xsl:attribute-set> <!-- definition-style -->
|
7339
|
+
<xsl:attribute-set name="term-definition-style">
|
7340
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
7361
7341
|
|
7362
|
-
<xsl:template name="
|
7342
|
+
<xsl:template name="refine_term-definition-style">
|
7363
7343
|
</xsl:template>
|
7364
7344
|
|
7365
|
-
<xsl:attribute-set name="termsource-style">
|
7366
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
7345
|
+
<xsl:attribute-set name="term-termsource-style">
|
7346
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
7367
7347
|
|
7368
|
-
<xsl:template name="
|
7369
|
-
</xsl:template> <!--
|
7348
|
+
<xsl:template name="refine_term-termsource-style">
|
7349
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
7370
7350
|
|
7371
|
-
<xsl:attribute-set name="termsource-text-style">
|
7372
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
7351
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
7352
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
7373
7353
|
|
7374
|
-
<xsl:template name="
|
7354
|
+
<xsl:template name="refine_term-termsource-text-style">
|
7375
7355
|
</xsl:template>
|
7376
7356
|
|
7377
|
-
<xsl:attribute-set name="origin-style">
|
7378
|
-
</xsl:attribute-set> <!-- origin-style -->
|
7357
|
+
<xsl:attribute-set name="term-origin-style">
|
7358
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
7379
7359
|
|
7380
|
-
<xsl:template name="
|
7360
|
+
<xsl:template name="refine_term-origin-style">
|
7381
7361
|
</xsl:template>
|
7382
7362
|
|
7383
7363
|
<!-- ====== -->
|
@@ -7421,9 +7401,9 @@
|
|
7421
7401
|
<!-- modification -->
|
7422
7402
|
<!-- ====== -->
|
7423
7403
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
7424
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
7404
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
7425
7405
|
|
7426
|
-
<xsl:call-template name="
|
7406
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
7427
7407
|
|
7428
7408
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
7429
7409
|
<xsl:variable name="termsource_text">
|
@@ -7471,8 +7451,8 @@
|
|
7471
7451
|
|
7472
7452
|
<!-- text SOURCE: -->
|
7473
7453
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
7474
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
7475
|
-
<xsl:call-template name="
|
7454
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
7455
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
7476
7456
|
<xsl:value-of select="."/>
|
7477
7457
|
</fo:inline>
|
7478
7458
|
</xsl:template>
|
@@ -7484,8 +7464,8 @@
|
|
7484
7464
|
<xsl:if test="normalize-space(@citeas) = ''">
|
7485
7465
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
7486
7466
|
</xsl:if>
|
7487
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
7488
|
-
<xsl:call-template name="
|
7467
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
7468
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
7489
7469
|
<xsl:apply-templates/>
|
7490
7470
|
</fo:inline>
|
7491
7471
|
</fo:basic-link>
|
@@ -7533,14 +7513,14 @@
|
|
7533
7513
|
<xsl:variable name="levelTerm">
|
7534
7514
|
<xsl:call-template name="getLevelTermName"/>
|
7535
7515
|
</xsl:variable>
|
7536
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
7516
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
7537
7517
|
|
7538
|
-
<xsl:call-template name="
|
7518
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
7539
7519
|
|
7540
7520
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
7541
7521
|
|
7542
|
-
<fo:block xsl:use-attribute-sets="term-
|
7543
|
-
<xsl:call-template name="refine_term-
|
7522
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
7523
|
+
<xsl:call-template name="refine_term-number-style"/>
|
7544
7524
|
|
7545
7525
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
7546
7526
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -7550,8 +7530,8 @@
|
|
7550
7530
|
</fo:block>
|
7551
7531
|
</xsl:if>
|
7552
7532
|
|
7553
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
7554
|
-
<xsl:call-template name="
|
7533
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
7534
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
7555
7535
|
|
7556
7536
|
<xsl:apply-templates/>
|
7557
7537
|
</fo:block>
|
@@ -7571,15 +7551,15 @@
|
|
7571
7551
|
<xsl:template match="mn:domain"/>
|
7572
7552
|
|
7573
7553
|
<xsl:template match="mn:fmt-admitted">
|
7574
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
7575
|
-
<xsl:call-template name="
|
7554
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
7555
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
7576
7556
|
<xsl:apply-templates/>
|
7577
7557
|
</fo:block>
|
7578
7558
|
</xsl:template>
|
7579
7559
|
|
7580
7560
|
<xsl:template match="mn:fmt-deprecates">
|
7581
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
7582
|
-
<xsl:call-template name="
|
7561
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
7562
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
7583
7563
|
<xsl:apply-templates/>
|
7584
7564
|
</fo:block>
|
7585
7565
|
</xsl:template>
|
@@ -7592,8 +7572,8 @@
|
|
7592
7572
|
<!-- End Preferred, admitted, deprecated -->
|
7593
7573
|
|
7594
7574
|
<xsl:template match="mn:fmt-related">
|
7595
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
7596
|
-
<xsl:call-template name="
|
7575
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
7576
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
7597
7577
|
<xsl:apply-templates/>
|
7598
7578
|
</fo:block>
|
7599
7579
|
</xsl:template>
|
@@ -7607,8 +7587,8 @@
|
|
7607
7587
|
<!-- definition -->
|
7608
7588
|
<!-- ========== -->
|
7609
7589
|
<xsl:template match="mn:fmt-definition">
|
7610
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
7611
|
-
<xsl:call-template name="
|
7590
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
7591
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
7612
7592
|
<xsl:apply-templates/>
|
7613
7593
|
</fo:block>
|
7614
7594
|
</xsl:template>
|
@@ -11484,15 +11464,22 @@
|
|
11484
11464
|
</xsl:attribute-set> <!-- quote-style -->
|
11485
11465
|
|
11486
11466
|
<xsl:template name="refine_quote-style">
|
11487
|
-
</xsl:template>
|
11467
|
+
</xsl:template> <!-- refine_quote-style -->
|
11488
11468
|
|
11489
11469
|
<xsl:attribute-set name="quote-source-style">
|
11490
11470
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
11491
|
-
</xsl:attribute-set>
|
11471
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
11492
11472
|
|
11493
11473
|
<xsl:template name="refine_quote-source-style">
|
11494
11474
|
</xsl:template>
|
11495
11475
|
|
11476
|
+
<xsl:attribute-set name="source-style">
|
11477
|
+
</xsl:attribute-set> <!-- source-style -->
|
11478
|
+
|
11479
|
+
<xsl:template name="refine_source-style">
|
11480
|
+
|
11481
|
+
</xsl:template> <!-- refine_source-style -->
|
11482
|
+
|
11496
11483
|
<!-- ====== -->
|
11497
11484
|
<!-- quote -->
|
11498
11485
|
<!-- source -->
|
@@ -11540,7 +11527,9 @@
|
|
11540
11527
|
</xsl:if>
|
11541
11528
|
<xsl:choose>
|
11542
11529
|
<xsl:when test="not(parent::quote)">
|
11543
|
-
<fo:block>
|
11530
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
11531
|
+
<xsl:call-template name="refine_source-style"/>
|
11532
|
+
|
11544
11533
|
<xsl:call-template name="insert_basic_link">
|
11545
11534
|
<xsl:with-param name="element">
|
11546
11535
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -13691,7 +13680,7 @@
|
|
13691
13680
|
|
13692
13681
|
<xsl:template name="refine_fn-reference-style">
|
13693
13682
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13694
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
13683
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
13695
13684
|
</xsl:template> <!-- refine_fn-reference-style -->
|
13696
13685
|
|
13697
13686
|
<xsl:attribute-set name="fn-style">
|
@@ -13702,6 +13691,7 @@
|
|
13702
13691
|
</xsl:template>
|
13703
13692
|
|
13704
13693
|
<xsl:attribute-set name="fn-num-style">
|
13694
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
13705
13695
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13706
13696
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
13707
13697
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -13783,33 +13773,16 @@
|
|
13783
13773
|
<xsl:variable name="ref_id" select="@target"/>
|
13784
13774
|
|
13785
13775
|
<xsl:variable name="footnote_inline">
|
13786
|
-
<fo:inline
|
13776
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
13787
13777
|
|
13788
|
-
<xsl:
|
13789
|
-
<xsl:choose>
|
13790
|
-
<xsl:when test="ancestor::mn:bibitem">
|
13791
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
13792
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
13793
|
-
</fn_styles>
|
13794
|
-
</xsl:when>
|
13795
|
-
<xsl:otherwise>
|
13796
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
13797
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
13798
|
-
</fn_styles>
|
13799
|
-
</xsl:otherwise>
|
13800
|
-
</xsl:choose>
|
13801
|
-
</xsl:variable>
|
13802
|
-
|
13803
|
-
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
|
13804
|
-
<xsl:copy-of select="."/>
|
13805
|
-
</xsl:for-each>
|
13778
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
13806
13779
|
|
13807
13780
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13808
13781
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
13809
13782
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
13810
13783
|
</xsl:if> -->
|
13811
13784
|
|
13812
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
13785
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
13813
13786
|
|
13814
13787
|
<xsl:call-template name="insert_basic_link">
|
13815
13788
|
<xsl:with-param name="element">
|
@@ -14159,33 +14132,6 @@
|
|
14159
14132
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
14160
14133
|
</xsl:template>
|
14161
14134
|
|
14162
|
-
<!-- footnote reference number for bibitem, in the text -->
|
14163
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
14164
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
14165
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
14166
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
14167
|
-
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
14168
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
14169
|
-
|
14170
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
14171
|
-
</xsl:template>
|
14172
|
-
|
14173
|
-
<!-- footnote number on the page bottom -->
|
14174
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
14175
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
14176
|
-
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
14177
|
-
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
14178
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
14179
|
-
|
14180
|
-
<!-- footnote body (text) on the page bottom -->
|
14181
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
14182
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
14183
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
14184
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
14185
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
14186
|
-
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
14187
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
14188
|
-
|
14189
14135
|
<xsl:attribute-set name="references-non-normative-style">
|
14190
14136
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
14191
14137
|
|
@@ -14974,7 +14920,7 @@
|
|
14974
14920
|
<!-- List of Figures, Tables -->
|
14975
14921
|
<xsl:attribute-set name="toc-listof-title-style">
|
14976
14922
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14977
|
-
<xsl:attribute name="space-before">
|
14923
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
14978
14924
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
14979
14925
|
</xsl:attribute-set>
|
14980
14926
|
|
@@ -16561,6 +16507,17 @@
|
|
16561
16507
|
</xsl:attribute-set>
|
16562
16508
|
|
16563
16509
|
<xsl:template name="refine_clause-style">
|
16510
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
16511
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
16512
|
+
<xsl:variable name="level">
|
16513
|
+
<xsl:call-template name="getLevel">
|
16514
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
16515
|
+
</xsl:call-template>
|
16516
|
+
</xsl:variable>
|
16517
|
+
<xsl:if test="$level >= 4">
|
16518
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
16519
|
+
</xsl:if>
|
16520
|
+
</xsl:if> -->
|
16564
16521
|
</xsl:template>
|
16565
16522
|
|
16566
16523
|
<!-- main sections -->
|
@@ -17627,6 +17584,20 @@
|
|
17627
17584
|
</fo:block-container>
|
17628
17585
|
</xsl:template>
|
17629
17586
|
|
17587
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
17588
|
+
<xsl:template name="insertCoverPageFullImage">
|
17589
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
17590
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
17591
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
17592
|
+
<fo:flow flow-name="xsl-region-body">
|
17593
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
17594
|
+
<xsl:with-param name="number" select="position()"/>
|
17595
|
+
</xsl:call-template>
|
17596
|
+
</fo:flow>
|
17597
|
+
</fo:page-sequence>
|
17598
|
+
</xsl:for-each>
|
17599
|
+
</xsl:template>
|
17600
|
+
|
17630
17601
|
<xsl:template name="insertPageImage">
|
17631
17602
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
17632
17603
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|