metanorma-ieee 1.5.3 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ieee/html/header.html +3 -3
- data/lib/isodoc/ieee/html/html_ieee_titlepage.html +15 -2
- data/lib/isodoc/ieee/html/htmlstyle.css +160 -46
- data/lib/isodoc/ieee/html/htmlstyle.scss +96 -0
- data/lib/isodoc/ieee/html/ieee.css +46 -1
- data/lib/isodoc/ieee/html/ieee.scss +42 -1
- data/lib/isodoc/ieee/html/word_ieee_titlepage.html +10 -2
- data/lib/isodoc/ieee/html/wordstyle.css +48 -0
- data/lib/isodoc/ieee/html/wordstyle.scss +44 -0
- data/lib/isodoc/ieee/html/wordstyle_wp.css +47 -0
- data/lib/isodoc/ieee/html/wordstyle_wp.scss +43 -0
- data/lib/isodoc/ieee/html_convert.rb +5 -0
- data/lib/isodoc/ieee/i18n-en.yaml +3 -0
- data/lib/isodoc/ieee/ieee.amendment.xsl +1526 -964
- data/lib/isodoc/ieee/ieee.standard.xsl +1526 -964
- data/lib/isodoc/ieee/metadata.rb +22 -11
- data/lib/isodoc/ieee/presentation_bibitem.rb +103 -0
- data/lib/isodoc/ieee/presentation_ref.rb +169 -97
- data/lib/isodoc/ieee/presentation_terms.rb +52 -12
- data/lib/isodoc/ieee/presentation_xml_convert.rb +24 -75
- data/lib/isodoc/ieee/word_authority.rb +37 -59
- data/lib/isodoc/ieee/word_cleanup.rb +83 -35
- data/lib/isodoc/ieee/word_cleanup_blocks.rb +0 -1
- data/lib/isodoc/ieee/word_convert.rb +19 -16
- data/lib/isodoc/ieee/word_toc.rb +46 -0
- data/lib/metanorma/ieee/boilerplate.adoc +6 -5
- data/lib/metanorma/ieee/boilerplate_wp.adoc +1 -2
- data/lib/metanorma/ieee/cleanup.rb +69 -15
- data/lib/metanorma/ieee/cleanup_boilerplate.rb +1 -4
- data/lib/metanorma/ieee/cleanup_ref.rb +33 -106
- data/lib/metanorma/ieee/cleanup_ref_fn.rb +117 -0
- data/lib/metanorma/ieee/front.rb +14 -0
- data/lib/metanorma/ieee/isodoc.rng +44 -19
- data/lib/metanorma/ieee/processor.rb +1 -0
- data/lib/metanorma/ieee/relaton-ieee.rng +4 -0
- data/lib/metanorma/ieee/validate.rb +1 -1
- data/lib/metanorma/ieee/version.rb +1 -1
- data/lib/relaton/render/config.yml +10 -3
- metadata +5 -2
@@ -85,6 +85,7 @@
|
|
85
85
|
</xsl:choose>
|
86
86
|
</xsl:variable>
|
87
87
|
|
88
|
+
<!-- title_prefix isn't using, keep here just for further checking the titles generated by Metanorma -->
|
88
89
|
<xsl:variable name="title_prefix">
|
89
90
|
<xsl:choose>
|
90
91
|
<xsl:when test="$current_template = 'draft'">
|
@@ -116,6 +117,11 @@
|
|
116
117
|
|
117
118
|
<xsl:variable name="line-height">1.8</xsl:variable>
|
118
119
|
|
120
|
+
<xsl:variable name="page_break_between_sections" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:page-break-between-sections)"/>
|
121
|
+
|
122
|
+
<xsl:variable name="developed_by">Developed by the</xsl:variable>
|
123
|
+
<xsl:variable name="sponsored_by">Sponsored by the</xsl:variable>
|
124
|
+
|
119
125
|
<xsl:template name="layout-master-set">
|
120
126
|
<fo:layout-master-set>
|
121
127
|
|
@@ -132,7 +138,7 @@
|
|
132
138
|
|
133
139
|
<!-- IEEE standard cover page -->
|
134
140
|
<fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
135
|
-
<fo:region-body margin-top="
|
141
|
+
<fo:region-body margin-top="52mm" margin-bottom="25mm" margin-left="21.2mm" margin-right="25mm"/> <!-- margin-top="62mm" -->
|
136
142
|
<fo:region-before region-name="header" extent="62mm" precedence="true"/>
|
137
143
|
<fo:region-after region-name="footer" extent="25mm"/>
|
138
144
|
<fo:region-start region-name="left-region" extent="21.2mm"/>
|
@@ -228,6 +234,14 @@
|
|
228
234
|
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
229
235
|
</fo:simple-page-master>
|
230
236
|
|
237
|
+
<fo:simple-page-master master-name="document-draft-two-columns" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
238
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm" column-count="2" column-gap="10mm"/>
|
239
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
240
|
+
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
241
|
+
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
242
|
+
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
243
|
+
</fo:simple-page-master>
|
244
|
+
|
231
245
|
<!-- landscape -->
|
232
246
|
<fo:simple-page-master master-name="document-draft-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
233
247
|
<fo:region-body margin-top="{$marginLeftRight1}mm" margin-bottom="{$marginLeftRight2}mm" margin-left="{$marginBottom}mm" margin-right="{$marginTop}mm"/>
|
@@ -242,16 +256,21 @@
|
|
242
256
|
<!-- ======================= -->
|
243
257
|
<!-- Standard document pages -->
|
244
258
|
<!-- ======================= -->
|
245
|
-
<fo:simple-page-master master-name="document-standard-first" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
259
|
+
<fo:simple-page-master master-name="document-standard-first-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
246
260
|
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
247
261
|
<fo:region-before region-name="header_empty" extent="{$marginTop}mm"/>
|
248
262
|
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
249
263
|
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
250
264
|
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
251
265
|
</fo:simple-page-master>
|
266
|
+
<fo:page-sequence-master master-name="document-standard-first">
|
267
|
+
<fo:repeatable-page-master-alternatives>
|
268
|
+
<fo:conditional-page-master-reference page-position="first" master-reference="document-standard-first-page"/>
|
269
|
+
<fo:conditional-page-master-reference page-position="any" master-reference="document-draft"/>
|
270
|
+
</fo:repeatable-page-master-alternatives>
|
271
|
+
</fo:page-sequence-master>
|
252
272
|
<fo:page-sequence-master master-name="document-standard">
|
253
273
|
<fo:repeatable-page-master-alternatives>
|
254
|
-
<fo:conditional-page-master-reference page-position="first" master-reference="document-standard-first"/>
|
255
274
|
<fo:conditional-page-master-reference page-position="any" master-reference="document-draft"/>
|
256
275
|
</fo:repeatable-page-master-alternatives>
|
257
276
|
</fo:page-sequence-master>
|
@@ -336,12 +355,17 @@
|
|
336
355
|
|
337
356
|
<xsl:variable name="approved_date_year" select="substring(normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'issued']),1,4)"/>
|
338
357
|
|
358
|
+
<xsl:variable name="designation" select="/mn:metanorma/mn:bibdata/mn:docnumber"/>
|
359
|
+
|
339
360
|
<!-- IEEE Std 802.1X™-2020 -->
|
340
|
-
<xsl:variable name="standard_number">IEEE Std <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'IEEE']"/>-<xsl:value-of select="$approved_date_year"/></xsl:variable>
|
361
|
+
<!-- <xsl:variable name="standard_number">IEEE Std <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'IEEE']"/>-<xsl:value-of select="$approved_date_year"/></xsl:variable> -->
|
362
|
+
<xsl:variable name="standard_number_" select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'IEEE']"/>
|
363
|
+
<xsl:variable name="regex_tm" select="concat('(', $designation, ')', '(-\d{4})?')"/>
|
364
|
+
<xsl:variable name="standard_number" select="java:replaceAll(java:java.lang.String.new($standard_number_), $regex_tm,'$1™$2')"/>
|
365
|
+
|
341
366
|
<!-- <xsl:value-of select="substring(/mn:metanorma/mn:bibdata/mn:date[@type = 'published'],1,4)"/> -->
|
342
367
|
|
343
|
-
<xsl:variable name="
|
344
|
-
<xsl:variable name="draft_number" select="/mn:metanorma/mn:bibdata/mn:version/mn:draft"/>
|
368
|
+
<!-- <xsl:variable name="draft_number" select="/mn:metanorma/mn:bibdata/mn:version/mn:draft"/> -->
|
345
369
|
<xsl:variable name="revision_month" select="/mn:metanorma/mn:bibdata/mn:version/mn:revision-date"/>
|
346
370
|
<xsl:variable name="draft_month">
|
347
371
|
<xsl:call-template name="getMonthLocalizedByNum">
|
@@ -350,28 +374,21 @@
|
|
350
374
|
</xsl:variable>
|
351
375
|
<xsl:variable name="draft_year" select="substring($revision_month, 1, 4)"/>
|
352
376
|
|
353
|
-
<xsl:variable name="title_intro">
|
354
|
-
<!-- Example Local and Metropolitan Area Networks— -->
|
355
|
-
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = 'en']/node()"/>
|
356
|
-
<!-- <xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = 'intro' or @language = 'intro-en']/node()"/>
|
357
|
-
<xsl:if test="not(/mn:metanorma/mn:bibdata/mn:title[@language = 'intro' or @language = 'intro-en'])">
|
358
|
-
</xsl:if>
|
359
|
-
<xsl:if test="/mn:metanorma/mn:bibdata/mn:title[@language = 'intro' or @language = 'intro-en' or @language = 'en'] and /mn:metanorma/mn:bibdata/mn:title[@language = 'main' or @language = 'main-en']">—</xsl:if> -->
|
360
|
-
</xsl:variable>
|
361
|
-
|
377
|
+
<!-- <xsl:variable name="title_intro"> -->
|
362
378
|
<xsl:variable name="title_main">
|
363
|
-
<!-- Example:
|
364
|
-
|
379
|
+
<!-- Example: IEEE Standard Example Local and Metropolitan Area Networks -->
|
380
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = 'en' and @type = 'main']/node()"/>
|
365
381
|
</xsl:variable>
|
366
382
|
|
383
|
+
<xsl:variable name="docidentifier_draft" select="/mn:metanorma/mn:bibdata/mn:docidentifier[@type = 'IEEE-draft']"/>
|
384
|
+
|
367
385
|
<xsl:variable name="title">
|
368
386
|
<xsl:choose>
|
369
387
|
<xsl:when test="$current_template = 'standard'">
|
370
|
-
<xsl:copy-of select="$title_intro"/>
|
371
388
|
<xsl:copy-of select="$title_main"/>
|
372
389
|
</xsl:when>
|
373
390
|
<xsl:otherwise>
|
374
|
-
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[
|
391
|
+
<xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = 'en' and @type = 'main']/node()"/>
|
375
392
|
|
376
393
|
<!-- Example: Amendment # -->
|
377
394
|
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
@@ -397,16 +414,18 @@
|
|
397
414
|
</xsl:if>
|
398
415
|
</xsl:variable>
|
399
416
|
|
417
|
+
<!-- for page header -->
|
400
418
|
<xsl:variable name="document_id">
|
401
419
|
<xsl:choose>
|
402
420
|
<xsl:when test="$current_template = 'draft'">
|
403
421
|
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
404
422
|
<xsl:text>IEEE </xsl:text>
|
405
423
|
</xsl:if>
|
406
|
-
<xsl:text>P</xsl:text>
|
424
|
+
<!-- <xsl:text>P</xsl:text>
|
407
425
|
<xsl:value-of select="$designation"/>
|
408
426
|
<xsl:text>/D</xsl:text>
|
409
|
-
<xsl:value-of select="$draft_number"/>
|
427
|
+
<xsl:value-of select="$draft_number"/> -->
|
428
|
+
<xsl:value-of select="$docidentifier_draft"/>
|
410
429
|
<xsl:text>, </xsl:text>
|
411
430
|
<xsl:value-of select="$draft_month"/>
|
412
431
|
<xsl:text> </xsl:text>
|
@@ -419,10 +438,19 @@
|
|
419
438
|
</xsl:variable>
|
420
439
|
|
421
440
|
<!-- <xsl:variable name="society" select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:society"/> -->
|
422
|
-
<xsl:variable name="society"
|
441
|
+
<xsl:variable name="society">
|
442
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'authorizer']/mn:description = 'committee'][1]/mn:organization">
|
443
|
+
<xsl:value-of select="normalize-space(concat(mn:abbreviation, ' ', mn:subdivision[@type = 'Society']/mn:name))"/>
|
444
|
+
</xsl:for-each>
|
445
|
+
</xsl:variable>
|
423
446
|
|
424
447
|
<!-- <xsl:variable name="committee" select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:committee"/> -->
|
425
|
-
<xsl:variable name="committee" select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'authorizer']/mn:description = 'committee']/mn:organization/mn:subdivision[@type = 'Committee']/mn:name"/>
|
448
|
+
<xsl:variable name="committee" select="normalize-space(/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'authorizer']/mn:description = 'committee']/mn:organization/mn:subdivision[@type = 'Committee']/mn:name)"/>
|
449
|
+
|
450
|
+
<xsl:variable name="enabler_">
|
451
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'enabler']]/mn:organization/node()"/>
|
452
|
+
</xsl:variable>
|
453
|
+
<xsl:variable name="enabler" select="xalan:nodeset($enabler_)"/>
|
426
454
|
|
427
455
|
<xsl:variable name="approved_by">IEEE SA Standards Board</xsl:variable>
|
428
456
|
<xsl:variable name="approved_date">
|
@@ -477,24 +505,25 @@
|
|
477
505
|
<xsl:call-template name="cover-page">
|
478
506
|
<xsl:with-param name="num" select="$num"/>
|
479
507
|
<xsl:with-param name="document_id" select="$document_id"/>
|
508
|
+
<xsl:with-param name="docidentifier_draft" select="$docidentifier_draft"/>
|
480
509
|
<xsl:with-param name="title" select="$title"/>
|
481
510
|
<xsl:with-param name="society" select="$society"/>
|
482
511
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
483
512
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
484
513
|
<xsl:with-param name="designation" select="$designation"/>
|
485
|
-
<xsl:with-param name="draft_number" select="$draft_number"/>
|
514
|
+
<!-- <xsl:with-param name="draft_number" select="$draft_number"/> -->
|
486
515
|
<xsl:with-param name="committee" select="$committee"/>
|
516
|
+
<xsl:with-param name="enabler" select="$enabler"/>
|
487
517
|
<xsl:with-param name="approved_date" select="$approved_date"/>
|
488
518
|
<xsl:with-param name="approved_by" select="$approved_by"/>
|
489
|
-
<xsl:with-param name="title_intro" select="$title_intro"/>
|
490
519
|
<xsl:with-param name="title_main" select="$title_main"/>
|
491
520
|
<xsl:with-param name="standard_number" select="$standard_number"/>
|
492
521
|
<xsl:with-param name="history_text" select="$history_text"/>
|
493
522
|
</xsl:call-template>
|
494
523
|
|
495
524
|
<xsl:variable name="title_standard_coverpage_">
|
496
|
-
<xsl:choose>
|
497
|
-
|
525
|
+
<!-- <xsl:choose>
|
526
|
+
title starts with lower-cased letter
|
498
527
|
<xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
|
499
528
|
<fo:block font-size="18pt">
|
500
529
|
<xsl:value-of select="$title_prefix"/>
|
@@ -502,20 +531,22 @@
|
|
502
531
|
</fo:block>
|
503
532
|
</xsl:when>
|
504
533
|
<xsl:otherwise>
|
505
|
-
|
534
|
+
Example: IEEE Standard for
|
506
535
|
<fo:block font-size="18pt">
|
507
536
|
<xsl:value-of select="$title_prefix"/>
|
508
537
|
</fo:block>
|
509
538
|
<fo:block font-size="18pt" margin-left="6mm">
|
510
|
-
|
539
|
+
Example Local and Metropolitan Area Networks—
|
511
540
|
<xsl:copy-of select="$title_intro"/>
|
512
541
|
</fo:block>
|
513
542
|
</xsl:otherwise>
|
514
|
-
</xsl:choose>
|
515
|
-
|
516
|
-
|
543
|
+
</xsl:choose> -->
|
544
|
+
|
545
|
+
<fo:block font-size="23pt"> <!-- 18pt -->
|
546
|
+
<!-- <xsl:value-of select="$title_prefix"/> -->
|
517
547
|
<xsl:copy-of select="$title_main"/>
|
518
548
|
</fo:block>
|
549
|
+
|
519
550
|
</xsl:variable>
|
520
551
|
<xsl:variable name="title_standard_coverpage" select="xalan:nodeset($title_standard_coverpage_)"/>
|
521
552
|
|
@@ -531,9 +562,7 @@
|
|
531
562
|
|
532
563
|
<xsl:call-template name="insertHeaderFooter">
|
533
564
|
<xsl:with-param name="document_id" select="$document_id"/>
|
534
|
-
<xsl:with-param name="title_prefix" select="$title_prefix"/>
|
535
565
|
<xsl:with-param name="title" select="$title"/>
|
536
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
537
566
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
538
567
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
539
568
|
<xsl:with-param name="hideFooter"><xsl:if test="not(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '')">false</xsl:if></xsl:with-param>
|
@@ -561,37 +590,54 @@
|
|
561
590
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
562
591
|
|
563
592
|
<xsl:call-template name="insertHeaderFooter">
|
564
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
565
593
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
566
594
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
567
|
-
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
595
|
+
<!-- <xsl:with-param name="hideHeader">true</xsl:with-param> -->
|
596
|
+
<xsl:with-param name="hideFooter">true</xsl:with-param>
|
568
597
|
</xsl:call-template>
|
569
598
|
|
570
599
|
<fo:flow flow-name="xsl-region-body">
|
571
|
-
<fo:block text-align="right" margin-top="2mm"
|
600
|
+
<fo:block text-align="right" margin-top="-11.5mm" id="__internal_layout__titlepage_{generate-id()}"> <!-- margin-top="2mm" -->
|
572
601
|
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
573
602
|
<fo:block font-size="9pt"><xsl:value-of select="$history_text"/></fo:block>
|
574
603
|
</fo:block>
|
575
604
|
|
576
|
-
<fo:block
|
577
|
-
<
|
578
|
-
|
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>
|
579
610
|
|
580
|
-
<
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
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>
|
591
637
|
|
592
638
|
<fo:block font-size="10pt" space-before="8mm" space-after="4pt">Approved <xsl:value-of select="$approved_date"/></fo:block>
|
593
639
|
<!-- Example: IEEE SA Standards Board -->
|
594
|
-
<fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
|
640
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm"><xsl:value-of select="$approved_by"/></fo:block>
|
595
641
|
|
596
642
|
<fo:block break-after="page"/>
|
597
643
|
|
@@ -628,26 +674,27 @@
|
|
628
674
|
</fo:flow>
|
629
675
|
</fo:page-sequence>
|
630
676
|
|
631
|
-
|
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">
|
632
683
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
633
684
|
<xsl:call-template name="insertHeaderFooter">
|
634
685
|
<xsl:with-param name="document_id" select="$document_id"/>
|
635
|
-
<xsl:with-param name="title_prefix" select="$title_prefix"/>
|
636
686
|
<xsl:with-param name="title" select="$title"/>
|
637
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
638
687
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
639
688
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
640
689
|
</xsl:call-template>
|
641
690
|
|
642
691
|
<fo:flow flow-name="xsl-region-body">
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
650
|
-
</fo:block>
|
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>
|
651
698
|
</fo:flow>
|
652
699
|
</fo:page-sequence>
|
653
700
|
</xsl:when> <!-- $current_template = 'standard' -->
|
@@ -656,7 +703,6 @@
|
|
656
703
|
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force" font-family="Calibri Light">
|
657
704
|
|
658
705
|
<xsl:call-template name="insertHeaderFooter">
|
659
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
660
706
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
661
707
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
662
708
|
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
@@ -696,22 +742,14 @@
|
|
696
742
|
<!-- End Second page(s) -->
|
697
743
|
<!-- =================== -->
|
698
744
|
|
745
|
+
<xsl:variable name="updated_xml_with_pages">
|
746
|
+
<xsl:call-template name="processPrefaceAndMainSectionsIEEE_items"/>
|
747
|
+
</xsl:variable>
|
748
|
+
|
699
749
|
<!-- ================================ -->
|
700
750
|
<!-- PREFACE pages (Introduction, Contents -->
|
701
751
|
<!-- ================================ -->
|
702
752
|
|
703
|
-
<xsl:variable name="structured_xml_preface">
|
704
|
-
<xsl:apply-templates select="/*/mn:preface/mn:introduction" mode="flatxml"/>
|
705
|
-
</xsl:variable>
|
706
|
-
|
707
|
-
<!-- structured_xml_preface=<xsl:copy-of select="$structured_xml_preface"/> -->
|
708
|
-
|
709
|
-
<xsl:variable name="paged_xml_preface">
|
710
|
-
<xsl:call-template name="makePagedXML">
|
711
|
-
<xsl:with-param name="structured_xml" select="$structured_xml_preface"/>
|
712
|
-
</xsl:call-template>
|
713
|
-
</xsl:variable>
|
714
|
-
|
715
753
|
<xsl:if test="$debug = 'true'">
|
716
754
|
<redirect:write file="contents_.xml">
|
717
755
|
<xsl:copy-of select="$contents"/>
|
@@ -721,34 +759,53 @@
|
|
721
759
|
<xsl:choose>
|
722
760
|
|
723
761
|
<xsl:when test="$current_template = 'standard' or $current_template = 'draft'">
|
724
|
-
<fo:page-sequence master-reference="document-draft" id="prefaceSequence"> <!-- format="i" initial-page-number="1" -->
|
725
762
|
|
726
|
-
|
763
|
+
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
|
727
764
|
|
728
|
-
<xsl:
|
729
|
-
|
730
|
-
<xsl:with-param name="title_prefix" select="$title_prefix"/>
|
731
|
-
<xsl:with-param name="title" select="$title"/>
|
732
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
733
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
734
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
735
|
-
</xsl:call-template>
|
765
|
+
<!-- <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]">
|
736
767
|
|
737
|
-
|
768
|
+
<fo:page-sequence master-reference="document-draft"> <!-- format="i" initial-page-number="1" -->
|
738
769
|
|
739
|
-
|
740
|
-
<xsl:for-each select="xalan:nodeset($paged_xml_preface)/mn:page">
|
741
|
-
<xsl:apply-templates select="*" mode="page"/>
|
742
|
-
<fo:block break-after="page"/>
|
743
|
-
</xsl:for-each>
|
744
|
-
</fo:block>
|
770
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
745
771
|
|
746
|
-
|
747
|
-
|
748
|
-
|
772
|
+
<xsl:call-template name="insertHeaderFooter">
|
773
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
774
|
+
<xsl:with-param name="title" select="$title"/>
|
775
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
776
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
777
|
+
</xsl:call-template>
|
778
|
+
|
779
|
+
<fo:flow flow-name="xsl-region-body">
|
780
|
+
|
781
|
+
<fo:block>
|
782
|
+
<xsl:apply-templates/>
|
783
|
+
</fo:block>
|
784
|
+
|
785
|
+
</fo:flow>
|
786
|
+
</fo:page-sequence>
|
787
|
+
</xsl:for-each>
|
788
|
+
</xsl:for-each>
|
789
|
+
|
790
|
+
<xsl:for-each select="/*/mn:preface/mn:clause[@type = 'toc']">
|
791
|
+
<fo:page-sequence master-reference="document-draft">
|
792
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
793
|
+
|
794
|
+
<xsl:call-template name="insertHeaderFooter">
|
795
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
796
|
+
<xsl:with-param name="title" select="$title"/>
|
797
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
798
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
799
|
+
</xsl:call-template>
|
800
|
+
|
801
|
+
<fo:flow flow-name="xsl-region-body">
|
802
|
+
<xsl:apply-templates select=".">
|
803
|
+
<xsl:with-param name="num" select="$num"/>
|
804
|
+
</xsl:apply-templates>
|
805
|
+
</fo:flow>
|
806
|
+
</fo:page-sequence>
|
807
|
+
</xsl:for-each>
|
749
808
|
|
750
|
-
</fo:flow>
|
751
|
-
</fo:page-sequence>
|
752
809
|
</xsl:when> <!-- 'standard' or 'draft' -->
|
753
810
|
|
754
811
|
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -760,7 +817,6 @@
|
|
760
817
|
<fo:page-sequence master-reference="page-toc" force-page-count="no-force">
|
761
818
|
|
762
819
|
<xsl:call-template name="insertHeaderFooter">
|
763
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
764
820
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
765
821
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
766
822
|
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
@@ -806,232 +862,283 @@
|
|
806
862
|
</xsl:choose>
|
807
863
|
|
808
864
|
<!-- ================================ -->
|
809
|
-
<!-- END: PREFACE pages (Table of Contents
|
865
|
+
<!-- END: PREFACE pages (Introduction, Table of Contents -->
|
810
866
|
<!-- ================================ -->
|
811
867
|
|
812
|
-
<!--
|
813
|
-
<xsl:variable name="structured_xml_">
|
868
|
+
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
|
814
869
|
|
815
|
-
|
870
|
+
<!-- Introduction, Acknowledgements, Abstract for whitepaper and report -->
|
871
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
872
|
+
<xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
873
|
+
<xsl:call-template name="insert_page-sequence">
|
874
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
875
|
+
<xsl:with-param name="title" select="$title"/>
|
876
|
+
<xsl:with-param name="doctype" select="$doctype"/>
|
877
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
878
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
879
|
+
<xsl:with-param name="is_first_sequence" select="normalize-space(position() = 1)"/>
|
880
|
+
</xsl:call-template>
|
881
|
+
</xsl:for-each>
|
882
|
+
</xsl:if>
|
816
883
|
|
817
|
-
|
884
|
+
<xsl:for-each select=".//mn:page_sequence[parent::mn:sections][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
885
|
+
<xsl:call-template name="insert_page-sequence">
|
886
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
887
|
+
<xsl:with-param name="title" select="$title"/>
|
888
|
+
<xsl:with-param name="doctype" select="$doctype"/>
|
889
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
890
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
891
|
+
<xsl:with-param name="is_first_sequence" select="normalize-space(position() = 1)"/>
|
892
|
+
</xsl:call-template>
|
893
|
+
</xsl:for-each>
|
818
894
|
|
819
|
-
|
820
|
-
|
821
|
-
|
895
|
+
<!-- Annexes, Bibliography and Index -->
|
896
|
+
<xsl:for-each select=".//mn:page_sequence[not(parent::mn:preface) and not(parent::mn:sections)][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
897
|
+
<xsl:call-template name="insert_page-sequence">
|
898
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
899
|
+
<xsl:with-param name="title" select="$title"/>
|
900
|
+
<xsl:with-param name="doctype" select="$doctype"/>
|
901
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
902
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
903
|
+
</xsl:call-template>
|
904
|
+
</xsl:for-each>
|
822
905
|
|
823
|
-
|
824
|
-
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:acknowledgements" mode="flatxml"/>
|
825
|
-
</item>
|
906
|
+
</xsl:for-each>
|
826
907
|
|
827
|
-
|
828
|
-
|
829
|
-
|
908
|
+
<!-- ===================== -->
|
909
|
+
<!-- End IEEE pages -->
|
910
|
+
<!-- ===================== -->
|
830
911
|
|
831
|
-
|
832
|
-
<item>
|
833
|
-
<xsl:apply-templates select="." mode="flatxml"/>
|
834
|
-
</item>
|
835
|
-
</xsl:for-each>
|
836
|
-
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
912
|
+
<xsl:call-template name="back-page"/>
|
837
913
|
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
914
|
+
<xsl:if test="not(xalan:nodeset($updated_xml_with_pages)//mn:page_sequence[*])">
|
915
|
+
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force">
|
916
|
+
<fo:flow flow-name="xsl-region-body">
|
917
|
+
<fo:block><!-- prevent fop error for empty document --></fo:block>
|
918
|
+
</fo:flow>
|
919
|
+
</fo:page-sequence>
|
920
|
+
</xsl:if>
|
845
921
|
|
846
|
-
|
847
|
-
|
848
|
-
<xsl:apply-templates select="/*/mn:sections/*" mode="flatxml"/>
|
849
|
-
</item>
|
850
|
-
</xsl:otherwise>
|
851
|
-
</xsl:choose>
|
922
|
+
</xsl:for-each>
|
923
|
+
</xsl:for-each> <!-- END of //metanorma (former ieee-standard) iteration -->
|
852
924
|
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
925
|
+
<xsl:if test="not(//mn:metanorma)">
|
926
|
+
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force">
|
927
|
+
<fo:flow flow-name="xsl-region-body">
|
928
|
+
<fo:block><!-- prevent fop error for empty document --></fo:block>
|
929
|
+
</fo:flow>
|
930
|
+
</fo:page-sequence>
|
931
|
+
</xsl:if>
|
859
932
|
|
860
|
-
|
861
|
-
|
862
|
-
<item><xsl:apply-templates select="." mode="flatxml"/></item>
|
863
|
-
</xsl:for-each>
|
933
|
+
</fo:root>
|
934
|
+
</xsl:template>
|
864
935
|
|
865
|
-
|
866
|
-
|
867
|
-
|
936
|
+
<xsl:template name="processPrefaceAndMainSectionsIEEE_items">
|
937
|
+
<xsl:variable name="updated_xml_step_move_pagebreak">
|
938
|
+
<xsl:element name="{$root_element}" namespace="{$namespace_full}">
|
939
|
+
<xsl:call-template name="copyCommonElements"/>
|
868
940
|
|
869
|
-
|
941
|
+
<xsl:element name="preface" namespace="{$namespace_full}"> <!-- save context element -->
|
942
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
943
|
+
<xsl:for-each select="/*/mn:preface/mn:introduction">
|
944
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
945
|
+
</xsl:for-each>
|
946
|
+
</xsl:element>
|
870
947
|
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
<xsl:element name="pagebreak" namespace="{$namespace_full}"/>
|
875
|
-
<xsl:copy-of select="./*"/>
|
948
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
949
|
+
<xsl:for-each select="/*/mn:preface/mn:acknowledgements">
|
950
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
876
951
|
</xsl:for-each>
|
877
|
-
</xsl:
|
952
|
+
</xsl:element>
|
878
953
|
|
879
|
-
|
954
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
955
|
+
<xsl:for-each select="/*/mn:preface/mn:abstract">
|
956
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
957
|
+
</xsl:for-each>
|
958
|
+
</xsl:element>
|
880
959
|
|
881
|
-
|
882
|
-
<xsl:call-template name="makePagedXML">
|
883
|
-
<xsl:with-param name="structured_xml" select="$structured_xml"/>
|
884
|
-
</xsl:call-template>
|
885
|
-
</xsl:variable>
|
960
|
+
</xsl:element>
|
886
961
|
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
962
|
+
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
|
963
|
+
<xsl:choose>
|
964
|
+
<xsl:when test="$page_break_between_sections = 'true'">
|
965
|
+
<xsl:for-each select="/*/mn:sections/*[not(contains(@class, 'zzSTDTitle'))]"> <!-- each section starts with a new page -->
|
966
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
967
|
+
<xsl:if test="position() = 1">
|
968
|
+
<xsl:copy-of select="ancestor::mn:sections/*[contains(@class, 'zzSTDTitle')]"/> <!-- put title on the 1st page -->
|
969
|
+
</xsl:if>
|
970
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
971
|
+
</xsl:element>
|
972
|
+
</xsl:for-each>
|
973
|
+
</xsl:when>
|
974
|
+
<xsl:otherwise>
|
975
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
976
|
+
<xsl:apply-templates select="/*/mn:sections/*" mode="update_xml_step_move_pagebreak"/>
|
977
|
+
</xsl:element>
|
978
|
+
</xsl:otherwise>
|
979
|
+
</xsl:choose>
|
980
|
+
</xsl:element>
|
892
981
|
|
893
|
-
|
982
|
+
<!-- Annexes -->
|
983
|
+
<xsl:for-each select="/*/mn:annex">
|
984
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
985
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
986
|
+
</xsl:element>
|
987
|
+
</xsl:for-each>
|
894
988
|
|
895
|
-
|
896
|
-
|
989
|
+
<!-- Bibliography -->
|
990
|
+
<xsl:for-each select="/*/mn:bibliography/*">
|
991
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
992
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
993
|
+
</xsl:element>
|
994
|
+
</xsl:for-each>
|
897
995
|
|
898
|
-
|
899
|
-
|
900
|
-
|
996
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
997
|
+
<xsl:copy-of select="//mn:indexsect"/>
|
998
|
+
</xsl:element>
|
901
999
|
|
902
|
-
|
903
|
-
|
904
|
-
<xsl:if test="@orientation = 'landscape'">
|
905
|
-
<xsl:attribute name="master-reference">document-nonstandard<xsl:value-of select="@orientation"/></xsl:attribute>
|
906
|
-
</xsl:if>
|
907
|
-
</xsl:if>
|
1000
|
+
</xsl:element>
|
1001
|
+
</xsl:variable>
|
908
1002
|
|
909
|
-
|
910
|
-
<xsl:attribute name="master-reference">document-standard</xsl:attribute>
|
911
|
-
<xsl:if test="@orientation = 'landscape'">
|
912
|
-
<xsl:attribute name="master-reference">document-standard<xsl:value-of select="@orientation"/></xsl:attribute>
|
913
|
-
</xsl:if>
|
914
|
-
</xsl:if>
|
1003
|
+
<xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_main_', java:getTime(java:java.util.Date.new()), '.xml')"/>
|
915
1004
|
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
<xsl:if test=".//mn:indexsect">
|
920
|
-
<xsl:attribute name="master-reference">index</xsl:attribute>
|
921
|
-
</xsl:if>
|
1005
|
+
<redirect:write file="{$updated_xml_step_move_pagebreak_filename}">
|
1006
|
+
<xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
|
1007
|
+
</redirect:write>
|
922
1008
|
|
923
|
-
|
1009
|
+
<xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
|
924
1010
|
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
<xsl:with-param name="title" select="$title"/>
|
931
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
932
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
933
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
934
|
-
<xsl:with-param name="orientation">@orientation</xsl:with-param>
|
935
|
-
</xsl:call-template>
|
936
|
-
</xsl:when>
|
937
|
-
<xsl:otherwise> <!-- ($current_template = 'international-standard' and $isDraft = 'false') or $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
938
|
-
<xsl:call-template name="insertHeaderFooter">
|
939
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
940
|
-
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
941
|
-
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
942
|
-
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
943
|
-
</xsl:call-template>
|
944
|
-
</xsl:otherwise>
|
945
|
-
</xsl:choose>
|
1011
|
+
<xsl:if test="$debug = 'true'">
|
1012
|
+
<redirect:write file="page_sequence_preface_and_main.xml">
|
1013
|
+
<xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
|
1014
|
+
</redirect:write>
|
1015
|
+
</xsl:if>
|
946
1016
|
|
947
|
-
|
948
|
-
|
1017
|
+
<xsl:call-template name="deleteFile">
|
1018
|
+
<xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
|
1019
|
+
</xsl:call-template>
|
949
1020
|
|
950
|
-
|
951
|
-
|
952
|
-
<xsl:choose>
|
953
|
-
<xsl:when test="$current_template = 'draft'">
|
954
|
-
<fo:block font-family="Arial" font-size="23pt" font-weight="bold" margin-top="70pt" margin-bottom="48pt">
|
955
|
-
|
956
|
-
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
957
|
-
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
958
|
-
</xsl:if>
|
959
|
-
|
960
|
-
<xsl:copy-of select="$title_prefix"/>
|
961
|
-
<xsl:copy-of select="$title"/>
|
962
|
-
|
963
|
-
</fo:block>
|
964
|
-
</xsl:when>
|
965
|
-
|
966
|
-
<xsl:when test="$current_template = 'standard'">
|
967
|
-
<fo:block font-family="Arial" font-weight="bold" margin-top="13mm" space-after="12pt">
|
968
|
-
<fo:block font-weight="bold" space-before="13mm">
|
969
|
-
<xsl:copy-of select="$title_standard_coverpage"/>
|
970
|
-
</fo:block>
|
971
|
-
</fo:block>
|
972
|
-
</xsl:when>
|
973
|
-
|
974
|
-
<xsl:otherwise> --><!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
975
|
-
|
976
|
-
<!-- <xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
977
|
-
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
978
|
-
|
979
|
-
<fo:block font-family="Arial Black" font-size="20pt" margin-top="18pt">
|
980
|
-
<xsl:copy-of select="$title"/>
|
981
|
-
</fo:block>
|
982
|
-
<xsl:call-template name="addBlueBox"/>
|
983
|
-
<fo:block margin-bottom="12pt"> </fo:block>
|
984
|
-
</xsl:otherwise>
|
985
|
-
</xsl:choose>
|
986
|
-
|
987
|
-
</xsl:if> -->
|
1021
|
+
</xsl:template> <!-- processPrefaceAndMainSectionsIEEE_items -->
|
988
1022
|
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
<!-- ===================== -->
|
1023
|
+
<xsl:template name="insert_page-sequence">
|
1024
|
+
<xsl:param name="document_id"/>
|
1025
|
+
<xsl:param name="title"/>
|
1026
|
+
<xsl:param name="doctype"/>
|
1027
|
+
<xsl:param name="copyright_year"/>
|
1028
|
+
<xsl:param name="copyright_holder"/>
|
1029
|
+
<xsl:param name="is_first_sequence"/>
|
997
1030
|
|
998
|
-
|
1031
|
+
<fo:page-sequence master-reference="document-draft" force-page-count="no-force">
|
999
1032
|
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
<fo:block><!-- prevent fop error for empty document --></fo:block>
|
1004
|
-
</fo:flow>
|
1005
|
-
</fo:page-sequence>
|
1006
|
-
</xsl:if>
|
1033
|
+
<xsl:if test="@orientation = 'landscape'">
|
1034
|
+
<xsl:attribute name="master-reference">document-draft-<xsl:value-of select="@orientation"/></xsl:attribute>
|
1035
|
+
</xsl:if>
|
1007
1036
|
|
1008
|
-
|
1009
|
-
|
1037
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1038
|
+
<xsl:attribute name="master-reference">document-nonstandard</xsl:attribute>
|
1039
|
+
<xsl:if test="@orientation = 'landscape'">
|
1040
|
+
<xsl:attribute name="master-reference">document-nonstandard<xsl:value-of select="@orientation"/></xsl:attribute>
|
1041
|
+
</xsl:if>
|
1042
|
+
</xsl:if>
|
1010
1043
|
|
1011
|
-
<xsl:if test="
|
1012
|
-
<
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
</fo:page-sequence>
|
1044
|
+
<xsl:if test="$current_template = 'standard'">
|
1045
|
+
<xsl:attribute name="master-reference">document-standard<xsl:if test="position() = 1 and $is_first_sequence = 'true'">-first</xsl:if></xsl:attribute>
|
1046
|
+
<xsl:if test="@orientation = 'landscape'">
|
1047
|
+
<xsl:attribute name="master-reference">document-standard<xsl:value-of select="@orientation"/></xsl:attribute>
|
1048
|
+
</xsl:if>
|
1017
1049
|
</xsl:if>
|
1018
1050
|
|
1019
|
-
|
1020
|
-
|
1051
|
+
<!-- <xsl:if test="position() = 1">
|
1052
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
1053
|
+
</xsl:if> -->
|
1054
|
+
<xsl:if test=".//mn:indexsect">
|
1055
|
+
<xsl:attribute name="master-reference">index</xsl:attribute>
|
1056
|
+
</xsl:if>
|
1057
|
+
|
1058
|
+
<xsl:call-template name="insertFootnoteSeparator"/>
|
1059
|
+
|
1060
|
+
<xsl:choose>
|
1061
|
+
<xsl:when test="$current_template = 'standard' or $current_template = 'draft'">
|
1062
|
+
<xsl:call-template name="insertHeaderFooter">
|
1063
|
+
<xsl:with-param name="document_id" select="$document_id"/>
|
1064
|
+
<xsl:with-param name="title" select="$title"/>
|
1065
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1066
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1067
|
+
<xsl:with-param name="orientation">@orientation</xsl:with-param>
|
1068
|
+
</xsl:call-template>
|
1069
|
+
</xsl:when>
|
1070
|
+
<xsl:otherwise> <!-- ($current_template = 'international-standard' and $isDraft = 'false') or $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1071
|
+
<xsl:call-template name="insertHeaderFooter">
|
1072
|
+
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1073
|
+
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1074
|
+
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
1075
|
+
</xsl:call-template>
|
1076
|
+
</xsl:otherwise>
|
1077
|
+
</xsl:choose>
|
1078
|
+
|
1079
|
+
<fo:flow flow-name="xsl-region-body">
|
1080
|
+
<!-- debugpage=<xsl:copy-of select="."/> -->
|
1081
|
+
|
1082
|
+
<!-- <xsl:if test="position() = 1">
|
1083
|
+
|
1084
|
+
<xsl:choose>
|
1085
|
+
<xsl:when test="$current_template = 'draft'">
|
1086
|
+
<fo:block font-family="Arial" font-size="23pt" font-weight="bold" margin-top="70pt" margin-bottom="48pt">
|
1087
|
+
|
1088
|
+
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
1089
|
+
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
1090
|
+
</xsl:if>
|
1091
|
+
|
1092
|
+
<xsl:copy-of select="$title_prefix"/>
|
1093
|
+
<xsl:copy-of select="$title"/>
|
1094
|
+
|
1095
|
+
</fo:block>
|
1096
|
+
</xsl:when>
|
1097
|
+
|
1098
|
+
<xsl:when test="$current_template = 'standard'">
|
1099
|
+
<fo:block font-family="Arial" font-weight="bold" margin-top="13mm" space-after="12pt">
|
1100
|
+
<fo:block font-weight="bold" space-before="13mm">
|
1101
|
+
<xsl:copy-of select="$title_standard_coverpage"/>
|
1102
|
+
</fo:block>
|
1103
|
+
</fo:block>
|
1104
|
+
</xsl:when>
|
1105
|
+
|
1106
|
+
<xsl:otherwise> --><!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1107
|
+
|
1108
|
+
<!-- <xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
1109
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1110
|
+
|
1111
|
+
<fo:block font-family="Arial Black" font-size="20pt" margin-top="18pt">
|
1112
|
+
<xsl:copy-of select="$title"/>
|
1113
|
+
</fo:block>
|
1114
|
+
<xsl:call-template name="addBlueBox"/>
|
1115
|
+
<fo:block margin-bottom="12pt"> </fo:block>
|
1116
|
+
</xsl:otherwise>
|
1117
|
+
</xsl:choose>
|
1118
|
+
|
1119
|
+
</xsl:if> -->
|
1120
|
+
|
1121
|
+
<!-- <xsl:apply-templates select="*" /> --> <!-- mode="page" -->
|
1122
|
+
<xsl:apply-templates/> <!-- mode="page" -->
|
1123
|
+
<!-- <xsl:if test="position() = last()"><fo:block id="lastBlockMain"/></xsl:if> -->
|
1124
|
+
</fo:flow>
|
1125
|
+
</fo:page-sequence>
|
1126
|
+
</xsl:template> <!-- insert_page-sequence -->
|
1021
1127
|
|
1022
1128
|
<xsl:template name="cover-page">
|
1023
1129
|
<xsl:param name="num"/>
|
1024
1130
|
<xsl:param name="document_id"/>
|
1131
|
+
<xsl:param name="docidentifier_draft"/>
|
1025
1132
|
<xsl:param name="title"/>
|
1026
1133
|
<xsl:param name="society"/>
|
1027
1134
|
<xsl:param name="copyright_holder"/>
|
1028
1135
|
<xsl:param name="copyright_year"/>
|
1029
1136
|
<xsl:param name="designation"/>
|
1030
|
-
<xsl:param name="draft_number"/>
|
1137
|
+
<!-- <xsl:param name="draft_number"/> -->
|
1031
1138
|
<xsl:param name="committee"/>
|
1139
|
+
<xsl:param name="enabler"/>
|
1032
1140
|
<xsl:param name="approved_date"/>
|
1033
1141
|
<xsl:param name="approved_by"/>
|
1034
|
-
<xsl:param name="title_intro"/>
|
1035
1142
|
<xsl:param name="title_main"/>
|
1036
1143
|
<xsl:param name="standard_number"/>
|
1037
1144
|
<xsl:param name="history_text"/>
|
@@ -1065,10 +1172,7 @@
|
|
1065
1172
|
|
1066
1173
|
<xsl:call-template name="insertHeaderFooter">
|
1067
1174
|
<xsl:with-param name="document_id" select="$document_id"/>
|
1068
|
-
<xsl:with-param name="title_prefix" select="$title_prefix"/>
|
1069
1175
|
<xsl:with-param name="title" select="$title"/>
|
1070
|
-
<xsl:with-param name="doctype" select="$doctype"/>
|
1071
|
-
|
1072
1176
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
1073
1177
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
1074
1178
|
<xsl:with-param name="hideFooter">true</xsl:with-param>
|
@@ -1081,29 +1185,60 @@
|
|
1081
1185
|
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
1082
1186
|
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
1083
1187
|
</xsl:if>
|
1084
|
-
<xsl:text>P</xsl:text>
|
1188
|
+
<!-- <xsl:text>P</xsl:text>
|
1085
1189
|
<xsl:value-of select="$designation"/>
|
1086
1190
|
<xsl:text>™/D</xsl:text>
|
1087
|
-
<xsl:value-of select="$draft_number"/>
|
1191
|
+
<xsl:value-of select="$draft_number"/> -->
|
1192
|
+
|
1193
|
+
<!-- add tm after number, i.e. from P2830/D1 to P2830™/D1 -->
|
1194
|
+
<xsl:variable name="regex_tm" select="concat('(', $designation, ')', '(-\/)?')"/>
|
1195
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($docidentifier_draft), $regex_tm,'$1™$2')"/>
|
1196
|
+
|
1088
1197
|
<xsl:value-of select="$linebreak"/>
|
1089
|
-
<xsl:copy-of select="$title_prefix"/>
|
1198
|
+
<!-- <xsl:copy-of select="$title_prefix"/> -->
|
1090
1199
|
<xsl:copy-of select="$title"/>
|
1091
1200
|
|
1092
1201
|
<!-- <xsl:copy-of select="$draft_title_part"/> -->
|
1093
1202
|
</fo:block>
|
1094
|
-
|
1095
|
-
<
|
1096
|
-
|
1097
|
-
|
1098
|
-
<
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
<
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1203
|
+
|
1204
|
+
<xsl:if test="$committee != ''">
|
1205
|
+
<fo:block><xsl:value-of select="$developed_by"/></fo:block>
|
1206
|
+
<fo:block> </fo:block>
|
1207
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1208
|
+
<!-- <Committee Name> -->
|
1209
|
+
<xsl:value-of select="$committee"/>
|
1210
|
+
</fo:block>
|
1211
|
+
<fo:block>of the</fo:block>
|
1212
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1213
|
+
<!-- IEEE <Society Name> -->
|
1214
|
+
<xsl:value-of select="$society"/>
|
1215
|
+
</fo:block>
|
1216
|
+
<fo:block> </fo:block>
|
1217
|
+
<fo:block> </fo:block>
|
1218
|
+
</xsl:if>
|
1219
|
+
|
1220
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
1221
|
+
<!-- Sponsored by the
|
1222
|
+
LAN/MAN Standards Committee -->
|
1223
|
+
<fo:block><xsl:value-of select="$sponsored_by"/></fo:block>
|
1224
|
+
<fo:block> </fo:block>
|
1225
|
+
<xsl:for-each select="$enabler/mn:subdivision">
|
1226
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1227
|
+
<xsl:value-of select="mn:subdivision/mn:name"/>
|
1228
|
+
</fo:block>
|
1229
|
+
<fo:block>of the</fo:block>
|
1230
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1231
|
+
<xsl:value-of select="../mn:abbreviation"/><xsl:text> </xsl:text>
|
1232
|
+
<xsl:value-of select="mn:name"/>
|
1233
|
+
</fo:block>
|
1234
|
+
<xsl:if test="position() != last()">
|
1235
|
+
<fo:block>and the</fo:block>
|
1236
|
+
</xsl:if>
|
1237
|
+
</xsl:for-each>
|
1238
|
+
<fo:block> </fo:block>
|
1239
|
+
<fo:block> </fo:block>
|
1240
|
+
</xsl:if>
|
1241
|
+
|
1107
1242
|
<fo:block>
|
1108
1243
|
<!-- Approved <Date Approved> -->
|
1109
1244
|
<xsl:text>Approved </xsl:text>
|
@@ -1174,13 +1309,12 @@
|
|
1174
1309
|
|
1175
1310
|
<xsl:when test="$current_template = 'standard'">
|
1176
1311
|
<xsl:call-template name="insertCoverPage_Standard">
|
1177
|
-
<xsl:with-param name="title_intro" select="$title_intro"/>
|
1178
1312
|
<xsl:with-param name="title_main" select="$title_main"/>
|
1179
1313
|
<xsl:with-param name="society" select="$society"/>
|
1180
1314
|
<xsl:with-param name="committee" select="$committee"/>
|
1315
|
+
<xsl:with-param name="enabler" select="$enabler"/>
|
1181
1316
|
<xsl:with-param name="standard_number" select="$standard_number"/>
|
1182
1317
|
<xsl:with-param name="history" select="$history_text"/>
|
1183
|
-
<xsl:with-param name="standard_title_prefix" select="$title_prefix"/>
|
1184
1318
|
<xsl:with-param name="cutoff_date" select="$cutoff_date"/>
|
1185
1319
|
<xsl:with-param name="expiration_date" select="$expiration_date"/>
|
1186
1320
|
</xsl:call-template>
|
@@ -1220,7 +1354,7 @@
|
|
1220
1354
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1221
1355
|
</xsl:if>
|
1222
1356
|
|
1223
|
-
<fo:block text-align-last="justify">
|
1357
|
+
<fo:block text-align-last="justify" role="SKIP">
|
1224
1358
|
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-left * (@level - 1)"/>mm</xsl:attribute>
|
1225
1359
|
<xsl:if test="@type = 'annex'">
|
1226
1360
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -1283,14 +1417,14 @@
|
|
1283
1417
|
|
1284
1418
|
<xsl:attribute name="margin-left"><xsl:value-of select="$provisional-distance-between-starts * (@level - 1)"/>mm</xsl:attribute>
|
1285
1419
|
|
1286
|
-
<fo:list-item>
|
1287
|
-
<fo:list-item-label end-indent="label-end()">
|
1288
|
-
<fo:block>
|
1420
|
+
<fo:list-item role="SKIP">
|
1421
|
+
<fo:list-item-label end-indent="label-end()" role="SKIP">
|
1422
|
+
<fo:block role="SKIP">
|
1289
1423
|
<xsl:value-of select="@section"/>
|
1290
1424
|
</fo:block>
|
1291
1425
|
</fo:list-item-label>
|
1292
|
-
<fo:list-item-body start-indent="body-start()">
|
1293
|
-
<fo:block text-align-last="justify">
|
1426
|
+
<fo:list-item-body start-indent="body-start()" role="SKIP">
|
1427
|
+
<fo:block text-align-last="justify" role="SKIP">
|
1294
1428
|
|
1295
1429
|
<xsl:if test="@type = 'annex'">
|
1296
1430
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -1451,17 +1585,9 @@
|
|
1451
1585
|
<fo:block>
|
1452
1586
|
<fo:footnote>
|
1453
1587
|
<fo:inline/>
|
1454
|
-
<fo:footnote-body
|
1588
|
+
<fo:footnote-body xsl:use-attribute-sets="feedback-statement-style">
|
1455
1589
|
|
1456
|
-
<xsl:
|
1457
|
-
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
1458
|
-
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1459
|
-
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
1460
|
-
</xsl:if>
|
1461
|
-
|
1462
|
-
<xsl:if test="$current_template = 'standard'">
|
1463
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
1464
|
-
</xsl:if>
|
1590
|
+
<xsl:call-template name="refine_feedback-statement-style"/>
|
1465
1591
|
|
1466
1592
|
<fo:block>
|
1467
1593
|
<fo:inline font-size="1pt" id="footnote_footer_{generate-id()}"><xsl:value-of select="$hair_space"/></fo:inline>
|
@@ -1473,7 +1599,7 @@
|
|
1473
1599
|
</xsl:template>
|
1474
1600
|
|
1475
1601
|
<xsl:template match="mn:boilerplate/mn:feedback-statement//mn:p" priority="2">
|
1476
|
-
<fo:block
|
1602
|
+
<fo:block xsl:use-attribute-sets="feedback-statement-p-style">
|
1477
1603
|
<xsl:apply-templates/>
|
1478
1604
|
</fo:block>
|
1479
1605
|
</xsl:template>
|
@@ -1485,13 +1611,17 @@
|
|
1485
1611
|
|
1486
1612
|
<xsl:template match="mn:boilerplate/mn:legal-statement/mn:clause[@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants']" priority="2">
|
1487
1613
|
<fo:block break-after="page"/>
|
1488
|
-
<fo:block id="{@id}">
|
1489
|
-
|
1490
|
-
</fo:block>
|
1614
|
+
<!-- <fo:block id="{@id}" font-size="1pt" span="all"> </fo:block> -->
|
1615
|
+
<xsl:apply-templates/>
|
1491
1616
|
</xsl:template>
|
1492
1617
|
|
1493
1618
|
<xsl:template match="mn:boilerplate/mn:legal-statement/mn:clause[@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants']/mn:clause" priority="2">
|
1494
|
-
<fo:block id="{@id}" space-before="12pt">
|
1619
|
+
<fo:block id="{@id}" space-before="12pt" font-size="1pt" span="all" keep-with-next="always"> </fo:block>
|
1620
|
+
<xsl:apply-templates/>
|
1621
|
+
</xsl:template>
|
1622
|
+
|
1623
|
+
<xsl:template match="mn:boilerplate/mn:legal-statement/mn:clause[not(@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants')]" priority="2">
|
1624
|
+
<fo:block id="{@id}" span="all">
|
1495
1625
|
<xsl:apply-templates/>
|
1496
1626
|
</fo:block>
|
1497
1627
|
</xsl:template>
|
@@ -1501,18 +1631,10 @@
|
|
1501
1631
|
<xsl:variable name="level">
|
1502
1632
|
<xsl:call-template name="getLevel"/>
|
1503
1633
|
</xsl:variable>
|
1504
|
-
<fo:block
|
1505
|
-
<xsl:
|
1506
|
-
<xsl:choose>
|
1507
|
-
<xsl:when test="$level = '1'">12pt</xsl:when>
|
1508
|
-
<xsl:otherwise>11pt</xsl:otherwise>
|
1509
|
-
</xsl:choose>
|
1510
|
-
</xsl:attribute>
|
1634
|
+
<fo:block xsl:use-attribute-sets="legal-statement-title-style" role="H{$level}">
|
1635
|
+
<xsl:copy-of select="parent::mn:clause[@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants']/@id"/>
|
1511
1636
|
|
1512
|
-
<xsl:
|
1513
|
-
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
1514
|
-
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
1515
|
-
</xsl:if>
|
1637
|
+
<xsl:call-template name="refine_legal-statement-title-style"/>
|
1516
1638
|
|
1517
1639
|
<xsl:apply-templates/>
|
1518
1640
|
</fo:block>
|
@@ -1520,12 +1642,14 @@
|
|
1520
1642
|
|
1521
1643
|
<xsl:template match="mn:boilerplate/mn:legal-statement//mn:p" priority="2">
|
1522
1644
|
<xsl:choose>
|
1523
|
-
<xsl:when test="@type = 'officemember' and not(preceding-sibling::*[1][self::mn:p][@type = 'officemember'])"> <!-- special case -->
|
1645
|
+
<xsl:when test="(@type = 'officemember' and not(preceding-sibling::*[1][self::mn:p][@type = 'officemember'])) or (@type = 'officeorgmember' and not(preceding-sibling::*[1][self::mn:p][@type = 'officeorgmember']))"> <!-- special case -->
|
1646
|
+
|
1647
|
+
<xsl:variable name="type" select="@type"/>
|
1524
1648
|
|
1525
1649
|
<xsl:variable name="officemembers_">
|
1526
1650
|
<officemember><xsl:copy-of select="node()"/></officemember>
|
1527
1651
|
<xsl:variable name="pos_curr" select="count(preceding-sibling::*) + 1"/>
|
1528
|
-
<xsl:variable name="pos_end_" select="count(following-sibling::*[not(@type =
|
1652
|
+
<xsl:variable name="pos_end_" select="count(following-sibling::*[not(@type = $type)][1]/preceding-sibling::*)"/>
|
1529
1653
|
<xsl:variable name="pos_end">
|
1530
1654
|
<xsl:choose>
|
1531
1655
|
<xsl:when test="$pos_end_ = 0">9999</xsl:when>
|
@@ -1541,98 +1665,137 @@
|
|
1541
1665
|
|
1542
1666
|
<xsl:variable name="officemembers_count" select="count($officemembers/officemember)"/>
|
1543
1667
|
|
1544
|
-
<xsl:variable name="cols">3</xsl:variable>
|
1668
|
+
<xsl:variable name="cols"><xsl:choose><xsl:when test="$type = 'officemember'">3</xsl:when><xsl:otherwise>2</xsl:otherwise></xsl:choose></xsl:variable>
|
1545
1669
|
|
1546
1670
|
<xsl:variable name="mod" select="$officemembers_count mod $cols"/>
|
1547
1671
|
<xsl:variable name="floor" select="floor($officemembers_count div $cols)"/>
|
1548
1672
|
|
1549
1673
|
<xsl:variable name="max">
|
1550
1674
|
<xsl:choose>
|
1551
|
-
<xsl:when test="$mod = 0"><xsl:value-of select="$officemembers_count div
|
1675
|
+
<xsl:when test="$mod = 0"><xsl:value-of select="$officemembers_count div $cols"/></xsl:when>
|
1552
1676
|
<xsl:otherwise><xsl:value-of select="$floor + 1"/></xsl:otherwise>
|
1553
1677
|
</xsl:choose>
|
1554
1678
|
</xsl:variable>
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
<xsl:
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
<fo:block font-size="9pt">
|
1592
|
-
<fo:block> </fo:block>
|
1593
|
-
<fo:table width="100%" table-layout="fixed">
|
1594
|
-
<fo:table-column column-width="proportional-column-width(55)"/>
|
1595
|
-
<fo:table-column column-width="proportional-column-width(55)"/>
|
1596
|
-
<fo:table-column column-width="proportional-column-width(42)"/>
|
1597
|
-
<fo:table-body>
|
1598
|
-
<xsl:for-each select="$officemembers_updated/officemember[position() <= $number_in_each_column]"> <!-- $max -->
|
1599
|
-
<fo:table-row>
|
1600
|
-
<fo:table-cell padding-right="3mm">
|
1601
|
-
<fo:block>
|
1602
|
-
<xsl:apply-templates/>
|
1603
|
-
</fo:block>
|
1604
|
-
</fo:table-cell>
|
1605
|
-
<fo:table-cell padding-right="3mm">
|
1606
|
-
<fo:block>
|
1607
|
-
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column)]/node()"/> <!-- $max -->
|
1608
|
-
</fo:block>
|
1609
|
-
</fo:table-cell>
|
1610
|
-
<fo:table-cell>
|
1611
|
-
<fo:block>
|
1612
|
-
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column) * 2]/node()"/> <!-- $max -->
|
1613
|
-
</fo:block>
|
1614
|
-
</fo:table-cell>
|
1615
|
-
</fo:table-row>
|
1679
|
+
|
1680
|
+
<xsl:choose>
|
1681
|
+
<xsl:when test="$type = 'officemember'">
|
1682
|
+
<!-- 3-column table -->
|
1683
|
+
|
1684
|
+
<!-- <fo:block>DEBUG officemembers_count=<xsl:value-of select="$officemembers_count"/></fo:block> -->
|
1685
|
+
<!-- <fo:block>mod=<xsl:value-of select="$mod"/></fo:block>
|
1686
|
+
<fo:block>floor=<xsl:value-of select="$floor"/></fo:block>
|
1687
|
+
<fo:block>max=<xsl:value-of select="$max"/></fo:block> -->
|
1688
|
+
|
1689
|
+
<!-- From https://github.com/metanorma/metanorma-ieee/issues/533#issuecomment-3178212854:
|
1690
|
+
Algorithm:
|
1691
|
+
3 cases: 0 extra, all balanced; 1 extra, place in middle, 2 extra, place on both sides.
|
1692
|
+
|
1693
|
+
The number of rows in each column is "ceil(names/cols)".
|
1694
|
+
The number of extras is calculated as "names mod cols"
|
1695
|
+
In the 1 extra case, place an additional line break after the "floor(names/cols)"-th item.
|
1696
|
+
In the 2 extra case, place an additional line break after the "ceil(names/cols) + floor(names/cols)"-th item
|
1697
|
+
-->
|
1698
|
+
|
1699
|
+
<xsl:variable name="number_in_each_column" select="ceiling($officemembers_count div $cols)"/>
|
1700
|
+
<!-- <fo:block>DEBUG number_in_each_column=<xsl:value-of select="$number_in_each_column"/></fo:block> -->
|
1701
|
+
<xsl:variable name="number_extras" select="$officemembers_count mod $cols"/>
|
1702
|
+
<!-- <fo:block>DEBUG number_extras=<xsl:value-of select="$number_extras"/></fo:block> -->
|
1703
|
+
|
1704
|
+
<xsl:variable name="officemembers_updated_">
|
1705
|
+
<xsl:for-each select="$officemembers/officemember">
|
1706
|
+
<xsl:copy-of select="."/>
|
1707
|
+
<xsl:choose>
|
1708
|
+
<xsl:when test="$number_extras = 1 and position() = $floor">
|
1709
|
+
<officemember/>
|
1710
|
+
</xsl:when>
|
1711
|
+
<xsl:when test="$number_extras = 2 and position() = ($number_in_each_column + $floor)">
|
1712
|
+
<officemember/>
|
1713
|
+
</xsl:when>
|
1714
|
+
</xsl:choose>
|
1616
1715
|
</xsl:for-each>
|
1617
|
-
</
|
1618
|
-
|
1619
|
-
|
1716
|
+
</xsl:variable>
|
1717
|
+
<xsl:variable name="officemembers_updated" select="xalan:nodeset($officemembers_updated_)"/>
|
1718
|
+
|
1719
|
+
<fo:block font-size="9pt" span="all">
|
1720
|
+
<fo:block> </fo:block>
|
1721
|
+
<fo:table width="100%" table-layout="fixed">
|
1722
|
+
<fo:table-column column-width="proportional-column-width(55)"/>
|
1723
|
+
<fo:table-column column-width="proportional-column-width(55)"/>
|
1724
|
+
<fo:table-column column-width="proportional-column-width(42)"/>
|
1725
|
+
<fo:table-body>
|
1726
|
+
<xsl:for-each select="$officemembers_updated/officemember[position() <= $number_in_each_column]"> <!-- $max -->
|
1727
|
+
<fo:table-row>
|
1728
|
+
<fo:table-cell padding-right="3mm">
|
1729
|
+
<fo:block>
|
1730
|
+
<xsl:apply-templates/>
|
1731
|
+
</fo:block>
|
1732
|
+
</fo:table-cell>
|
1733
|
+
<fo:table-cell padding-right="3mm">
|
1734
|
+
<fo:block>
|
1735
|
+
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column)]/node()"/> <!-- $max -->
|
1736
|
+
</fo:block>
|
1737
|
+
</fo:table-cell>
|
1738
|
+
<fo:table-cell>
|
1739
|
+
<fo:block>
|
1740
|
+
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column) * 2]/node()"/> <!-- $max -->
|
1741
|
+
</fo:block>
|
1742
|
+
</fo:table-cell>
|
1743
|
+
</fo:table-row>
|
1744
|
+
</xsl:for-each>
|
1745
|
+
</fo:table-body>
|
1746
|
+
</fo:table>
|
1747
|
+
</fo:block>
|
1748
|
+
</xsl:when>
|
1749
|
+
<xsl:otherwise> <!-- $type = 'officeorgmember' -->
|
1750
|
+
<!-- 2-column table -->
|
1751
|
+
<fo:block span="all"> </fo:block>
|
1752
|
+
<fo:block font-size="9pt" margin-right="10mm">
|
1753
|
+
<xsl:for-each select="$officemembers/officemember">
|
1754
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1755
|
+
<xsl:apply-templates/>
|
1756
|
+
</fo:block>
|
1757
|
+
</xsl:for-each>
|
1758
|
+
<!-- <fo:table width="100%" table-layout="fixed">
|
1759
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
1760
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
1761
|
+
<fo:table-body>
|
1762
|
+
<xsl:for-each select="$officemembers/officemember[position() <= $max]">
|
1763
|
+
<fo:table-row>
|
1764
|
+
<fo:table-cell padding-right="3mm">
|
1765
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1766
|
+
<xsl:apply-templates/>
|
1767
|
+
</fo:block>
|
1768
|
+
</fo:table-cell>
|
1769
|
+
<fo:table-cell padding-right="3mm">
|
1770
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1771
|
+
<xsl:apply-templates select="following-sibling::*[number($max)]/node()"/>
|
1772
|
+
</fo:block>
|
1773
|
+
</fo:table-cell>
|
1774
|
+
</fo:table-row>
|
1775
|
+
</xsl:for-each>
|
1776
|
+
</fo:table-body>
|
1777
|
+
</fo:table> -->
|
1778
|
+
</fo:block>
|
1779
|
+
<fo:block span="all"> </fo:block>
|
1780
|
+
</xsl:otherwise>
|
1781
|
+
</xsl:choose>
|
1620
1782
|
|
1621
|
-
<xsl:if test="following-sibling::*[1][not(@type = 'officemember' or @type = 'emeritus_sign')]">
|
1622
|
-
<fo:block font-size="10pt" space-after="12pt" keep-with-previous="always"> </fo:block>
|
1783
|
+
<xsl:if test="following-sibling::*[1][not(@type = 'officemember' or @type = 'officeorgmember' or @type = 'emeritus_sign')]">
|
1784
|
+
<fo:block font-size="10pt" space-after="12pt" keep-with-previous="always" span="all"> </fo:block>
|
1623
1785
|
</xsl:if>
|
1624
|
-
</xsl:when> <!-- @type = 'officemember' -->
|
1786
|
+
</xsl:when> <!-- @type = 'officemember' or @type = 'officeorgmember' -->
|
1625
1787
|
|
1626
1788
|
<xsl:when test="@type = 'officemember' and preceding-sibling::*[1][self::mn:p][@type = 'officemember']"><!-- skip --></xsl:when>
|
1789
|
+
<xsl:when test="@type = 'officeorgmember' and preceding-sibling::*[1][self::mn:p][@type = 'officeorgmember']"><!-- skip --></xsl:when>
|
1627
1790
|
|
1628
1791
|
<xsl:when test="@type = 'emeritus_sign'">
|
1629
|
-
<fo:block font-size="9pt" margin-left="9.4mm" space-before="6pt" space-after="12pt" keep-with-previous="always">
|
1792
|
+
<fo:block font-size="9pt" margin-left="9.4mm" space-before="6pt" space-after="12pt" keep-with-previous="always" span="all">
|
1630
1793
|
<xsl:apply-templates/>
|
1631
1794
|
</fo:block>
|
1632
1795
|
</xsl:when>
|
1633
1796
|
|
1634
1797
|
<xsl:when test="@type = 'officeorgrepmemberhdr'">
|
1635
|
-
<fo:block text-align-last="justify" space-after="12pt">
|
1798
|
+
<fo:block text-align-last="justify" space-after="12pt" span="all">
|
1636
1799
|
<!-- before tab - left aligned text -->
|
1637
1800
|
<xsl:apply-templates select="mn:tab[1]/preceding-sibling::node()"/>
|
1638
1801
|
<fo:inline keep-together.within-line="always">
|
@@ -1644,7 +1807,7 @@
|
|
1644
1807
|
</xsl:when>
|
1645
1808
|
|
1646
1809
|
<xsl:when test="@type = 'officeorgrepmember'">
|
1647
|
-
<fo:block text-align-last="justify" space-after="6pt" font-size="9pt">
|
1810
|
+
<fo:block text-align-last="justify" space-after="6pt" font-size="9pt" span="all">
|
1648
1811
|
<!-- before tab - left aligned text -->
|
1649
1812
|
<xsl:apply-templates select="mn:tab[1]/preceding-sibling::node()"/>
|
1650
1813
|
<fo:inline keep-together.within-line="always">
|
@@ -1685,7 +1848,7 @@
|
|
1685
1848
|
|
1686
1849
|
<xsl:variable name="attributes" select="xalan:nodeset($attributes_)"/>
|
1687
1850
|
|
1688
|
-
<fo:block space-after="12pt">
|
1851
|
+
<fo:block space-after="12pt" span="all">
|
1689
1852
|
|
1690
1853
|
<xsl:for-each select="$attributes/attributes/@*">
|
1691
1854
|
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
|
@@ -1806,61 +1969,23 @@
|
|
1806
1969
|
</xsl:copy>
|
1807
1970
|
</xsl:template>
|
1808
1971
|
|
1809
|
-
<xsl:template
|
1810
|
-
<xsl:param name="structured_xml"/>
|
1972
|
+
<xsl:template match="mn:p[@class = 'zzSTDTitle1']" priority="4">
|
1811
1973
|
<xsl:choose>
|
1812
|
-
<xsl:when test="
|
1813
|
-
<
|
1814
|
-
<xsl:
|
1815
|
-
</xsl:element>
|
1816
|
-
</xsl:when>
|
1817
|
-
<xsl:otherwise>
|
1818
|
-
<xsl:for-each select="xalan:nodeset($structured_xml)/mn:pagebreak">
|
1819
|
-
|
1820
|
-
<xsl:variable name="pagebreak_id" select="generate-id()"/>
|
1821
|
-
<!-- <xsl:variable name="pagebreak_previous_orientation" select="normalize-space(preceding-sibling::mn:pagebreak[1]/@orientation)"/> -->
|
1822
|
-
|
1823
|
-
<!-- copy elements before pagebreak -->
|
1824
|
-
<xsl:element name="page" namespace="{$namespace_full}">
|
1825
|
-
<xsl:if test="not(preceding-sibling::mn:pagebreak)">
|
1826
|
-
<xsl:copy-of select="../@*"/>
|
1827
|
-
</xsl:if>
|
1828
|
-
<!-- copy previous pagebreak orientation -->
|
1829
|
-
<xsl:copy-of select="preceding-sibling::mn:pagebreak[1]/@orientation"/>
|
1830
|
-
<!-- <xsl:if test="$pagebreak_previous_orientation != ''">
|
1831
|
-
<xsl:attribute name="orientation"><xsl:value-of select="$pagebreak_previous_orientation"/></xsl:attribute>
|
1832
|
-
</xsl:if> -->
|
1833
|
-
<xsl:copy-of select="preceding-sibling::node()[following-sibling::mn:pagebreak[1][generate-id(.) = $pagebreak_id]][not(self::mn:pagebreak)]"/>
|
1834
|
-
</xsl:element>
|
1835
|
-
|
1836
|
-
<!-- copy elements after last page break -->
|
1837
|
-
<xsl:if test="position() = last() and following-sibling::node()">
|
1838
|
-
<xsl:element name="page" namespace="{$namespace_full}">
|
1839
|
-
<xsl:copy-of select="@orientation"/>
|
1840
|
-
<xsl:copy-of select="following-sibling::node()"/>
|
1841
|
-
</xsl:element>
|
1842
|
-
</xsl:if>
|
1974
|
+
<xsl:when test="$current_template = 'draft' or $current_template = 'standard'">
|
1975
|
+
<fo:block-container width="140mm" role="SKIP">
|
1976
|
+
<fo:block xsl:use-attribute-sets="p-zzSTDTitle1-style">
|
1843
1977
|
|
1844
|
-
|
1845
|
-
</xsl:otherwise>
|
1846
|
-
</xsl:choose>
|
1847
|
-
</xsl:template>
|
1978
|
+
<xsl:call-template name="refine_p-zzSTDTitle1-style"/>
|
1848
1979
|
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
<fo:block font-family="Arial" font-size="23pt" font-weight="bold" margin-top="70pt" margin-bottom="48pt">
|
1853
|
-
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
1854
|
-
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
1855
|
-
</xsl:if>
|
1856
|
-
<xsl:apply-templates/>
|
1857
|
-
</fo:block>
|
1980
|
+
<xsl:apply-templates/>
|
1981
|
+
</fo:block>
|
1982
|
+
</fo:block-container>
|
1858
1983
|
</xsl:when>
|
1859
|
-
<xsl:when test="$current_template = 'standard'">
|
1984
|
+
<!-- <xsl:when test="$current_template = 'standard'">
|
1860
1985
|
<fo:block font-family="Arial" font-weight="bold" margin-top="13mm" space-after="12pt">
|
1861
|
-
<xsl:apply-templates/>
|
1986
|
+
<xsl:apply-templates />
|
1862
1987
|
</fo:block>
|
1863
|
-
</xsl:when>
|
1988
|
+
</xsl:when> -->
|
1864
1989
|
<xsl:otherwise> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1865
1990
|
|
1866
1991
|
<fo:block font-family="Arial Black" font-size="20pt" margin-top="18pt">
|
@@ -2015,17 +2140,20 @@
|
|
2015
2140
|
|
2016
2141
|
<xsl:choose>
|
2017
2142
|
<xsl:when test="$current_template = 'standard'">
|
2018
|
-
<fo:list-block xsl:use-attribute-sets="toc-listof-item-style">
|
2019
|
-
<fo:list-item>
|
2020
|
-
<fo:list-item-label end-indent="label-end()">
|
2021
|
-
<fo:block>
|
2143
|
+
<fo:list-block xsl:use-attribute-sets="toc-listof-item-style" role="TOCI">
|
2144
|
+
<fo:list-item role="SKIP">
|
2145
|
+
<fo:list-item-label end-indent="label-end()" role="SKIP">
|
2146
|
+
<fo:block role="SKIP">
|
2022
2147
|
<fo:basic-link internal-destination="{@id}">
|
2148
|
+
<xsl:call-template name="setAltText">
|
2149
|
+
<xsl:with-param name="value" select="@alt-text"/>
|
2150
|
+
</xsl:call-template>
|
2023
2151
|
<xsl:value-of select="substring-before(.,'—')"/>
|
2024
2152
|
</fo:basic-link>
|
2025
2153
|
</fo:block>
|
2026
2154
|
</fo:list-item-label>
|
2027
|
-
<fo:list-item-body start-indent="body-start()">
|
2028
|
-
<fo:block text-align-last="justify">
|
2155
|
+
<fo:list-item-body start-indent="body-start()" role="SKIP">
|
2156
|
+
<fo:block text-align-last="justify" role="SKIP">
|
2029
2157
|
<fo:basic-link internal-destination="{@id}">
|
2030
2158
|
<xsl:call-template name="setAltText">
|
2031
2159
|
<xsl:with-param name="value" select="@alt-text"/>
|
@@ -2079,227 +2207,26 @@
|
|
2079
2207
|
<!-- ==================== -->
|
2080
2208
|
<!-- display titles -->
|
2081
2209
|
<!-- ==================== -->
|
2082
|
-
<xsl:template match="mn:bibdata/mn:title[@type = 'title-intro']">
|
2083
|
-
<xsl:apply-templates/>
|
2210
|
+
<!-- <xsl:template match="mn:bibdata/mn:title[@type = 'title-intro']">
|
2211
|
+
<xsl:apply-templates />
|
2084
2212
|
<xsl:text>—</xsl:text>
|
2085
|
-
</xsl:template>
|
2213
|
+
</xsl:template> -->
|
2086
2214
|
|
2087
2215
|
<xsl:template match="mn:bibdata/mn:title[@type = 'title-main']">
|
2088
2216
|
<xsl:apply-templates/>
|
2089
2217
|
</xsl:template>
|
2090
2218
|
|
2219
|
+
<xsl:template match="mn:bibdata/mn:title[@type = 'main']">
|
2220
|
+
<xsl:apply-templates/>
|
2221
|
+
</xsl:template>
|
2222
|
+
|
2091
2223
|
<!-- ==================== -->
|
2092
2224
|
<!-- display titles -->
|
2093
2225
|
<!-- ==================== -->
|
2094
2226
|
|
2095
|
-
<!--
|
2096
|
-
<!-- XML Flattening -->
|
2097
|
-
<!-- ================================= -->
|
2098
|
-
<xsl:template match="@*|node()" mode="flatxml">
|
2099
|
-
<xsl:copy>
|
2100
|
-
<xsl:apply-templates select="@*|node()" mode="flatxml"/>
|
2101
|
-
</xsl:copy>
|
2102
|
-
</xsl:template>
|
2103
|
-
|
2104
|
-
<xsl:template match="processing-instruction()" mode="flatxml">
|
2105
|
-
<xsl:copy-of select="."/>
|
2106
|
-
</xsl:template>
|
2107
|
-
|
2108
|
-
<xsl:template match="mn:preface//mn:clause[@type = 'front_notes']" mode="flatxml" priority="2">
|
2109
|
-
<!-- ignore processing (source STS is front/notes) -->
|
2110
|
-
</xsl:template>
|
2111
|
-
|
2112
|
-
<xsl:template match="mn:foreword | mn:foreword//mn:clause | mn:preface//mn:clause[not(@type = 'corrigenda') and not(@type = 'related-refs') and not(@type = 'toc') ] | mn:introduction | mn:introduction//mn:clause | mn:sections//mn:clause | mn:annex | mn:annex//mn:clause | mn:references | mn:bibliography/mn:clause | mn:sections//mn:terms | mn:sections//mn:definitions | mn:annex//mn:definitions" mode="flatxml" name="clause">
|
2113
|
-
<!-- From:
|
2114
|
-
<clause>
|
2115
|
-
<title>...</title>
|
2116
|
-
<p>...</p>
|
2117
|
-
</clause>
|
2118
|
-
To:
|
2119
|
-
<clause/>
|
2120
|
-
<title>...</title>
|
2121
|
-
<p>...</p>
|
2122
|
-
-->
|
2123
|
-
<xsl:copy>
|
2124
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2125
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2126
|
-
<xsl:if test="self::mn:foreword or self::mn:introduction or parent::mn:preface or parent::mn:sections or (self::mn:references and parent::mn:bibliography) or (self::mn:clause and parent::mn:bibliography) or self::mn:annex or parent::mn:annex">
|
2127
|
-
<xsl:attribute name="mainsection">true</xsl:attribute>
|
2128
|
-
</xsl:if>
|
2129
|
-
|
2130
|
-
</xsl:copy>
|
2131
|
-
<xsl:apply-templates mode="flatxml"/>
|
2132
|
-
|
2133
|
-
</xsl:template>
|
2134
|
-
|
2135
|
-
<xsl:template match="mn:term" mode="flatxml" priority="2">
|
2136
|
-
<xsl:copy>
|
2137
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2138
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2139
|
-
<xsl:variable name="level">
|
2140
|
-
<xsl:call-template name="getLevel"/>
|
2141
|
-
</xsl:variable>
|
2142
|
-
<xsl:attribute name="depth"><xsl:value-of select="$level"/></xsl:attribute>
|
2143
|
-
<xsl:attribute name="ancestor">sections</xsl:attribute>
|
2144
|
-
<xsl:apply-templates select="node()[not(self::mn:term)]" mode="flatxml"/>
|
2145
|
-
</xsl:copy>
|
2146
|
-
<xsl:apply-templates select="mn:term" mode="flatxml"/>
|
2147
|
-
</xsl:template>
|
2148
|
-
|
2149
|
-
<xsl:template match="mn:introduction//mn:fmt-title | mn:foreword//mn:fmt-title | mn:sections//mn:fmt-title | mn:annex//mn:fmt-title | mn:bibliography/mn:clause/mn:fmt-title | mn:references/mn:fmt-title" mode="flatxml" priority="2"> <!-- | mn:term -->
|
2150
|
-
<xsl:copy>
|
2151
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2152
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2153
|
-
<xsl:variable name="level">
|
2154
|
-
<xsl:call-template name="getLevel"/>
|
2155
|
-
</xsl:variable>
|
2156
|
-
<xsl:attribute name="depth"><xsl:value-of select="$level"/></xsl:attribute>
|
2157
|
-
<xsl:if test="parent::mn:annex">
|
2158
|
-
<xsl:attribute name="depth">1</xsl:attribute>
|
2159
|
-
</xsl:if>
|
2160
|
-
<xsl:if test="../@inline-header = 'true'">
|
2161
|
-
<xsl:copy-of select="../@inline-header"/>
|
2162
|
-
</xsl:if>
|
2163
|
-
<xsl:attribute name="ancestor">
|
2164
|
-
<xsl:choose>
|
2165
|
-
<xsl:when test="ancestor::mn:foreword">foreword</xsl:when>
|
2166
|
-
<xsl:when test="ancestor::mn:introduction">introduction</xsl:when>
|
2167
|
-
<xsl:when test="ancestor::mn:sections">sections</xsl:when>
|
2168
|
-
<xsl:when test="ancestor::mn:annex">annex</xsl:when>
|
2169
|
-
<xsl:when test="ancestor::mn:bibliography">bibliography</xsl:when>
|
2170
|
-
</xsl:choose>
|
2171
|
-
</xsl:attribute>
|
2172
|
-
|
2173
|
-
<xsl:apply-templates mode="flatxml"/>
|
2174
|
-
</xsl:copy>
|
2175
|
-
</xsl:template>
|
2176
|
-
|
2177
|
-
<!-- recalculate table width -->
|
2178
|
-
<!-- 210 - (15+22+20) = 153 -->
|
2179
|
-
<xsl:variable name="max_table_width_mm" select="$pageWidth - ($marginLeftRight1 + $marginLeftRight2)"/>
|
2180
|
-
<!-- 153 / 25.4 * 96 dpi = 578px-->
|
2181
|
-
<xsl:variable name="max_table_width_px" select="round($max_table_width_mm div 25.4 * 96)"/>
|
2182
|
-
<!-- landscape table -->
|
2183
|
-
<xsl:variable name="max_table_landscape_width_mm" select="$pageHeight - ($marginTop + $marginBottom)"/>
|
2184
|
-
<xsl:variable name="max_table_landscape_width_px" select="round($max_table_landscape_width_mm div 25.4 * 96)"/>
|
2185
|
-
|
2186
|
-
<xsl:template match="mn:table/@width[contains(., 'px')]" mode="flatxml">
|
2187
|
-
<xsl:variable name="width" select="number(substring-before(., 'px'))"/>
|
2188
|
-
<xsl:variable name="isLandscapeTable" select="../preceding-sibling::*[not(self::mn:table)][1]/@orientation = 'landscape'"/>
|
2189
|
-
<xsl:attribute name="width">
|
2190
|
-
<xsl:choose>
|
2191
|
-
<xsl:when test="normalize-space($isLandscapeTable) = 'true' and $width > $max_table_landscape_width_px"><xsl:value-of select="$max_table_landscape_width_px"/>px</xsl:when>
|
2192
|
-
<xsl:when test="normalize-space($isLandscapeTable) = 'false' and $width > $max_table_width_px"><xsl:value-of select="$max_table_width_px"/>px</xsl:when>
|
2193
|
-
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
2194
|
-
</xsl:choose>
|
2195
|
-
</xsl:attribute>
|
2196
|
-
</xsl:template>
|
2197
|
-
|
2198
|
-
<!-- add @to = figure, table, clause -->
|
2199
|
-
<!-- add @depth = from -->
|
2200
|
-
<xsl:template match="mn:fmt-xref" mode="flatxml">
|
2201
|
-
<xsl:copy>
|
2202
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2203
|
-
<xsl:variable name="target" select="@target"/>
|
2204
|
-
<xsl:attribute name="to">
|
2205
|
-
<xsl:value-of select="local-name(//*[@id = current()/@target][1])"/>
|
2206
|
-
</xsl:attribute>
|
2207
|
-
<xsl:attribute name="depth">
|
2208
|
-
<xsl:value-of select="//*[@id = current()/@target][1]/mn:fmt-title/@depth"/>
|
2209
|
-
</xsl:attribute>
|
2210
|
-
<xsl:apply-templates select="node()" mode="flatxml"/>
|
2211
|
-
</xsl:copy>
|
2212
|
-
</xsl:template>
|
2213
|
-
|
2214
|
-
<xsl:template match="text()" mode="flatxml">
|
2215
|
-
<xsl:choose>
|
2216
|
-
<xsl:when test="contains(., $non_breaking_hyphen)">
|
2217
|
-
<xsl:call-template name="replaceChar">
|
2218
|
-
<xsl:with-param name="text" select="."/>
|
2219
|
-
<xsl:with-param name="replace" select="$non_breaking_hyphen"/>
|
2220
|
-
<xsl:with-param name="by" select="'-'"/>
|
2221
|
-
</xsl:call-template>
|
2222
|
-
</xsl:when>
|
2223
|
-
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
2224
|
-
</xsl:choose>
|
2225
|
-
|
2226
|
-
</xsl:template>
|
2227
|
-
|
2228
|
-
<!-- remove newlines chars (0xd 0xa, 0xa, 0xd) in p, em, strong (except in sourcecode). -->
|
2229
|
-
<xsl:template match="*[not(ancestor::mn:sourcecode)]/*[self::mn:p or self::mn:strong or self::mn:em]/text()" mode="flatxml">
|
2230
|
-
<xsl:choose>
|
2231
|
-
<xsl:when test=". = ' ' or . = ' ' or . = ' '"/>
|
2232
|
-
<xsl:when test="contains(., $non_breaking_hyphen)">
|
2233
|
-
<xsl:call-template name="replaceChar">
|
2234
|
-
<xsl:with-param name="text" select="."/>
|
2235
|
-
<xsl:with-param name="replace" select="$non_breaking_hyphen"/>
|
2236
|
-
<xsl:with-param name="by" select="'-'"/>
|
2237
|
-
</xsl:call-template>
|
2238
|
-
</xsl:when>
|
2239
|
-
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
2240
|
-
</xsl:choose>
|
2241
|
-
</xsl:template>
|
2242
|
-
|
2243
|
-
<!-- change @reference to actual value, and add skip_footnote_body="true" for repeatable (2nd, 3rd, ...) -->
|
2244
|
-
<!--
|
2245
|
-
<fn reference="1">
|
2246
|
-
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
|
2247
|
-
</fn>
|
2248
|
-
-->
|
2249
|
-
|
2250
|
-
<xsl:template match="mn:fn[not(ancestor::*[(self::mn:table or self::mn:figure)] and not(ancestor::mn:fmt-name))]" mode="flatxml">
|
2251
|
-
<xsl:variable name="p_fn_">
|
2252
|
-
<xsl:call-template name="get_fn_list"/>
|
2253
|
-
</xsl:variable>
|
2254
|
-
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
2255
|
-
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
2256
|
-
|
2257
|
-
<xsl:copy>
|
2258
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2259
|
-
<xsl:attribute name="skip_footnote_body"> <!-- false for repeatable footnote -->
|
2260
|
-
<xsl:value-of select="not($p_fn//fn[@gen_id = $gen_id] and (1 = 1))"/>
|
2261
|
-
</xsl:attribute>
|
2262
|
-
<xsl:apply-templates select="node()" mode="flatxml"/>
|
2263
|
-
</xsl:copy>
|
2264
|
-
</xsl:template>
|
2265
|
-
|
2266
|
-
<!-- <xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'note']" mode="flatxml">
|
2267
|
-
<xsl:variable name="p_fn_">
|
2268
|
-
<xsl:call-template name="get_fn_list"/>
|
2269
|
-
</xsl:variable>
|
2270
|
-
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
2271
|
-
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
2272
|
-
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
2273
|
-
<xsl:variable name="reference" select="@reference"/> --><!-- @reference added to bibitem/note in step 'update_xml_step2' -->
|
2274
|
-
<!-- fn sequence number in document -->
|
2275
|
-
<!-- <xsl:variable name="current_fn_number" select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1" />
|
2276
|
-
<xsl:copy>
|
2277
|
-
<xsl:apply-templates select="@*" mode="flatxml"/> -->
|
2278
|
-
<!-- put actual reference number -->
|
2279
|
-
<!-- <xsl:attribute name="current_fn_number">
|
2280
|
-
<xsl:value-of select="$current_fn_number"/>
|
2281
|
-
</xsl:attribute>
|
2282
|
-
<xsl:apply-templates select="node()" mode="flatxml"/>
|
2283
|
-
</xsl:copy>
|
2284
|
-
</xsl:template> -->
|
2285
|
-
|
2286
|
-
<xsl:template match="mn:p[@type = 'section-title']" priority="3" mode="flatxml">
|
2287
|
-
<xsl:copy>
|
2288
|
-
<xsl:apply-templates select="@*" mode="flatxml"/>
|
2289
|
-
<xsl:if test="@depth = '1'">
|
2290
|
-
<xsl:attribute name="mainsection">true</xsl:attribute>
|
2291
|
-
</xsl:if>
|
2292
|
-
<xsl:apply-templates select="node()" mode="flatxml"/>
|
2293
|
-
</xsl:copy>
|
2294
|
-
</xsl:template>
|
2295
|
-
|
2296
|
-
<!-- ================================= -->
|
2297
|
-
<!-- END of XML Flattening -->
|
2298
|
-
<!-- ================================= -->
|
2299
|
-
|
2300
|
-
<xsl:template match="*" priority="3" mode="page">
|
2227
|
+
<!-- <xsl:template match="*" priority="3" mode="page">
|
2301
2228
|
<xsl:call-template name="elementProcessing"/>
|
2302
|
-
</xsl:template>
|
2229
|
+
</xsl:template> -->
|
2303
2230
|
|
2304
2231
|
<xsl:template match="mn:clauses_union/*" priority="3" mode="clauses_union">
|
2305
2232
|
<xsl:call-template name="elementProcessing"/>
|
@@ -2369,12 +2296,16 @@
|
|
2369
2296
|
|
2370
2297
|
<!-- Bibliography -->
|
2371
2298
|
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
|
2372
|
-
<fo:block
|
2373
|
-
|
2374
|
-
|
2299
|
+
<fo:block xsl:use-attribute-sets="references-non-normative-title-style">
|
2300
|
+
|
2301
|
+
<xsl:call-template name="refine_references-non-normative-title-style"/>
|
2302
|
+
|
2303
|
+
<xsl:apply-templates/>
|
2304
|
+
</fo:block>
|
2375
2305
|
</xsl:template>
|
2376
2306
|
|
2377
|
-
<xsl:template match="mn:fmt-title[@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3">
|
2307
|
+
<!-- <xsl:template match="mn:fmt-title[@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3"> -->
|
2308
|
+
<xsl:template match="mn:fmt-title[../@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3">
|
2378
2309
|
<fo:block>
|
2379
2310
|
<xsl:attribute name="space-before">
|
2380
2311
|
<xsl:call-template name="getTitleMarginTop"/>
|
@@ -2404,24 +2335,25 @@
|
|
2404
2335
|
<xsl:choose>
|
2405
2336
|
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2406
2337
|
<xsl:choose>
|
2407
|
-
<xsl:when test="$level = 2">
|
2408
|
-
<xsl:when test="$level = 3">
|
2338
|
+
<xsl:when test="$level = 2">28.4pt</xsl:when> <!-- 22.4pt -->
|
2339
|
+
<xsl:when test="$level = 3">12.6pt</xsl:when> <!-- 4.6pt -->
|
2409
2340
|
<xsl:otherwise>0mm</xsl:otherwise>
|
2410
2341
|
</xsl:choose>
|
2411
2342
|
</xsl:when>
|
2412
2343
|
<xsl:when test="$current_template = 'standard'">
|
2413
2344
|
<xsl:choose>
|
2414
|
-
<xsl:when test="$level = 1">12pt</xsl:when>
|
2415
|
-
<xsl:when test="$level =
|
2416
|
-
<xsl:when test="$level
|
2345
|
+
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:annex)">12pt</xsl:when> <!-- 12pt -->
|
2346
|
+
<xsl:when test="$level = 1">20pt</xsl:when> <!-- 12pt -->
|
2347
|
+
<xsl:when test="$level = 2">20pt</xsl:when>
|
2348
|
+
<xsl:when test="$level >= 3">18pt</xsl:when>
|
2417
2349
|
<xsl:otherwise>0mm</xsl:otherwise>
|
2418
2350
|
</xsl:choose>
|
2419
2351
|
</xsl:when>
|
2420
2352
|
<xsl:otherwise>
|
2421
2353
|
<xsl:choose>
|
2422
|
-
<xsl:when test="$level = 1">
|
2423
|
-
<xsl:when test="$level = 2">
|
2424
|
-
<xsl:when test="$level >= 3">
|
2354
|
+
<xsl:when test="$level = 1">26pt</xsl:when> <!-- 18pt -->
|
2355
|
+
<xsl:when test="$level = 2">28pt</xsl:when> <!-- 20pt -->
|
2356
|
+
<xsl:when test="$level >= 3">18pt</xsl:when> <!-- 12pt -->
|
2425
2357
|
<xsl:otherwise>0mm</xsl:otherwise>
|
2426
2358
|
</xsl:choose>
|
2427
2359
|
</xsl:otherwise>
|
@@ -2429,6 +2361,9 @@
|
|
2429
2361
|
</xsl:template>
|
2430
2362
|
|
2431
2363
|
<xsl:template name="getTitleMarginBottom">
|
2364
|
+
<xsl:variable name="level">
|
2365
|
+
<xsl:call-template name="getLevel"/>
|
2366
|
+
</xsl:variable>
|
2432
2367
|
<xsl:choose>
|
2433
2368
|
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2434
2369
|
<xsl:choose>
|
@@ -2436,7 +2371,14 @@
|
|
2436
2371
|
<xsl:otherwise>12pt</xsl:otherwise>
|
2437
2372
|
</xsl:choose>
|
2438
2373
|
</xsl:when>
|
2439
|
-
<xsl:otherwise>
|
2374
|
+
<xsl:otherwise>
|
2375
|
+
<xsl:choose>
|
2376
|
+
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction)">12pt</xsl:when>
|
2377
|
+
<xsl:when test="$level = 1 and not(following-sibling::*[1][self::mn:clause])">12pt</xsl:when>
|
2378
|
+
<xsl:when test="$level = 1">24pt</xsl:when>
|
2379
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
2380
|
+
</xsl:choose>
|
2381
|
+
</xsl:otherwise>
|
2440
2382
|
</xsl:choose>
|
2441
2383
|
</xsl:template>
|
2442
2384
|
|
@@ -2481,7 +2423,8 @@
|
|
2481
2423
|
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">normal</xsl:when>
|
2482
2424
|
<xsl:otherwise>
|
2483
2425
|
<xsl:choose>
|
2484
|
-
<xsl:when test="@ancestor = 'annex' and $level = 1">normal</xsl:when>
|
2426
|
+
<!-- <xsl:when test="@ancestor = 'annex' and $level = 1">normal</xsl:when> -->
|
2427
|
+
<xsl:when test="ancestor::mn:annex and $level = 1">normal</xsl:when>
|
2485
2428
|
<xsl:otherwise>bold</xsl:otherwise>
|
2486
2429
|
</xsl:choose>
|
2487
2430
|
</xsl:otherwise>
|
@@ -2503,7 +2446,7 @@
|
|
2503
2446
|
|
2504
2447
|
<xsl:variable name="element-name">
|
2505
2448
|
<xsl:choose>
|
2506
|
-
<xsl:when test="
|
2449
|
+
<xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
|
2507
2450
|
<xsl:otherwise>fo:block</xsl:otherwise>
|
2508
2451
|
</xsl:choose>
|
2509
2452
|
</xsl:variable>
|
@@ -2514,6 +2457,8 @@
|
|
2514
2457
|
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
2515
2458
|
<xsl:attribute name="font-weight"><xsl:value-of select="$font-weight"/></xsl:attribute>
|
2516
2459
|
<xsl:attribute name="space-before"><xsl:value-of select="$margin-top"/></xsl:attribute>
|
2460
|
+
<!-- <xsl:attribute name="margin-top"><xsl:value-of select="$margin-top"/></xsl:attribute> -->
|
2461
|
+
<xsl:if test="ancestor::mn:introduction"><xsl:attribute name="margin-top"><xsl:value-of select="$margin-top"/></xsl:attribute></xsl:if>
|
2517
2462
|
<xsl:attribute name="margin-bottom"><xsl:value-of select="$margin-bottom"/></xsl:attribute>
|
2518
2463
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2519
2464
|
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
@@ -2596,7 +2541,8 @@
|
|
2596
2541
|
</xsl:otherwise>
|
2597
2542
|
</xsl:choose>
|
2598
2543
|
|
2599
|
-
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and preceding-sibling::*[1][self::mn:references[@normative = 'false']]">
|
2544
|
+
<!-- <xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and preceding-sibling::*[1][self::mn:references[@normative = 'false']]"> -->
|
2545
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and ancestor::*[1][self::mn:references[@normative = 'false']]">
|
2600
2546
|
<xsl:call-template name="addBlueBox"/>
|
2601
2547
|
</xsl:if>
|
2602
2548
|
|
@@ -2615,13 +2561,16 @@
|
|
2615
2561
|
</xsl:template>
|
2616
2562
|
|
2617
2563
|
<!-- add blue box after first break in Annex title -->
|
2618
|
-
<xsl:template match="mn:br[
|
2564
|
+
<xsl:template match="mn:br[ancestor::mn:fmt-title[parent::mn:annex]]" priority="2">
|
2619
2565
|
<xsl:choose>
|
2620
2566
|
<xsl:when test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') ">
|
2621
|
-
<xsl:
|
2567
|
+
<xsl:if test="not(preceding-sibling::mn:br)">
|
2568
|
+
<xsl:call-template name="addBlueBox"/>
|
2569
|
+
</xsl:if>
|
2622
2570
|
</xsl:when>
|
2623
2571
|
<xsl:otherwise>
|
2624
|
-
<xsl:value-of select="$linebreak"/>
|
2572
|
+
<!-- <xsl:value-of select="$linebreak"/> -->
|
2573
|
+
<fo:block font-size="1pt" margin-top="3mm"> </fo:block>
|
2625
2574
|
</xsl:otherwise>
|
2626
2575
|
|
2627
2576
|
</xsl:choose>
|
@@ -2636,8 +2585,10 @@
|
|
2636
2585
|
<fo:block>@ancestor=<xsl:value-of select="@ancestor"/></fo:block> -->
|
2637
2586
|
<xsl:variable name="font-size">
|
2638
2587
|
<xsl:choose>
|
2639
|
-
<xsl:when test="@ancestor = 'sections' and $level = '2'">11pt</xsl:when>
|
2640
|
-
<xsl:when test="@ancestor = 'sections' and $level > 2">11pt</xsl:when>
|
2588
|
+
<!-- <xsl:when test="@ancestor = 'sections' and $level = '2'">11pt</xsl:when>
|
2589
|
+
<xsl:when test="@ancestor = 'sections' and $level > 2">11pt</xsl:when> -->
|
2590
|
+
<xsl:when test="$level = '2'">11pt</xsl:when>
|
2591
|
+
<xsl:when test="$level > 2">11pt</xsl:when>
|
2641
2592
|
<xsl:otherwise>11.5pt</xsl:otherwise>
|
2642
2593
|
</xsl:choose>
|
2643
2594
|
</xsl:variable>
|
@@ -2650,12 +2601,14 @@
|
|
2650
2601
|
</xsl:variable>
|
2651
2602
|
|
2652
2603
|
<fo:block margin-bottom="16pt">
|
2653
|
-
<xsl:if test="@ancestor = 'sections' and $level > 2">
|
2604
|
+
<!-- <xsl:if test="@ancestor = 'sections' and $level > 2"> -->
|
2605
|
+
<xsl:if test="$level > 2">
|
2654
2606
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2655
2607
|
</xsl:if>
|
2656
2608
|
<xsl:copy-of select="@id"/>
|
2657
2609
|
<fo:block font-size="{$font-size}" font-weight="bold" margin-bottom="6pt" keep-with-next="always" role="H{$level}">
|
2658
|
-
<xsl:if test="@ancestor = 'sections' and $level > 2">
|
2610
|
+
<!-- <xsl:if test="@ancestor = 'sections' and $level > 2"> -->
|
2611
|
+
<xsl:if test="$level > 2">
|
2659
2612
|
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
|
2660
2613
|
</xsl:if>
|
2661
2614
|
<!-- term/name -->
|
@@ -2691,12 +2644,6 @@
|
|
2691
2644
|
<xsl:call-template name="termsource"/>
|
2692
2645
|
</xsl:template>
|
2693
2646
|
|
2694
|
-
<xsl:template name="titleAmendment">
|
2695
|
-
<fo:block font-size="11pt" font-style="italic" margin-bottom="12pt" keep-with-next="always">
|
2696
|
-
<xsl:apply-templates/>
|
2697
|
-
</fo:block>
|
2698
|
-
</xsl:template>
|
2699
|
-
|
2700
2647
|
<!-- ====== -->
|
2701
2648
|
<!-- ====== -->
|
2702
2649
|
|
@@ -2712,11 +2659,11 @@
|
|
2712
2659
|
|
2713
2660
|
<xsl:choose>
|
2714
2661
|
|
2715
|
-
<xsl:when test="preceding-sibling::*[1][self::mn:fmt-title]
|
2662
|
+
<xsl:when test="preceding-sibling::*[1][self::mn:fmt-title]/../@inline-header = 'true' and $inline-header = 'false'"/> <!-- paragraph displayed in title template -->
|
2716
2663
|
|
2717
2664
|
<xsl:otherwise>
|
2718
2665
|
|
2719
|
-
<xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
|
2666
|
+
<!-- <xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/> -->
|
2720
2667
|
<xsl:variable name="element-name">fo:block</xsl:variable>
|
2721
2668
|
<!-- <xsl:choose>
|
2722
2669
|
<xsl:when test="$inline = 'true'">fo:inline</xsl:when> -->
|
@@ -2823,27 +2770,7 @@
|
|
2823
2770
|
<xsl:template match="mn:ul | mn:ol" mode="list" priority="2">
|
2824
2771
|
<fo:list-block xsl:use-attribute-sets="list-style">
|
2825
2772
|
|
2826
|
-
<xsl:
|
2827
|
-
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
2828
|
-
</xsl:if>
|
2829
|
-
<xsl:if test="preceding-sibling::*[1][self::mn:p]">
|
2830
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
2831
|
-
</xsl:if>
|
2832
|
-
|
2833
|
-
<xsl:if test="ancestor::mn:note or ancestor::mn:termnote">
|
2834
|
-
<xsl:attribute name="provisional-distance-between-starts">4mm</xsl:attribute>
|
2835
|
-
</xsl:if>
|
2836
|
-
|
2837
|
-
<xsl:variable name="processing_instruction_type" select="normalize-space(preceding-sibling::*[1]/processing-instruction('list-type'))"/>
|
2838
|
-
<xsl:if test="self::mn:ul and normalize-space($processing_instruction_type) = 'simple'">
|
2839
|
-
<xsl:attribute name="provisional-distance-between-starts">0mm</xsl:attribute>
|
2840
|
-
</xsl:if>
|
2841
|
-
|
2842
|
-
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2843
|
-
<xsl:attribute name="line-height">1.3</xsl:attribute>
|
2844
|
-
<xsl:attribute name="margin-left">6.2mm</xsl:attribute>
|
2845
|
-
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
2846
|
-
</xsl:if>
|
2773
|
+
<xsl:call-template name="refine_list-style"/>
|
2847
2774
|
|
2848
2775
|
<xsl:apply-templates select="node()[not(self::mn:note)]"/>
|
2849
2776
|
</fo:list-block>
|
@@ -2947,7 +2874,7 @@
|
|
2947
2874
|
<xsl:value-of select="normalize-space()"/>
|
2948
2875
|
</xsl:template>
|
2949
2876
|
|
2950
|
-
<xsl:template match="mn:bibitem[
|
2877
|
+
<xsl:template match="mn:bibitem[ancestor::mn:references[1][not(@normative='true')]]" priority="3">
|
2951
2878
|
<xsl:call-template name="bibitem_non_normative"/>
|
2952
2879
|
</xsl:template>
|
2953
2880
|
|
@@ -2955,7 +2882,9 @@
|
|
2955
2882
|
<!-- Index processing -->
|
2956
2883
|
<!-- =================== -->
|
2957
2884
|
|
2958
|
-
<xsl:template match="mn:indexsect"
|
2885
|
+
<xsl:template match="mn:indexsect">
|
2886
|
+
<xsl:apply-templates select="." mode="index"/>
|
2887
|
+
</xsl:template>
|
2959
2888
|
<xsl:template match="mn:indexsect" mode="index">
|
2960
2889
|
<fo:block id="{@id}" span="all">
|
2961
2890
|
<xsl:apply-templates select="mn:title"/>
|
@@ -3057,20 +2986,17 @@
|
|
3057
2986
|
<xsl:template name="insertFootnoteSeparator">
|
3058
2987
|
<fo:static-content flow-name="xsl-footnote-separator" role="artifact">
|
3059
2988
|
<fo:block>
|
3060
|
-
<fo:leader
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
</xsl:if>
|
2989
|
+
<fo:leader xsl:use-attribute-sets="footnote-separator-leader-style">
|
2990
|
+
|
2991
|
+
<xsl:call-template name="refine_footnote-separator-leader-style"/>
|
2992
|
+
|
3065
2993
|
</fo:leader>
|
3066
2994
|
</fo:block>
|
3067
2995
|
</fo:static-content>
|
3068
2996
|
</xsl:template>
|
3069
2997
|
|
3070
2998
|
<xsl:template name="insertHeaderFooter">
|
3071
|
-
<xsl:param name="doctype"/>
|
3072
2999
|
<xsl:param name="document_id"/>
|
3073
|
-
<xsl:param name="title_prefix"/>
|
3074
3000
|
<xsl:param name="title"/>
|
3075
3001
|
|
3076
3002
|
<xsl:param name="copyright_year"/>
|
@@ -3099,7 +3025,7 @@
|
|
3099
3025
|
<xsl:value-of select="$document_id"/>
|
3100
3026
|
</fo:block>
|
3101
3027
|
<fo:block>
|
3102
|
-
<xsl:copy-of select="$title_prefix"/>
|
3028
|
+
<!-- <xsl:copy-of select="$title_prefix"/> -->
|
3103
3029
|
<xsl:copy-of select="$title"/>
|
3104
3030
|
</fo:block>
|
3105
3031
|
|
@@ -3182,38 +3108,59 @@
|
|
3182
3108
|
</xsl:choose>
|
3183
3109
|
</xsl:variable>
|
3184
3110
|
|
3111
|
+
<xsl:if test="$hideHeader = 'false'">
|
3112
|
+
<xsl:call-template name="insertHeader">
|
3113
|
+
<xsl:with-param name="orientation" select="$orientation"/>
|
3114
|
+
<xsl:with-param name="header" select="$header"/>
|
3115
|
+
</xsl:call-template>
|
3116
|
+
</xsl:if>
|
3117
|
+
|
3118
|
+
<xsl:if test="$hideFooter = 'false'">
|
3119
|
+
<xsl:call-template name="insertFooter">
|
3120
|
+
<xsl:with-param name="orientation" select="$orientation"/>
|
3121
|
+
<xsl:with-param name="footer" select="$footer"/>
|
3122
|
+
</xsl:call-template>
|
3123
|
+
</xsl:if>
|
3124
|
+
</xsl:template>
|
3125
|
+
|
3126
|
+
<xsl:template name="insertHeader">
|
3127
|
+
<xsl:param name="orientation"/>
|
3128
|
+
<xsl:param name="header"/>
|
3185
3129
|
<xsl:choose>
|
3186
3130
|
<xsl:when test="$orientation = 'landscape'">
|
3187
|
-
<
|
3188
|
-
<fo:
|
3189
|
-
<
|
3190
|
-
|
3191
|
-
|
3192
|
-
</fo:static-content>
|
3193
|
-
</xsl:if>
|
3194
|
-
<xsl:if test="$hideFooter = 'false'">
|
3195
|
-
<fo:static-content flow-name="left-region-landspace" role="artifact">
|
3196
|
-
<fo:block-container reference-orientation="270" margin-left="13mm">
|
3197
|
-
<xsl:copy-of select="$footer"/>
|
3198
|
-
</fo:block-container>
|
3199
|
-
</fo:static-content>
|
3200
|
-
</xsl:if>
|
3131
|
+
<fo:static-content flow-name="right-region-landscape" role="artifact">
|
3132
|
+
<fo:block-container reference-orientation="270" margin-left="13mm">
|
3133
|
+
<xsl:copy-of select="$header"/>
|
3134
|
+
</fo:block-container>
|
3135
|
+
</fo:static-content>
|
3201
3136
|
</xsl:when>
|
3202
3137
|
<xsl:otherwise>
|
3203
|
-
<
|
3204
|
-
<fo:
|
3205
|
-
<
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3138
|
+
<fo:static-content flow-name="header" role="artifact">
|
3139
|
+
<fo:block-container margin-top="12.7mm">
|
3140
|
+
<xsl:copy-of select="$header"/>
|
3141
|
+
</fo:block-container>
|
3142
|
+
</fo:static-content>
|
3143
|
+
</xsl:otherwise>
|
3144
|
+
</xsl:choose>
|
3145
|
+
</xsl:template>
|
3146
|
+
|
3147
|
+
<xsl:template name="insertFooter">
|
3148
|
+
<xsl:param name="orientation"/>
|
3149
|
+
<xsl:param name="footer"/>
|
3150
|
+
<xsl:choose>
|
3151
|
+
<xsl:when test="$orientation = 'landscape'">
|
3152
|
+
<fo:static-content flow-name="left-region-landspace" role="artifact">
|
3153
|
+
<fo:block-container reference-orientation="270" margin-left="13mm">
|
3154
|
+
<xsl:copy-of select="$footer"/>
|
3155
|
+
</fo:block-container>
|
3156
|
+
</fo:static-content>
|
3157
|
+
</xsl:when>
|
3158
|
+
<xsl:otherwise>
|
3159
|
+
<fo:static-content flow-name="footer" role="artifact">
|
3160
|
+
<fo:block-container display-align="after" height="100%">
|
3161
|
+
<xsl:copy-of select="$footer"/>
|
3162
|
+
</fo:block-container>
|
3163
|
+
</fo:static-content>
|
3217
3164
|
</xsl:otherwise>
|
3218
3165
|
</xsl:choose>
|
3219
3166
|
</xsl:template>
|
@@ -3371,13 +3318,12 @@
|
|
3371
3318
|
<!-- Cover Pages -->
|
3372
3319
|
<!-- =============================== -->
|
3373
3320
|
<xsl:template name="insertCoverPage_Standard">
|
3374
|
-
<xsl:param name="title_intro"/>
|
3375
3321
|
<xsl:param name="title_main"/>
|
3376
3322
|
<xsl:param name="society"/>
|
3377
3323
|
<xsl:param name="committee"/>
|
3324
|
+
<xsl:param name="enabler"/>
|
3378
3325
|
<xsl:param name="standard_number"/>
|
3379
3326
|
<xsl:param name="history"/>
|
3380
|
-
<xsl:param name="standard_title_prefix"/>
|
3381
3327
|
<xsl:param name="cutoff_date"/>
|
3382
3328
|
<xsl:param name="expiration_date"/>
|
3383
3329
|
|
@@ -3398,7 +3344,7 @@
|
|
3398
3344
|
</fo:instream-foreign-object>
|
3399
3345
|
</fo:block>
|
3400
3346
|
</fo:block-container>
|
3401
|
-
<fo:block-container position="absolute" left="191mm" top="-1mm">
|
3347
|
+
<fo:block-container position="absolute" left="191mm" top="-1mm" id="__internal_layout__covepage_bluebox_{generate-id()}">
|
3402
3348
|
<fo:block font-size="1">
|
3403
3349
|
<fo:instream-foreign-object content-width="26mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Boxes">
|
3404
3350
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3409,7 +3355,7 @@
|
|
3409
3355
|
|
3410
3356
|
<fo:static-content flow-name="right-region" role="artifact">
|
3411
3357
|
<fo:block-container font-family="Montserrat ExtraBold" font-weight="normal" reference-orientation="90" font-size="45.9pt" text-align="right">
|
3412
|
-
<fo:block margin-right="-
|
3358
|
+
<fo:block margin-right="-4mm" margin-top="0mm">
|
3413
3359
|
<fo:instream-foreign-object content-width="2.5mm" content-height="11.9mm" scaling="non-uniform" fox:alt-text="Image Box">
|
3414
3360
|
<xsl:call-template name="insertImageBoxSVG">
|
3415
3361
|
<xsl:with-param name="color">rgb(38,172,226)</xsl:with-param>
|
@@ -3424,43 +3370,108 @@
|
|
3424
3370
|
</fo:static-content>
|
3425
3371
|
|
3426
3372
|
<fo:flow flow-name="xsl-region-body" font-family="Calibri">
|
3427
|
-
<fo:block-container height="
|
3373
|
+
<fo:block-container height="100mm" width="150mm" font-weight="bold"> <!-- height="81mm" display-align="center" -->
|
3428
3374
|
|
3429
|
-
<xsl:choose>
|
3430
|
-
|
3375
|
+
<!-- <xsl:choose>
|
3376
|
+
title starts with lower-cased letter
|
3431
3377
|
<xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
|
3432
3378
|
<fo:block font-size="22pt">
|
3433
|
-
<xsl:value-of select="$
|
3379
|
+
<xsl:value-of select="$title_prefix"/>
|
3434
3380
|
<xsl:copy-of select="$title_intro"/>
|
3435
3381
|
</fo:block>
|
3436
3382
|
</xsl:when>
|
3437
|
-
|
3438
3383
|
<xsl:otherwise>
|
3439
|
-
|
3384
|
+
Example: IEEE Standard for
|
3440
3385
|
<fo:block font-size="22pt" space-after="2pt">
|
3441
|
-
<xsl:value-of select="$
|
3386
|
+
<xsl:value-of select="$title_prefix"/>
|
3442
3387
|
</fo:block>
|
3443
3388
|
<fo:block font-size="22pt" margin-left="3mm">
|
3444
|
-
|
3389
|
+
Example: Local and Metropolitan Area Networks—
|
3445
3390
|
<xsl:copy-of select="$title_intro"/>
|
3446
3391
|
</fo:block>
|
3447
3392
|
</xsl:otherwise>
|
3448
|
-
</xsl:choose>
|
3393
|
+
</xsl:choose> -->
|
3449
3394
|
|
3450
|
-
<fo:block font-size="25pt"
|
3451
|
-
<!--
|
3395
|
+
<fo:block font-size="25pt"> <!-- 22pt -->
|
3396
|
+
<!-- <xsl:value-of select="$title_prefix"/> -->
|
3452
3397
|
<xsl:copy-of select="$title_main"/>
|
3453
3398
|
</fo:block>
|
3399
|
+
|
3454
3400
|
</fo:block-container>
|
3455
3401
|
|
3456
|
-
<fo:block-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3402
|
+
<fo:block font-size="16pt">
|
3403
|
+
<!-- Example: IEEE Computer Society -->
|
3404
|
+
<xsl:value-of select="$society"/>
|
3405
|
+
</fo:block>
|
3406
|
+
|
3407
|
+
<fo:block-container height="56mm" display-align="after">
|
3408
|
+
|
3409
|
+
<fo:block font-size="12pt" space-before="13mm">
|
3410
|
+
<xsl:if test="$committee != ''">
|
3411
|
+
<fo:block>
|
3412
|
+
<!-- Developed by the
|
3413
|
+
LAN/MAN Standards Committee -->
|
3414
|
+
<xsl:value-of select="$developed_by"/>
|
3415
|
+
<xsl:value-of select="$linebreak"/>
|
3416
|
+
<xsl:value-of select="$committee"/>
|
3417
|
+
</fo:block>
|
3418
|
+
</xsl:if>
|
3419
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
3420
|
+
<fo:block> </fo:block>
|
3421
|
+
<fo:block>
|
3422
|
+
<!-- Sponsored by the
|
3423
|
+
LAN/MAN Standards Committee -->
|
3424
|
+
<xsl:value-of select="$sponsored_by"/>
|
3425
|
+
<xsl:value-of select="$linebreak"/>
|
3426
|
+
<xsl:for-each select="$enabler/mn:subdivision/mn:subdivision/mn:name">
|
3427
|
+
<xsl:value-of select="."/>
|
3428
|
+
<xsl:if test="position() != last()">
|
3429
|
+
<xsl:value-of select="$linebreak"/>
|
3430
|
+
<xsl:text>and the</xsl:text>
|
3431
|
+
<xsl:value-of select="$linebreak"/>
|
3432
|
+
</xsl:if>
|
3433
|
+
</xsl:for-each>
|
3434
|
+
</fo:block>
|
3435
|
+
</xsl:if>
|
3460
3436
|
</fo:block>
|
3461
|
-
|
3462
|
-
|
3463
|
-
<
|
3437
|
+
|
3438
|
+
<xsl:variable name="coverpage_statement" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:coverpage-statement)"/>
|
3439
|
+
<xsl:if test="$coverpage_statement != '' or /mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']]/mn:organization/mn:logo">
|
3440
|
+
<fo:block font-size="12pt">
|
3441
|
+
<fo:block> </fo:block>
|
3442
|
+
<fo:table width="168mm" table-layout="fixed">
|
3443
|
+
<fo:table-column column-width="100mm"/>
|
3444
|
+
<fo:table-column column-width="68mm"/>
|
3445
|
+
<fo:table-body>
|
3446
|
+
<fo:table-row>
|
3447
|
+
<fo:table-cell>
|
3448
|
+
<fo:block><xsl:value-of select="$coverpage_statement"/></fo:block>
|
3449
|
+
</fo:table-cell>
|
3450
|
+
<fo:table-cell text-align="center">
|
3451
|
+
<fo:block>
|
3452
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']]/mn:organization">
|
3453
|
+
<fo:block>
|
3454
|
+
<xsl:variable name="logo_image">
|
3455
|
+
<xsl:for-each select="mn:logo/mn:image"> <!-- set context to logo/image -->
|
3456
|
+
<xsl:element name="logo" namespace="{$namespace_full}">
|
3457
|
+
<xsl:element name="image" namespace="{$namespace_full}">
|
3458
|
+
<xsl:copy-of select="@*"/>
|
3459
|
+
<xsl:attribute name="width">32mm</xsl:attribute>
|
3460
|
+
<xsl:copy-of select="node()"/>
|
3461
|
+
</xsl:element>
|
3462
|
+
</xsl:element>
|
3463
|
+
</xsl:for-each>
|
3464
|
+
</xsl:variable>
|
3465
|
+
<xsl:apply-templates select="xalan:nodeset($logo_image)//mn:logo/mn:image"/>
|
3466
|
+
</fo:block>
|
3467
|
+
</xsl:for-each>
|
3468
|
+
</fo:block>
|
3469
|
+
</fo:table-cell>
|
3470
|
+
</fo:table-row>
|
3471
|
+
</fo:table-body>
|
3472
|
+
</fo:table>
|
3473
|
+
</fo:block>
|
3474
|
+
</xsl:if>
|
3464
3475
|
|
3465
3476
|
<xsl:if test="normalize-space($cutoff_date) != ''">
|
3466
3477
|
<fo:block> </fo:block>
|
@@ -3477,9 +3488,11 @@
|
|
3477
3488
|
</fo:block>
|
3478
3489
|
</xsl:if>
|
3479
3490
|
|
3480
|
-
|
3481
|
-
<fo:block font-size="10pt"><xsl:value-of select="$history"/></fo:block>
|
3491
|
+
</fo:block-container>
|
3482
3492
|
|
3493
|
+
<fo:block-container position="absolute" left="0mm" top="168mm">
|
3494
|
+
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
3495
|
+
<fo:block font-size="10pt"><xsl:value-of select="$history"/></fo:block>
|
3483
3496
|
</fo:block-container>
|
3484
3497
|
</fo:flow>
|
3485
3498
|
</fo:page-sequence>
|
@@ -3489,7 +3502,7 @@
|
|
3489
3502
|
<fo:page-sequence master-reference="cover-and-back-page-industry-connection-report" force-page-count="no-force">
|
3490
3503
|
<fo:static-content flow-name="header" role="artifact">
|
3491
3504
|
|
3492
|
-
<fo:block-container position="absolute" left="65.5mm" top="0mm">
|
3505
|
+
<fo:block-container position="absolute" left="65.5mm" top="0mm" id="__internal_layout__covepage_bluebox_{generate-id()}">
|
3493
3506
|
<fo:block font-size="1">
|
3494
3507
|
<fo:instream-foreign-object content-height="93.5mm" content-width="64.1mm" fox:alt-text="Image Boxes">
|
3495
3508
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3725,7 +3738,7 @@
|
|
3725
3738
|
</fo:instream-foreign-object>
|
3726
3739
|
</fo:block>
|
3727
3740
|
</fo:block-container>
|
3728
|
-
<fo:block-container position="absolute" left="191mm" top="-1mm">
|
3741
|
+
<fo:block-container position="absolute" left="191mm" top="-1mm" id="__internal_layout__backpage_bluebox_{generate-id()}">
|
3729
3742
|
<fo:block font-size="1">
|
3730
3743
|
<fo:instream-foreign-object content-width="26mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Boxes">
|
3731
3744
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3736,7 +3749,7 @@
|
|
3736
3749
|
|
3737
3750
|
<fo:flow flow-name="xsl-region-body" font-family="Calibri">
|
3738
3751
|
|
3739
|
-
<fo:block font-family="Montserrat ExtraBold" font-size="32pt" font-weight="normal" margin-top="
|
3752
|
+
<fo:block font-family="Montserrat ExtraBold" font-size="32pt" font-weight="normal" margin-top="42mm" line-height="0.9">
|
3740
3753
|
<fo:block>RAISING THE</fo:block>
|
3741
3754
|
<fo:block>WORLD’S</fo:block>
|
3742
3755
|
<fo:block>STANDARDS</fo:block>
|
@@ -4096,6 +4109,7 @@
|
|
4096
4109
|
<xsl:variable name="en_dash">–</xsl:variable>
|
4097
4110
|
<xsl:variable name="em_dash">—</xsl:variable>
|
4098
4111
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
4112
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
4099
4113
|
<xsl:variable name="cr"> </xsl:variable>
|
4100
4114
|
<xsl:variable name="lf">
|
4101
4115
|
</xsl:variable>
|
@@ -4639,6 +4653,7 @@
|
|
4639
4653
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
4640
4654
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
4641
4655
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
4656
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
4642
4657
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
4643
4658
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
4644
4659
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -4653,10 +4668,10 @@
|
|
4653
4668
|
|
4654
4669
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
4655
4670
|
|
4656
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
4671
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
4657
4672
|
<xsl:copy>
|
4658
4673
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
4659
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
4674
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
4660
4675
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
4661
4676
|
</xsl:copy>
|
4662
4677
|
</xsl:template>
|
@@ -5552,10 +5567,16 @@
|
|
5552
5567
|
<xsl:attribute-set name="license-statement-style">
|
5553
5568
|
</xsl:attribute-set> <!-- license-statement-style -->
|
5554
5569
|
|
5570
|
+
<xsl:template name="refine_license-statement-style">
|
5571
|
+
</xsl:template>
|
5572
|
+
|
5555
5573
|
<xsl:attribute-set name="license-statement-title-style">
|
5556
5574
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5557
5575
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
5558
5576
|
|
5577
|
+
<xsl:template name="refine_license-statement-title-style">
|
5578
|
+
</xsl:template>
|
5579
|
+
|
5559
5580
|
<xsl:attribute-set name="license-statement-p-style">
|
5560
5581
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
5561
5582
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -5569,23 +5590,75 @@
|
|
5569
5590
|
<xsl:attribute-set name="legal-statement-style">
|
5570
5591
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
5571
5592
|
|
5593
|
+
<xsl:template name="refine_legal-statement-style">
|
5594
|
+
</xsl:template>
|
5595
|
+
|
5572
5596
|
<xsl:attribute-set name="legal-statement-title-style">
|
5573
5597
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5598
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
5599
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5600
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5601
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
5602
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
5603
|
+
<xsl:attribute name="span">all</xsl:attribute>
|
5604
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5574
5605
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
5575
5606
|
|
5607
|
+
<xsl:template name="refine_legal-statement-title-style">
|
5608
|
+
<xsl:variable name="level">
|
5609
|
+
<xsl:call-template name="getLevel"/>
|
5610
|
+
</xsl:variable>
|
5611
|
+
<xsl:if test="$level = '1'">
|
5612
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
5613
|
+
</xsl:if>
|
5614
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5615
|
+
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
5616
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
5617
|
+
</xsl:if>
|
5618
|
+
</xsl:template>
|
5619
|
+
|
5576
5620
|
<xsl:attribute-set name="legal-statement-p-style">
|
5577
5621
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
5578
5622
|
|
5623
|
+
<xsl:template name="refine_legal-statement-p-style">
|
5624
|
+
<xsl:if test="@align">
|
5625
|
+
<xsl:attribute name="text-align">
|
5626
|
+
<xsl:value-of select="@align"/>
|
5627
|
+
</xsl:attribute>
|
5628
|
+
</xsl:if>
|
5629
|
+
</xsl:template>
|
5630
|
+
|
5579
5631
|
<xsl:attribute-set name="feedback-statement-style">
|
5632
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
5633
|
+
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
5580
5634
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
5581
5635
|
|
5636
|
+
<xsl:template name="refine_feedback-statement-style">
|
5637
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5638
|
+
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
5639
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
5640
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
5641
|
+
</xsl:if>
|
5642
|
+
<!-- <xsl:if test="$current_template = 'standard'">
|
5643
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
5644
|
+
</xsl:if> -->
|
5645
|
+
</xsl:template>
|
5646
|
+
|
5582
5647
|
<xsl:attribute-set name="feedback-statement-title-style">
|
5583
5648
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5584
5649
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
5585
5650
|
|
5651
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
5652
|
+
|
5653
|
+
</xsl:template>
|
5654
|
+
|
5586
5655
|
<xsl:attribute-set name="feedback-statement-p-style">
|
5656
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5587
5657
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
5588
5658
|
|
5659
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
5660
|
+
</xsl:template>
|
5661
|
+
|
5589
5662
|
<!-- End boilerplate sections styles -->
|
5590
5663
|
|
5591
5664
|
<!-- ================================= -->
|
@@ -5611,6 +5684,7 @@
|
|
5611
5684
|
|
5612
5685
|
<xsl:template match="mn:license-statement">
|
5613
5686
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
5687
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
5614
5688
|
<xsl:apply-templates/>
|
5615
5689
|
</fo:block>
|
5616
5690
|
</xsl:template> <!-- license-statement -->
|
@@ -5628,6 +5702,7 @@
|
|
5628
5702
|
<xsl:template match="mn:legal-statement">
|
5629
5703
|
<xsl:param name="isLegacy">false</xsl:param>
|
5630
5704
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
5705
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
5631
5706
|
<xsl:apply-templates/>
|
5632
5707
|
</fo:block>
|
5633
5708
|
</xsl:template> <!-- legal-statement -->
|
@@ -5808,6 +5883,27 @@
|
|
5808
5883
|
<xsl:attribute-set name="sourcecode-container-style">
|
5809
5884
|
</xsl:attribute-set>
|
5810
5885
|
|
5886
|
+
<xsl:template name="refine_sourcecode-container-style">
|
5887
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
5888
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
5889
|
+
</xsl:if>
|
5890
|
+
|
5891
|
+
<xsl:if test="ancestor::mn:example">
|
5892
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
5893
|
+
</xsl:if>
|
5894
|
+
|
5895
|
+
<xsl:copy-of select="@id"/>
|
5896
|
+
|
5897
|
+
<xsl:if test="parent::mn:note">
|
5898
|
+
<xsl:attribute name="margin-left">
|
5899
|
+
<xsl:choose>
|
5900
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
5901
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
5902
|
+
</xsl:choose>
|
5903
|
+
</xsl:attribute>
|
5904
|
+
</xsl:if>
|
5905
|
+
</xsl:template>
|
5906
|
+
|
5811
5907
|
<xsl:attribute-set name="sourcecode-style">
|
5812
5908
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
5813
5909
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -5820,6 +5916,12 @@
|
|
5820
5916
|
<xsl:template name="refine_sourcecode-style">
|
5821
5917
|
</xsl:template> <!-- refine_sourcecode-style -->
|
5822
5918
|
|
5919
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
5920
|
+
</xsl:attribute-set>
|
5921
|
+
|
5922
|
+
<xsl:template name="refine_sourcecode-number-style">
|
5923
|
+
</xsl:template>
|
5924
|
+
|
5823
5925
|
<xsl:attribute-set name="sourcecode-name-style">
|
5824
5926
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5825
5927
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -5828,6 +5930,9 @@
|
|
5828
5930
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
5829
5931
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
5830
5932
|
|
5933
|
+
<xsl:template name="refine_sourcecode-name-style">
|
5934
|
+
</xsl:template>
|
5935
|
+
|
5831
5936
|
<xsl:template name="add-zero-spaces-equal">
|
5832
5937
|
<xsl:param name="text" select="."/>
|
5833
5938
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -5915,24 +6020,8 @@
|
|
5915
6020
|
<xsl:otherwise>
|
5916
6021
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
5917
6022
|
|
5918
|
-
<xsl:
|
5919
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
5920
|
-
</xsl:if>
|
5921
|
-
|
5922
|
-
<xsl:if test="ancestor::mn:example">
|
5923
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
5924
|
-
</xsl:if>
|
5925
|
-
|
5926
|
-
<xsl:copy-of select="@id"/>
|
6023
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
5927
6024
|
|
5928
|
-
<xsl:if test="parent::mn:note">
|
5929
|
-
<xsl:attribute name="margin-left">
|
5930
|
-
<xsl:choose>
|
5931
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
5932
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
5933
|
-
</xsl:choose>
|
5934
|
-
</xsl:attribute>
|
5935
|
-
</xsl:if>
|
5936
6025
|
<fo:block-container margin-left="0mm" role="SKIP">
|
5937
6026
|
|
5938
6027
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
@@ -6259,6 +6348,7 @@
|
|
6259
6348
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
6260
6349
|
<xsl:if test="normalize-space() != ''">
|
6261
6350
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
6351
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
6262
6352
|
<xsl:apply-templates/>
|
6263
6353
|
</fo:block>
|
6264
6354
|
</xsl:if>
|
@@ -6308,11 +6398,30 @@
|
|
6308
6398
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
6309
6399
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
6310
6400
|
<xsl:attribute name="font-size">95%</xsl:attribute>
|
6311
|
-
</xsl:attribute-set>
|
6401
|
+
</xsl:attribute-set> <!-- pre-style -->
|
6402
|
+
|
6403
|
+
<xsl:template name="refine_pre-style">
|
6404
|
+
</xsl:template>
|
6312
6405
|
|
6313
6406
|
<xsl:attribute-set name="tt-style">
|
6314
6407
|
</xsl:attribute-set>
|
6315
6408
|
|
6409
|
+
<xsl:template name="refine_tt-style">
|
6410
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
6411
|
+
</xsl:variable>
|
6412
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
6413
|
+
<xsl:if test="$font-size != ''">
|
6414
|
+
<xsl:attribute name="font-size">
|
6415
|
+
<xsl:choose>
|
6416
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
6417
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
6418
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
6419
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
6420
|
+
</xsl:choose>
|
6421
|
+
</xsl:attribute>
|
6422
|
+
</xsl:if>
|
6423
|
+
</xsl:template>
|
6424
|
+
|
6316
6425
|
<xsl:variable name="color-added-text">
|
6317
6426
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
6318
6427
|
</xsl:variable>
|
@@ -6325,9 +6434,14 @@
|
|
6325
6434
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
6326
6435
|
</xsl:attribute-set>
|
6327
6436
|
|
6437
|
+
<xsl:template name="refine_add-style">
|
6438
|
+
</xsl:template>
|
6439
|
+
|
6328
6440
|
<xsl:variable name="add-style">
|
6329
|
-
|
6330
|
-
|
6441
|
+
<add-style xsl:use-attribute-sets="add-style">
|
6442
|
+
<xsl:call-template name="refine_add-style"/>
|
6443
|
+
</add-style>
|
6444
|
+
</xsl:variable>
|
6331
6445
|
<xsl:template name="append_add-style">
|
6332
6446
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
6333
6447
|
</xsl:template>
|
@@ -6340,24 +6454,77 @@
|
|
6340
6454
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
6341
6455
|
</xsl:attribute-set>
|
6342
6456
|
|
6457
|
+
<xsl:template name="refine_del-style">
|
6458
|
+
</xsl:template>
|
6459
|
+
|
6460
|
+
<xsl:attribute-set name="strong-style">
|
6461
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
6462
|
+
</xsl:attribute-set>
|
6463
|
+
|
6464
|
+
<xsl:template name="refine_strong_style">
|
6465
|
+
<xsl:if test="ancestor::*['preferred']">
|
6466
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
6467
|
+
</xsl:if>
|
6468
|
+
</xsl:template> <!-- refine_strong_style -->
|
6469
|
+
|
6470
|
+
<xsl:attribute-set name="em-style">
|
6471
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
6472
|
+
</xsl:attribute-set>
|
6473
|
+
|
6474
|
+
<xsl:template name="refine_em_style">
|
6475
|
+
</xsl:template> <!-- refine_em_style -->
|
6476
|
+
|
6477
|
+
<xsl:attribute-set name="sup-style">
|
6478
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6479
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
6480
|
+
</xsl:attribute-set>
|
6481
|
+
|
6482
|
+
<xsl:template name="refine_sup-style">
|
6483
|
+
</xsl:template>
|
6484
|
+
|
6485
|
+
<xsl:attribute-set name="sub-style">
|
6486
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6487
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
6488
|
+
</xsl:attribute-set>
|
6489
|
+
|
6490
|
+
<xsl:template name="refine_sub-style">
|
6491
|
+
</xsl:template>
|
6492
|
+
|
6493
|
+
<xsl:attribute-set name="underline-style">
|
6494
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
6495
|
+
</xsl:attribute-set>
|
6496
|
+
|
6497
|
+
<xsl:template name="refine_underline-style">
|
6498
|
+
</xsl:template>
|
6499
|
+
|
6500
|
+
<xsl:attribute-set name="hi-style">
|
6501
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
6502
|
+
</xsl:attribute-set>
|
6503
|
+
|
6504
|
+
<xsl:template name="refine_hi-style">
|
6505
|
+
</xsl:template>
|
6506
|
+
|
6507
|
+
<xsl:attribute-set name="strike-style">
|
6508
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
6509
|
+
</xsl:attribute-set>
|
6510
|
+
|
6511
|
+
<xsl:template name="refine_strike-style">
|
6512
|
+
</xsl:template>
|
6513
|
+
|
6343
6514
|
<xsl:template match="mn:br">
|
6344
6515
|
<xsl:value-of select="$linebreak"/>
|
6345
6516
|
</xsl:template>
|
6346
6517
|
|
6347
|
-
|
6348
|
-
<fo:inline
|
6349
|
-
<xsl:call-template name="
|
6518
|
+
<xsl:template match="mn:em">
|
6519
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
6520
|
+
<xsl:call-template name="refine_em_style"/>
|
6350
6521
|
<xsl:apply-templates/>
|
6351
6522
|
</fo:inline>
|
6352
6523
|
</xsl:template>
|
6353
6524
|
|
6354
|
-
<xsl:template name="refine_italic_style">
|
6355
|
-
</xsl:template>
|
6356
|
-
|
6357
6525
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
6358
6526
|
<xsl:param name="split_keep-within-line"/>
|
6359
|
-
<fo:inline
|
6360
|
-
|
6527
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
6361
6528
|
<xsl:call-template name="refine_strong_style"/>
|
6362
6529
|
|
6363
6530
|
<xsl:apply-templates>
|
@@ -6366,44 +6533,27 @@
|
|
6366
6533
|
</fo:inline>
|
6367
6534
|
</xsl:template>
|
6368
6535
|
|
6369
|
-
<xsl:template name="refine_strong_style">
|
6370
|
-
<xsl:if test="ancestor::*['preferred']">
|
6371
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
6372
|
-
</xsl:if>
|
6373
|
-
</xsl:template>
|
6374
|
-
|
6375
6536
|
<xsl:template match="*[local-name()='padding']">
|
6376
6537
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
6377
6538
|
</xsl:template>
|
6378
6539
|
|
6379
6540
|
<xsl:template match="mn:sup">
|
6380
|
-
<fo:inline
|
6541
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
6542
|
+
<xsl:call-template name="refine_sup-style"/>
|
6381
6543
|
<xsl:apply-templates/>
|
6382
6544
|
</fo:inline>
|
6383
6545
|
</xsl:template>
|
6384
6546
|
|
6385
6547
|
<xsl:template match="mn:sub">
|
6386
|
-
<fo:inline
|
6548
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
6549
|
+
<xsl:call-template name="refine_sub-style"/>
|
6387
6550
|
<xsl:apply-templates/>
|
6388
6551
|
</fo:inline>
|
6389
6552
|
</xsl:template>
|
6390
6553
|
|
6391
6554
|
<xsl:template match="mn:tt">
|
6392
6555
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
6393
|
-
|
6394
|
-
<xsl:variable name="_font-size"> <!-- inherit -->
|
6395
|
-
</xsl:variable>
|
6396
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
6397
|
-
<xsl:if test="$font-size != ''">
|
6398
|
-
<xsl:attribute name="font-size">
|
6399
|
-
<xsl:choose>
|
6400
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
6401
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
6402
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
6403
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
6404
|
-
</xsl:choose>
|
6405
|
-
</xsl:attribute>
|
6406
|
-
</xsl:if>
|
6556
|
+
<xsl:call-template name="refine_tt-style"/>
|
6407
6557
|
<xsl:apply-templates/>
|
6408
6558
|
</fo:inline>
|
6409
6559
|
</xsl:template> <!-- tt -->
|
@@ -6422,7 +6572,8 @@
|
|
6422
6572
|
</xsl:template>
|
6423
6573
|
|
6424
6574
|
<xsl:template match="mn:underline">
|
6425
|
-
<fo:inline
|
6575
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
6576
|
+
<xsl:call-template name="refine_underline-style"/>
|
6426
6577
|
<xsl:apply-templates/>
|
6427
6578
|
</fo:inline>
|
6428
6579
|
</xsl:template>
|
@@ -6580,6 +6731,7 @@
|
|
6580
6731
|
|
6581
6732
|
<xsl:template match="mn:del">
|
6582
6733
|
<fo:inline xsl:use-attribute-sets="del-style">
|
6734
|
+
<xsl:call-template name="refine_del-style"/>
|
6583
6735
|
<xsl:apply-templates/>
|
6584
6736
|
</fo:inline>
|
6585
6737
|
</xsl:template>
|
@@ -6589,7 +6741,8 @@
|
|
6589
6741
|
|
6590
6742
|
<!-- highlight text -->
|
6591
6743
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
6592
|
-
<fo:inline
|
6744
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
6745
|
+
<xsl:call-template name="refine_hi-style"/>
|
6593
6746
|
<xsl:apply-templates/>
|
6594
6747
|
</fo:inline>
|
6595
6748
|
</xsl:template>
|
@@ -6675,7 +6828,8 @@
|
|
6675
6828
|
</xsl:template>
|
6676
6829
|
|
6677
6830
|
<xsl:template match="mn:strike">
|
6678
|
-
<fo:inline
|
6831
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
6832
|
+
<xsl:call-template name="refine_strike-style"/>
|
6679
6833
|
<xsl:apply-templates/>
|
6680
6834
|
</fo:inline>
|
6681
6835
|
</xsl:template>
|
@@ -6755,6 +6909,7 @@
|
|
6755
6909
|
|
6756
6910
|
<xsl:template match="mn:pre" name="pre">
|
6757
6911
|
<fo:block xsl:use-attribute-sets="pre-style">
|
6912
|
+
<xsl:call-template name="refine_pre-style"/>
|
6758
6913
|
<xsl:copy-of select="@id"/>
|
6759
6914
|
<xsl:choose>
|
6760
6915
|
|
@@ -6785,22 +6940,40 @@
|
|
6785
6940
|
<xsl:attribute-set name="permission-style">
|
6786
6941
|
</xsl:attribute-set>
|
6787
6942
|
|
6943
|
+
<xsl:template name="refine_permission-style">
|
6944
|
+
</xsl:template>
|
6945
|
+
|
6788
6946
|
<xsl:attribute-set name="permission-name-style">
|
6789
6947
|
</xsl:attribute-set>
|
6790
6948
|
|
6949
|
+
<xsl:template name="refine_permission-name-style">
|
6950
|
+
</xsl:template>
|
6951
|
+
|
6791
6952
|
<xsl:attribute-set name="permission-label-style">
|
6792
6953
|
</xsl:attribute-set>
|
6793
6954
|
|
6955
|
+
<xsl:template name="refine_permission-label-style">
|
6956
|
+
</xsl:template>
|
6957
|
+
|
6794
6958
|
<xsl:attribute-set name="requirement-style">
|
6795
6959
|
</xsl:attribute-set>
|
6796
6960
|
|
6961
|
+
<xsl:template name="refine_requirement-style">
|
6962
|
+
</xsl:template>
|
6963
|
+
|
6797
6964
|
<xsl:attribute-set name="requirement-name-style">
|
6798
6965
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
6799
6966
|
</xsl:attribute-set>
|
6800
6967
|
|
6968
|
+
<xsl:template name="refine_requirement-name-style">
|
6969
|
+
</xsl:template>
|
6970
|
+
|
6801
6971
|
<xsl:attribute-set name="requirement-label-style">
|
6802
6972
|
</xsl:attribute-set>
|
6803
6973
|
|
6974
|
+
<xsl:template name="refine_requirement-label-style">
|
6975
|
+
</xsl:template>
|
6976
|
+
|
6804
6977
|
<xsl:attribute-set name="subject-style">
|
6805
6978
|
</xsl:attribute-set>
|
6806
6979
|
|
@@ -6828,18 +7001,28 @@
|
|
6828
7001
|
<xsl:attribute-set name="recommendation-style">
|
6829
7002
|
</xsl:attribute-set>
|
6830
7003
|
|
7004
|
+
<xsl:template name="refine_recommendation-style">
|
7005
|
+
</xsl:template>
|
7006
|
+
|
6831
7007
|
<xsl:attribute-set name="recommendation-name-style">
|
6832
7008
|
</xsl:attribute-set>
|
6833
7009
|
|
7010
|
+
<xsl:template name="refine_recommendation-name-style">
|
7011
|
+
</xsl:template>
|
7012
|
+
|
6834
7013
|
<xsl:attribute-set name="recommendation-label-style">
|
6835
7014
|
</xsl:attribute-set>
|
6836
7015
|
|
7016
|
+
<xsl:template name="refine_recommendation-label-style">
|
7017
|
+
</xsl:template>
|
7018
|
+
|
6837
7019
|
<!-- ========== -->
|
6838
7020
|
<!-- permission -->
|
6839
7021
|
<!-- ========== -->
|
6840
7022
|
<xsl:template match="mn:permission">
|
6841
7023
|
<xsl:call-template name="setNamedDestination"/>
|
6842
7024
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
7025
|
+
<xsl:call-template name="refine_permission-style"/>
|
6843
7026
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6844
7027
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
6845
7028
|
</fo:block>
|
@@ -6848,6 +7031,7 @@
|
|
6848
7031
|
<xsl:template match="mn:permission/mn:fmt-name">
|
6849
7032
|
<xsl:if test="normalize-space() != ''">
|
6850
7033
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
7034
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
6851
7035
|
<xsl:apply-templates/>
|
6852
7036
|
</fo:block>
|
6853
7037
|
</xsl:if>
|
@@ -6855,6 +7039,7 @@
|
|
6855
7039
|
|
6856
7040
|
<xsl:template match="mn:permission/mn:label">
|
6857
7041
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
7042
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
6858
7043
|
<xsl:apply-templates/>
|
6859
7044
|
</fo:block>
|
6860
7045
|
</xsl:template>
|
@@ -6867,6 +7052,7 @@
|
|
6867
7052
|
<xsl:template match="mn:requirement">
|
6868
7053
|
<xsl:call-template name="setNamedDestination"/>
|
6869
7054
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
7055
|
+
<xsl:call-template name="refine_requirement-style"/>
|
6870
7056
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6871
7057
|
<xsl:apply-templates select="mn:label"/>
|
6872
7058
|
<xsl:apply-templates select="@obligation"/>
|
@@ -6879,6 +7065,7 @@
|
|
6879
7065
|
<xsl:if test="normalize-space() != ''">
|
6880
7066
|
|
6881
7067
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
7068
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
6882
7069
|
<xsl:apply-templates/>
|
6883
7070
|
</fo:block>
|
6884
7071
|
</xsl:if>
|
@@ -6886,6 +7073,7 @@
|
|
6886
7073
|
|
6887
7074
|
<xsl:template match="mn:requirement/mn:label">
|
6888
7075
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
7076
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
6889
7077
|
<xsl:apply-templates/>
|
6890
7078
|
</fo:block>
|
6891
7079
|
</xsl:template>
|
@@ -6911,6 +7099,7 @@
|
|
6911
7099
|
<xsl:template match="mn:recommendation">
|
6912
7100
|
<xsl:call-template name="setNamedDestination"/>
|
6913
7101
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
7102
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
6914
7103
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6915
7104
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
6916
7105
|
</fo:block>
|
@@ -6920,6 +7109,7 @@
|
|
6920
7109
|
<xsl:if test="normalize-space() != ''">
|
6921
7110
|
|
6922
7111
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
7112
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
6923
7113
|
<xsl:apply-templates/>
|
6924
7114
|
</fo:block>
|
6925
7115
|
</xsl:if>
|
@@ -6927,6 +7117,7 @@
|
|
6927
7117
|
|
6928
7118
|
<xsl:template match="mn:recommendation/mn:label">
|
6929
7119
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
7120
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
6930
7121
|
<xsl:apply-templates/>
|
6931
7122
|
</fo:block>
|
6932
7123
|
</xsl:template>
|
@@ -7107,34 +7298,70 @@
|
|
7107
7298
|
<xsl:attribute-set name="term-style">
|
7108
7299
|
</xsl:attribute-set> <!-- term-style -->
|
7109
7300
|
|
7301
|
+
<xsl:template name="refine_term-style">
|
7302
|
+
</xsl:template>
|
7303
|
+
|
7110
7304
|
<xsl:attribute-set name="term-name-style">
|
7111
7305
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7112
7306
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7113
7307
|
</xsl:attribute-set> <!-- term-name-style -->
|
7114
7308
|
|
7115
|
-
|
7309
|
+
<xsl:template name="refine_term-name-style">
|
7310
|
+
</xsl:template>
|
7311
|
+
|
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">
|
7116
7319
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
7117
7320
|
|
7321
|
+
<xsl:template name="refine_preferred-block-style">
|
7322
|
+
</xsl:template>
|
7323
|
+
|
7118
7324
|
<xsl:attribute-set name="preferred-term-style">
|
7119
7325
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7120
7326
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7121
7327
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
7122
7328
|
|
7329
|
+
<xsl:template name="refine_preferred-term-style">
|
7330
|
+
<xsl:if test="mn:strong">
|
7331
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
7332
|
+
</xsl:if>
|
7333
|
+
</xsl:template>
|
7334
|
+
|
7123
7335
|
<xsl:attribute-set name="domain-style">
|
7124
7336
|
</xsl:attribute-set> <!-- domain-style -->
|
7125
7337
|
|
7338
|
+
<xsl:template name="refine_domain-style">
|
7339
|
+
</xsl:template>
|
7340
|
+
|
7126
7341
|
<xsl:attribute-set name="admitted-style">
|
7127
7342
|
</xsl:attribute-set> <!-- admitted-style -->
|
7128
7343
|
|
7344
|
+
<xsl:template name="refine_admitted-style">
|
7345
|
+
</xsl:template>
|
7346
|
+
|
7129
7347
|
<xsl:attribute-set name="deprecates-style">
|
7130
7348
|
</xsl:attribute-set> <!-- deprecates-style -->
|
7131
7349
|
|
7350
|
+
<xsl:template name="refine_deprecates-style">
|
7351
|
+
</xsl:template>
|
7352
|
+
|
7132
7353
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
7133
7354
|
</xsl:attribute-set>
|
7134
7355
|
|
7356
|
+
<xsl:template name="refine_related-block-style">
|
7357
|
+
</xsl:template>
|
7358
|
+
|
7135
7359
|
<xsl:attribute-set name="definition-style">
|
7136
7360
|
</xsl:attribute-set> <!-- definition-style -->
|
7137
7361
|
|
7362
|
+
<xsl:template name="refine_definition-style">
|
7363
|
+
</xsl:template>
|
7364
|
+
|
7138
7365
|
<xsl:attribute-set name="termsource-style">
|
7139
7366
|
</xsl:attribute-set> <!-- termsource-style -->
|
7140
7367
|
|
@@ -7144,9 +7371,15 @@
|
|
7144
7371
|
<xsl:attribute-set name="termsource-text-style">
|
7145
7372
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
7146
7373
|
|
7374
|
+
<xsl:template name="refine_termsource-text-style">
|
7375
|
+
</xsl:template>
|
7376
|
+
|
7147
7377
|
<xsl:attribute-set name="origin-style">
|
7148
7378
|
</xsl:attribute-set> <!-- origin-style -->
|
7149
7379
|
|
7380
|
+
<xsl:template name="refine_origin-style">
|
7381
|
+
</xsl:template>
|
7382
|
+
|
7150
7383
|
<!-- ====== -->
|
7151
7384
|
<!-- term -->
|
7152
7385
|
<!-- ====== -->
|
@@ -7162,9 +7395,8 @@
|
|
7162
7395
|
<xsl:template match="mn:term">
|
7163
7396
|
<xsl:call-template name="setNamedDestination"/>
|
7164
7397
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
7398
|
+
<xsl:call-template name="refine_term-style"/>
|
7165
7399
|
|
7166
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
7167
|
-
</xsl:if>
|
7168
7400
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
7169
7401
|
</fo:block>
|
7170
7402
|
</xsl:template>
|
@@ -7240,6 +7472,7 @@
|
|
7240
7472
|
<!-- text SOURCE: -->
|
7241
7473
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
7242
7474
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
7475
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
7243
7476
|
<xsl:value-of select="."/>
|
7244
7477
|
</fo:inline>
|
7245
7478
|
</xsl:template>
|
@@ -7252,6 +7485,7 @@
|
|
7252
7485
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
7253
7486
|
</xsl:if>
|
7254
7487
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
7488
|
+
<xsl:call-template name="refine_origin-style"/>
|
7255
7489
|
<xsl:apply-templates/>
|
7256
7490
|
</fo:inline>
|
7257
7491
|
</fo:basic-link>
|
@@ -7301,9 +7535,12 @@
|
|
7301
7535
|
</xsl:variable>
|
7302
7536
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
7303
7537
|
|
7538
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
7539
|
+
|
7304
7540
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
7305
7541
|
|
7306
7542
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
7543
|
+
<xsl:call-template name="refine_term-name-style"/>
|
7307
7544
|
|
7308
7545
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
7309
7546
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -7314,7 +7551,7 @@
|
|
7314
7551
|
</xsl:if>
|
7315
7552
|
|
7316
7553
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
7317
|
-
<xsl:call-template name="
|
7554
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
7318
7555
|
|
7319
7556
|
<xsl:apply-templates/>
|
7320
7557
|
</fo:block>
|
@@ -7335,22 +7572,18 @@
|
|
7335
7572
|
|
7336
7573
|
<xsl:template match="mn:fmt-admitted">
|
7337
7574
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
7575
|
+
<xsl:call-template name="refine_admitted-style"/>
|
7338
7576
|
<xsl:apply-templates/>
|
7339
7577
|
</fo:block>
|
7340
7578
|
</xsl:template>
|
7341
7579
|
|
7342
7580
|
<xsl:template match="mn:fmt-deprecates">
|
7343
7581
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
7582
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
7344
7583
|
<xsl:apply-templates/>
|
7345
7584
|
</fo:block>
|
7346
7585
|
</xsl:template>
|
7347
7586
|
|
7348
|
-
<xsl:template name="setStyle_preferred">
|
7349
|
-
<xsl:if test="mn:strong">
|
7350
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
7351
|
-
</xsl:if>
|
7352
|
-
</xsl:template>
|
7353
|
-
|
7354
7587
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
7355
7588
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
7356
7589
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -7360,6 +7593,7 @@
|
|
7360
7593
|
|
7361
7594
|
<xsl:template match="mn:fmt-related">
|
7362
7595
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
7596
|
+
<xsl:call-template name="refine_related-block-style"/>
|
7363
7597
|
<xsl:apply-templates/>
|
7364
7598
|
</fo:block>
|
7365
7599
|
</xsl:template>
|
@@ -7374,6 +7608,7 @@
|
|
7374
7608
|
<!-- ========== -->
|
7375
7609
|
<xsl:template match="mn:fmt-definition">
|
7376
7610
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
7611
|
+
<xsl:call-template name="refine_definition-style"/>
|
7377
7612
|
<xsl:apply-templates/>
|
7378
7613
|
</fo:block>
|
7379
7614
|
</xsl:template>
|
@@ -7403,6 +7638,9 @@
|
|
7403
7638
|
</xsl:attribute-set> <!-- termexample-style -->
|
7404
7639
|
|
7405
7640
|
<xsl:template name="refine_termexample-style">
|
7641
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:termnote]">
|
7642
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
7643
|
+
</xsl:if>
|
7406
7644
|
</xsl:template> <!-- refine_termexample-style -->
|
7407
7645
|
|
7408
7646
|
<xsl:attribute-set name="termexample-name-style">
|
@@ -7426,6 +7664,9 @@
|
|
7426
7664
|
<xsl:attribute-set name="example-body-style">
|
7427
7665
|
</xsl:attribute-set> <!-- example-body-style -->
|
7428
7666
|
|
7667
|
+
<xsl:template name="refine_example-body-style">
|
7668
|
+
</xsl:template>
|
7669
|
+
|
7429
7670
|
<xsl:attribute-set name="example-name-style">
|
7430
7671
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7431
7672
|
<xsl:attribute name="padding-right">9mm</xsl:attribute>
|
@@ -7455,7 +7696,12 @@
|
|
7455
7696
|
<xsl:call-template name="setBlockSpanAll"/>
|
7456
7697
|
|
7457
7698
|
<xsl:apply-templates select="mn:fmt-name"/>
|
7458
|
-
<
|
7699
|
+
<fo:block-container margin-left="11mm">
|
7700
|
+
<fo:block-container margin-left="0mm">
|
7701
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
7702
|
+
</fo:block-container>
|
7703
|
+
</fo:block-container>
|
7704
|
+
|
7459
7705
|
</fo:block>
|
7460
7706
|
</xsl:template>
|
7461
7707
|
|
@@ -7475,9 +7721,8 @@
|
|
7475
7721
|
<xsl:choose>
|
7476
7722
|
<xsl:when test="contains($element, 'block')">
|
7477
7723
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
7478
|
-
|
7479
|
-
|
7480
|
-
</xsl:if>
|
7724
|
+
|
7725
|
+
<xsl:call-template name="refine_example-p-style"/>
|
7481
7726
|
|
7482
7727
|
<xsl:apply-templates/>
|
7483
7728
|
</fo:block>
|
@@ -7530,6 +7775,7 @@
|
|
7530
7775
|
</fo:block>
|
7531
7776
|
|
7532
7777
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
7778
|
+
<xsl:call-template name="refine_example-body-style"/>
|
7533
7779
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
7534
7780
|
<xsl:variable name="example_body">
|
7535
7781
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -7592,6 +7838,7 @@
|
|
7592
7838
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
7593
7839
|
<!-- display further elements in blocks -->
|
7594
7840
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
7841
|
+
<xsl:call-template name="refine_example-body-style"/>
|
7595
7842
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
7596
7843
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
7597
7844
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -7726,6 +7973,12 @@
|
|
7726
7973
|
<xsl:call-template name="setBordersTableArray"/>
|
7727
7974
|
</xsl:template> <!-- refine_table-style -->
|
7728
7975
|
|
7976
|
+
<xsl:attribute-set name="table-number-style">
|
7977
|
+
</xsl:attribute-set>
|
7978
|
+
|
7979
|
+
<xsl:template name="refine_table-number-style">
|
7980
|
+
</xsl:template>
|
7981
|
+
|
7729
7982
|
<xsl:attribute-set name="table-name-style">
|
7730
7983
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
7731
7984
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -7861,6 +8114,9 @@
|
|
7861
8114
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
7862
8115
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
7863
8116
|
|
8117
|
+
<xsl:template name="refine_table-fn-number-style">
|
8118
|
+
</xsl:template>
|
8119
|
+
|
7864
8120
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
7865
8121
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
7866
8122
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
@@ -7870,30 +8126,12 @@
|
|
7870
8126
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
7871
8127
|
</xsl:template>
|
7872
8128
|
|
7873
|
-
<xsl:attribute-set name="fn-container-body-style">
|
7874
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
7875
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
7876
|
-
</xsl:attribute-set>
|
7877
|
-
|
7878
8129
|
<xsl:attribute-set name="table-fn-body-style">
|
7879
8130
|
</xsl:attribute-set>
|
7880
8131
|
|
7881
|
-
<xsl:
|
7882
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
7883
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
7884
|
-
|
7885
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
7886
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
7887
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
7888
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
7889
|
-
|
7890
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
8132
|
+
<xsl:template name="refine_table-fn-body-style">
|
7891
8133
|
</xsl:template>
|
7892
8134
|
|
7893
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
7894
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
7895
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
7896
|
-
</xsl:attribute-set>
|
7897
8135
|
<!-- ========================== -->
|
7898
8136
|
<!-- END Table styles -->
|
7899
8137
|
<!-- ========================== -->
|
@@ -9168,6 +9406,7 @@
|
|
9168
9406
|
</xsl:apply-templates>
|
9169
9407
|
|
9170
9408
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
9409
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
9171
9410
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9172
9411
|
<xsl:apply-templates/>
|
9173
9412
|
</fo:inline>
|
@@ -9186,6 +9425,7 @@
|
|
9186
9425
|
<xsl:param name="process">false</xsl:param>
|
9187
9426
|
<xsl:if test="$process = 'true'">
|
9188
9427
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
9428
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
9189
9429
|
|
9190
9430
|
<!-- tab is padding-right -->
|
9191
9431
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -10057,9 +10297,18 @@
|
|
10057
10297
|
<xsl:attribute-set name="dl-block-style">
|
10058
10298
|
</xsl:attribute-set>
|
10059
10299
|
|
10300
|
+
<xsl:template name="refine_dl-block-style">
|
10301
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
10302
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
10303
|
+
</xsl:if>
|
10304
|
+
</xsl:template>
|
10305
|
+
|
10060
10306
|
<xsl:attribute-set name="dt-row-style">
|
10061
10307
|
</xsl:attribute-set>
|
10062
10308
|
|
10309
|
+
<xsl:template name="refine_dt-row-style">
|
10310
|
+
</xsl:template>
|
10311
|
+
|
10063
10312
|
<xsl:attribute-set name="dt-cell-style">
|
10064
10313
|
</xsl:attribute-set>
|
10065
10314
|
|
@@ -10082,6 +10331,9 @@
|
|
10082
10331
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
10083
10332
|
</xsl:attribute-set> <!-- dl-name-style -->
|
10084
10333
|
|
10334
|
+
<xsl:template name="refine_dl-name-style">
|
10335
|
+
</xsl:template>
|
10336
|
+
|
10085
10337
|
<xsl:attribute-set name="dd-cell-style">
|
10086
10338
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
10087
10339
|
</xsl:attribute-set>
|
@@ -10120,9 +10372,7 @@
|
|
10120
10372
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
10121
10373
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
10122
10374
|
|
10123
|
-
<xsl:
|
10124
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
10125
|
-
</xsl:if>
|
10375
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
10126
10376
|
|
10127
10377
|
<xsl:call-template name="setBlockSpanAll"/>
|
10128
10378
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -10418,6 +10668,8 @@
|
|
10418
10668
|
<xsl:if test="$process = 'true'">
|
10419
10669
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
10420
10670
|
|
10671
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
10672
|
+
|
10421
10673
|
<xsl:apply-templates/>
|
10422
10674
|
</fo:block>
|
10423
10675
|
</xsl:if>
|
@@ -10606,6 +10858,8 @@
|
|
10606
10858
|
<xsl:param name="split_keep-within-line"/>
|
10607
10859
|
|
10608
10860
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
10861
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
10862
|
+
|
10609
10863
|
<xsl:call-template name="insert_dt_cell">
|
10610
10864
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
10611
10865
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -10815,15 +11069,22 @@
|
|
10815
11069
|
<xsl:attribute-set name="appendix-style">
|
10816
11070
|
</xsl:attribute-set>
|
10817
11071
|
|
11072
|
+
<xsl:template name="refine_appendix-style">
|
11073
|
+
</xsl:template>
|
11074
|
+
|
10818
11075
|
<xsl:attribute-set name="appendix-example-style">
|
10819
11076
|
</xsl:attribute-set>
|
10820
11077
|
|
11078
|
+
<xsl:template name="refine_appendix-example-style">
|
11079
|
+
</xsl:template>
|
11080
|
+
|
10821
11081
|
<!-- ======================== -->
|
10822
11082
|
<!-- Appendix processing -->
|
10823
11083
|
<!-- ======================== -->
|
10824
11084
|
<xsl:template match="mn:appendix">
|
10825
11085
|
<xsl:call-template name="setNamedDestination"/>
|
10826
11086
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
11087
|
+
<xsl:call-template name="refine_appendix-style"/>
|
10827
11088
|
<xsl:apply-templates select="mn:fmt-title"/>
|
10828
11089
|
</fo:block>
|
10829
11090
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -10842,6 +11103,7 @@
|
|
10842
11103
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
10843
11104
|
<xsl:call-template name="setNamedDestination"/>
|
10844
11105
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
11106
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
10845
11107
|
<xsl:apply-templates select="mn:fmt-name"/>
|
10846
11108
|
</fo:block>
|
10847
11109
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
@@ -10850,7 +11112,16 @@
|
|
10850
11112
|
<xsl:attribute-set name="xref-style">
|
10851
11113
|
<xsl:attribute name="color">blue</xsl:attribute>
|
10852
11114
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
10853
|
-
</xsl:attribute-set>
|
11115
|
+
</xsl:attribute-set> <!-- xref-style -->
|
11116
|
+
|
11117
|
+
<xsl:template name="refine_xref-style">
|
11118
|
+
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[self::mn:table or self::mn:dl])">
|
11119
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
11120
|
+
</xsl:if>
|
11121
|
+
<xsl:if test="parent::mn:add">
|
11122
|
+
<xsl:call-template name="append_add-style"/>
|
11123
|
+
</xsl:if>
|
11124
|
+
</xsl:template> <!-- refine_xref-style -->
|
10854
11125
|
|
10855
11126
|
<xsl:template match="mn:fmt-xref">
|
10856
11127
|
<xsl:call-template name="insert_basic_link">
|
@@ -10859,12 +11130,8 @@
|
|
10859
11130
|
<xsl:call-template name="getAltText"/>
|
10860
11131
|
</xsl:variable>
|
10861
11132
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
10862
|
-
<xsl:
|
10863
|
-
|
10864
|
-
</xsl:if>
|
10865
|
-
<xsl:if test="parent::mn:add">
|
10866
|
-
<xsl:call-template name="append_add-style"/>
|
10867
|
-
</xsl:if>
|
11133
|
+
<xsl:call-template name="refine_xref-style"/>
|
11134
|
+
|
10868
11135
|
<xsl:apply-templates/>
|
10869
11136
|
</fo:basic-link>
|
10870
11137
|
</xsl:with-param>
|
@@ -10981,16 +11248,16 @@
|
|
10981
11248
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
10982
11249
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10983
11250
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
10984
|
-
</xsl:attribute-set>
|
11251
|
+
</xsl:attribute-set> <!-- note-style -->
|
10985
11252
|
|
10986
11253
|
<xsl:template name="refine_note-style">
|
10987
|
-
</xsl:template>
|
11254
|
+
</xsl:template> <!-- refine_note-style -->
|
10988
11255
|
|
10989
11256
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
10990
11257
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
10991
11258
|
|
10992
11259
|
<xsl:attribute-set name="note-name-style">
|
10993
|
-
</xsl:attribute-set>
|
11260
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
10994
11261
|
|
10995
11262
|
<xsl:template name="refine_note-name-style">
|
10996
11263
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -11004,20 +11271,29 @@
|
|
11004
11271
|
|
11005
11272
|
<xsl:attribute-set name="note-p-style">
|
11006
11273
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11007
|
-
</xsl:attribute-set>
|
11274
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
11275
|
+
|
11276
|
+
<xsl:template name="refine_note-p-style">
|
11277
|
+
</xsl:template>
|
11008
11278
|
|
11009
11279
|
<xsl:attribute-set name="termnote-style">
|
11010
11280
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
11011
|
-
<xsl:attribute name="margin-top">
|
11012
|
-
<xsl:attribute name="margin-bottom">
|
11281
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
11282
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11013
11283
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11014
|
-
</xsl:attribute-set>
|
11284
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
11015
11285
|
|
11016
11286
|
<xsl:template name="refine_termnote-style">
|
11287
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-definition]">
|
11288
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
11289
|
+
</xsl:if>
|
11290
|
+
<xsl:if test="not(following-sibling::*)">
|
11291
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11292
|
+
</xsl:if>
|
11017
11293
|
</xsl:template> <!-- refine_termnote-style -->
|
11018
11294
|
|
11019
11295
|
<xsl:attribute-set name="termnote-name-style">
|
11020
|
-
</xsl:attribute-set>
|
11296
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
11021
11297
|
|
11022
11298
|
<xsl:template name="refine_termnote-name-style">
|
11023
11299
|
</xsl:template>
|
@@ -11025,6 +11301,9 @@
|
|
11025
11301
|
<xsl:attribute-set name="termnote-p-style">
|
11026
11302
|
</xsl:attribute-set>
|
11027
11303
|
|
11304
|
+
<xsl:template name="refine_termnote-p-style">
|
11305
|
+
</xsl:template>
|
11306
|
+
|
11028
11307
|
<!-- ====== -->
|
11029
11308
|
<!-- note -->
|
11030
11309
|
<!-- termnote -->
|
@@ -11085,11 +11364,13 @@
|
|
11085
11364
|
<xsl:choose>
|
11086
11365
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
11087
11366
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
11367
|
+
<xsl:call-template name="refine_note-p-style"/>
|
11088
11368
|
<xsl:apply-templates/>
|
11089
11369
|
</fo:inline>
|
11090
11370
|
</xsl:when>
|
11091
11371
|
<xsl:otherwise>
|
11092
11372
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
11373
|
+
<xsl:call-template name="refine_note-p-style"/>
|
11093
11374
|
<xsl:apply-templates/>
|
11094
11375
|
</fo:block>
|
11095
11376
|
</xsl:otherwise>
|
@@ -11181,11 +11462,13 @@
|
|
11181
11462
|
<xsl:choose>
|
11182
11463
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
11183
11464
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
11465
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
11184
11466
|
<xsl:apply-templates/>
|
11185
11467
|
</fo:inline>
|
11186
11468
|
</xsl:when>
|
11187
11469
|
<xsl:otherwise>
|
11188
11470
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
11471
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
11189
11472
|
<xsl:apply-templates/>
|
11190
11473
|
</fo:block>
|
11191
11474
|
</xsl:otherwise>
|
@@ -11198,7 +11481,7 @@
|
|
11198
11481
|
<xsl:attribute-set name="quote-style">
|
11199
11482
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
11200
11483
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
11201
|
-
</xsl:attribute-set>
|
11484
|
+
</xsl:attribute-set> <!-- quote-style -->
|
11202
11485
|
|
11203
11486
|
<xsl:template name="refine_quote-style">
|
11204
11487
|
</xsl:template>
|
@@ -11207,6 +11490,9 @@
|
|
11207
11490
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
11208
11491
|
</xsl:attribute-set>
|
11209
11492
|
|
11493
|
+
<xsl:template name="refine_quote-source-style">
|
11494
|
+
</xsl:template>
|
11495
|
+
|
11210
11496
|
<!-- ====== -->
|
11211
11497
|
<!-- quote -->
|
11212
11498
|
<!-- source -->
|
@@ -11235,6 +11521,7 @@
|
|
11235
11521
|
</fo:block-container>
|
11236
11522
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
11237
11523
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
11524
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
11238
11525
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
11239
11526
|
<xsl:apply-templates select="mn:author"/>
|
11240
11527
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -11297,6 +11584,15 @@
|
|
11297
11584
|
<xsl:attribute-set name="figure-style">
|
11298
11585
|
</xsl:attribute-set>
|
11299
11586
|
|
11587
|
+
<xsl:template name="refine_figure-style">
|
11588
|
+
</xsl:template>
|
11589
|
+
|
11590
|
+
<xsl:attribute-set name="figure-number-style">
|
11591
|
+
</xsl:attribute-set>
|
11592
|
+
|
11593
|
+
<xsl:template name="refine_figure-number-style">
|
11594
|
+
</xsl:template>
|
11595
|
+
|
11300
11596
|
<xsl:attribute-set name="figure-name-style">
|
11301
11597
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
11302
11598
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
@@ -11305,7 +11601,7 @@
|
|
11305
11601
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
11306
11602
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
11307
11603
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
11308
|
-
</xsl:attribute-set>
|
11604
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
11309
11605
|
|
11310
11606
|
<xsl:template name="refine_figure-name-style">
|
11311
11607
|
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -11317,7 +11613,7 @@
|
|
11317
11613
|
<xsl:attribute-set name="image-style">
|
11318
11614
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
11319
11615
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
11320
|
-
</xsl:attribute-set>
|
11616
|
+
</xsl:attribute-set> <!-- image-style -->
|
11321
11617
|
|
11322
11618
|
<xsl:template name="refine_image-style">
|
11323
11619
|
</xsl:template>
|
@@ -11327,14 +11623,51 @@
|
|
11327
11623
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
11328
11624
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
11329
11625
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
11330
|
-
</xsl:attribute-set>
|
11626
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
11627
|
+
|
11628
|
+
<xsl:template name="refine_image-graphic-style">
|
11629
|
+
</xsl:template>
|
11331
11630
|
|
11332
11631
|
<xsl:attribute-set name="figure-source-style">
|
11333
11632
|
</xsl:attribute-set>
|
11334
11633
|
|
11634
|
+
<xsl:template name="refine_figure-source-style">
|
11635
|
+
</xsl:template>
|
11636
|
+
|
11335
11637
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
11336
11638
|
</xsl:attribute-set>
|
11337
11639
|
|
11640
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
11641
|
+
</xsl:template>
|
11642
|
+
|
11643
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
11644
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
11645
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
11646
|
+
|
11647
|
+
<xsl:template name="refine_figure-fn-number-style">
|
11648
|
+
</xsl:template>
|
11649
|
+
|
11650
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
11651
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11652
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11653
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
11654
|
+
|
11655
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
11656
|
+
</xsl:template>
|
11657
|
+
|
11658
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
11659
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11660
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11661
|
+
</xsl:attribute-set>
|
11662
|
+
|
11663
|
+
<xsl:template name="refine_figure-fn-body-style">
|
11664
|
+
<xsl:variable name="key_iso">
|
11665
|
+
</xsl:variable>
|
11666
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
11667
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
11668
|
+
</xsl:if>
|
11669
|
+
</xsl:template>
|
11670
|
+
|
11338
11671
|
<!-- ============================ -->
|
11339
11672
|
<!-- figure's footnotes rendering -->
|
11340
11673
|
<!-- ============================ -->
|
@@ -11447,9 +11780,8 @@
|
|
11447
11780
|
</fo:table-cell>
|
11448
11781
|
<fo:table-cell>
|
11449
11782
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
11450
|
-
<xsl:
|
11451
|
-
|
11452
|
-
</xsl:if>
|
11783
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
11784
|
+
|
11453
11785
|
<!-- <xsl:copy-of select="./node()"/> -->
|
11454
11786
|
<xsl:apply-templates/>
|
11455
11787
|
</fo:block>
|
@@ -11467,6 +11799,7 @@
|
|
11467
11799
|
<xsl:param name="process">false</xsl:param>
|
11468
11800
|
<xsl:if test="$process = 'true'">
|
11469
11801
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
11802
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
11470
11803
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
11471
11804
|
|
11472
11805
|
<!-- tab is padding-right -->
|
@@ -11504,6 +11837,7 @@
|
|
11504
11837
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
11505
11838
|
</xsl:if>
|
11506
11839
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
11840
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
11507
11841
|
<!-- <xsl:value-of select="@reference"/> -->
|
11508
11842
|
<xsl:apply-templates/>
|
11509
11843
|
</fo:inline>
|
@@ -11549,6 +11883,8 @@
|
|
11549
11883
|
|
11550
11884
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
11551
11885
|
|
11886
|
+
<xsl:call-template name="refine_figure-style"/>
|
11887
|
+
|
11552
11888
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
11553
11889
|
<xsl:call-template name="setIDforNamedDestination"/>
|
11554
11890
|
</xsl:for-each>
|
@@ -11592,6 +11928,7 @@
|
|
11592
11928
|
|
11593
11929
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
11594
11930
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
11931
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
11595
11932
|
<xsl:apply-templates/>
|
11596
11933
|
</fo:block>
|
11597
11934
|
</xsl:template>
|
@@ -11721,6 +12058,8 @@
|
|
11721
12058
|
</xsl:variable>
|
11722
12059
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
11723
12060
|
|
12061
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
12062
|
+
|
11724
12063
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
11725
12064
|
<xsl:variable name="scale">
|
11726
12065
|
<xsl:call-template name="getImageScale">
|
@@ -12420,6 +12759,9 @@
|
|
12420
12759
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
12421
12760
|
</xsl:attribute-set> <!-- formula-style -->
|
12422
12761
|
|
12762
|
+
<xsl:template name="refine_formula-style">
|
12763
|
+
</xsl:template>
|
12764
|
+
|
12423
12765
|
<xsl:attribute-set name="formula-stem-block-style">
|
12424
12766
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
12425
12767
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -12490,6 +12832,8 @@
|
|
12490
12832
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
12491
12833
|
<fo:block xsl:use-attribute-sets="formula-style">
|
12492
12834
|
|
12835
|
+
<xsl:call-template name="refine_formula-style"/>
|
12836
|
+
|
12493
12837
|
<fo:table table-layout="fixed" width="100%">
|
12494
12838
|
<fo:table-column column-width="95%"/>
|
12495
12839
|
<fo:table-column column-width="5%"/>
|
@@ -12899,11 +13243,33 @@
|
|
12899
13243
|
<!-- ======================================= -->
|
12900
13244
|
|
12901
13245
|
<xsl:attribute-set name="list-style">
|
12902
|
-
<xsl:attribute name="provisional-distance-between-starts">
|
13246
|
+
<xsl:attribute name="provisional-distance-between-starts">7mm</xsl:attribute>
|
12903
13247
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
12904
13248
|
</xsl:attribute-set> <!-- list-style -->
|
12905
13249
|
|
12906
13250
|
<xsl:template name="refine_list-style">
|
13251
|
+
<xsl:if test="parent::mn:admonition[@type = 'commentary']">
|
13252
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
13253
|
+
</xsl:if>
|
13254
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:p]">
|
13255
|
+
<!-- <xsl:attribute name="margin-top">6pt</xsl:attribute> -->
|
13256
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
13257
|
+
</xsl:if>
|
13258
|
+
|
13259
|
+
<xsl:if test="ancestor::mn:note or ancestor::mn:termnote">
|
13260
|
+
<xsl:attribute name="provisional-distance-between-starts">4mm</xsl:attribute>
|
13261
|
+
</xsl:if>
|
13262
|
+
|
13263
|
+
<xsl:variable name="processing_instruction_type" select="normalize-space(preceding-sibling::*[1]/processing-instruction('list-type'))"/>
|
13264
|
+
<xsl:if test="self::mn:ul and normalize-space($processing_instruction_type) = 'simple'">
|
13265
|
+
<xsl:attribute name="provisional-distance-between-starts">0mm</xsl:attribute>
|
13266
|
+
</xsl:if>
|
13267
|
+
|
13268
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
13269
|
+
<xsl:attribute name="line-height">1.3</xsl:attribute>
|
13270
|
+
<xsl:attribute name="margin-left">6.2mm</xsl:attribute>
|
13271
|
+
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
13272
|
+
</xsl:if>
|
12907
13273
|
</xsl:template> <!-- refine_list-style -->
|
12908
13274
|
|
12909
13275
|
<xsl:attribute-set name="list-name-style">
|
@@ -12912,6 +13278,9 @@
|
|
12912
13278
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12913
13279
|
</xsl:attribute-set> <!-- list-name-style -->
|
12914
13280
|
|
13281
|
+
<xsl:template name="refine_list-name-style">
|
13282
|
+
</xsl:template>
|
13283
|
+
|
12915
13284
|
<xsl:attribute-set name="list-item-style">
|
12916
13285
|
</xsl:attribute-set>
|
12917
13286
|
|
@@ -13147,11 +13516,16 @@
|
|
13147
13516
|
</fo:block-container>
|
13148
13517
|
</xsl:when>
|
13149
13518
|
<xsl:otherwise>
|
13150
|
-
<fo:block
|
13151
|
-
<
|
13152
|
-
<
|
13153
|
-
|
13154
|
-
|
13519
|
+
<fo:block-container margin-left="4mm">
|
13520
|
+
<fo:block-container margin-left="0mm">
|
13521
|
+
<fo:block role="SKIP">
|
13522
|
+
<xsl:apply-templates select="." mode="list">
|
13523
|
+
<xsl:with-param name="indent" select="$indent"/>
|
13524
|
+
</xsl:apply-templates>
|
13525
|
+
</fo:block>
|
13526
|
+
</fo:block-container>
|
13527
|
+
</fo:block-container>
|
13528
|
+
|
13155
13529
|
</xsl:otherwise>
|
13156
13530
|
</xsl:choose>
|
13157
13531
|
</xsl:template>
|
@@ -13226,6 +13600,7 @@
|
|
13226
13600
|
<xsl:param name="process">false</xsl:param>
|
13227
13601
|
<xsl:if test="$process = 'true'">
|
13228
13602
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
13603
|
+
<xsl:call-template name="refine_list-name-style"/>
|
13229
13604
|
<xsl:apply-templates/>
|
13230
13605
|
</fo:block>
|
13231
13606
|
</xsl:if>
|
@@ -13286,26 +13661,54 @@
|
|
13286
13661
|
<!-- END Lists processing -->
|
13287
13662
|
<!-- ===================================== -->
|
13288
13663
|
|
13664
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
13665
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
13666
|
+
<xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
|
13667
|
+
<xsl:attribute name="leader-length">35%</xsl:attribute>
|
13668
|
+
</xsl:attribute-set>
|
13669
|
+
|
13670
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
13671
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
13672
|
+
<xsl:attribute name="rule-thickness">1pt</xsl:attribute>
|
13673
|
+
<xsl:attribute name="leader-length">51mm</xsl:attribute>
|
13674
|
+
</xsl:if>
|
13675
|
+
</xsl:template>
|
13676
|
+
|
13677
|
+
<xsl:attribute-set name="fn-container-body-style">
|
13678
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
13679
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
13680
|
+
</xsl:attribute-set>
|
13681
|
+
|
13682
|
+
<xsl:template name="refine_fn-container-body-style">
|
13683
|
+
</xsl:template>
|
13684
|
+
|
13289
13685
|
<xsl:attribute-set name="fn-reference-style">
|
13290
13686
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
13291
13687
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13292
13688
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
13293
13689
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
13294
|
-
|
13295
|
-
</xsl:attribute-set>
|
13690
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
13296
13691
|
|
13297
13692
|
<xsl:template name="refine_fn-reference-style">
|
13693
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13694
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
13298
13695
|
</xsl:template> <!-- refine_fn-reference-style -->
|
13299
13696
|
|
13300
13697
|
<xsl:attribute-set name="fn-style">
|
13301
13698
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13302
13699
|
</xsl:attribute-set>
|
13303
13700
|
|
13701
|
+
<xsl:template name="refine_fn-style">
|
13702
|
+
</xsl:template>
|
13703
|
+
|
13304
13704
|
<xsl:attribute-set name="fn-num-style">
|
13305
13705
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13306
13706
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
13307
13707
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
13308
|
-
</xsl:attribute-set>
|
13708
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
13709
|
+
|
13710
|
+
<xsl:template name="refine_fn-num-style">
|
13711
|
+
</xsl:template>
|
13309
13712
|
|
13310
13713
|
<xsl:attribute-set name="fn-body-style">
|
13311
13714
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -13314,7 +13717,7 @@
|
|
13314
13717
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
13315
13718
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
13316
13719
|
<!-- <xsl:attribute name="margin-bottom">5pt</xsl:attribute> -->
|
13317
|
-
</xsl:attribute-set>
|
13720
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
13318
13721
|
|
13319
13722
|
<xsl:template name="refine_fn-body-style">
|
13320
13723
|
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -13386,10 +13789,12 @@
|
|
13386
13789
|
<xsl:choose>
|
13387
13790
|
<xsl:when test="ancestor::mn:bibitem">
|
13388
13791
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
13792
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
13389
13793
|
</fn_styles>
|
13390
13794
|
</xsl:when>
|
13391
13795
|
<xsl:otherwise>
|
13392
13796
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
13797
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
13393
13798
|
</fn_styles>
|
13394
13799
|
</xsl:otherwise>
|
13395
13800
|
</xsl:choose>
|
@@ -13399,9 +13804,12 @@
|
|
13399
13804
|
<xsl:copy-of select="."/>
|
13400
13805
|
</xsl:for-each>
|
13401
13806
|
|
13402
|
-
|
13807
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13808
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
13403
13809
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
13404
|
-
</xsl:if>
|
13810
|
+
</xsl:if> -->
|
13811
|
+
|
13812
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
13405
13813
|
|
13406
13814
|
<xsl:call-template name="insert_basic_link">
|
13407
13815
|
<xsl:with-param name="element">
|
@@ -13424,10 +13832,12 @@
|
|
13424
13832
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
13425
13833
|
|
13426
13834
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
13835
|
+
<xsl:call-template name="refine_fn-style"/>
|
13427
13836
|
<xsl:copy-of select="$footnote_inline"/>
|
13428
13837
|
<fo:footnote-body role="Note">
|
13429
13838
|
|
13430
13839
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
13840
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
13431
13841
|
|
13432
13842
|
<xsl:variable name="fn_block">
|
13433
13843
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -13528,6 +13938,9 @@
|
|
13528
13938
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
13529
13939
|
</xsl:attribute-set> <!-- admonition-style -->
|
13530
13940
|
|
13941
|
+
<xsl:template name="refine_admonition-style">
|
13942
|
+
</xsl:template>
|
13943
|
+
|
13531
13944
|
<xsl:attribute-set name="admonition-container-style">
|
13532
13945
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
13533
13946
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -13535,13 +13948,23 @@
|
|
13535
13948
|
<xsl:attribute name="padding-bottom">2mm</xsl:attribute>
|
13536
13949
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
13537
13950
|
|
13951
|
+
<xsl:template name="refine_admonition-container-style">
|
13952
|
+
</xsl:template>
|
13953
|
+
|
13538
13954
|
<xsl:attribute-set name="admonition-name-style">
|
13539
13955
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
13540
13956
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
13541
13957
|
|
13958
|
+
<xsl:template name="refine_admonition-name-style">
|
13959
|
+
</xsl:template>
|
13960
|
+
|
13542
13961
|
<xsl:attribute-set name="admonition-p-style">
|
13543
13962
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
13544
13963
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
13964
|
+
|
13965
|
+
<xsl:template name="refine_admonition-p-style">
|
13966
|
+
</xsl:template>
|
13967
|
+
|
13545
13968
|
<!-- end admonition -->
|
13546
13969
|
|
13547
13970
|
<!-- ================ -->
|
@@ -13551,6 +13974,8 @@
|
|
13551
13974
|
<xsl:call-template name="setNamedDestination"/>
|
13552
13975
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
13553
13976
|
|
13977
|
+
<xsl:call-template name="refine_admonition-style"/>
|
13978
|
+
|
13554
13979
|
<xsl:call-template name="setBlockSpanAll"/>
|
13555
13980
|
<xsl:if test="@type = 'editorial'">
|
13556
13981
|
<xsl:attribute name="border">none</xsl:attribute>
|
@@ -13567,6 +13992,8 @@
|
|
13567
13992
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
13568
13993
|
</xsl:if>
|
13569
13994
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
13995
|
+
|
13996
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
13570
13997
|
<xsl:if test="@type = 'editorial' or not(@type)">
|
13571
13998
|
<xsl:attribute name="padding">0mm</xsl:attribute>
|
13572
13999
|
</xsl:if>
|
@@ -13576,6 +14003,7 @@
|
|
13576
14003
|
</xsl:if>
|
13577
14004
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
13578
14005
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14006
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
13579
14007
|
<fo:inline>
|
13580
14008
|
<xsl:call-template name="displayAdmonitionName">
|
13581
14009
|
<xsl:with-param name="sep">: </xsl:with-param>
|
@@ -13640,6 +14068,7 @@
|
|
13640
14068
|
</xsl:when>
|
13641
14069
|
<xsl:otherwise>
|
13642
14070
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14071
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
13643
14072
|
<xsl:apply-templates/>
|
13644
14073
|
</fo:block>
|
13645
14074
|
</xsl:otherwise>
|
@@ -13651,21 +14080,43 @@
|
|
13651
14080
|
<!-- END Admonition -->
|
13652
14081
|
<!-- ================ -->
|
13653
14082
|
|
14083
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
14084
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
14085
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
14086
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
14087
|
+
<xsl:attribute name="margin-bottom">36pt</xsl:attribute>
|
14088
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
14089
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
14090
|
+
</xsl:attribute-set>
|
14091
|
+
|
14092
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
14093
|
+
|
14094
|
+
</xsl:template>
|
14095
|
+
|
13654
14096
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
13655
14097
|
<xsl:attribute-set name="bibitem-normative-style">
|
13656
14098
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
13657
14099
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13658
14100
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
13659
14101
|
|
14102
|
+
<xsl:template name="refine_bibitem-normative-style">
|
14103
|
+
</xsl:template>
|
14104
|
+
|
13660
14105
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
13661
14106
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
13662
14107
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
13663
14108
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13664
14109
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
13665
14110
|
|
14111
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
14112
|
+
</xsl:template>
|
14113
|
+
|
13666
14114
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
13667
14115
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
13668
14116
|
|
14117
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
14118
|
+
</xsl:template>
|
14119
|
+
|
13669
14120
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
13670
14121
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
13671
14122
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -13674,20 +14125,40 @@
|
|
13674
14125
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
13675
14126
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
13676
14127
|
|
14128
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
14129
|
+
<xsl:variable name="bibitem_label">
|
14130
|
+
<xsl:apply-templates select="mn:biblio-tag">
|
14131
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
14132
|
+
</xsl:apply-templates>
|
14133
|
+
</xsl:variable>
|
14134
|
+
<xsl:if test="string-length(normalize-space($bibitem_label)) > 5">
|
14135
|
+
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
14136
|
+
</xsl:if>
|
14137
|
+
</xsl:template>
|
14138
|
+
|
13677
14139
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
13678
14140
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13679
14141
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
13680
14142
|
</xsl:attribute-set>
|
13681
14143
|
|
14144
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
14145
|
+
</xsl:template>
|
14146
|
+
|
13682
14147
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
13683
14148
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
13684
14149
|
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
13685
14150
|
</xsl:attribute-set>
|
13686
14151
|
|
14152
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
14153
|
+
</xsl:template>
|
14154
|
+
|
13687
14155
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
13688
14156
|
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
13689
14157
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
13690
14158
|
|
14159
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
14160
|
+
</xsl:template>
|
14161
|
+
|
13691
14162
|
<!-- footnote reference number for bibitem, in the text -->
|
13692
14163
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
13693
14164
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -13696,6 +14167,9 @@
|
|
13696
14167
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
13697
14168
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
13698
14169
|
|
14170
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
14171
|
+
</xsl:template>
|
14172
|
+
|
13699
14173
|
<!-- footnote number on the page bottom -->
|
13700
14174
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
13701
14175
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -13715,6 +14189,9 @@
|
|
13715
14189
|
<xsl:attribute-set name="references-non-normative-style">
|
13716
14190
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
13717
14191
|
|
14192
|
+
<xsl:template name="refine_references-non-normative-style">
|
14193
|
+
</xsl:template>
|
14194
|
+
|
13718
14195
|
<!-- ======================= -->
|
13719
14196
|
<!-- Bibliography rendering -->
|
13720
14197
|
<!-- ======================= -->
|
@@ -13755,6 +14232,7 @@
|
|
13755
14232
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
13756
14233
|
|
13757
14234
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
14235
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
13758
14236
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
13759
14237
|
</fo:block>
|
13760
14238
|
</xsl:template> <!-- references -->
|
@@ -13768,29 +14246,25 @@
|
|
13768
14246
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
13769
14247
|
<xsl:call-template name="setNamedDestination"/>
|
13770
14248
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
14249
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
14250
|
+
|
13771
14251
|
<xsl:call-template name="processBibitem"/>
|
13772
14252
|
</fo:block>
|
13773
14253
|
|
13774
14254
|
</xsl:template> <!-- bibitem -->
|
13775
14255
|
|
13776
14256
|
<!-- Bibliography (non-normative references) -->
|
13777
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
14257
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
13778
14258
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
13779
14259
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
13780
14260
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
13781
14261
|
<xsl:call-template name="setNamedDestination"/>
|
13782
14262
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
13783
|
-
|
13784
|
-
|
13785
|
-
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
13786
|
-
</xsl:apply-templates>
|
13787
|
-
</xsl:variable>
|
13788
|
-
<xsl:if test="string-length(normalize-space($bibitem_label)) > 5">
|
13789
|
-
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
13790
|
-
</xsl:if>
|
14263
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
14264
|
+
|
13791
14265
|
<fo:list-item>
|
13792
14266
|
<fo:list-item-label end-indent="label-end()">
|
13793
|
-
<fo:block role="SKIP">
|
14267
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
13794
14268
|
<fo:inline role="SKIP">
|
13795
14269
|
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
13796
14270
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
@@ -13803,6 +14277,7 @@
|
|
13803
14277
|
</fo:list-item-label>
|
13804
14278
|
<fo:list-item-body start-indent="body-start()">
|
13805
14279
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
14280
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
13806
14281
|
<xsl:call-template name="processBibitem">
|
13807
14282
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
13808
14283
|
</xsl:call-template>
|
@@ -13813,12 +14288,17 @@
|
|
13813
14288
|
|
13814
14289
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
13815
14290
|
|
14291
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
14292
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
14293
|
+
|
13816
14294
|
<xsl:template name="insertListItem_Bibitem">
|
13817
14295
|
<xsl:choose>
|
13818
14296
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
13819
14297
|
<xsl:otherwise>
|
13820
14298
|
<xsl:call-template name="setNamedDestination"/>
|
13821
14299
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
14300
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
14301
|
+
|
13822
14302
|
<fo:list-item-label end-indent="label-end()">
|
13823
14303
|
<fo:block role="SKIP">
|
13824
14304
|
<fo:inline role="SKIP">
|
@@ -13829,16 +14309,18 @@
|
|
13829
14309
|
</fo:block>
|
13830
14310
|
</fo:list-item-label>
|
13831
14311
|
<fo:list-item-body start-indent="body-start()">
|
13832
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
14312
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
14313
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
13833
14314
|
<xsl:call-template name="processBibitem">
|
13834
14315
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
13835
14316
|
</xsl:call-template>
|
13836
14317
|
</fo:block>
|
14318
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
13837
14319
|
</fo:list-item-body>
|
13838
14320
|
</fo:list-item>
|
13839
14321
|
</xsl:otherwise>
|
13840
14322
|
</xsl:choose>
|
13841
|
-
<xsl:apply-templates select="following-sibling::*[
|
14323
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
13842
14324
|
<xsl:with-param name="skip">false</xsl:with-param>
|
13843
14325
|
</xsl:apply-templates>
|
13844
14326
|
</xsl:template>
|
@@ -13854,25 +14336,16 @@
|
|
13854
14336
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
13855
14337
|
</xsl:apply-templates>
|
13856
14338
|
<xsl:apply-templates select="mn:formattedref"/>
|
14339
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
13857
14340
|
<!-- end bibitem processing -->
|
13858
|
-
|
13859
|
-
<xsl:call-template name="processBibliographyNote"/>
|
13860
14341
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
13861
14342
|
|
13862
|
-
<xsl:template name="
|
13863
|
-
|
13864
|
-
|
13865
|
-
|
13866
|
-
<xsl:copy> <!-- skip @id -->
|
13867
|
-
<xsl:copy-of select="node()"/>
|
13868
|
-
</xsl:copy>
|
13869
|
-
</xsl:element>
|
13870
|
-
</xsl:variable>
|
13871
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
13872
|
-
<xsl:call-template name="note"/>
|
13873
|
-
</xsl:for-each> -->
|
14343
|
+
<xsl:template name="processBibitemFollowingNotes">
|
14344
|
+
<!-- current context is bibitem element -->
|
14345
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
14346
|
+
<xsl:for-each select="following-sibling::mn:note[preceding-sibling::mn:bibitem[1][@id = $bibitem_id] and preceding-sibling::*[1][self::mn:note or self::mn:bibitem]]">
|
13874
14347
|
<xsl:call-template name="note"/>
|
13875
|
-
</xsl:
|
14348
|
+
</xsl:for-each>
|
13876
14349
|
</xsl:template>
|
13877
14350
|
|
13878
14351
|
<xsl:template match="mn:title" mode="title">
|
@@ -14072,11 +14545,17 @@
|
|
14072
14545
|
<!-- Index section styles -->
|
14073
14546
|
<xsl:attribute-set name="indexsect-title-style">
|
14074
14547
|
<xsl:attribute name="role">H1</xsl:attribute>
|
14075
|
-
</xsl:attribute-set>
|
14548
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
14549
|
+
|
14550
|
+
<xsl:template name="refine_indexsect-title-style">
|
14551
|
+
</xsl:template>
|
14076
14552
|
|
14077
14553
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
14078
14554
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
14079
|
-
</xsl:attribute-set>
|
14555
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
14556
|
+
|
14557
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
14558
|
+
</xsl:template>
|
14080
14559
|
<!-- End Index section styles -->
|
14081
14560
|
|
14082
14561
|
<!-- =================== -->
|
@@ -14270,6 +14749,7 @@
|
|
14270
14749
|
|
14271
14750
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
14272
14751
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
14752
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
14273
14753
|
<!-- Index -->
|
14274
14754
|
<xsl:apply-templates/>
|
14275
14755
|
</fo:block>
|
@@ -14278,6 +14758,7 @@
|
|
14278
14758
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
14279
14759
|
<!-- Letter A, B, C, ... -->
|
14280
14760
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
14761
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
14281
14762
|
<xsl:apply-templates/>
|
14282
14763
|
</fo:block>
|
14283
14764
|
</xsl:template>
|
@@ -14481,9 +14962,15 @@
|
|
14481
14962
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
14482
14963
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
14483
14964
|
|
14965
|
+
<xsl:template name="refine_toc-leader-style">
|
14966
|
+
</xsl:template>
|
14967
|
+
|
14484
14968
|
<xsl:attribute-set name="toc-pagenumber-style">
|
14485
14969
|
</xsl:attribute-set>
|
14486
14970
|
|
14971
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
14972
|
+
</xsl:template>
|
14973
|
+
|
14487
14974
|
<!-- List of Figures, Tables -->
|
14488
14975
|
<xsl:attribute-set name="toc-listof-title-style">
|
14489
14976
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
@@ -14503,6 +14990,9 @@
|
|
14503
14990
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
14504
14991
|
</xsl:attribute-set>
|
14505
14992
|
|
14993
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
14994
|
+
</xsl:template>
|
14995
|
+
|
14506
14996
|
<xsl:attribute-set name="toc-listof-item-style">
|
14507
14997
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14508
14998
|
<xsl:attribute name="provisional-distance-between-starts">22.5mm</xsl:attribute>
|
@@ -14511,6 +15001,9 @@
|
|
14511
15001
|
<xsl:attribute name="margin-left">2mm</xsl:attribute>
|
14512
15002
|
</xsl:attribute-set>
|
14513
15003
|
|
15004
|
+
<xsl:template name="refine_toc-listof-item-style">
|
15005
|
+
</xsl:template>
|
15006
|
+
|
14514
15007
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
14515
15008
|
<xsl:variable name="nodes_preface_">
|
14516
15009
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -15622,23 +16115,55 @@
|
|
15622
16115
|
<!-- Ruby text (CJK languages) rendering -->
|
15623
16116
|
<!-- ===================================== -->
|
15624
16117
|
<!-- ===================================== -->
|
16118
|
+
|
16119
|
+
<xsl:attribute-set name="ruby-style">
|
16120
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
16121
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
16122
|
+
</xsl:attribute-set>
|
16123
|
+
|
16124
|
+
<xsl:template name="refine_ruby-style">
|
16125
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
16126
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
16127
|
+
</xsl:if>
|
16128
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
16129
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
16130
|
+
<!-- Example: width="2em" -->
|
16131
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
16132
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
16133
|
+
<xsl:variable name="text_width">
|
16134
|
+
<xsl:choose>
|
16135
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
16136
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
16137
|
+
</xsl:choose>
|
16138
|
+
</xsl:variable>
|
16139
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
16140
|
+
</xsl:template> <!-- refine_ruby-style -->
|
16141
|
+
|
16142
|
+
<xsl:attribute-set name="rb-style">
|
16143
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
16144
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
16145
|
+
</xsl:attribute-set>
|
16146
|
+
|
16147
|
+
<xsl:template name="refine_rb-style">
|
16148
|
+
</xsl:template>
|
16149
|
+
|
16150
|
+
<xsl:attribute-set name="rt-style">
|
16151
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
16152
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
16153
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
16154
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
16155
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
16156
|
+
</xsl:attribute-set>
|
16157
|
+
|
16158
|
+
<xsl:template name="refine_rt-style">
|
16159
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
16160
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
16161
|
+
</xsl:if>
|
16162
|
+
</xsl:template>
|
16163
|
+
|
15625
16164
|
<xsl:template match="mn:ruby">
|
15626
|
-
<fo:inline-container
|
15627
|
-
<xsl:
|
15628
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
15629
|
-
</xsl:if>
|
15630
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
15631
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
15632
|
-
<!-- Example: width="2em" -->
|
15633
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
15634
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
15635
|
-
<xsl:variable name="text_width">
|
15636
|
-
<xsl:choose>
|
15637
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
15638
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
15639
|
-
</xsl:choose>
|
15640
|
-
</xsl:variable>
|
15641
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
16165
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
16166
|
+
<xsl:call-template name="refine_ruby-style"/>
|
15642
16167
|
|
15643
16168
|
<xsl:choose>
|
15644
16169
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -15656,17 +16181,14 @@
|
|
15656
16181
|
</xsl:template>
|
15657
16182
|
|
15658
16183
|
<xsl:template match="mn:rb">
|
15659
|
-
<fo:block
|
16184
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
15660
16185
|
</xsl:template>
|
15661
16186
|
|
15662
16187
|
<xsl:template match="mn:rt">
|
15663
|
-
<fo:block
|
15664
|
-
<xsl:
|
15665
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
15666
|
-
</xsl:if>
|
16188
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
16189
|
+
<xsl:call-template name="refine_rt-style"/>
|
15667
16190
|
<xsl:apply-templates/>
|
15668
16191
|
</fo:block>
|
15669
|
-
|
15670
16192
|
</xsl:template>
|
15671
16193
|
|
15672
16194
|
<!-- ===================================== -->
|
@@ -15675,6 +16197,27 @@
|
|
15675
16197
|
<!-- ===================================== -->
|
15676
16198
|
<!-- ===================================== -->
|
15677
16199
|
|
16200
|
+
<xsl:attribute-set name="annex-title-style">
|
16201
|
+
</xsl:attribute-set>
|
16202
|
+
|
16203
|
+
<xsl:template name="refine_annex-title-style">
|
16204
|
+
</xsl:template>
|
16205
|
+
|
16206
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
16207
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
16208
|
+
<xsl:attribute name="font-size">23pt</xsl:attribute>
|
16209
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
16210
|
+
<xsl:attribute name="margin-top">84pt</xsl:attribute>
|
16211
|
+
<xsl:attribute name="margin-bottom">52pt</xsl:attribute>
|
16212
|
+
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
16213
|
+
</xsl:attribute-set>
|
16214
|
+
|
16215
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
16216
|
+
<xsl:if test="(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '') or $current_template = 'standard'">
|
16217
|
+
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
16218
|
+
</xsl:if>
|
16219
|
+
</xsl:template>
|
16220
|
+
|
15678
16221
|
<xsl:template name="processPrefaceSectionsDefault">
|
15679
16222
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
15680
16223
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -16013,10 +16556,17 @@
|
|
16013
16556
|
</xsl:choose>
|
16014
16557
|
</xsl:template>
|
16015
16558
|
|
16559
|
+
<xsl:attribute-set name="clause-style">
|
16560
|
+
|
16561
|
+
</xsl:attribute-set>
|
16562
|
+
|
16563
|
+
<xsl:template name="refine_clause-style">
|
16564
|
+
</xsl:template>
|
16565
|
+
|
16016
16566
|
<!-- main sections -->
|
16017
16567
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
16018
16568
|
<xsl:call-template name="setNamedDestination"/>
|
16019
|
-
<fo:block>
|
16569
|
+
<fo:block role="Sect">
|
16020
16570
|
<xsl:call-template name="setId"/>
|
16021
16571
|
|
16022
16572
|
<xsl:call-template name="sections_element_style"/>
|
@@ -16049,6 +16599,14 @@
|
|
16049
16599
|
</xsl:template>
|
16050
16600
|
|
16051
16601
|
<xsl:template name="sections_element_style">
|
16602
|
+
<xsl:variable name="pos"><xsl:number count="*"/></xsl:variable>
|
16603
|
+
<xsl:if test="$pos >= 2">
|
16604
|
+
<xsl:attribute name="space-before">
|
16605
|
+
<xsl:for-each select="mn:fmt-title[1]">
|
16606
|
+
<xsl:call-template name="getTitleMarginTop"/>
|
16607
|
+
</xsl:for-each>
|
16608
|
+
</xsl:attribute>
|
16609
|
+
</xsl:if>
|
16052
16610
|
</xsl:template> <!-- sections_element_style -->
|
16053
16611
|
|
16054
16612
|
<xsl:template match="//mn:metanorma/mn:preface/*" priority="2" name="preface_node"> <!-- /*/mn:preface/* -->
|
@@ -16140,6 +16698,10 @@
|
|
16140
16698
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
16141
16699
|
</xsl:template>
|
16142
16700
|
|
16701
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
16702
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
16703
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
16704
|
+
|
16143
16705
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
16144
16706
|
<xsl:template name="insert_basic_link">
|
16145
16707
|
<xsl:param name="element"/>
|