metanorma-ieee 1.5.5 → 1.5.6

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.
@@ -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:variable name="title_standard_coverpage_">
525
- <!-- <xsl:choose>
526
- title starts with lower-cased letter
527
- <xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
528
- <fo:block font-size="18pt">
529
- <xsl:value-of select="$title_prefix"/>
530
- <xsl:copy-of select="$title_intro"/>
531
- </fo:block>
532
- </xsl:when>
533
- <xsl:otherwise>
534
- Example: IEEE Standard for
535
- <fo:block font-size="18pt">
536
- <xsl:value-of select="$title_prefix"/>
537
- </fo:block>
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>
@@ -1239,14 +1029,16 @@
1239
1029
  <fo:block> </fo:block>
1240
1030
  </xsl:if>
1241
1031
 
1242
- <fo:block>
1243
- <!-- Approved <Date Approved> -->
1244
- <xsl:text>Approved </xsl:text>
1245
- <xsl:value-of select="$approved_date"/>
1246
- </fo:block>
1247
- <fo:block> </fo:block>
1248
- <!-- Example: IEEE SA Standards Board -->
1249
- <fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
1032
+ <xsl:if test="$approved_date != ''">
1033
+ <fo:block>
1034
+ <!-- Approved <Date Approved> -->
1035
+ <xsl:text>Approved </xsl:text>
1036
+ <xsl:value-of select="$approved_date"/>
1037
+ </fo:block>
1038
+ <fo:block> </fo:block>
1039
+ <!-- Example: IEEE SA Standards Board -->
1040
+ <fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
1041
+ </xsl:if>
1250
1042
 
1251
1043
  <xsl:if test="normalize-space($cutoff_date) != ''">
1252
1044
  <fo:block> </fo:block>
@@ -1290,7 +1082,9 @@
1290
1082
  <xsl:if test="position() != last()">, </xsl:if>
1291
1083
  </xsl:for-each>
1292
1084
  </fo:block>
1293
- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/>
1085
+ <!-- From https://github.com/metanorma/metanorma-ieee/issues/566#issuecomment-3302383104:
1086
+ the Acknowledgements section comes immediately after Introduction, as shown in the StyleMan -->
1087
+ <!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/> -->
1294
1088
  </fo:block>
1295
1089
 
1296
1090
  <!-- Example:
@@ -1332,6 +1126,216 @@
1332
1126
  <!-- ======================= -->
1333
1127
  </xsl:template> <!-- END: cover-page -->
1334
1128
 
1129
+ <xsl:template name="inner-cover-page">
1130
+ <xsl:param name="document_id"/>
1131
+ <xsl:param name="title"/>
1132
+ <xsl:param name="society"/>
1133
+ <xsl:param name="copyright_holder"/>
1134
+ <xsl:param name="copyright_year"/>
1135
+ <xsl:param name="committee"/>
1136
+ <xsl:param name="enabler"/>
1137
+ <xsl:param name="approved_date"/>
1138
+ <xsl:param name="approved_by"/>
1139
+ <xsl:param name="title_main"/>
1140
+ <xsl:param name="standard_number"/>
1141
+ <xsl:param name="history_text"/>
1142
+ <!-- =================== -->
1143
+ <!-- Second page(s) -->
1144
+ <!-- =================== -->
1145
+ <xsl:choose>
1146
+
1147
+ <xsl:when test="$current_template = 'draft'">
1148
+ <!-- Legal statement -->
1149
+ <fo:page-sequence master-reference="document-draft" force-page-count="no-force" format="1">
1150
+ <xsl:call-template name="insertFootnoteSeparator"/>
1151
+
1152
+ <xsl:call-template name="insertHeaderFooter">
1153
+ <xsl:with-param name="document_id" select="$document_id"/>
1154
+ <xsl:with-param name="title" select="$title"/>
1155
+ <xsl:with-param name="copyright_year" select="$copyright_year"/>
1156
+ <xsl:with-param name="copyright_holder" select="$copyright_holder"/>
1157
+ <xsl:with-param name="hideFooter"><xsl:if test="not(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '')">false</xsl:if></xsl:with-param>
1158
+ </xsl:call-template>
1159
+
1160
+ <fo:flow flow-name="xsl-region-body">
1161
+ <fo:block>
1162
+ <!-- Example:
1163
+ Important Notices and Disclaimers Concerning IEEE Standards Documents
1164
+ 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.”
1165
+ ...
1166
+ -->
1167
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
1168
+ </fo:block>
1169
+ </fo:flow>
1170
+
1171
+ </fo:page-sequence> <!-- End: Legal statement -->
1172
+
1173
+ </xsl:when> <!-- $current_template = 'draft' -->
1174
+
1175
+ <xsl:when test="$current_template = 'standard'">
1176
+ <!-- Second, third page -->
1177
+ <fo:page-sequence master-reference="document-draft" force-page-count="no-force" font-family="Arial" initial-page-number="1">
1178
+
1179
+ <xsl:call-template name="insertFootnoteSeparator"/>
1180
+
1181
+ <xsl:call-template name="insertHeaderFooter">
1182
+ <xsl:with-param name="copyright_year" select="$copyright_year"/>
1183
+ <xsl:with-param name="copyright_holder" select="$copyright_holder"/>
1184
+ <!-- <xsl:with-param name="hideHeader">true</xsl:with-param> -->
1185
+ <xsl:with-param name="hideFooter">true</xsl:with-param>
1186
+ </xsl:call-template>
1187
+
1188
+ <fo:flow flow-name="xsl-region-body">
1189
+ <fo:block text-align="right" margin-top="-11.5mm" id="__internal_layout__titlepage_{generate-id()}"> <!-- margin-top="2mm" -->
1190
+ <fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
1191
+ <fo:block font-size="9pt"><xsl:value-of select="$history_text"/></fo:block>
1192
+ </fo:block>
1193
+
1194
+ <fo:block-container width="105%"> <!-- width="135mm" -->
1195
+ <fo:block font-size="23pt" font-weight="bold" space-before="25.5mm" line-height="1.15"> <!-- space-before="13mm" -->
1196
+ <xsl:copy-of select="$title_main"/>
1197
+ </fo:block>
1198
+ </fo:block-container>
1199
+
1200
+ <xsl:if test="$committee != ''">
1201
+ <fo:block font-size="10pt" space-before="11mm" space-after="4pt"><xsl:value-of select="$developed_by"/></fo:block>
1202
+ <fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
1203
+ <!-- Example: LAN/MAN Standards Committee -->
1204
+ <fo:block line-height="1.12"><xsl:value-of select="$committee"/></fo:block>
1205
+ <fo:block font-weight="normal" font-size="10pt">of the</fo:block>
1206
+ <!-- Example: IEEE Computer Society -->
1207
+ <fo:block><xsl:value-of select="$society"/></fo:block>
1208
+ </fo:block>
1209
+ </xsl:if>
1210
+
1211
+ <xsl:if test="normalize-space($enabler) != ''">
1212
+ <fo:block font-size="10pt" space-before="9mm" space-after="4pt"><xsl:value-of select="$sponsored_by"/></fo:block>
1213
+ <fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
1214
+ <!-- Sponsored by the
1215
+ LAN/MAN Standards Committee -->
1216
+ <xsl:for-each select="$enabler/mn:subdivision">
1217
+ <fo:block line-height="1.12"><xsl:value-of select="mn:subdivision/mn:name"/></fo:block>
1218
+ <fo:block font-weight="normal" font-size="10pt">of the</fo:block>
1219
+ <fo:block><xsl:value-of select="concat(../mn:abbreviation, ' ', mn:name)"/></fo:block>
1220
+ <xsl:if test="position() != last()">
1221
+ <fo:block font-weight="normal" font-size="10pt">and the</fo:block>
1222
+ </xsl:if>
1223
+ </xsl:for-each>
1224
+ </fo:block>
1225
+ </xsl:if>
1226
+
1227
+ <xsl:if test="$approved_date != ''">
1228
+ <fo:block font-size="10pt" space-before="8mm" space-after="4pt">Approved <xsl:value-of select="$approved_date"/></fo:block>
1229
+ <!-- Example: IEEE SA Standards Board -->
1230
+ <fo:block font-size="11pt" font-weight="bold" margin-top="4mm"><xsl:value-of select="$approved_by"/></fo:block>
1231
+ </xsl:if>
1232
+
1233
+ <fo:block break-after="page"/>
1234
+
1235
+ <fo:block font-family="Arial" text-align="justify">
1236
+ <fo:block>
1237
+ <fo:inline font-weight="bold">
1238
+ <xsl:call-template name="getLocalizedString">
1239
+ <xsl:with-param name="key">abstract</xsl:with-param>
1240
+ </xsl:call-template>
1241
+ <xsl:text>: </xsl:text>
1242
+ </fo:inline>
1243
+ <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)]"/>
1244
+ </fo:block>
1245
+ <fo:block> </fo:block>
1246
+ <fo:block>
1247
+ <fo:inline font-weight="bold">Keywords: </fo:inline>
1248
+ <xsl:for-each select="/mn:metanorma/mn:bibdata/mn:keyword">
1249
+ <xsl:value-of select="."/>
1250
+ <xsl:if test="position() != last()">, </xsl:if>
1251
+ </xsl:for-each>
1252
+ </fo:block>
1253
+ <!-- From https://github.com/metanorma/metanorma-ieee/issues/566#issuecomment-3302383104:
1254
+ the Acknowledgements section comes immediately after Introduction, as shown in the StyleMan -->
1255
+ <!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements"/> -->
1256
+ </fo:block>
1257
+
1258
+ <!-- Example:
1259
+ The Institute of Electrical and Electronics Engineers, Inc.
1260
+ 3 Park Avenue, New York, NY 10016-5997, USA
1261
+ ...
1262
+ PDF: ISBN 978-0-XXXX-XXXX-X STDXXXXX
1263
+ Print: ISBN 978-0-XXXX-XXXX-X STDPDXXXXX
1264
+ -->
1265
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
1266
+
1267
+ </fo:flow>
1268
+ </fo:page-sequence>
1269
+
1270
+ <!-- Example:
1271
+ Important Notices and Disclaimers Concerning IEEE Standards Documents
1272
+ 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.”
1273
+ ...
1274
+ -->
1275
+ <fo:page-sequence master-reference="document-draft-two-columns" force-page-count="no-force">
1276
+ <xsl:call-template name="insertFootnoteSeparator"/>
1277
+ <xsl:call-template name="insertHeaderFooter">
1278
+ <xsl:with-param name="document_id" select="$document_id"/>
1279
+ <xsl:with-param name="title" select="$title"/>
1280
+ <xsl:with-param name="copyright_year" select="$copyright_year"/>
1281
+ <xsl:with-param name="copyright_holder" select="$copyright_holder"/>
1282
+ </xsl:call-template>
1283
+
1284
+ <fo:flow flow-name="xsl-region-body">
1285
+
1286
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
1287
+
1288
+ <xsl:if test="not(/mn:metanorma/mn:boilerplate/mn:legal-statement/*)">
1289
+ <fo:block> </fo:block>
1290
+ </xsl:if>
1291
+ </fo:flow>
1292
+ </fo:page-sequence>
1293
+ </xsl:when> <!-- $current_template = 'standard' -->
1294
+
1295
+ <xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
1296
+ <fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force" font-family="Calibri Light">
1297
+
1298
+ <xsl:call-template name="insertHeaderFooter">
1299
+ <xsl:with-param name="copyright_year" select="$copyright_year"/>
1300
+ <xsl:with-param name="copyright_holder" select="$copyright_holder"/>
1301
+ <xsl:with-param name="hideHeader">true</xsl:with-param>
1302
+ </xsl:call-template>
1303
+
1304
+ <fo:flow flow-name="xsl-region-body">
1305
+ <fo:block-container>
1306
+
1307
+ <fo:block>
1308
+ <!-- TRADEMARKS AND DISCLAIMERS -->
1309
+ <!-- ACKNOWLEDGEMENTS -->
1310
+ <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"/>
1311
+ </fo:block>
1312
+
1313
+ <!-- Example:
1314
+ The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
1315
+ ...
1316
+ PDF: STDXXXXX ISBN 978-0-XXXX-XXXX-X
1317
+ -->
1318
+ <fo:block font-style="italic">
1319
+ <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/>
1320
+ </fo:block>
1321
+
1322
+ <!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA DOCUMENTS -->
1323
+ <fo:block break-after="page"/>
1324
+ <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')]"/>
1325
+
1326
+ </fo:block-container>
1327
+ </fo:flow>
1328
+
1329
+ </fo:page-sequence>
1330
+
1331
+ </xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
1332
+
1333
+ </xsl:choose>
1334
+ <!-- =================== -->
1335
+ <!-- End Second page(s) -->
1336
+ <!-- =================== -->
1337
+ </xsl:template> <!-- END: inner-cover-page -->
1338
+
1335
1339
  <xsl:template match="mn:preface/mn:clause[@type = 'toc']" priority="3">
1336
1340
  <xsl:param name="num"/>
1337
1341
 
@@ -1379,27 +1383,6 @@
1379
1383
  </fo:block>
1380
1384
  </fo:block>
1381
1385
  </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
1386
  </xsl:when> <!-- $stage = 'draft' -->
1404
1387
 
1405
1388
  <xsl:when test="$stage = 'published' or $stage = 'approved' or $stage_published = 'true'">
@@ -1451,32 +1434,30 @@
1451
1434
 
1452
1435
  </fo:list-block>
1453
1436
  </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
1437
  </xsl:when> <!-- $stage = 'published' or 'approved' -->
1478
1438
  </xsl:choose>
1479
1439
 
1440
+ <!-- List of Tables -->
1441
+ <xsl:for-each select="$contents//mnx:tables/mnx:table">
1442
+ <xsl:if test="position() = 1">
1443
+ <!-- <fo:block break-after="page"/> -->
1444
+ <xsl:call-template name="insertListOf_Title">
1445
+ <xsl:with-param name="title" select="$title-list-tables"/>
1446
+ </xsl:call-template>
1447
+ </xsl:if>
1448
+ <xsl:call-template name="insertListOf_Item"/>
1449
+ </xsl:for-each>
1450
+
1451
+ <!-- List of Figures -->
1452
+ <xsl:for-each select="$contents//mnx:figures/mnx:figure">
1453
+ <xsl:if test="position() = 1">
1454
+ <!-- <fo:block break-after="page"/> -->
1455
+ <xsl:call-template name="insertListOf_Title">
1456
+ <xsl:with-param name="title" select="$title-list-figures"/>
1457
+ </xsl:call-template>
1458
+ </xsl:if>
1459
+ <xsl:call-template name="insertListOf_Item"/>
1460
+ </xsl:for-each>
1480
1461
  </xsl:when> <!-- 'standard' or 'draft' -->
1481
1462
 
1482
1463
  <xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
@@ -1908,7 +1889,7 @@
1908
1889
  <fo:inline><xsl:apply-templates/></fo:inline>
1909
1890
  </xsl:template>
1910
1891
 
1911
- <xsl:template match="mn:preface/mn:acknowledgements" priority="3">
1892
+ <xsl:template match="mn:preface//mn:acknowledgements" priority="3">
1912
1893
  <fo:block>
1913
1894
  <xsl:apply-templates/>
1914
1895
  </fo:block>
@@ -2343,6 +2324,7 @@
2343
2324
  <xsl:when test="$current_template = 'standard'">
2344
2325
  <xsl:choose>
2345
2326
  <xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:annex)">12pt</xsl:when> <!-- 12pt -->
2327
+ <xsl:when test="$level = 1 and ancestor::mn:acknowledgements">16pt</xsl:when>
2346
2328
  <xsl:when test="$level = 1">20pt</xsl:when> <!-- 12pt -->
2347
2329
  <xsl:when test="$level = 2">20pt</xsl:when>
2348
2330
  <xsl:when test="$level &gt;= 3">18pt</xsl:when>
@@ -2373,7 +2355,7 @@
2373
2355
  </xsl:when>
2374
2356
  <xsl:otherwise>
2375
2357
  <xsl:choose>
2376
- <xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction)">12pt</xsl:when>
2358
+ <xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:acknowledgements)">12pt</xsl:when>
2377
2359
  <xsl:when test="$level = 1 and not(following-sibling::*[1][self::mn:clause])">12pt</xsl:when>
2378
2360
  <xsl:when test="$level = 1">24pt</xsl:when>
2379
2361
  <xsl:otherwise>12pt</xsl:otherwise>
@@ -2409,7 +2391,7 @@
2409
2391
  <xsl:otherwise>
2410
2392
  <xsl:choose>
2411
2393
  <xsl:when test="@type = 'section-title'">12pt</xsl:when>
2412
- <xsl:when test="ancestor::mn:acknowledgements">inherit</xsl:when>
2394
+ <xsl:when test="$level = 1 and ancestor::mn:acknowledgements">11pt</xsl:when>
2413
2395
  <xsl:when test="$level = 1">12pt</xsl:when>
2414
2396
  <xsl:when test="$level = 2">11pt</xsl:when>
2415
2397
  <xsl:otherwise>10pt</xsl:otherwise> <!-- 3rd, 4th, ... levels -->
@@ -5649,7 +5631,6 @@
5649
5631
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
5650
5632
 
5651
5633
  <xsl:template name="refine_feedback-statement-title-style">
5652
-
5653
5634
  </xsl:template>
5654
5635
 
5655
5636
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -11484,15 +11465,22 @@
11484
11465
  </xsl:attribute-set> <!-- quote-style -->
11485
11466
 
11486
11467
  <xsl:template name="refine_quote-style">
11487
- </xsl:template>
11468
+ </xsl:template> <!-- refine_quote-style -->
11488
11469
 
11489
11470
  <xsl:attribute-set name="quote-source-style">
11490
11471
  <xsl:attribute name="text-align">right</xsl:attribute>
11491
- </xsl:attribute-set>
11472
+ </xsl:attribute-set> <!-- quote-source-style -->
11492
11473
 
11493
11474
  <xsl:template name="refine_quote-source-style">
11494
11475
  </xsl:template>
11495
11476
 
11477
+ <xsl:attribute-set name="source-style">
11478
+ </xsl:attribute-set> <!-- source-style -->
11479
+
11480
+ <xsl:template name="refine_source-style">
11481
+
11482
+ </xsl:template> <!-- refine_source-style -->
11483
+
11496
11484
  <!-- ====== -->
11497
11485
  <!-- quote -->
11498
11486
  <!-- source -->
@@ -11540,7 +11528,9 @@
11540
11528
  </xsl:if>
11541
11529
  <xsl:choose>
11542
11530
  <xsl:when test="not(parent::quote)">
11543
- <fo:block>
11531
+ <fo:block xsl:use-attribute-sets="source-style">
11532
+ <xsl:call-template name="refine_source-style"/>
11533
+
11544
11534
  <xsl:call-template name="insert_basic_link">
11545
11535
  <xsl:with-param name="element">
11546
11536
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -13691,7 +13681,7 @@
13691
13681
 
13692
13682
  <xsl:template name="refine_fn-reference-style">
13693
13683
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13694
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13684
+ <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
13685
  </xsl:template> <!-- refine_fn-reference-style -->
13696
13686
 
13697
13687
  <xsl:attribute-set name="fn-style">
@@ -13702,6 +13692,7 @@
13702
13692
  </xsl:template>
13703
13693
 
13704
13694
  <xsl:attribute-set name="fn-num-style">
13695
+ <xsl:attribute name="role">Reference</xsl:attribute>
13705
13696
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
13706
13697
  <xsl:attribute name="font-size">65%</xsl:attribute>
13707
13698
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -13783,33 +13774,16 @@
13783
13774
  <xsl:variable name="ref_id" select="@target"/>
13784
13775
 
13785
13776
  <xsl:variable name="footnote_inline">
13786
- <fo:inline role="Reference">
13787
-
13788
- <xsl:variable name="fn_styles">
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>
13777
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
13802
13778
 
13803
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
13804
- <xsl:copy-of select="."/>
13805
- </xsl:for-each>
13779
+ <xsl:call-template name="refine_fn-num-style"/>
13806
13780
 
13807
13781
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
13808
13782
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
13809
13783
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
13810
13784
  </xsl:if> -->
13811
13785
 
13812
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
13786
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
13813
13787
 
13814
13788
  <xsl:call-template name="insert_basic_link">
13815
13789
  <xsl:with-param name="element">
@@ -14159,33 +14133,6 @@
14159
14133
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
14160
14134
  </xsl:template>
14161
14135
 
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
14136
  <xsl:attribute-set name="references-non-normative-style">
14190
14137
  </xsl:attribute-set> <!-- references-non-normative-style -->
14191
14138
 
@@ -14974,7 +14921,7 @@
14974
14921
  <!-- List of Figures, Tables -->
14975
14922
  <xsl:attribute-set name="toc-listof-title-style">
14976
14923
  <xsl:attribute name="role">TOCI</xsl:attribute>
14977
- <xsl:attribute name="space-before">12pt</xsl:attribute>
14924
+ <xsl:attribute name="space-before">18pt</xsl:attribute>
14978
14925
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
14979
14926
  </xsl:attribute-set>
14980
14927
 
@@ -16561,6 +16508,17 @@
16561
16508
  </xsl:attribute-set>
16562
16509
 
16563
16510
  <xsl:template name="refine_clause-style">
16511
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
16512
+ <!-- <xsl:if test="$namespace = 'rsd'">
16513
+ <xsl:variable name="level">
16514
+ <xsl:call-template name="getLevel">
16515
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
16516
+ </xsl:call-template>
16517
+ </xsl:variable>
16518
+ <xsl:if test="$level &gt;= 4">
16519
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
16520
+ </xsl:if>
16521
+ </xsl:if> -->
16564
16522
  </xsl:template>
16565
16523
 
16566
16524
  <!-- main sections -->