metanorma-ieee 1.5.3 → 1.5.4
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/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/i18n-en.yaml +2 -0
- data/lib/isodoc/ieee/ieee.amendment.xsl +1131 -438
- data/lib/isodoc/ieee/ieee.standard.xsl +1131 -438
- data/lib/isodoc/ieee/metadata.rb +22 -11
- data/lib/isodoc/ieee/presentation_bibitem.rb +102 -0
- data/lib/isodoc/ieee/presentation_ref.rb +149 -96
- data/lib/isodoc/ieee/presentation_terms.rb +52 -12
- data/lib/isodoc/ieee/presentation_xml_convert.rb +15 -67
- 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 +56 -9
- data/lib/metanorma/ieee/cleanup_boilerplate.rb +1 -4
- data/lib/metanorma/ieee/cleanup_ref.rb +0 -98
- data/lib/metanorma/ieee/cleanup_ref_fn.rb +116 -0
- data/lib/metanorma/ieee/front.rb +26 -0
- data/lib/metanorma/ieee/isodoc.rng +19 -1
- 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
- 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
|
|
@@ -564,34 +595,52 @@
|
|
564
595
|
<xsl:with-param name="doctype" select="$doctype"/>
|
565
596
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
566
597
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
567
|
-
<xsl:with-param name="hideHeader">true</xsl:with-param>
|
598
|
+
<!-- <xsl:with-param name="hideHeader">true</xsl:with-param> -->
|
599
|
+
<xsl:with-param name="hideFooter">true</xsl:with-param>
|
568
600
|
</xsl:call-template>
|
569
601
|
|
570
602
|
<fo:flow flow-name="xsl-region-body">
|
571
|
-
<fo:block text-align="right" margin-top="2mm"
|
603
|
+
<fo:block text-align="right" margin-top="-11.5mm" id="__internal_layout__titlepage_{generate-id()}"> <!-- margin-top="2mm" -->
|
572
604
|
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
573
605
|
<fo:block font-size="9pt"><xsl:value-of select="$history_text"/></fo:block>
|
574
606
|
</fo:block>
|
575
607
|
|
576
|
-
<fo:block
|
577
|
-
<
|
578
|
-
|
608
|
+
<fo:block-container width="105%"> <!-- width="135mm" -->
|
609
|
+
<fo:block font-weight="bold" space-before="25.5mm" line-height="1.15"> <!-- space-before="13mm" -->
|
610
|
+
<xsl:copy-of select="$title_standard_coverpage"/>
|
611
|
+
</fo:block>
|
612
|
+
</fo:block-container>
|
579
613
|
|
580
|
-
<
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
614
|
+
<xsl:if test="$committee != ''">
|
615
|
+
<fo:block font-size="10pt" space-before="11mm" space-after="4pt"><xsl:value-of select="$developed_by"/></fo:block>
|
616
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
617
|
+
<!-- Example: LAN/MAN Standards Committee -->
|
618
|
+
<fo:block line-height="1.12"><xsl:value-of select="$committee"/></fo:block>
|
619
|
+
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
620
|
+
<!-- Example: IEEE Computer Society -->
|
621
|
+
<fo:block><xsl:value-of select="$society"/></fo:block>
|
622
|
+
</fo:block>
|
623
|
+
</xsl:if>
|
624
|
+
|
625
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
626
|
+
<fo:block font-size="10pt" space-before="9mm" space-after="4pt"><xsl:value-of select="$sponsored_by"/></fo:block>
|
627
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm">
|
628
|
+
<!-- Sponsored by the
|
629
|
+
LAN/MAN Standards Committee -->
|
630
|
+
<xsl:for-each select="$enabler/mn:subdivision">
|
631
|
+
<fo:block line-height="1.12"><xsl:value-of select="mn:subdivision/mn:name"/></fo:block>
|
632
|
+
<fo:block font-weight="normal" font-size="10pt">of the</fo:block>
|
633
|
+
<fo:block><xsl:value-of select="concat(../mn:abbreviation, ' ', mn:name)"/></fo:block>
|
634
|
+
<xsl:if test="position() != last()">
|
635
|
+
<fo:block font-weight="normal" font-size="10pt">and the</fo:block>
|
636
|
+
</xsl:if>
|
637
|
+
</xsl:for-each>
|
638
|
+
</fo:block>
|
639
|
+
</xsl:if>
|
591
640
|
|
592
641
|
<fo:block font-size="10pt" space-before="8mm" space-after="4pt">Approved <xsl:value-of select="$approved_date"/></fo:block>
|
593
642
|
<!-- Example: IEEE SA Standards Board -->
|
594
|
-
<fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
|
643
|
+
<fo:block font-size="11pt" font-weight="bold" margin-top="4mm"><xsl:value-of select="$approved_by"/></fo:block>
|
595
644
|
|
596
645
|
<fo:block break-after="page"/>
|
597
646
|
|
@@ -628,7 +677,12 @@
|
|
628
677
|
</fo:flow>
|
629
678
|
</fo:page-sequence>
|
630
679
|
|
631
|
-
|
680
|
+
<!-- Example:
|
681
|
+
Important Notices and Disclaimers Concerning IEEE Standards Documents
|
682
|
+
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.”
|
683
|
+
...
|
684
|
+
-->
|
685
|
+
<fo:page-sequence master-reference="document-draft-two-columns" force-page-count="no-force">
|
632
686
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
633
687
|
<xsl:call-template name="insertHeaderFooter">
|
634
688
|
<xsl:with-param name="document_id" select="$document_id"/>
|
@@ -640,14 +694,12 @@
|
|
640
694
|
</xsl:call-template>
|
641
695
|
|
642
696
|
<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>
|
697
|
+
|
698
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
699
|
+
|
700
|
+
<xsl:if test="not(/mn:metanorma/mn:boilerplate/mn:legal-statement/*)">
|
701
|
+
<fo:block> </fo:block>
|
702
|
+
</xsl:if>
|
651
703
|
</fo:flow>
|
652
704
|
</fo:page-sequence>
|
653
705
|
</xsl:when> <!-- $current_template = 'standard' -->
|
@@ -828,19 +880,34 @@
|
|
828
880
|
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:abstract" mode="flatxml"/>
|
829
881
|
</item>
|
830
882
|
|
831
|
-
<xsl:for-each select="/*/mn:sections/*"> <!-- each section starts with a new page -->
|
883
|
+
<xsl:for-each select="/*/mn:sections/*[not(contains(@class, 'zzSTDTitle'))]"> <!-- each section starts with a new page -->
|
832
884
|
<item>
|
885
|
+
<xsl:if test="position() = 1">
|
886
|
+
<xsl:copy-of select="ancestor::mn:sections/*[contains(@class, 'zzSTDTitle')]"/> <!-- put title on the 1st page -->
|
887
|
+
</xsl:if>
|
833
888
|
<xsl:apply-templates select="." mode="flatxml"/>
|
834
889
|
</item>
|
835
890
|
</xsl:for-each>
|
836
891
|
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
837
892
|
|
838
893
|
<xsl:when test="$current_template = 'standard'">
|
839
|
-
<xsl:
|
840
|
-
<
|
841
|
-
<xsl:
|
842
|
-
|
843
|
-
|
894
|
+
<xsl:choose>
|
895
|
+
<xsl:when test="$page_break_between_sections = 'true'">
|
896
|
+
<xsl:for-each select="/*/mn:sections/*[not(contains(@class, 'zzSTDTitle'))]"> <!-- each section starts with a new page -->
|
897
|
+
<item>
|
898
|
+
<xsl:if test="position() = 1">
|
899
|
+
<xsl:copy-of select="ancestor::mn:sections/*[contains(@class, 'zzSTDTitle')]"/> <!-- put title on the 1st page -->
|
900
|
+
</xsl:if>
|
901
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
902
|
+
</item>
|
903
|
+
</xsl:for-each>
|
904
|
+
</xsl:when>
|
905
|
+
<xsl:otherwise>
|
906
|
+
<item>
|
907
|
+
<xsl:apply-templates select="/*/mn:sections/*" mode="flatxml"/>
|
908
|
+
</item>
|
909
|
+
</xsl:otherwise>
|
910
|
+
</xsl:choose>
|
844
911
|
</xsl:when> <!-- $current_template = 'standard' -->
|
845
912
|
|
846
913
|
<xsl:otherwise>
|
@@ -868,6 +935,12 @@
|
|
868
935
|
|
869
936
|
</xsl:variable>
|
870
937
|
|
938
|
+
<xsl:if test="$debug = 'true'">
|
939
|
+
<redirect:write file="page_items.xml">
|
940
|
+
<xsl:copy-of select="$structured_xml_"/>
|
941
|
+
</redirect:write>
|
942
|
+
</xsl:if>
|
943
|
+
|
871
944
|
<!-- page break before each section -->
|
872
945
|
<xsl:variable name="structured_xml">
|
873
946
|
<xsl:for-each select="xalan:nodeset($structured_xml_)/item[*]">
|
@@ -907,7 +980,7 @@
|
|
907
980
|
</xsl:if>
|
908
981
|
|
909
982
|
<xsl:if test="$current_template = 'standard'">
|
910
|
-
<xsl:attribute name="master-reference">document-standard</xsl:attribute>
|
983
|
+
<xsl:attribute name="master-reference">document-standard<xsl:if test="position() = 1">-first</xsl:if></xsl:attribute>
|
911
984
|
<xsl:if test="@orientation = 'landscape'">
|
912
985
|
<xsl:attribute name="master-reference">document-standard<xsl:value-of select="@orientation"/></xsl:attribute>
|
913
986
|
</xsl:if>
|
@@ -1022,16 +1095,17 @@
|
|
1022
1095
|
<xsl:template name="cover-page">
|
1023
1096
|
<xsl:param name="num"/>
|
1024
1097
|
<xsl:param name="document_id"/>
|
1098
|
+
<xsl:param name="docidentifier_draft"/>
|
1025
1099
|
<xsl:param name="title"/>
|
1026
1100
|
<xsl:param name="society"/>
|
1027
1101
|
<xsl:param name="copyright_holder"/>
|
1028
1102
|
<xsl:param name="copyright_year"/>
|
1029
1103
|
<xsl:param name="designation"/>
|
1030
|
-
<xsl:param name="draft_number"/>
|
1104
|
+
<!-- <xsl:param name="draft_number"/> -->
|
1031
1105
|
<xsl:param name="committee"/>
|
1106
|
+
<xsl:param name="enabler"/>
|
1032
1107
|
<xsl:param name="approved_date"/>
|
1033
1108
|
<xsl:param name="approved_by"/>
|
1034
|
-
<xsl:param name="title_intro"/>
|
1035
1109
|
<xsl:param name="title_main"/>
|
1036
1110
|
<xsl:param name="standard_number"/>
|
1037
1111
|
<xsl:param name="history_text"/>
|
@@ -1081,29 +1155,60 @@
|
|
1081
1155
|
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
1082
1156
|
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
1083
1157
|
</xsl:if>
|
1084
|
-
<xsl:text>P</xsl:text>
|
1158
|
+
<!-- <xsl:text>P</xsl:text>
|
1085
1159
|
<xsl:value-of select="$designation"/>
|
1086
1160
|
<xsl:text>™/D</xsl:text>
|
1087
|
-
<xsl:value-of select="$draft_number"/>
|
1161
|
+
<xsl:value-of select="$draft_number"/> -->
|
1162
|
+
|
1163
|
+
<!-- add tm after number, i.e. from P2830/D1 to P2830™/D1 -->
|
1164
|
+
<xsl:variable name="regex_tm" select="concat('(', $designation, ')', '(-\/)?')"/>
|
1165
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($docidentifier_draft), $regex_tm,'$1™$2')"/>
|
1166
|
+
|
1088
1167
|
<xsl:value-of select="$linebreak"/>
|
1089
|
-
<xsl:copy-of select="$title_prefix"/>
|
1168
|
+
<!-- <xsl:copy-of select="$title_prefix"/> -->
|
1090
1169
|
<xsl:copy-of select="$title"/>
|
1091
1170
|
|
1092
1171
|
<!-- <xsl:copy-of select="$draft_title_part"/> -->
|
1093
1172
|
</fo:block>
|
1094
|
-
|
1095
|
-
<
|
1096
|
-
|
1097
|
-
|
1098
|
-
<
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
<
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1173
|
+
|
1174
|
+
<xsl:if test="$committee != ''">
|
1175
|
+
<fo:block><xsl:value-of select="$developed_by"/></fo:block>
|
1176
|
+
<fo:block> </fo:block>
|
1177
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1178
|
+
<!-- <Committee Name> -->
|
1179
|
+
<xsl:value-of select="$committee"/>
|
1180
|
+
</fo:block>
|
1181
|
+
<fo:block>of the</fo:block>
|
1182
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1183
|
+
<!-- IEEE <Society Name> -->
|
1184
|
+
<xsl:value-of select="$society"/>
|
1185
|
+
</fo:block>
|
1186
|
+
<fo:block> </fo:block>
|
1187
|
+
<fo:block> </fo:block>
|
1188
|
+
</xsl:if>
|
1189
|
+
|
1190
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
1191
|
+
<!-- Sponsored by the
|
1192
|
+
LAN/MAN Standards Committee -->
|
1193
|
+
<fo:block><xsl:value-of select="$sponsored_by"/></fo:block>
|
1194
|
+
<fo:block> </fo:block>
|
1195
|
+
<xsl:for-each select="$enabler/mn:subdivision">
|
1196
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1197
|
+
<xsl:value-of select="mn:subdivision/mn:name"/>
|
1198
|
+
</fo:block>
|
1199
|
+
<fo:block>of the</fo:block>
|
1200
|
+
<fo:block font-size="11pt" font-weight="bold">
|
1201
|
+
<xsl:value-of select="../mn:abbreviation"/><xsl:text> </xsl:text>
|
1202
|
+
<xsl:value-of select="mn:name"/>
|
1203
|
+
</fo:block>
|
1204
|
+
<xsl:if test="position() != last()">
|
1205
|
+
<fo:block>and the</fo:block>
|
1206
|
+
</xsl:if>
|
1207
|
+
</xsl:for-each>
|
1208
|
+
<fo:block> </fo:block>
|
1209
|
+
<fo:block> </fo:block>
|
1210
|
+
</xsl:if>
|
1211
|
+
|
1107
1212
|
<fo:block>
|
1108
1213
|
<!-- Approved <Date Approved> -->
|
1109
1214
|
<xsl:text>Approved </xsl:text>
|
@@ -1174,13 +1279,13 @@
|
|
1174
1279
|
|
1175
1280
|
<xsl:when test="$current_template = 'standard'">
|
1176
1281
|
<xsl:call-template name="insertCoverPage_Standard">
|
1177
|
-
<xsl:with-param name="title_intro" select="$title_intro"/>
|
1178
1282
|
<xsl:with-param name="title_main" select="$title_main"/>
|
1179
1283
|
<xsl:with-param name="society" select="$society"/>
|
1180
1284
|
<xsl:with-param name="committee" select="$committee"/>
|
1285
|
+
<xsl:with-param name="enabler" select="$enabler"/>
|
1181
1286
|
<xsl:with-param name="standard_number" select="$standard_number"/>
|
1182
1287
|
<xsl:with-param name="history" select="$history_text"/>
|
1183
|
-
<xsl:with-param name="standard_title_prefix" select="$title_prefix"/>
|
1288
|
+
<!-- <xsl:with-param name="standard_title_prefix" select="$title_prefix"/> -->
|
1184
1289
|
<xsl:with-param name="cutoff_date" select="$cutoff_date"/>
|
1185
1290
|
<xsl:with-param name="expiration_date" select="$expiration_date"/>
|
1186
1291
|
</xsl:call-template>
|
@@ -1451,17 +1556,9 @@
|
|
1451
1556
|
<fo:block>
|
1452
1557
|
<fo:footnote>
|
1453
1558
|
<fo:inline/>
|
1454
|
-
<fo:footnote-body
|
1559
|
+
<fo:footnote-body xsl:use-attribute-sets="feedback-statement-style">
|
1455
1560
|
|
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>
|
1561
|
+
<xsl:call-template name="refine_feedback-statement-style"/>
|
1465
1562
|
|
1466
1563
|
<fo:block>
|
1467
1564
|
<fo:inline font-size="1pt" id="footnote_footer_{generate-id()}"><xsl:value-of select="$hair_space"/></fo:inline>
|
@@ -1473,7 +1570,7 @@
|
|
1473
1570
|
</xsl:template>
|
1474
1571
|
|
1475
1572
|
<xsl:template match="mn:boilerplate/mn:feedback-statement//mn:p" priority="2">
|
1476
|
-
<fo:block
|
1573
|
+
<fo:block xsl:use-attribute-sets="feedback-statement-p-style">
|
1477
1574
|
<xsl:apply-templates/>
|
1478
1575
|
</fo:block>
|
1479
1576
|
</xsl:template>
|
@@ -1485,13 +1582,17 @@
|
|
1485
1582
|
|
1486
1583
|
<xsl:template match="mn:boilerplate/mn:legal-statement/mn:clause[@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants']" priority="2">
|
1487
1584
|
<fo:block break-after="page"/>
|
1488
|
-
<fo:block id="{@id}">
|
1489
|
-
|
1490
|
-
</fo:block>
|
1585
|
+
<!-- <fo:block id="{@id}" font-size="1pt" span="all"> </fo:block> -->
|
1586
|
+
<xsl:apply-templates/>
|
1491
1587
|
</xsl:template>
|
1492
1588
|
|
1493
1589
|
<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">
|
1590
|
+
<fo:block id="{@id}" space-before="12pt" font-size="1pt" span="all" keep-with-next="always"> </fo:block>
|
1591
|
+
<xsl:apply-templates/>
|
1592
|
+
</xsl:template>
|
1593
|
+
|
1594
|
+
<xsl:template match="mn:boilerplate/mn:legal-statement/mn:clause[not(@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants')]" priority="2">
|
1595
|
+
<fo:block id="{@id}" span="all">
|
1495
1596
|
<xsl:apply-templates/>
|
1496
1597
|
</fo:block>
|
1497
1598
|
</xsl:template>
|
@@ -1501,18 +1602,10 @@
|
|
1501
1602
|
<xsl:variable name="level">
|
1502
1603
|
<xsl:call-template name="getLevel"/>
|
1503
1604
|
</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>
|
1605
|
+
<fo:block xsl:use-attribute-sets="legal-statement-title-style" role="H{$level}">
|
1606
|
+
<xsl:copy-of select="parent::mn:clause[@id = 'boilerplate-participants' or normalize-space(mn:fmt-title) = 'Participants']/@id"/>
|
1511
1607
|
|
1512
|
-
<xsl:
|
1513
|
-
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
1514
|
-
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
1515
|
-
</xsl:if>
|
1608
|
+
<xsl:call-template name="refine_legal-statement-title-style"/>
|
1516
1609
|
|
1517
1610
|
<xsl:apply-templates/>
|
1518
1611
|
</fo:block>
|
@@ -1520,12 +1613,14 @@
|
|
1520
1613
|
|
1521
1614
|
<xsl:template match="mn:boilerplate/mn:legal-statement//mn:p" priority="2">
|
1522
1615
|
<xsl:choose>
|
1523
|
-
<xsl:when test="@type = 'officemember' and not(preceding-sibling::*[1][self::mn:p][@type = 'officemember'])"> <!-- special case -->
|
1616
|
+
<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 -->
|
1617
|
+
|
1618
|
+
<xsl:variable name="type" select="@type"/>
|
1524
1619
|
|
1525
1620
|
<xsl:variable name="officemembers_">
|
1526
1621
|
<officemember><xsl:copy-of select="node()"/></officemember>
|
1527
1622
|
<xsl:variable name="pos_curr" select="count(preceding-sibling::*) + 1"/>
|
1528
|
-
<xsl:variable name="pos_end_" select="count(following-sibling::*[not(@type =
|
1623
|
+
<xsl:variable name="pos_end_" select="count(following-sibling::*[not(@type = $type)][1]/preceding-sibling::*)"/>
|
1529
1624
|
<xsl:variable name="pos_end">
|
1530
1625
|
<xsl:choose>
|
1531
1626
|
<xsl:when test="$pos_end_ = 0">9999</xsl:when>
|
@@ -1541,98 +1636,137 @@
|
|
1541
1636
|
|
1542
1637
|
<xsl:variable name="officemembers_count" select="count($officemembers/officemember)"/>
|
1543
1638
|
|
1544
|
-
<xsl:variable name="cols">3</xsl:variable>
|
1639
|
+
<xsl:variable name="cols"><xsl:choose><xsl:when test="$type = 'officemember'">3</xsl:when><xsl:otherwise>2</xsl:otherwise></xsl:choose></xsl:variable>
|
1545
1640
|
|
1546
1641
|
<xsl:variable name="mod" select="$officemembers_count mod $cols"/>
|
1547
1642
|
<xsl:variable name="floor" select="floor($officemembers_count div $cols)"/>
|
1548
1643
|
|
1549
1644
|
<xsl:variable name="max">
|
1550
1645
|
<xsl:choose>
|
1551
|
-
<xsl:when test="$mod = 0"><xsl:value-of select="$officemembers_count div
|
1646
|
+
<xsl:when test="$mod = 0"><xsl:value-of select="$officemembers_count div $cols"/></xsl:when>
|
1552
1647
|
<xsl:otherwise><xsl:value-of select="$floor + 1"/></xsl:otherwise>
|
1553
1648
|
</xsl:choose>
|
1554
1649
|
</xsl:variable>
|
1555
1650
|
|
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>
|
1651
|
+
<xsl:choose>
|
1652
|
+
<xsl:when test="$type = 'officemember'">
|
1653
|
+
<!-- 3-column table -->
|
1654
|
+
|
1655
|
+
<!-- <fo:block>DEBUG officemembers_count=<xsl:value-of select="$officemembers_count"/></fo:block> -->
|
1656
|
+
<!-- <fo:block>mod=<xsl:value-of select="$mod"/></fo:block>
|
1657
|
+
<fo:block>floor=<xsl:value-of select="$floor"/></fo:block>
|
1658
|
+
<fo:block>max=<xsl:value-of select="$max"/></fo:block> -->
|
1659
|
+
|
1660
|
+
<!-- From https://github.com/metanorma/metanorma-ieee/issues/533#issuecomment-3178212854:
|
1661
|
+
Algorithm:
|
1662
|
+
3 cases: 0 extra, all balanced; 1 extra, place in middle, 2 extra, place on both sides.
|
1663
|
+
|
1664
|
+
The number of rows in each column is "ceil(names/cols)".
|
1665
|
+
The number of extras is calculated as "names mod cols"
|
1666
|
+
In the 1 extra case, place an additional line break after the "floor(names/cols)"-th item.
|
1667
|
+
In the 2 extra case, place an additional line break after the "ceil(names/cols) + floor(names/cols)"-th item
|
1668
|
+
-->
|
1669
|
+
|
1670
|
+
<xsl:variable name="number_in_each_column" select="ceiling($officemembers_count div $cols)"/>
|
1671
|
+
<!-- <fo:block>DEBUG number_in_each_column=<xsl:value-of select="$number_in_each_column"/></fo:block> -->
|
1672
|
+
<xsl:variable name="number_extras" select="$officemembers_count mod $cols"/>
|
1673
|
+
<!-- <fo:block>DEBUG number_extras=<xsl:value-of select="$number_extras"/></fo:block> -->
|
1674
|
+
|
1675
|
+
<xsl:variable name="officemembers_updated_">
|
1676
|
+
<xsl:for-each select="$officemembers/officemember">
|
1677
|
+
<xsl:copy-of select="."/>
|
1678
|
+
<xsl:choose>
|
1679
|
+
<xsl:when test="$number_extras = 1 and position() = $floor">
|
1680
|
+
<officemember/>
|
1681
|
+
</xsl:when>
|
1682
|
+
<xsl:when test="$number_extras = 2 and position() = ($number_in_each_column + $floor)">
|
1683
|
+
<officemember/>
|
1684
|
+
</xsl:when>
|
1685
|
+
</xsl:choose>
|
1616
1686
|
</xsl:for-each>
|
1617
|
-
</
|
1618
|
-
|
1619
|
-
|
1687
|
+
</xsl:variable>
|
1688
|
+
<xsl:variable name="officemembers_updated" select="xalan:nodeset($officemembers_updated_)"/>
|
1689
|
+
|
1690
|
+
<fo:block font-size="9pt" span="all">
|
1691
|
+
<fo:block> </fo:block>
|
1692
|
+
<fo:table width="100%" table-layout="fixed">
|
1693
|
+
<fo:table-column column-width="proportional-column-width(55)"/>
|
1694
|
+
<fo:table-column column-width="proportional-column-width(55)"/>
|
1695
|
+
<fo:table-column column-width="proportional-column-width(42)"/>
|
1696
|
+
<fo:table-body>
|
1697
|
+
<xsl:for-each select="$officemembers_updated/officemember[position() <= $number_in_each_column]"> <!-- $max -->
|
1698
|
+
<fo:table-row>
|
1699
|
+
<fo:table-cell padding-right="3mm">
|
1700
|
+
<fo:block>
|
1701
|
+
<xsl:apply-templates/>
|
1702
|
+
</fo:block>
|
1703
|
+
</fo:table-cell>
|
1704
|
+
<fo:table-cell padding-right="3mm">
|
1705
|
+
<fo:block>
|
1706
|
+
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column)]/node()"/> <!-- $max -->
|
1707
|
+
</fo:block>
|
1708
|
+
</fo:table-cell>
|
1709
|
+
<fo:table-cell>
|
1710
|
+
<fo:block>
|
1711
|
+
<xsl:apply-templates select="following-sibling::*[number($number_in_each_column) * 2]/node()"/> <!-- $max -->
|
1712
|
+
</fo:block>
|
1713
|
+
</fo:table-cell>
|
1714
|
+
</fo:table-row>
|
1715
|
+
</xsl:for-each>
|
1716
|
+
</fo:table-body>
|
1717
|
+
</fo:table>
|
1718
|
+
</fo:block>
|
1719
|
+
</xsl:when>
|
1720
|
+
<xsl:otherwise> <!-- $type = 'officeorgmember' -->
|
1721
|
+
<!-- 2-column table -->
|
1722
|
+
<fo:block span="all"> </fo:block>
|
1723
|
+
<fo:block font-size="9pt" margin-right="10mm">
|
1724
|
+
<xsl:for-each select="$officemembers/officemember">
|
1725
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1726
|
+
<xsl:apply-templates/>
|
1727
|
+
</fo:block>
|
1728
|
+
</xsl:for-each>
|
1729
|
+
<!-- <fo:table width="100%" table-layout="fixed">
|
1730
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
1731
|
+
<fo:table-column column-width="proportional-column-width(1)"/>
|
1732
|
+
<fo:table-body>
|
1733
|
+
<xsl:for-each select="$officemembers/officemember[position() <= $max]">
|
1734
|
+
<fo:table-row>
|
1735
|
+
<fo:table-cell padding-right="3mm">
|
1736
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1737
|
+
<xsl:apply-templates/>
|
1738
|
+
</fo:block>
|
1739
|
+
</fo:table-cell>
|
1740
|
+
<fo:table-cell padding-right="3mm">
|
1741
|
+
<fo:block margin-left="4mm" text-indent="-4mm">
|
1742
|
+
<xsl:apply-templates select="following-sibling::*[number($max)]/node()"/>
|
1743
|
+
</fo:block>
|
1744
|
+
</fo:table-cell>
|
1745
|
+
</fo:table-row>
|
1746
|
+
</xsl:for-each>
|
1747
|
+
</fo:table-body>
|
1748
|
+
</fo:table> -->
|
1749
|
+
</fo:block>
|
1750
|
+
<fo:block span="all"> </fo:block>
|
1751
|
+
</xsl:otherwise>
|
1752
|
+
</xsl:choose>
|
1620
1753
|
|
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>
|
1754
|
+
<xsl:if test="following-sibling::*[1][not(@type = 'officemember' or @type = 'officeorgmember' or @type = 'emeritus_sign')]">
|
1755
|
+
<fo:block font-size="10pt" space-after="12pt" keep-with-previous="always" span="all"> </fo:block>
|
1623
1756
|
</xsl:if>
|
1624
|
-
</xsl:when> <!-- @type = 'officemember' -->
|
1757
|
+
</xsl:when> <!-- @type = 'officemember' or @type = 'officeorgmember' -->
|
1625
1758
|
|
1626
1759
|
<xsl:when test="@type = 'officemember' and preceding-sibling::*[1][self::mn:p][@type = 'officemember']"><!-- skip --></xsl:when>
|
1760
|
+
<xsl:when test="@type = 'officeorgmember' and preceding-sibling::*[1][self::mn:p][@type = 'officeorgmember']"><!-- skip --></xsl:when>
|
1627
1761
|
|
1628
1762
|
<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">
|
1763
|
+
<fo:block font-size="9pt" margin-left="9.4mm" space-before="6pt" space-after="12pt" keep-with-previous="always" span="all">
|
1630
1764
|
<xsl:apply-templates/>
|
1631
1765
|
</fo:block>
|
1632
1766
|
</xsl:when>
|
1633
1767
|
|
1634
1768
|
<xsl:when test="@type = 'officeorgrepmemberhdr'">
|
1635
|
-
<fo:block text-align-last="justify" space-after="12pt">
|
1769
|
+
<fo:block text-align-last="justify" space-after="12pt" span="all">
|
1636
1770
|
<!-- before tab - left aligned text -->
|
1637
1771
|
<xsl:apply-templates select="mn:tab[1]/preceding-sibling::node()"/>
|
1638
1772
|
<fo:inline keep-together.within-line="always">
|
@@ -1644,7 +1778,7 @@
|
|
1644
1778
|
</xsl:when>
|
1645
1779
|
|
1646
1780
|
<xsl:when test="@type = 'officeorgrepmember'">
|
1647
|
-
<fo:block text-align-last="justify" space-after="6pt" font-size="9pt">
|
1781
|
+
<fo:block text-align-last="justify" space-after="6pt" font-size="9pt" span="all">
|
1648
1782
|
<!-- before tab - left aligned text -->
|
1649
1783
|
<xsl:apply-templates select="mn:tab[1]/preceding-sibling::node()"/>
|
1650
1784
|
<fo:inline keep-together.within-line="always">
|
@@ -1685,7 +1819,7 @@
|
|
1685
1819
|
|
1686
1820
|
<xsl:variable name="attributes" select="xalan:nodeset($attributes_)"/>
|
1687
1821
|
|
1688
|
-
<fo:block space-after="12pt">
|
1822
|
+
<fo:block space-after="12pt" span="all">
|
1689
1823
|
|
1690
1824
|
<xsl:for-each select="$attributes/attributes/@*">
|
1691
1825
|
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
|
@@ -1848,19 +1982,21 @@
|
|
1848
1982
|
|
1849
1983
|
<xsl:template match="mn:p[@class = 'zzSTDTitle1']" priority="4">
|
1850
1984
|
<xsl:choose>
|
1851
|
-
<xsl:when test="$current_template = 'draft'">
|
1852
|
-
<fo:block
|
1853
|
-
<xsl:
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1985
|
+
<xsl:when test="$current_template = 'draft' or $current_template = 'standard'">
|
1986
|
+
<fo:block-container width="140mm" role="SKIP">
|
1987
|
+
<fo:block xsl:use-attribute-sets="p-zzSTDTitle1-style">
|
1988
|
+
|
1989
|
+
<xsl:call-template name="refine_p-zzSTDTitle1-style"/>
|
1990
|
+
|
1991
|
+
<xsl:apply-templates/>
|
1992
|
+
</fo:block>
|
1993
|
+
</fo:block-container>
|
1858
1994
|
</xsl:when>
|
1859
|
-
<xsl:when test="$current_template = 'standard'">
|
1995
|
+
<!-- <xsl:when test="$current_template = 'standard'">
|
1860
1996
|
<fo:block font-family="Arial" font-weight="bold" margin-top="13mm" space-after="12pt">
|
1861
|
-
<xsl:apply-templates/>
|
1997
|
+
<xsl:apply-templates />
|
1862
1998
|
</fo:block>
|
1863
|
-
</xsl:when>
|
1999
|
+
</xsl:when> -->
|
1864
2000
|
<xsl:otherwise> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1865
2001
|
|
1866
2002
|
<fo:block font-family="Arial Black" font-size="20pt" margin-top="18pt">
|
@@ -2020,6 +2156,9 @@
|
|
2020
2156
|
<fo:list-item-label end-indent="label-end()">
|
2021
2157
|
<fo:block>
|
2022
2158
|
<fo:basic-link internal-destination="{@id}">
|
2159
|
+
<xsl:call-template name="setAltText">
|
2160
|
+
<xsl:with-param name="value" select="@alt-text"/>
|
2161
|
+
</xsl:call-template>
|
2023
2162
|
<xsl:value-of select="substring-before(.,'—')"/>
|
2024
2163
|
</fo:basic-link>
|
2025
2164
|
</fo:block>
|
@@ -2079,15 +2218,19 @@
|
|
2079
2218
|
<!-- ==================== -->
|
2080
2219
|
<!-- display titles -->
|
2081
2220
|
<!-- ==================== -->
|
2082
|
-
<xsl:template match="mn:bibdata/mn:title[@type = 'title-intro']">
|
2083
|
-
<xsl:apply-templates/>
|
2221
|
+
<!-- <xsl:template match="mn:bibdata/mn:title[@type = 'title-intro']">
|
2222
|
+
<xsl:apply-templates />
|
2084
2223
|
<xsl:text>—</xsl:text>
|
2085
|
-
</xsl:template>
|
2224
|
+
</xsl:template> -->
|
2086
2225
|
|
2087
2226
|
<xsl:template match="mn:bibdata/mn:title[@type = 'title-main']">
|
2088
2227
|
<xsl:apply-templates/>
|
2089
2228
|
</xsl:template>
|
2090
2229
|
|
2230
|
+
<xsl:template match="mn:bibdata/mn:title[@type = 'main']">
|
2231
|
+
<xsl:apply-templates/>
|
2232
|
+
</xsl:template>
|
2233
|
+
|
2091
2234
|
<!-- ==================== -->
|
2092
2235
|
<!-- display titles -->
|
2093
2236
|
<!-- ==================== -->
|
@@ -2369,9 +2512,12 @@
|
|
2369
2512
|
|
2370
2513
|
<!-- Bibliography -->
|
2371
2514
|
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
|
2372
|
-
<fo:block
|
2373
|
-
|
2374
|
-
|
2515
|
+
<fo:block xsl:use-attribute-sets="references-non-normative-title-style">
|
2516
|
+
|
2517
|
+
<xsl:call-template name="refine_references-non-normative-title-style"/>
|
2518
|
+
|
2519
|
+
<xsl:apply-templates/>
|
2520
|
+
</fo:block>
|
2375
2521
|
</xsl:template>
|
2376
2522
|
|
2377
2523
|
<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">
|
@@ -2615,13 +2761,16 @@
|
|
2615
2761
|
</xsl:template>
|
2616
2762
|
|
2617
2763
|
<!-- add blue box after first break in Annex title -->
|
2618
|
-
<xsl:template match="mn:br[
|
2764
|
+
<xsl:template match="mn:br[ancestor::mn:fmt-title[preceding-sibling::*[1][self::mn:annex]]]" priority="2">
|
2619
2765
|
<xsl:choose>
|
2620
2766
|
<xsl:when test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') ">
|
2621
|
-
<xsl:
|
2767
|
+
<xsl:if test="not(preceding-sibling::mn:br)">
|
2768
|
+
<xsl:call-template name="addBlueBox"/>
|
2769
|
+
</xsl:if>
|
2622
2770
|
</xsl:when>
|
2623
2771
|
<xsl:otherwise>
|
2624
|
-
<xsl:value-of select="$linebreak"/>
|
2772
|
+
<!-- <xsl:value-of select="$linebreak"/> -->
|
2773
|
+
<fo:block font-size="1pt" margin-top="3mm"> </fo:block>
|
2625
2774
|
</xsl:otherwise>
|
2626
2775
|
|
2627
2776
|
</xsl:choose>
|
@@ -2691,12 +2840,6 @@
|
|
2691
2840
|
<xsl:call-template name="termsource"/>
|
2692
2841
|
</xsl:template>
|
2693
2842
|
|
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
2843
|
<!-- ====== -->
|
2701
2844
|
<!-- ====== -->
|
2702
2845
|
|
@@ -2823,27 +2966,7 @@
|
|
2823
2966
|
<xsl:template match="mn:ul | mn:ol" mode="list" priority="2">
|
2824
2967
|
<fo:list-block xsl:use-attribute-sets="list-style">
|
2825
2968
|
|
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>
|
2969
|
+
<xsl:call-template name="refine_list-style"/>
|
2847
2970
|
|
2848
2971
|
<xsl:apply-templates select="node()[not(self::mn:note)]"/>
|
2849
2972
|
</fo:list-block>
|
@@ -3057,11 +3180,10 @@
|
|
3057
3180
|
<xsl:template name="insertFootnoteSeparator">
|
3058
3181
|
<fo:static-content flow-name="xsl-footnote-separator" role="artifact">
|
3059
3182
|
<fo:block>
|
3060
|
-
<fo:leader
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
</xsl:if>
|
3183
|
+
<fo:leader xsl:use-attribute-sets="footnote-separator-leader-style">
|
3184
|
+
|
3185
|
+
<xsl:call-template name="refine_footnote-separator-leader-style"/>
|
3186
|
+
|
3065
3187
|
</fo:leader>
|
3066
3188
|
</fo:block>
|
3067
3189
|
</fo:static-content>
|
@@ -3099,7 +3221,7 @@
|
|
3099
3221
|
<xsl:value-of select="$document_id"/>
|
3100
3222
|
</fo:block>
|
3101
3223
|
<fo:block>
|
3102
|
-
<xsl:copy-of select="$title_prefix"/>
|
3224
|
+
<!-- <xsl:copy-of select="$title_prefix"/> -->
|
3103
3225
|
<xsl:copy-of select="$title"/>
|
3104
3226
|
</fo:block>
|
3105
3227
|
|
@@ -3371,13 +3493,13 @@
|
|
3371
3493
|
<!-- Cover Pages -->
|
3372
3494
|
<!-- =============================== -->
|
3373
3495
|
<xsl:template name="insertCoverPage_Standard">
|
3374
|
-
<xsl:param name="title_intro"/>
|
3375
3496
|
<xsl:param name="title_main"/>
|
3376
3497
|
<xsl:param name="society"/>
|
3377
3498
|
<xsl:param name="committee"/>
|
3499
|
+
<xsl:param name="enabler"/>
|
3378
3500
|
<xsl:param name="standard_number"/>
|
3379
3501
|
<xsl:param name="history"/>
|
3380
|
-
<xsl:param name="standard_title_prefix"/>
|
3502
|
+
<!-- <xsl:param name="standard_title_prefix" /> -->
|
3381
3503
|
<xsl:param name="cutoff_date"/>
|
3382
3504
|
<xsl:param name="expiration_date"/>
|
3383
3505
|
|
@@ -3398,7 +3520,7 @@
|
|
3398
3520
|
</fo:instream-foreign-object>
|
3399
3521
|
</fo:block>
|
3400
3522
|
</fo:block-container>
|
3401
|
-
<fo:block-container position="absolute" left="191mm" top="-1mm">
|
3523
|
+
<fo:block-container position="absolute" left="191mm" top="-1mm" id="__internal_layout__covepage_bluebox_{generate-id()}">
|
3402
3524
|
<fo:block font-size="1">
|
3403
3525
|
<fo:instream-foreign-object content-width="26mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Boxes">
|
3404
3526
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3409,7 +3531,7 @@
|
|
3409
3531
|
|
3410
3532
|
<fo:static-content flow-name="right-region" role="artifact">
|
3411
3533
|
<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="-
|
3534
|
+
<fo:block margin-right="-4mm" margin-top="0mm">
|
3413
3535
|
<fo:instream-foreign-object content-width="2.5mm" content-height="11.9mm" scaling="non-uniform" fox:alt-text="Image Box">
|
3414
3536
|
<xsl:call-template name="insertImageBoxSVG">
|
3415
3537
|
<xsl:with-param name="color">rgb(38,172,226)</xsl:with-param>
|
@@ -3424,43 +3546,108 @@
|
|
3424
3546
|
</fo:static-content>
|
3425
3547
|
|
3426
3548
|
<fo:flow flow-name="xsl-region-body" font-family="Calibri">
|
3427
|
-
<fo:block-container height="
|
3549
|
+
<fo:block-container height="100mm" width="150mm" font-weight="bold"> <!-- height="81mm" display-align="center" -->
|
3428
3550
|
|
3429
|
-
<xsl:choose>
|
3430
|
-
|
3551
|
+
<!-- <xsl:choose>
|
3552
|
+
title starts with lower-cased letter
|
3431
3553
|
<xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
|
3432
3554
|
<fo:block font-size="22pt">
|
3433
|
-
<xsl:value-of select="$
|
3555
|
+
<xsl:value-of select="$title_prefix"/>
|
3434
3556
|
<xsl:copy-of select="$title_intro"/>
|
3435
3557
|
</fo:block>
|
3436
3558
|
</xsl:when>
|
3437
|
-
|
3438
3559
|
<xsl:otherwise>
|
3439
|
-
|
3560
|
+
Example: IEEE Standard for
|
3440
3561
|
<fo:block font-size="22pt" space-after="2pt">
|
3441
|
-
<xsl:value-of select="$
|
3562
|
+
<xsl:value-of select="$title_prefix"/>
|
3442
3563
|
</fo:block>
|
3443
3564
|
<fo:block font-size="22pt" margin-left="3mm">
|
3444
|
-
|
3565
|
+
Example: Local and Metropolitan Area Networks—
|
3445
3566
|
<xsl:copy-of select="$title_intro"/>
|
3446
3567
|
</fo:block>
|
3447
3568
|
</xsl:otherwise>
|
3448
|
-
</xsl:choose>
|
3569
|
+
</xsl:choose> -->
|
3449
3570
|
|
3450
|
-
<fo:block font-size="25pt"
|
3451
|
-
<!--
|
3571
|
+
<fo:block font-size="25pt"> <!-- 22pt -->
|
3572
|
+
<!-- <xsl:value-of select="$title_prefix"/> -->
|
3452
3573
|
<xsl:copy-of select="$title_main"/>
|
3453
3574
|
</fo:block>
|
3575
|
+
|
3454
3576
|
</fo:block-container>
|
3455
3577
|
|
3456
|
-
<fo:block-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3578
|
+
<fo:block font-size="16pt">
|
3579
|
+
<!-- Example: IEEE Computer Society -->
|
3580
|
+
<xsl:value-of select="$society"/>
|
3581
|
+
</fo:block>
|
3582
|
+
|
3583
|
+
<fo:block-container height="56mm" display-align="after">
|
3584
|
+
|
3585
|
+
<fo:block font-size="12pt" space-before="13mm">
|
3586
|
+
<xsl:if test="$committee != ''">
|
3587
|
+
<fo:block>
|
3588
|
+
<!-- Developed by the
|
3589
|
+
LAN/MAN Standards Committee -->
|
3590
|
+
<xsl:value-of select="$developed_by"/>
|
3591
|
+
<xsl:value-of select="$linebreak"/>
|
3592
|
+
<xsl:value-of select="$committee"/>
|
3593
|
+
</fo:block>
|
3594
|
+
</xsl:if>
|
3595
|
+
<xsl:if test="normalize-space($enabler) != ''">
|
3596
|
+
<fo:block> </fo:block>
|
3597
|
+
<fo:block>
|
3598
|
+
<!-- Sponsored by the
|
3599
|
+
LAN/MAN Standards Committee -->
|
3600
|
+
<xsl:value-of select="$sponsored_by"/>
|
3601
|
+
<xsl:value-of select="$linebreak"/>
|
3602
|
+
<xsl:for-each select="$enabler/mn:subdivision/mn:subdivision/mn:name">
|
3603
|
+
<xsl:value-of select="."/>
|
3604
|
+
<xsl:if test="position() != last()">
|
3605
|
+
<xsl:value-of select="$linebreak"/>
|
3606
|
+
<xsl:text>and the</xsl:text>
|
3607
|
+
<xsl:value-of select="$linebreak"/>
|
3608
|
+
</xsl:if>
|
3609
|
+
</xsl:for-each>
|
3610
|
+
</fo:block>
|
3611
|
+
</xsl:if>
|
3460
3612
|
</fo:block>
|
3461
|
-
|
3462
|
-
|
3463
|
-
<
|
3613
|
+
|
3614
|
+
<xsl:variable name="coverpage_statement" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:coverpage-statement)"/>
|
3615
|
+
<xsl:if test="$coverpage_statement != '' or /mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']]/mn:organization/mn:logo">
|
3616
|
+
<fo:block font-size="12pt">
|
3617
|
+
<fo:block> </fo:block>
|
3618
|
+
<fo:table width="168mm" table-layout="fixed">
|
3619
|
+
<fo:table-column column-width="100mm"/>
|
3620
|
+
<fo:table-column column-width="68mm"/>
|
3621
|
+
<fo:table-body>
|
3622
|
+
<fo:table-row>
|
3623
|
+
<fo:table-cell>
|
3624
|
+
<fo:block><xsl:value-of select="$coverpage_statement"/></fo:block>
|
3625
|
+
</fo:table-cell>
|
3626
|
+
<fo:table-cell text-align="center">
|
3627
|
+
<fo:block>
|
3628
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']]/mn:organization">
|
3629
|
+
<fo:block>
|
3630
|
+
<xsl:variable name="logo_image">
|
3631
|
+
<xsl:for-each select="mn:logo/mn:image"> <!-- set context to logo/image -->
|
3632
|
+
<xsl:element name="logo" namespace="{$namespace_full}">
|
3633
|
+
<xsl:element name="image" namespace="{$namespace_full}">
|
3634
|
+
<xsl:copy-of select="@*"/>
|
3635
|
+
<xsl:attribute name="width">32mm</xsl:attribute>
|
3636
|
+
<xsl:copy-of select="node()"/>
|
3637
|
+
</xsl:element>
|
3638
|
+
</xsl:element>
|
3639
|
+
</xsl:for-each>
|
3640
|
+
</xsl:variable>
|
3641
|
+
<xsl:apply-templates select="xalan:nodeset($logo_image)//mn:logo/mn:image"/>
|
3642
|
+
</fo:block>
|
3643
|
+
</xsl:for-each>
|
3644
|
+
</fo:block>
|
3645
|
+
</fo:table-cell>
|
3646
|
+
</fo:table-row>
|
3647
|
+
</fo:table-body>
|
3648
|
+
</fo:table>
|
3649
|
+
</fo:block>
|
3650
|
+
</xsl:if>
|
3464
3651
|
|
3465
3652
|
<xsl:if test="normalize-space($cutoff_date) != ''">
|
3466
3653
|
<fo:block> </fo:block>
|
@@ -3477,9 +3664,11 @@
|
|
3477
3664
|
</fo:block>
|
3478
3665
|
</xsl:if>
|
3479
3666
|
|
3480
|
-
|
3481
|
-
<fo:block font-size="10pt"><xsl:value-of select="$history"/></fo:block>
|
3667
|
+
</fo:block-container>
|
3482
3668
|
|
3669
|
+
<fo:block-container position="absolute" left="0mm" top="168mm">
|
3670
|
+
<fo:block font-size="12pt" font-weight="bold"><xsl:value-of select="$standard_number"/></fo:block>
|
3671
|
+
<fo:block font-size="10pt"><xsl:value-of select="$history"/></fo:block>
|
3483
3672
|
</fo:block-container>
|
3484
3673
|
</fo:flow>
|
3485
3674
|
</fo:page-sequence>
|
@@ -3489,7 +3678,7 @@
|
|
3489
3678
|
<fo:page-sequence master-reference="cover-and-back-page-industry-connection-report" force-page-count="no-force">
|
3490
3679
|
<fo:static-content flow-name="header" role="artifact">
|
3491
3680
|
|
3492
|
-
<fo:block-container position="absolute" left="65.5mm" top="0mm">
|
3681
|
+
<fo:block-container position="absolute" left="65.5mm" top="0mm" id="__internal_layout__covepage_bluebox_{generate-id()}">
|
3493
3682
|
<fo:block font-size="1">
|
3494
3683
|
<fo:instream-foreign-object content-height="93.5mm" content-width="64.1mm" fox:alt-text="Image Boxes">
|
3495
3684
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3725,7 +3914,7 @@
|
|
3725
3914
|
</fo:instream-foreign-object>
|
3726
3915
|
</fo:block>
|
3727
3916
|
</fo:block-container>
|
3728
|
-
<fo:block-container position="absolute" left="191mm" top="-1mm">
|
3917
|
+
<fo:block-container position="absolute" left="191mm" top="-1mm" id="__internal_layout__backpage_bluebox_{generate-id()}">
|
3729
3918
|
<fo:block font-size="1">
|
3730
3919
|
<fo:instream-foreign-object content-width="26mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Boxes">
|
3731
3920
|
<xsl:copy-of select="$Image-Blue-Boxes-svg"/>
|
@@ -3736,7 +3925,7 @@
|
|
3736
3925
|
|
3737
3926
|
<fo:flow flow-name="xsl-region-body" font-family="Calibri">
|
3738
3927
|
|
3739
|
-
<fo:block font-family="Montserrat ExtraBold" font-size="32pt" font-weight="normal" margin-top="
|
3928
|
+
<fo:block font-family="Montserrat ExtraBold" font-size="32pt" font-weight="normal" margin-top="42mm" line-height="0.9">
|
3740
3929
|
<fo:block>RAISING THE</fo:block>
|
3741
3930
|
<fo:block>WORLD’S</fo:block>
|
3742
3931
|
<fo:block>STANDARDS</fo:block>
|
@@ -5552,10 +5741,16 @@
|
|
5552
5741
|
<xsl:attribute-set name="license-statement-style">
|
5553
5742
|
</xsl:attribute-set> <!-- license-statement-style -->
|
5554
5743
|
|
5744
|
+
<xsl:template name="refine_license-statement-style">
|
5745
|
+
</xsl:template>
|
5746
|
+
|
5555
5747
|
<xsl:attribute-set name="license-statement-title-style">
|
5556
5748
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5557
5749
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
5558
5750
|
|
5751
|
+
<xsl:template name="refine_license-statement-title-style">
|
5752
|
+
</xsl:template>
|
5753
|
+
|
5559
5754
|
<xsl:attribute-set name="license-statement-p-style">
|
5560
5755
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
5561
5756
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -5569,23 +5764,75 @@
|
|
5569
5764
|
<xsl:attribute-set name="legal-statement-style">
|
5570
5765
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
5571
5766
|
|
5767
|
+
<xsl:template name="refine_legal-statement-style">
|
5768
|
+
</xsl:template>
|
5769
|
+
|
5572
5770
|
<xsl:attribute-set name="legal-statement-title-style">
|
5573
5771
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5772
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
5773
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5774
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5775
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
5776
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
5777
|
+
<xsl:attribute name="span">all</xsl:attribute>
|
5778
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5574
5779
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
5575
5780
|
|
5781
|
+
<xsl:template name="refine_legal-statement-title-style">
|
5782
|
+
<xsl:variable name="level">
|
5783
|
+
<xsl:call-template name="getLevel"/>
|
5784
|
+
</xsl:variable>
|
5785
|
+
<xsl:if test="$level = '1'">
|
5786
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
5787
|
+
</xsl:if>
|
5788
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5789
|
+
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
5790
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
5791
|
+
</xsl:if>
|
5792
|
+
</xsl:template>
|
5793
|
+
|
5576
5794
|
<xsl:attribute-set name="legal-statement-p-style">
|
5577
5795
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
5578
5796
|
|
5797
|
+
<xsl:template name="refine_legal-statement-p-style">
|
5798
|
+
<xsl:if test="@align">
|
5799
|
+
<xsl:attribute name="text-align">
|
5800
|
+
<xsl:value-of select="@align"/>
|
5801
|
+
</xsl:attribute>
|
5802
|
+
</xsl:if>
|
5803
|
+
</xsl:template>
|
5804
|
+
|
5579
5805
|
<xsl:attribute-set name="feedback-statement-style">
|
5806
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
5807
|
+
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
5580
5808
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
5581
5809
|
|
5810
|
+
<xsl:template name="refine_feedback-statement-style">
|
5811
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5812
|
+
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
5813
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
5814
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
5815
|
+
</xsl:if>
|
5816
|
+
<!-- <xsl:if test="$current_template = 'standard'">
|
5817
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
5818
|
+
</xsl:if> -->
|
5819
|
+
</xsl:template>
|
5820
|
+
|
5582
5821
|
<xsl:attribute-set name="feedback-statement-title-style">
|
5583
5822
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5584
5823
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
5585
5824
|
|
5825
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
5826
|
+
|
5827
|
+
</xsl:template>
|
5828
|
+
|
5586
5829
|
<xsl:attribute-set name="feedback-statement-p-style">
|
5830
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5587
5831
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
5588
5832
|
|
5833
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
5834
|
+
</xsl:template>
|
5835
|
+
|
5589
5836
|
<!-- End boilerplate sections styles -->
|
5590
5837
|
|
5591
5838
|
<!-- ================================= -->
|
@@ -5611,6 +5858,7 @@
|
|
5611
5858
|
|
5612
5859
|
<xsl:template match="mn:license-statement">
|
5613
5860
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
5861
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
5614
5862
|
<xsl:apply-templates/>
|
5615
5863
|
</fo:block>
|
5616
5864
|
</xsl:template> <!-- license-statement -->
|
@@ -5628,6 +5876,7 @@
|
|
5628
5876
|
<xsl:template match="mn:legal-statement">
|
5629
5877
|
<xsl:param name="isLegacy">false</xsl:param>
|
5630
5878
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
5879
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
5631
5880
|
<xsl:apply-templates/>
|
5632
5881
|
</fo:block>
|
5633
5882
|
</xsl:template> <!-- legal-statement -->
|
@@ -5808,6 +6057,27 @@
|
|
5808
6057
|
<xsl:attribute-set name="sourcecode-container-style">
|
5809
6058
|
</xsl:attribute-set>
|
5810
6059
|
|
6060
|
+
<xsl:template name="refine_sourcecode-container-style">
|
6061
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
6062
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
6063
|
+
</xsl:if>
|
6064
|
+
|
6065
|
+
<xsl:if test="ancestor::mn:example">
|
6066
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
6067
|
+
</xsl:if>
|
6068
|
+
|
6069
|
+
<xsl:copy-of select="@id"/>
|
6070
|
+
|
6071
|
+
<xsl:if test="parent::mn:note">
|
6072
|
+
<xsl:attribute name="margin-left">
|
6073
|
+
<xsl:choose>
|
6074
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
6075
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
6076
|
+
</xsl:choose>
|
6077
|
+
</xsl:attribute>
|
6078
|
+
</xsl:if>
|
6079
|
+
</xsl:template>
|
6080
|
+
|
5811
6081
|
<xsl:attribute-set name="sourcecode-style">
|
5812
6082
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
5813
6083
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -5828,6 +6098,9 @@
|
|
5828
6098
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
5829
6099
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
5830
6100
|
|
6101
|
+
<xsl:template name="refine_sourcecode-name-style">
|
6102
|
+
</xsl:template>
|
6103
|
+
|
5831
6104
|
<xsl:template name="add-zero-spaces-equal">
|
5832
6105
|
<xsl:param name="text" select="."/>
|
5833
6106
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -5915,24 +6188,8 @@
|
|
5915
6188
|
<xsl:otherwise>
|
5916
6189
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
5917
6190
|
|
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"/>
|
6191
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
5927
6192
|
|
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
6193
|
<fo:block-container margin-left="0mm" role="SKIP">
|
5937
6194
|
|
5938
6195
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
@@ -6259,6 +6516,7 @@
|
|
6259
6516
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
6260
6517
|
<xsl:if test="normalize-space() != ''">
|
6261
6518
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
6519
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
6262
6520
|
<xsl:apply-templates/>
|
6263
6521
|
</fo:block>
|
6264
6522
|
</xsl:if>
|
@@ -6308,11 +6566,30 @@
|
|
6308
6566
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
6309
6567
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
6310
6568
|
<xsl:attribute name="font-size">95%</xsl:attribute>
|
6311
|
-
</xsl:attribute-set>
|
6569
|
+
</xsl:attribute-set> <!-- pre-style -->
|
6570
|
+
|
6571
|
+
<xsl:template name="refine_pre-style">
|
6572
|
+
</xsl:template>
|
6312
6573
|
|
6313
6574
|
<xsl:attribute-set name="tt-style">
|
6314
6575
|
</xsl:attribute-set>
|
6315
6576
|
|
6577
|
+
<xsl:template name="refine_tt-style">
|
6578
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
6579
|
+
</xsl:variable>
|
6580
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
6581
|
+
<xsl:if test="$font-size != ''">
|
6582
|
+
<xsl:attribute name="font-size">
|
6583
|
+
<xsl:choose>
|
6584
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
6585
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
6586
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
6587
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
6588
|
+
</xsl:choose>
|
6589
|
+
</xsl:attribute>
|
6590
|
+
</xsl:if>
|
6591
|
+
</xsl:template>
|
6592
|
+
|
6316
6593
|
<xsl:variable name="color-added-text">
|
6317
6594
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
6318
6595
|
</xsl:variable>
|
@@ -6325,9 +6602,14 @@
|
|
6325
6602
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
6326
6603
|
</xsl:attribute-set>
|
6327
6604
|
|
6605
|
+
<xsl:template name="refine_add-style">
|
6606
|
+
</xsl:template>
|
6607
|
+
|
6328
6608
|
<xsl:variable name="add-style">
|
6329
|
-
|
6330
|
-
|
6609
|
+
<add-style xsl:use-attribute-sets="add-style">
|
6610
|
+
<xsl:call-template name="refine_add-style"/>
|
6611
|
+
</add-style>
|
6612
|
+
</xsl:variable>
|
6331
6613
|
<xsl:template name="append_add-style">
|
6332
6614
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
6333
6615
|
</xsl:template>
|
@@ -6340,24 +6622,77 @@
|
|
6340
6622
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
6341
6623
|
</xsl:attribute-set>
|
6342
6624
|
|
6625
|
+
<xsl:template name="refine_del-style">
|
6626
|
+
</xsl:template>
|
6627
|
+
|
6628
|
+
<xsl:attribute-set name="strong-style">
|
6629
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
6630
|
+
</xsl:attribute-set>
|
6631
|
+
|
6632
|
+
<xsl:template name="refine_strong_style">
|
6633
|
+
<xsl:if test="ancestor::*['preferred']">
|
6634
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
6635
|
+
</xsl:if>
|
6636
|
+
</xsl:template> <!-- refine_strong_style -->
|
6637
|
+
|
6638
|
+
<xsl:attribute-set name="em-style">
|
6639
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
6640
|
+
</xsl:attribute-set>
|
6641
|
+
|
6642
|
+
<xsl:template name="refine_em_style">
|
6643
|
+
</xsl:template> <!-- refine_em_style -->
|
6644
|
+
|
6645
|
+
<xsl:attribute-set name="sup-style">
|
6646
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6647
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
6648
|
+
</xsl:attribute-set>
|
6649
|
+
|
6650
|
+
<xsl:template name="refine_sup-style">
|
6651
|
+
</xsl:template>
|
6652
|
+
|
6653
|
+
<xsl:attribute-set name="sub-style">
|
6654
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6655
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
6656
|
+
</xsl:attribute-set>
|
6657
|
+
|
6658
|
+
<xsl:template name="refine_sub-style">
|
6659
|
+
</xsl:template>
|
6660
|
+
|
6661
|
+
<xsl:attribute-set name="underline-style">
|
6662
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
6663
|
+
</xsl:attribute-set>
|
6664
|
+
|
6665
|
+
<xsl:template name="refine_underline-style">
|
6666
|
+
</xsl:template>
|
6667
|
+
|
6668
|
+
<xsl:attribute-set name="hi-style">
|
6669
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
6670
|
+
</xsl:attribute-set>
|
6671
|
+
|
6672
|
+
<xsl:template name="refine_hi-style">
|
6673
|
+
</xsl:template>
|
6674
|
+
|
6675
|
+
<xsl:attribute-set name="strike-style">
|
6676
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
6677
|
+
</xsl:attribute-set>
|
6678
|
+
|
6679
|
+
<xsl:template name="refine_strike-style">
|
6680
|
+
</xsl:template>
|
6681
|
+
|
6343
6682
|
<xsl:template match="mn:br">
|
6344
6683
|
<xsl:value-of select="$linebreak"/>
|
6345
6684
|
</xsl:template>
|
6346
6685
|
|
6347
|
-
|
6348
|
-
<fo:inline
|
6349
|
-
<xsl:call-template name="
|
6686
|
+
<xsl:template match="mn:em">
|
6687
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
6688
|
+
<xsl:call-template name="refine_em_style"/>
|
6350
6689
|
<xsl:apply-templates/>
|
6351
6690
|
</fo:inline>
|
6352
6691
|
</xsl:template>
|
6353
6692
|
|
6354
|
-
<xsl:template name="refine_italic_style">
|
6355
|
-
</xsl:template>
|
6356
|
-
|
6357
6693
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
6358
6694
|
<xsl:param name="split_keep-within-line"/>
|
6359
|
-
<fo:inline
|
6360
|
-
|
6695
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
6361
6696
|
<xsl:call-template name="refine_strong_style"/>
|
6362
6697
|
|
6363
6698
|
<xsl:apply-templates>
|
@@ -6366,44 +6701,27 @@
|
|
6366
6701
|
</fo:inline>
|
6367
6702
|
</xsl:template>
|
6368
6703
|
|
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
6704
|
<xsl:template match="*[local-name()='padding']">
|
6376
6705
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
6377
6706
|
</xsl:template>
|
6378
6707
|
|
6379
6708
|
<xsl:template match="mn:sup">
|
6380
|
-
<fo:inline
|
6709
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
6710
|
+
<xsl:call-template name="refine_sup-style"/>
|
6381
6711
|
<xsl:apply-templates/>
|
6382
6712
|
</fo:inline>
|
6383
6713
|
</xsl:template>
|
6384
6714
|
|
6385
6715
|
<xsl:template match="mn:sub">
|
6386
|
-
<fo:inline
|
6716
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
6717
|
+
<xsl:call-template name="refine_sub-style"/>
|
6387
6718
|
<xsl:apply-templates/>
|
6388
6719
|
</fo:inline>
|
6389
6720
|
</xsl:template>
|
6390
6721
|
|
6391
6722
|
<xsl:template match="mn:tt">
|
6392
6723
|
<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>
|
6724
|
+
<xsl:call-template name="refine_tt-style"/>
|
6407
6725
|
<xsl:apply-templates/>
|
6408
6726
|
</fo:inline>
|
6409
6727
|
</xsl:template> <!-- tt -->
|
@@ -6422,7 +6740,8 @@
|
|
6422
6740
|
</xsl:template>
|
6423
6741
|
|
6424
6742
|
<xsl:template match="mn:underline">
|
6425
|
-
<fo:inline
|
6743
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
6744
|
+
<xsl:call-template name="refine_underline-style"/>
|
6426
6745
|
<xsl:apply-templates/>
|
6427
6746
|
</fo:inline>
|
6428
6747
|
</xsl:template>
|
@@ -6580,6 +6899,7 @@
|
|
6580
6899
|
|
6581
6900
|
<xsl:template match="mn:del">
|
6582
6901
|
<fo:inline xsl:use-attribute-sets="del-style">
|
6902
|
+
<xsl:call-template name="refine_del-style"/>
|
6583
6903
|
<xsl:apply-templates/>
|
6584
6904
|
</fo:inline>
|
6585
6905
|
</xsl:template>
|
@@ -6589,7 +6909,8 @@
|
|
6589
6909
|
|
6590
6910
|
<!-- highlight text -->
|
6591
6911
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
6592
|
-
<fo:inline
|
6912
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
6913
|
+
<xsl:call-template name="refine_hi-style"/>
|
6593
6914
|
<xsl:apply-templates/>
|
6594
6915
|
</fo:inline>
|
6595
6916
|
</xsl:template>
|
@@ -6675,7 +6996,8 @@
|
|
6675
6996
|
</xsl:template>
|
6676
6997
|
|
6677
6998
|
<xsl:template match="mn:strike">
|
6678
|
-
<fo:inline
|
6999
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
7000
|
+
<xsl:call-template name="refine_strike-style"/>
|
6679
7001
|
<xsl:apply-templates/>
|
6680
7002
|
</fo:inline>
|
6681
7003
|
</xsl:template>
|
@@ -6755,6 +7077,7 @@
|
|
6755
7077
|
|
6756
7078
|
<xsl:template match="mn:pre" name="pre">
|
6757
7079
|
<fo:block xsl:use-attribute-sets="pre-style">
|
7080
|
+
<xsl:call-template name="refine_pre-style"/>
|
6758
7081
|
<xsl:copy-of select="@id"/>
|
6759
7082
|
<xsl:choose>
|
6760
7083
|
|
@@ -6785,22 +7108,40 @@
|
|
6785
7108
|
<xsl:attribute-set name="permission-style">
|
6786
7109
|
</xsl:attribute-set>
|
6787
7110
|
|
7111
|
+
<xsl:template name="refine_permission-style">
|
7112
|
+
</xsl:template>
|
7113
|
+
|
6788
7114
|
<xsl:attribute-set name="permission-name-style">
|
6789
7115
|
</xsl:attribute-set>
|
6790
7116
|
|
7117
|
+
<xsl:template name="refine_permission-name-style">
|
7118
|
+
</xsl:template>
|
7119
|
+
|
6791
7120
|
<xsl:attribute-set name="permission-label-style">
|
6792
7121
|
</xsl:attribute-set>
|
6793
7122
|
|
7123
|
+
<xsl:template name="refine_permission-label-style">
|
7124
|
+
</xsl:template>
|
7125
|
+
|
6794
7126
|
<xsl:attribute-set name="requirement-style">
|
6795
7127
|
</xsl:attribute-set>
|
6796
7128
|
|
7129
|
+
<xsl:template name="refine_requirement-style">
|
7130
|
+
</xsl:template>
|
7131
|
+
|
6797
7132
|
<xsl:attribute-set name="requirement-name-style">
|
6798
7133
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
6799
7134
|
</xsl:attribute-set>
|
6800
7135
|
|
7136
|
+
<xsl:template name="refine_requirement-name-style">
|
7137
|
+
</xsl:template>
|
7138
|
+
|
6801
7139
|
<xsl:attribute-set name="requirement-label-style">
|
6802
7140
|
</xsl:attribute-set>
|
6803
7141
|
|
7142
|
+
<xsl:template name="refine_requirement-label-style">
|
7143
|
+
</xsl:template>
|
7144
|
+
|
6804
7145
|
<xsl:attribute-set name="subject-style">
|
6805
7146
|
</xsl:attribute-set>
|
6806
7147
|
|
@@ -6828,18 +7169,28 @@
|
|
6828
7169
|
<xsl:attribute-set name="recommendation-style">
|
6829
7170
|
</xsl:attribute-set>
|
6830
7171
|
|
7172
|
+
<xsl:template name="refine_recommendation-style">
|
7173
|
+
</xsl:template>
|
7174
|
+
|
6831
7175
|
<xsl:attribute-set name="recommendation-name-style">
|
6832
7176
|
</xsl:attribute-set>
|
6833
7177
|
|
7178
|
+
<xsl:template name="refine_recommendation-name-style">
|
7179
|
+
</xsl:template>
|
7180
|
+
|
6834
7181
|
<xsl:attribute-set name="recommendation-label-style">
|
6835
7182
|
</xsl:attribute-set>
|
6836
7183
|
|
7184
|
+
<xsl:template name="refine_recommendation-label-style">
|
7185
|
+
</xsl:template>
|
7186
|
+
|
6837
7187
|
<!-- ========== -->
|
6838
7188
|
<!-- permission -->
|
6839
7189
|
<!-- ========== -->
|
6840
7190
|
<xsl:template match="mn:permission">
|
6841
7191
|
<xsl:call-template name="setNamedDestination"/>
|
6842
7192
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
7193
|
+
<xsl:call-template name="refine_permission-style"/>
|
6843
7194
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6844
7195
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
6845
7196
|
</fo:block>
|
@@ -6848,6 +7199,7 @@
|
|
6848
7199
|
<xsl:template match="mn:permission/mn:fmt-name">
|
6849
7200
|
<xsl:if test="normalize-space() != ''">
|
6850
7201
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
7202
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
6851
7203
|
<xsl:apply-templates/>
|
6852
7204
|
</fo:block>
|
6853
7205
|
</xsl:if>
|
@@ -6855,6 +7207,7 @@
|
|
6855
7207
|
|
6856
7208
|
<xsl:template match="mn:permission/mn:label">
|
6857
7209
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
7210
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
6858
7211
|
<xsl:apply-templates/>
|
6859
7212
|
</fo:block>
|
6860
7213
|
</xsl:template>
|
@@ -6867,6 +7220,7 @@
|
|
6867
7220
|
<xsl:template match="mn:requirement">
|
6868
7221
|
<xsl:call-template name="setNamedDestination"/>
|
6869
7222
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
7223
|
+
<xsl:call-template name="refine_requirement-style"/>
|
6870
7224
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6871
7225
|
<xsl:apply-templates select="mn:label"/>
|
6872
7226
|
<xsl:apply-templates select="@obligation"/>
|
@@ -6879,6 +7233,7 @@
|
|
6879
7233
|
<xsl:if test="normalize-space() != ''">
|
6880
7234
|
|
6881
7235
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
7236
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
6882
7237
|
<xsl:apply-templates/>
|
6883
7238
|
</fo:block>
|
6884
7239
|
</xsl:if>
|
@@ -6886,6 +7241,7 @@
|
|
6886
7241
|
|
6887
7242
|
<xsl:template match="mn:requirement/mn:label">
|
6888
7243
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
7244
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
6889
7245
|
<xsl:apply-templates/>
|
6890
7246
|
</fo:block>
|
6891
7247
|
</xsl:template>
|
@@ -6911,6 +7267,7 @@
|
|
6911
7267
|
<xsl:template match="mn:recommendation">
|
6912
7268
|
<xsl:call-template name="setNamedDestination"/>
|
6913
7269
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
7270
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
6914
7271
|
<xsl:apply-templates select="mn:fmt-name"/>
|
6915
7272
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
6916
7273
|
</fo:block>
|
@@ -6920,6 +7277,7 @@
|
|
6920
7277
|
<xsl:if test="normalize-space() != ''">
|
6921
7278
|
|
6922
7279
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
7280
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
6923
7281
|
<xsl:apply-templates/>
|
6924
7282
|
</fo:block>
|
6925
7283
|
</xsl:if>
|
@@ -6927,6 +7285,7 @@
|
|
6927
7285
|
|
6928
7286
|
<xsl:template match="mn:recommendation/mn:label">
|
6929
7287
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
7288
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
6930
7289
|
<xsl:apply-templates/>
|
6931
7290
|
</fo:block>
|
6932
7291
|
</xsl:template>
|
@@ -7107,34 +7466,64 @@
|
|
7107
7466
|
<xsl:attribute-set name="term-style">
|
7108
7467
|
</xsl:attribute-set> <!-- term-style -->
|
7109
7468
|
|
7469
|
+
<xsl:template name="refine_term-style">
|
7470
|
+
</xsl:template>
|
7471
|
+
|
7110
7472
|
<xsl:attribute-set name="term-name-style">
|
7111
7473
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7112
7474
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7113
7475
|
</xsl:attribute-set> <!-- term-name-style -->
|
7114
7476
|
|
7115
|
-
|
7477
|
+
<xsl:template name="refine_term-name-style">
|
7478
|
+
</xsl:template>
|
7479
|
+
|
7480
|
+
<xsl:attribute-set name="preferred-block-style">
|
7116
7481
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
7117
7482
|
|
7483
|
+
<xsl:template name="refine_preferred-block-style">
|
7484
|
+
</xsl:template>
|
7485
|
+
|
7118
7486
|
<xsl:attribute-set name="preferred-term-style">
|
7119
7487
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7120
7488
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
7121
7489
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
7122
7490
|
|
7491
|
+
<xsl:template name="refine_preferred-term-style">
|
7492
|
+
<xsl:if test="mn:strong">
|
7493
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
7494
|
+
</xsl:if>
|
7495
|
+
</xsl:template>
|
7496
|
+
|
7123
7497
|
<xsl:attribute-set name="domain-style">
|
7124
7498
|
</xsl:attribute-set> <!-- domain-style -->
|
7125
7499
|
|
7500
|
+
<xsl:template name="refine_domain-style">
|
7501
|
+
</xsl:template>
|
7502
|
+
|
7126
7503
|
<xsl:attribute-set name="admitted-style">
|
7127
7504
|
</xsl:attribute-set> <!-- admitted-style -->
|
7128
7505
|
|
7506
|
+
<xsl:template name="refine_admitted-style">
|
7507
|
+
</xsl:template>
|
7508
|
+
|
7129
7509
|
<xsl:attribute-set name="deprecates-style">
|
7130
7510
|
</xsl:attribute-set> <!-- deprecates-style -->
|
7131
7511
|
|
7512
|
+
<xsl:template name="refine_deprecates-style">
|
7513
|
+
</xsl:template>
|
7514
|
+
|
7132
7515
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
7133
7516
|
</xsl:attribute-set>
|
7134
7517
|
|
7518
|
+
<xsl:template name="refine_related-block-style">
|
7519
|
+
</xsl:template>
|
7520
|
+
|
7135
7521
|
<xsl:attribute-set name="definition-style">
|
7136
7522
|
</xsl:attribute-set> <!-- definition-style -->
|
7137
7523
|
|
7524
|
+
<xsl:template name="refine_definition-style">
|
7525
|
+
</xsl:template>
|
7526
|
+
|
7138
7527
|
<xsl:attribute-set name="termsource-style">
|
7139
7528
|
</xsl:attribute-set> <!-- termsource-style -->
|
7140
7529
|
|
@@ -7144,9 +7533,15 @@
|
|
7144
7533
|
<xsl:attribute-set name="termsource-text-style">
|
7145
7534
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
7146
7535
|
|
7536
|
+
<xsl:template name="refine_termsource-text-style">
|
7537
|
+
</xsl:template>
|
7538
|
+
|
7147
7539
|
<xsl:attribute-set name="origin-style">
|
7148
7540
|
</xsl:attribute-set> <!-- origin-style -->
|
7149
7541
|
|
7542
|
+
<xsl:template name="refine_origin-style">
|
7543
|
+
</xsl:template>
|
7544
|
+
|
7150
7545
|
<!-- ====== -->
|
7151
7546
|
<!-- term -->
|
7152
7547
|
<!-- ====== -->
|
@@ -7162,9 +7557,8 @@
|
|
7162
7557
|
<xsl:template match="mn:term">
|
7163
7558
|
<xsl:call-template name="setNamedDestination"/>
|
7164
7559
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
7560
|
+
<xsl:call-template name="refine_term-style"/>
|
7165
7561
|
|
7166
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
7167
|
-
</xsl:if>
|
7168
7562
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
7169
7563
|
</fo:block>
|
7170
7564
|
</xsl:template>
|
@@ -7240,6 +7634,7 @@
|
|
7240
7634
|
<!-- text SOURCE: -->
|
7241
7635
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
7242
7636
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
7637
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
7243
7638
|
<xsl:value-of select="."/>
|
7244
7639
|
</fo:inline>
|
7245
7640
|
</xsl:template>
|
@@ -7252,6 +7647,7 @@
|
|
7252
7647
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
7253
7648
|
</xsl:if>
|
7254
7649
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
7650
|
+
<xsl:call-template name="refine_origin-style"/>
|
7255
7651
|
<xsl:apply-templates/>
|
7256
7652
|
</fo:inline>
|
7257
7653
|
</fo:basic-link>
|
@@ -7301,9 +7697,12 @@
|
|
7301
7697
|
</xsl:variable>
|
7302
7698
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
7303
7699
|
|
7700
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
7701
|
+
|
7304
7702
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
7305
7703
|
|
7306
7704
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
7705
|
+
<xsl:call-template name="refine_term-name-style"/>
|
7307
7706
|
|
7308
7707
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
7309
7708
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -7314,7 +7713,7 @@
|
|
7314
7713
|
</xsl:if>
|
7315
7714
|
|
7316
7715
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
7317
|
-
<xsl:call-template name="
|
7716
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
7318
7717
|
|
7319
7718
|
<xsl:apply-templates/>
|
7320
7719
|
</fo:block>
|
@@ -7335,22 +7734,18 @@
|
|
7335
7734
|
|
7336
7735
|
<xsl:template match="mn:fmt-admitted">
|
7337
7736
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
7737
|
+
<xsl:call-template name="refine_admitted-style"/>
|
7338
7738
|
<xsl:apply-templates/>
|
7339
7739
|
</fo:block>
|
7340
7740
|
</xsl:template>
|
7341
7741
|
|
7342
7742
|
<xsl:template match="mn:fmt-deprecates">
|
7343
7743
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
7744
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
7344
7745
|
<xsl:apply-templates/>
|
7345
7746
|
</fo:block>
|
7346
7747
|
</xsl:template>
|
7347
7748
|
|
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
7749
|
<!-- 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
7750
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
7356
7751
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -7360,6 +7755,7 @@
|
|
7360
7755
|
|
7361
7756
|
<xsl:template match="mn:fmt-related">
|
7362
7757
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
7758
|
+
<xsl:call-template name="refine_related-block-style"/>
|
7363
7759
|
<xsl:apply-templates/>
|
7364
7760
|
</fo:block>
|
7365
7761
|
</xsl:template>
|
@@ -7374,6 +7770,7 @@
|
|
7374
7770
|
<!-- ========== -->
|
7375
7771
|
<xsl:template match="mn:fmt-definition">
|
7376
7772
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
7773
|
+
<xsl:call-template name="refine_definition-style"/>
|
7377
7774
|
<xsl:apply-templates/>
|
7378
7775
|
</fo:block>
|
7379
7776
|
</xsl:template>
|
@@ -7403,6 +7800,9 @@
|
|
7403
7800
|
</xsl:attribute-set> <!-- termexample-style -->
|
7404
7801
|
|
7405
7802
|
<xsl:template name="refine_termexample-style">
|
7803
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:termnote]">
|
7804
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
7805
|
+
</xsl:if>
|
7406
7806
|
</xsl:template> <!-- refine_termexample-style -->
|
7407
7807
|
|
7408
7808
|
<xsl:attribute-set name="termexample-name-style">
|
@@ -7426,6 +7826,9 @@
|
|
7426
7826
|
<xsl:attribute-set name="example-body-style">
|
7427
7827
|
</xsl:attribute-set> <!-- example-body-style -->
|
7428
7828
|
|
7829
|
+
<xsl:template name="refine_example-body-style">
|
7830
|
+
</xsl:template>
|
7831
|
+
|
7429
7832
|
<xsl:attribute-set name="example-name-style">
|
7430
7833
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
7431
7834
|
<xsl:attribute name="padding-right">9mm</xsl:attribute>
|
@@ -7455,7 +7858,12 @@
|
|
7455
7858
|
<xsl:call-template name="setBlockSpanAll"/>
|
7456
7859
|
|
7457
7860
|
<xsl:apply-templates select="mn:fmt-name"/>
|
7458
|
-
<
|
7861
|
+
<fo:block-container margin-left="11mm">
|
7862
|
+
<fo:block-container margin-left="0mm">
|
7863
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
7864
|
+
</fo:block-container>
|
7865
|
+
</fo:block-container>
|
7866
|
+
|
7459
7867
|
</fo:block>
|
7460
7868
|
</xsl:template>
|
7461
7869
|
|
@@ -7475,9 +7883,8 @@
|
|
7475
7883
|
<xsl:choose>
|
7476
7884
|
<xsl:when test="contains($element, 'block')">
|
7477
7885
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
7478
|
-
|
7479
|
-
|
7480
|
-
</xsl:if>
|
7886
|
+
|
7887
|
+
<xsl:call-template name="refine_example-p-style"/>
|
7481
7888
|
|
7482
7889
|
<xsl:apply-templates/>
|
7483
7890
|
</fo:block>
|
@@ -7530,6 +7937,7 @@
|
|
7530
7937
|
</fo:block>
|
7531
7938
|
|
7532
7939
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
7940
|
+
<xsl:call-template name="refine_example-body-style"/>
|
7533
7941
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
7534
7942
|
<xsl:variable name="example_body">
|
7535
7943
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -7592,6 +8000,7 @@
|
|
7592
8000
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
7593
8001
|
<!-- display further elements in blocks -->
|
7594
8002
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
8003
|
+
<xsl:call-template name="refine_example-body-style"/>
|
7595
8004
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
7596
8005
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
7597
8006
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -7861,6 +8270,9 @@
|
|
7861
8270
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
7862
8271
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
7863
8272
|
|
8273
|
+
<xsl:template name="refine_table-fn-number-style">
|
8274
|
+
</xsl:template>
|
8275
|
+
|
7864
8276
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
7865
8277
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
7866
8278
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
@@ -7868,32 +8280,14 @@
|
|
7868
8280
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
7869
8281
|
|
7870
8282
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
7871
|
-
</xsl:template>
|
7872
|
-
|
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>
|
8283
|
+
</xsl:template>
|
7877
8284
|
|
7878
8285
|
<xsl:attribute-set name="table-fn-body-style">
|
7879
8286
|
</xsl:attribute-set>
|
7880
8287
|
|
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">
|
8288
|
+
<xsl:template name="refine_table-fn-body-style">
|
7891
8289
|
</xsl:template>
|
7892
8290
|
|
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
8291
|
<!-- ========================== -->
|
7898
8292
|
<!-- END Table styles -->
|
7899
8293
|
<!-- ========================== -->
|
@@ -9168,6 +9562,7 @@
|
|
9168
9562
|
</xsl:apply-templates>
|
9169
9563
|
|
9170
9564
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
9565
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
9171
9566
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9172
9567
|
<xsl:apply-templates/>
|
9173
9568
|
</fo:inline>
|
@@ -9186,6 +9581,7 @@
|
|
9186
9581
|
<xsl:param name="process">false</xsl:param>
|
9187
9582
|
<xsl:if test="$process = 'true'">
|
9188
9583
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
9584
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
9189
9585
|
|
9190
9586
|
<!-- tab is padding-right -->
|
9191
9587
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -10057,9 +10453,18 @@
|
|
10057
10453
|
<xsl:attribute-set name="dl-block-style">
|
10058
10454
|
</xsl:attribute-set>
|
10059
10455
|
|
10456
|
+
<xsl:template name="refine_dl-block-style">
|
10457
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
10458
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
10459
|
+
</xsl:if>
|
10460
|
+
</xsl:template>
|
10461
|
+
|
10060
10462
|
<xsl:attribute-set name="dt-row-style">
|
10061
10463
|
</xsl:attribute-set>
|
10062
10464
|
|
10465
|
+
<xsl:template name="refine_dt-row-style">
|
10466
|
+
</xsl:template>
|
10467
|
+
|
10063
10468
|
<xsl:attribute-set name="dt-cell-style">
|
10064
10469
|
</xsl:attribute-set>
|
10065
10470
|
|
@@ -10082,6 +10487,9 @@
|
|
10082
10487
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
10083
10488
|
</xsl:attribute-set> <!-- dl-name-style -->
|
10084
10489
|
|
10490
|
+
<xsl:template name="refine_dl-name-style">
|
10491
|
+
</xsl:template>
|
10492
|
+
|
10085
10493
|
<xsl:attribute-set name="dd-cell-style">
|
10086
10494
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
10087
10495
|
</xsl:attribute-set>
|
@@ -10120,9 +10528,7 @@
|
|
10120
10528
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
10121
10529
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
10122
10530
|
|
10123
|
-
<xsl:
|
10124
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
10125
|
-
</xsl:if>
|
10531
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
10126
10532
|
|
10127
10533
|
<xsl:call-template name="setBlockSpanAll"/>
|
10128
10534
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -10418,6 +10824,8 @@
|
|
10418
10824
|
<xsl:if test="$process = 'true'">
|
10419
10825
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
10420
10826
|
|
10827
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
10828
|
+
|
10421
10829
|
<xsl:apply-templates/>
|
10422
10830
|
</fo:block>
|
10423
10831
|
</xsl:if>
|
@@ -10606,6 +11014,8 @@
|
|
10606
11014
|
<xsl:param name="split_keep-within-line"/>
|
10607
11015
|
|
10608
11016
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
11017
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
11018
|
+
|
10609
11019
|
<xsl:call-template name="insert_dt_cell">
|
10610
11020
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
10611
11021
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -10815,15 +11225,22 @@
|
|
10815
11225
|
<xsl:attribute-set name="appendix-style">
|
10816
11226
|
</xsl:attribute-set>
|
10817
11227
|
|
11228
|
+
<xsl:template name="refine_appendix-style">
|
11229
|
+
</xsl:template>
|
11230
|
+
|
10818
11231
|
<xsl:attribute-set name="appendix-example-style">
|
10819
11232
|
</xsl:attribute-set>
|
10820
11233
|
|
11234
|
+
<xsl:template name="refine_appendix-example-style">
|
11235
|
+
</xsl:template>
|
11236
|
+
|
10821
11237
|
<!-- ======================== -->
|
10822
11238
|
<!-- Appendix processing -->
|
10823
11239
|
<!-- ======================== -->
|
10824
11240
|
<xsl:template match="mn:appendix">
|
10825
11241
|
<xsl:call-template name="setNamedDestination"/>
|
10826
11242
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
11243
|
+
<xsl:call-template name="refine_appendix-style"/>
|
10827
11244
|
<xsl:apply-templates select="mn:fmt-title"/>
|
10828
11245
|
</fo:block>
|
10829
11246
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -10842,6 +11259,7 @@
|
|
10842
11259
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
10843
11260
|
<xsl:call-template name="setNamedDestination"/>
|
10844
11261
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
11262
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
10845
11263
|
<xsl:apply-templates select="mn:fmt-name"/>
|
10846
11264
|
</fo:block>
|
10847
11265
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
@@ -10850,7 +11268,16 @@
|
|
10850
11268
|
<xsl:attribute-set name="xref-style">
|
10851
11269
|
<xsl:attribute name="color">blue</xsl:attribute>
|
10852
11270
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
10853
|
-
</xsl:attribute-set>
|
11271
|
+
</xsl:attribute-set> <!-- xref-style -->
|
11272
|
+
|
11273
|
+
<xsl:template name="refine_xref-style">
|
11274
|
+
<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])">
|
11275
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
11276
|
+
</xsl:if>
|
11277
|
+
<xsl:if test="parent::mn:add">
|
11278
|
+
<xsl:call-template name="append_add-style"/>
|
11279
|
+
</xsl:if>
|
11280
|
+
</xsl:template> <!-- refine_xref-style -->
|
10854
11281
|
|
10855
11282
|
<xsl:template match="mn:fmt-xref">
|
10856
11283
|
<xsl:call-template name="insert_basic_link">
|
@@ -10859,12 +11286,8 @@
|
|
10859
11286
|
<xsl:call-template name="getAltText"/>
|
10860
11287
|
</xsl:variable>
|
10861
11288
|
<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>
|
11289
|
+
<xsl:call-template name="refine_xref-style"/>
|
11290
|
+
|
10868
11291
|
<xsl:apply-templates/>
|
10869
11292
|
</fo:basic-link>
|
10870
11293
|
</xsl:with-param>
|
@@ -10981,16 +11404,16 @@
|
|
10981
11404
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
10982
11405
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10983
11406
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
10984
|
-
</xsl:attribute-set>
|
11407
|
+
</xsl:attribute-set> <!-- note-style -->
|
10985
11408
|
|
10986
11409
|
<xsl:template name="refine_note-style">
|
10987
|
-
</xsl:template>
|
11410
|
+
</xsl:template> <!-- refine_note-style -->
|
10988
11411
|
|
10989
11412
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
10990
11413
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
10991
11414
|
|
10992
11415
|
<xsl:attribute-set name="note-name-style">
|
10993
|
-
</xsl:attribute-set>
|
11416
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
10994
11417
|
|
10995
11418
|
<xsl:template name="refine_note-name-style">
|
10996
11419
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -11004,20 +11427,29 @@
|
|
11004
11427
|
|
11005
11428
|
<xsl:attribute-set name="note-p-style">
|
11006
11429
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11007
|
-
</xsl:attribute-set>
|
11430
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
11431
|
+
|
11432
|
+
<xsl:template name="refine_note-p-style">
|
11433
|
+
</xsl:template>
|
11008
11434
|
|
11009
11435
|
<xsl:attribute-set name="termnote-style">
|
11010
11436
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
11011
|
-
<xsl:attribute name="margin-top">
|
11012
|
-
<xsl:attribute name="margin-bottom">
|
11437
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
11438
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11013
11439
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11014
|
-
</xsl:attribute-set>
|
11440
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
11015
11441
|
|
11016
11442
|
<xsl:template name="refine_termnote-style">
|
11443
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-definition]">
|
11444
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
11445
|
+
</xsl:if>
|
11446
|
+
<xsl:if test="not(following-sibling::*)">
|
11447
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11448
|
+
</xsl:if>
|
11017
11449
|
</xsl:template> <!-- refine_termnote-style -->
|
11018
11450
|
|
11019
11451
|
<xsl:attribute-set name="termnote-name-style">
|
11020
|
-
</xsl:attribute-set>
|
11452
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
11021
11453
|
|
11022
11454
|
<xsl:template name="refine_termnote-name-style">
|
11023
11455
|
</xsl:template>
|
@@ -11025,6 +11457,9 @@
|
|
11025
11457
|
<xsl:attribute-set name="termnote-p-style">
|
11026
11458
|
</xsl:attribute-set>
|
11027
11459
|
|
11460
|
+
<xsl:template name="refine_termnote-p-style">
|
11461
|
+
</xsl:template>
|
11462
|
+
|
11028
11463
|
<!-- ====== -->
|
11029
11464
|
<!-- note -->
|
11030
11465
|
<!-- termnote -->
|
@@ -11085,11 +11520,13 @@
|
|
11085
11520
|
<xsl:choose>
|
11086
11521
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
11087
11522
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
11523
|
+
<xsl:call-template name="refine_note-p-style"/>
|
11088
11524
|
<xsl:apply-templates/>
|
11089
11525
|
</fo:inline>
|
11090
11526
|
</xsl:when>
|
11091
11527
|
<xsl:otherwise>
|
11092
11528
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
11529
|
+
<xsl:call-template name="refine_note-p-style"/>
|
11093
11530
|
<xsl:apply-templates/>
|
11094
11531
|
</fo:block>
|
11095
11532
|
</xsl:otherwise>
|
@@ -11181,11 +11618,13 @@
|
|
11181
11618
|
<xsl:choose>
|
11182
11619
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
11183
11620
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
11621
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
11184
11622
|
<xsl:apply-templates/>
|
11185
11623
|
</fo:inline>
|
11186
11624
|
</xsl:when>
|
11187
11625
|
<xsl:otherwise>
|
11188
11626
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
11627
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
11189
11628
|
<xsl:apply-templates/>
|
11190
11629
|
</fo:block>
|
11191
11630
|
</xsl:otherwise>
|
@@ -11198,7 +11637,7 @@
|
|
11198
11637
|
<xsl:attribute-set name="quote-style">
|
11199
11638
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
11200
11639
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
11201
|
-
</xsl:attribute-set>
|
11640
|
+
</xsl:attribute-set> <!-- quote-style -->
|
11202
11641
|
|
11203
11642
|
<xsl:template name="refine_quote-style">
|
11204
11643
|
</xsl:template>
|
@@ -11207,6 +11646,9 @@
|
|
11207
11646
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
11208
11647
|
</xsl:attribute-set>
|
11209
11648
|
|
11649
|
+
<xsl:template name="refine_quote-source-style">
|
11650
|
+
</xsl:template>
|
11651
|
+
|
11210
11652
|
<!-- ====== -->
|
11211
11653
|
<!-- quote -->
|
11212
11654
|
<!-- source -->
|
@@ -11235,6 +11677,7 @@
|
|
11235
11677
|
</fo:block-container>
|
11236
11678
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
11237
11679
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
11680
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
11238
11681
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
11239
11682
|
<xsl:apply-templates select="mn:author"/>
|
11240
11683
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -11297,6 +11740,9 @@
|
|
11297
11740
|
<xsl:attribute-set name="figure-style">
|
11298
11741
|
</xsl:attribute-set>
|
11299
11742
|
|
11743
|
+
<xsl:template name="refine_figure-style">
|
11744
|
+
</xsl:template>
|
11745
|
+
|
11300
11746
|
<xsl:attribute-set name="figure-name-style">
|
11301
11747
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
11302
11748
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
@@ -11305,7 +11751,7 @@
|
|
11305
11751
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
11306
11752
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
11307
11753
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
11308
|
-
</xsl:attribute-set>
|
11754
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
11309
11755
|
|
11310
11756
|
<xsl:template name="refine_figure-name-style">
|
11311
11757
|
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -11317,7 +11763,7 @@
|
|
11317
11763
|
<xsl:attribute-set name="image-style">
|
11318
11764
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
11319
11765
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
11320
|
-
</xsl:attribute-set>
|
11766
|
+
</xsl:attribute-set> <!-- image-style -->
|
11321
11767
|
|
11322
11768
|
<xsl:template name="refine_image-style">
|
11323
11769
|
</xsl:template>
|
@@ -11327,14 +11773,51 @@
|
|
11327
11773
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
11328
11774
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
11329
11775
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
11330
|
-
</xsl:attribute-set>
|
11776
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
11777
|
+
|
11778
|
+
<xsl:template name="refine_image-graphic-style">
|
11779
|
+
</xsl:template>
|
11331
11780
|
|
11332
11781
|
<xsl:attribute-set name="figure-source-style">
|
11333
11782
|
</xsl:attribute-set>
|
11334
11783
|
|
11784
|
+
<xsl:template name="refine_figure-source-style">
|
11785
|
+
</xsl:template>
|
11786
|
+
|
11335
11787
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
11336
11788
|
</xsl:attribute-set>
|
11337
11789
|
|
11790
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
11791
|
+
</xsl:template>
|
11792
|
+
|
11793
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
11794
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
11795
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
11796
|
+
|
11797
|
+
<xsl:template name="refine_figure-fn-number-style">
|
11798
|
+
</xsl:template>
|
11799
|
+
|
11800
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
11801
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11802
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11803
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
11804
|
+
|
11805
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
11806
|
+
</xsl:template>
|
11807
|
+
|
11808
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
11809
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11810
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11811
|
+
</xsl:attribute-set>
|
11812
|
+
|
11813
|
+
<xsl:template name="refine_figure-fn-body-style">
|
11814
|
+
<xsl:variable name="key_iso">
|
11815
|
+
</xsl:variable>
|
11816
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
11817
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
11818
|
+
</xsl:if>
|
11819
|
+
</xsl:template>
|
11820
|
+
|
11338
11821
|
<!-- ============================ -->
|
11339
11822
|
<!-- figure's footnotes rendering -->
|
11340
11823
|
<!-- ============================ -->
|
@@ -11447,9 +11930,8 @@
|
|
11447
11930
|
</fo:table-cell>
|
11448
11931
|
<fo:table-cell>
|
11449
11932
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
11450
|
-
<xsl:
|
11451
|
-
|
11452
|
-
</xsl:if>
|
11933
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
11934
|
+
|
11453
11935
|
<!-- <xsl:copy-of select="./node()"/> -->
|
11454
11936
|
<xsl:apply-templates/>
|
11455
11937
|
</fo:block>
|
@@ -11467,6 +11949,7 @@
|
|
11467
11949
|
<xsl:param name="process">false</xsl:param>
|
11468
11950
|
<xsl:if test="$process = 'true'">
|
11469
11951
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
11952
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
11470
11953
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
11471
11954
|
|
11472
11955
|
<!-- tab is padding-right -->
|
@@ -11504,6 +11987,7 @@
|
|
11504
11987
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
11505
11988
|
</xsl:if>
|
11506
11989
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
11990
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
11507
11991
|
<!-- <xsl:value-of select="@reference"/> -->
|
11508
11992
|
<xsl:apply-templates/>
|
11509
11993
|
</fo:inline>
|
@@ -11549,6 +12033,8 @@
|
|
11549
12033
|
|
11550
12034
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
11551
12035
|
|
12036
|
+
<xsl:call-template name="refine_figure-style"/>
|
12037
|
+
|
11552
12038
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
11553
12039
|
<xsl:call-template name="setIDforNamedDestination"/>
|
11554
12040
|
</xsl:for-each>
|
@@ -11592,6 +12078,7 @@
|
|
11592
12078
|
|
11593
12079
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
11594
12080
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
12081
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
11595
12082
|
<xsl:apply-templates/>
|
11596
12083
|
</fo:block>
|
11597
12084
|
</xsl:template>
|
@@ -11721,6 +12208,8 @@
|
|
11721
12208
|
</xsl:variable>
|
11722
12209
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
11723
12210
|
|
12211
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
12212
|
+
|
11724
12213
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
11725
12214
|
<xsl:variable name="scale">
|
11726
12215
|
<xsl:call-template name="getImageScale">
|
@@ -12420,6 +12909,9 @@
|
|
12420
12909
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
12421
12910
|
</xsl:attribute-set> <!-- formula-style -->
|
12422
12911
|
|
12912
|
+
<xsl:template name="refine_formula-style">
|
12913
|
+
</xsl:template>
|
12914
|
+
|
12423
12915
|
<xsl:attribute-set name="formula-stem-block-style">
|
12424
12916
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
12425
12917
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -12490,6 +12982,8 @@
|
|
12490
12982
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
12491
12983
|
<fo:block xsl:use-attribute-sets="formula-style">
|
12492
12984
|
|
12985
|
+
<xsl:call-template name="refine_formula-style"/>
|
12986
|
+
|
12493
12987
|
<fo:table table-layout="fixed" width="100%">
|
12494
12988
|
<fo:table-column column-width="95%"/>
|
12495
12989
|
<fo:table-column column-width="5%"/>
|
@@ -12899,11 +13393,33 @@
|
|
12899
13393
|
<!-- ======================================= -->
|
12900
13394
|
|
12901
13395
|
<xsl:attribute-set name="list-style">
|
12902
|
-
<xsl:attribute name="provisional-distance-between-starts">
|
13396
|
+
<xsl:attribute name="provisional-distance-between-starts">7mm</xsl:attribute>
|
12903
13397
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
12904
13398
|
</xsl:attribute-set> <!-- list-style -->
|
12905
13399
|
|
12906
13400
|
<xsl:template name="refine_list-style">
|
13401
|
+
<xsl:if test="parent::mn:admonition[@type = 'commentary']">
|
13402
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
13403
|
+
</xsl:if>
|
13404
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:p]">
|
13405
|
+
<!-- <xsl:attribute name="margin-top">6pt</xsl:attribute> -->
|
13406
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
13407
|
+
</xsl:if>
|
13408
|
+
|
13409
|
+
<xsl:if test="ancestor::mn:note or ancestor::mn:termnote">
|
13410
|
+
<xsl:attribute name="provisional-distance-between-starts">4mm</xsl:attribute>
|
13411
|
+
</xsl:if>
|
13412
|
+
|
13413
|
+
<xsl:variable name="processing_instruction_type" select="normalize-space(preceding-sibling::*[1]/processing-instruction('list-type'))"/>
|
13414
|
+
<xsl:if test="self::mn:ul and normalize-space($processing_instruction_type) = 'simple'">
|
13415
|
+
<xsl:attribute name="provisional-distance-between-starts">0mm</xsl:attribute>
|
13416
|
+
</xsl:if>
|
13417
|
+
|
13418
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
13419
|
+
<xsl:attribute name="line-height">1.3</xsl:attribute>
|
13420
|
+
<xsl:attribute name="margin-left">6.2mm</xsl:attribute>
|
13421
|
+
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
13422
|
+
</xsl:if>
|
12907
13423
|
</xsl:template> <!-- refine_list-style -->
|
12908
13424
|
|
12909
13425
|
<xsl:attribute-set name="list-name-style">
|
@@ -12912,6 +13428,9 @@
|
|
12912
13428
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12913
13429
|
</xsl:attribute-set> <!-- list-name-style -->
|
12914
13430
|
|
13431
|
+
<xsl:template name="refine_list-name-style">
|
13432
|
+
</xsl:template>
|
13433
|
+
|
12915
13434
|
<xsl:attribute-set name="list-item-style">
|
12916
13435
|
</xsl:attribute-set>
|
12917
13436
|
|
@@ -13147,11 +13666,16 @@
|
|
13147
13666
|
</fo:block-container>
|
13148
13667
|
</xsl:when>
|
13149
13668
|
<xsl:otherwise>
|
13150
|
-
<fo:block
|
13151
|
-
<
|
13152
|
-
<
|
13153
|
-
|
13154
|
-
|
13669
|
+
<fo:block-container margin-left="4mm">
|
13670
|
+
<fo:block-container margin-left="0mm">
|
13671
|
+
<fo:block role="SKIP">
|
13672
|
+
<xsl:apply-templates select="." mode="list">
|
13673
|
+
<xsl:with-param name="indent" select="$indent"/>
|
13674
|
+
</xsl:apply-templates>
|
13675
|
+
</fo:block>
|
13676
|
+
</fo:block-container>
|
13677
|
+
</fo:block-container>
|
13678
|
+
|
13155
13679
|
</xsl:otherwise>
|
13156
13680
|
</xsl:choose>
|
13157
13681
|
</xsl:template>
|
@@ -13226,6 +13750,7 @@
|
|
13226
13750
|
<xsl:param name="process">false</xsl:param>
|
13227
13751
|
<xsl:if test="$process = 'true'">
|
13228
13752
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
13753
|
+
<xsl:call-template name="refine_list-name-style"/>
|
13229
13754
|
<xsl:apply-templates/>
|
13230
13755
|
</fo:block>
|
13231
13756
|
</xsl:if>
|
@@ -13286,26 +13811,54 @@
|
|
13286
13811
|
<!-- END Lists processing -->
|
13287
13812
|
<!-- ===================================== -->
|
13288
13813
|
|
13814
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
13815
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
13816
|
+
<xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
|
13817
|
+
<xsl:attribute name="leader-length">35%</xsl:attribute>
|
13818
|
+
</xsl:attribute-set>
|
13819
|
+
|
13820
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
13821
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
13822
|
+
<xsl:attribute name="rule-thickness">1pt</xsl:attribute>
|
13823
|
+
<xsl:attribute name="leader-length">51mm</xsl:attribute>
|
13824
|
+
</xsl:if>
|
13825
|
+
</xsl:template>
|
13826
|
+
|
13827
|
+
<xsl:attribute-set name="fn-container-body-style">
|
13828
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
13829
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
13830
|
+
</xsl:attribute-set>
|
13831
|
+
|
13832
|
+
<xsl:template name="refine_fn-container-body-style">
|
13833
|
+
</xsl:template>
|
13834
|
+
|
13289
13835
|
<xsl:attribute-set name="fn-reference-style">
|
13290
13836
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
13291
13837
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13292
13838
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
13293
13839
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
13294
|
-
|
13295
|
-
</xsl:attribute-set>
|
13840
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
13296
13841
|
|
13297
13842
|
<xsl:template name="refine_fn-reference-style">
|
13843
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13844
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
13298
13845
|
</xsl:template> <!-- refine_fn-reference-style -->
|
13299
13846
|
|
13300
13847
|
<xsl:attribute-set name="fn-style">
|
13301
13848
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13302
13849
|
</xsl:attribute-set>
|
13303
13850
|
|
13851
|
+
<xsl:template name="refine_fn-style">
|
13852
|
+
</xsl:template>
|
13853
|
+
|
13304
13854
|
<xsl:attribute-set name="fn-num-style">
|
13305
13855
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13306
13856
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
13307
13857
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
13308
|
-
</xsl:attribute-set>
|
13858
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
13859
|
+
|
13860
|
+
<xsl:template name="refine_fn-num-style">
|
13861
|
+
</xsl:template>
|
13309
13862
|
|
13310
13863
|
<xsl:attribute-set name="fn-body-style">
|
13311
13864
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -13314,7 +13867,7 @@
|
|
13314
13867
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
13315
13868
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
13316
13869
|
<!-- <xsl:attribute name="margin-bottom">5pt</xsl:attribute> -->
|
13317
|
-
</xsl:attribute-set>
|
13870
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
13318
13871
|
|
13319
13872
|
<xsl:template name="refine_fn-body-style">
|
13320
13873
|
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
@@ -13386,10 +13939,12 @@
|
|
13386
13939
|
<xsl:choose>
|
13387
13940
|
<xsl:when test="ancestor::mn:bibitem">
|
13388
13941
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
13942
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
13389
13943
|
</fn_styles>
|
13390
13944
|
</xsl:when>
|
13391
13945
|
<xsl:otherwise>
|
13392
13946
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
13947
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
13393
13948
|
</fn_styles>
|
13394
13949
|
</xsl:otherwise>
|
13395
13950
|
</xsl:choose>
|
@@ -13399,9 +13954,12 @@
|
|
13399
13954
|
<xsl:copy-of select="."/>
|
13400
13955
|
</xsl:for-each>
|
13401
13956
|
|
13402
|
-
|
13957
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
13958
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
13403
13959
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
13404
|
-
</xsl:if>
|
13960
|
+
</xsl:if> -->
|
13961
|
+
|
13962
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
13405
13963
|
|
13406
13964
|
<xsl:call-template name="insert_basic_link">
|
13407
13965
|
<xsl:with-param name="element">
|
@@ -13424,10 +13982,12 @@
|
|
13424
13982
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
13425
13983
|
|
13426
13984
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
13985
|
+
<xsl:call-template name="refine_fn-style"/>
|
13427
13986
|
<xsl:copy-of select="$footnote_inline"/>
|
13428
13987
|
<fo:footnote-body role="Note">
|
13429
13988
|
|
13430
13989
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
13990
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
13431
13991
|
|
13432
13992
|
<xsl:variable name="fn_block">
|
13433
13993
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -13528,6 +14088,9 @@
|
|
13528
14088
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
13529
14089
|
</xsl:attribute-set> <!-- admonition-style -->
|
13530
14090
|
|
14091
|
+
<xsl:template name="refine_admonition-style">
|
14092
|
+
</xsl:template>
|
14093
|
+
|
13531
14094
|
<xsl:attribute-set name="admonition-container-style">
|
13532
14095
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
13533
14096
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -13535,13 +14098,23 @@
|
|
13535
14098
|
<xsl:attribute name="padding-bottom">2mm</xsl:attribute>
|
13536
14099
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
13537
14100
|
|
14101
|
+
<xsl:template name="refine_admonition-container-style">
|
14102
|
+
</xsl:template>
|
14103
|
+
|
13538
14104
|
<xsl:attribute-set name="admonition-name-style">
|
13539
14105
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
13540
14106
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
13541
14107
|
|
14108
|
+
<xsl:template name="refine_admonition-name-style">
|
14109
|
+
</xsl:template>
|
14110
|
+
|
13542
14111
|
<xsl:attribute-set name="admonition-p-style">
|
13543
14112
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
13544
14113
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
14114
|
+
|
14115
|
+
<xsl:template name="refine_admonition-p-style">
|
14116
|
+
</xsl:template>
|
14117
|
+
|
13545
14118
|
<!-- end admonition -->
|
13546
14119
|
|
13547
14120
|
<!-- ================ -->
|
@@ -13551,6 +14124,8 @@
|
|
13551
14124
|
<xsl:call-template name="setNamedDestination"/>
|
13552
14125
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
13553
14126
|
|
14127
|
+
<xsl:call-template name="refine_admonition-style"/>
|
14128
|
+
|
13554
14129
|
<xsl:call-template name="setBlockSpanAll"/>
|
13555
14130
|
<xsl:if test="@type = 'editorial'">
|
13556
14131
|
<xsl:attribute name="border">none</xsl:attribute>
|
@@ -13567,6 +14142,8 @@
|
|
13567
14142
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
13568
14143
|
</xsl:if>
|
13569
14144
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
14145
|
+
|
14146
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
13570
14147
|
<xsl:if test="@type = 'editorial' or not(@type)">
|
13571
14148
|
<xsl:attribute name="padding">0mm</xsl:attribute>
|
13572
14149
|
</xsl:if>
|
@@ -13576,6 +14153,7 @@
|
|
13576
14153
|
</xsl:if>
|
13577
14154
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
13578
14155
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14156
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
13579
14157
|
<fo:inline>
|
13580
14158
|
<xsl:call-template name="displayAdmonitionName">
|
13581
14159
|
<xsl:with-param name="sep">: </xsl:with-param>
|
@@ -13640,6 +14218,7 @@
|
|
13640
14218
|
</xsl:when>
|
13641
14219
|
<xsl:otherwise>
|
13642
14220
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14221
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
13643
14222
|
<xsl:apply-templates/>
|
13644
14223
|
</fo:block>
|
13645
14224
|
</xsl:otherwise>
|
@@ -13651,21 +14230,43 @@
|
|
13651
14230
|
<!-- END Admonition -->
|
13652
14231
|
<!-- ================ -->
|
13653
14232
|
|
14233
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
14234
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
14235
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
14236
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
14237
|
+
<xsl:attribute name="margin-bottom">36pt</xsl:attribute>
|
14238
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
14239
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
14240
|
+
</xsl:attribute-set>
|
14241
|
+
|
14242
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
14243
|
+
|
14244
|
+
</xsl:template>
|
14245
|
+
|
13654
14246
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
13655
14247
|
<xsl:attribute-set name="bibitem-normative-style">
|
13656
14248
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
13657
14249
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13658
14250
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
13659
14251
|
|
14252
|
+
<xsl:template name="refine_bibitem-normative-style">
|
14253
|
+
</xsl:template>
|
14254
|
+
|
13660
14255
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
13661
14256
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
13662
14257
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
13663
14258
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13664
14259
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
13665
14260
|
|
14261
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
14262
|
+
</xsl:template>
|
14263
|
+
|
13666
14264
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
13667
14265
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
13668
14266
|
|
14267
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
14268
|
+
</xsl:template>
|
14269
|
+
|
13669
14270
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
13670
14271
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
13671
14272
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -13674,20 +14275,40 @@
|
|
13674
14275
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
13675
14276
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
13676
14277
|
|
14278
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
14279
|
+
<xsl:variable name="bibitem_label">
|
14280
|
+
<xsl:apply-templates select="mn:biblio-tag">
|
14281
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
14282
|
+
</xsl:apply-templates>
|
14283
|
+
</xsl:variable>
|
14284
|
+
<xsl:if test="string-length(normalize-space($bibitem_label)) > 5">
|
14285
|
+
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
14286
|
+
</xsl:if>
|
14287
|
+
</xsl:template>
|
14288
|
+
|
13677
14289
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
13678
14290
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
13679
14291
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
13680
14292
|
</xsl:attribute-set>
|
13681
14293
|
|
14294
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
14295
|
+
</xsl:template>
|
14296
|
+
|
13682
14297
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
13683
14298
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
13684
14299
|
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
13685
14300
|
</xsl:attribute-set>
|
13686
14301
|
|
14302
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
14303
|
+
</xsl:template>
|
14304
|
+
|
13687
14305
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
13688
14306
|
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
13689
14307
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
13690
14308
|
|
14309
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
14310
|
+
</xsl:template>
|
14311
|
+
|
13691
14312
|
<!-- footnote reference number for bibitem, in the text -->
|
13692
14313
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
13693
14314
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -13696,6 +14317,9 @@
|
|
13696
14317
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
13697
14318
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
13698
14319
|
|
14320
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
14321
|
+
</xsl:template>
|
14322
|
+
|
13699
14323
|
<!-- footnote number on the page bottom -->
|
13700
14324
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
13701
14325
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -13715,6 +14339,9 @@
|
|
13715
14339
|
<xsl:attribute-set name="references-non-normative-style">
|
13716
14340
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
13717
14341
|
|
14342
|
+
<xsl:template name="refine_references-non-normative-style">
|
14343
|
+
</xsl:template>
|
14344
|
+
|
13718
14345
|
<!-- ======================= -->
|
13719
14346
|
<!-- Bibliography rendering -->
|
13720
14347
|
<!-- ======================= -->
|
@@ -13755,6 +14382,7 @@
|
|
13755
14382
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
13756
14383
|
|
13757
14384
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
14385
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
13758
14386
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
13759
14387
|
</fo:block>
|
13760
14388
|
</xsl:template> <!-- references -->
|
@@ -13768,26 +14396,22 @@
|
|
13768
14396
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
13769
14397
|
<xsl:call-template name="setNamedDestination"/>
|
13770
14398
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
14399
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
14400
|
+
|
13771
14401
|
<xsl:call-template name="processBibitem"/>
|
13772
14402
|
</fo:block>
|
13773
14403
|
|
13774
14404
|
</xsl:template> <!-- bibitem -->
|
13775
14405
|
|
13776
14406
|
<!-- Bibliography (non-normative references) -->
|
13777
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
14407
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
13778
14408
|
<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
14409
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
13780
14410
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
13781
14411
|
<xsl:call-template name="setNamedDestination"/>
|
13782
14412
|
<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>
|
14413
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
14414
|
+
|
13791
14415
|
<fo:list-item>
|
13792
14416
|
<fo:list-item-label end-indent="label-end()">
|
13793
14417
|
<fo:block role="SKIP">
|
@@ -13803,6 +14427,7 @@
|
|
13803
14427
|
</fo:list-item-label>
|
13804
14428
|
<fo:list-item-body start-indent="body-start()">
|
13805
14429
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
14430
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
13806
14431
|
<xsl:call-template name="processBibitem">
|
13807
14432
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
13808
14433
|
</xsl:call-template>
|
@@ -13813,12 +14438,17 @@
|
|
13813
14438
|
|
13814
14439
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
13815
14440
|
|
14441
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
14442
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
14443
|
+
|
13816
14444
|
<xsl:template name="insertListItem_Bibitem">
|
13817
14445
|
<xsl:choose>
|
13818
14446
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
13819
14447
|
<xsl:otherwise>
|
13820
14448
|
<xsl:call-template name="setNamedDestination"/>
|
13821
14449
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
14450
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
14451
|
+
|
13822
14452
|
<fo:list-item-label end-indent="label-end()">
|
13823
14453
|
<fo:block role="SKIP">
|
13824
14454
|
<fo:inline role="SKIP">
|
@@ -13829,16 +14459,18 @@
|
|
13829
14459
|
</fo:block>
|
13830
14460
|
</fo:list-item-label>
|
13831
14461
|
<fo:list-item-body start-indent="body-start()">
|
13832
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
14462
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
14463
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
13833
14464
|
<xsl:call-template name="processBibitem">
|
13834
14465
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
13835
14466
|
</xsl:call-template>
|
13836
14467
|
</fo:block>
|
14468
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
13837
14469
|
</fo:list-item-body>
|
13838
14470
|
</fo:list-item>
|
13839
14471
|
</xsl:otherwise>
|
13840
14472
|
</xsl:choose>
|
13841
|
-
<xsl:apply-templates select="following-sibling::*[
|
14473
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
13842
14474
|
<xsl:with-param name="skip">false</xsl:with-param>
|
13843
14475
|
</xsl:apply-templates>
|
13844
14476
|
</xsl:template>
|
@@ -13854,25 +14486,16 @@
|
|
13854
14486
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
13855
14487
|
</xsl:apply-templates>
|
13856
14488
|
<xsl:apply-templates select="mn:formattedref"/>
|
14489
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
13857
14490
|
<!-- end bibitem processing -->
|
13858
|
-
|
13859
|
-
<xsl:call-template name="processBibliographyNote"/>
|
13860
14491
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
13861
14492
|
|
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> -->
|
14493
|
+
<xsl:template name="processBibitemFollowingNotes">
|
14494
|
+
<!-- current context is bibitem element -->
|
14495
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
14496
|
+
<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
14497
|
<xsl:call-template name="note"/>
|
13875
|
-
</xsl:
|
14498
|
+
</xsl:for-each>
|
13876
14499
|
</xsl:template>
|
13877
14500
|
|
13878
14501
|
<xsl:template match="mn:title" mode="title">
|
@@ -14072,11 +14695,17 @@
|
|
14072
14695
|
<!-- Index section styles -->
|
14073
14696
|
<xsl:attribute-set name="indexsect-title-style">
|
14074
14697
|
<xsl:attribute name="role">H1</xsl:attribute>
|
14075
|
-
</xsl:attribute-set>
|
14698
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
14699
|
+
|
14700
|
+
<xsl:template name="refine_indexsect-title-style">
|
14701
|
+
</xsl:template>
|
14076
14702
|
|
14077
14703
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
14078
14704
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
14079
|
-
</xsl:attribute-set>
|
14705
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
14706
|
+
|
14707
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
14708
|
+
</xsl:template>
|
14080
14709
|
<!-- End Index section styles -->
|
14081
14710
|
|
14082
14711
|
<!-- =================== -->
|
@@ -14270,6 +14899,7 @@
|
|
14270
14899
|
|
14271
14900
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
14272
14901
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
14902
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
14273
14903
|
<!-- Index -->
|
14274
14904
|
<xsl:apply-templates/>
|
14275
14905
|
</fo:block>
|
@@ -14278,6 +14908,7 @@
|
|
14278
14908
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
14279
14909
|
<!-- Letter A, B, C, ... -->
|
14280
14910
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
14911
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
14281
14912
|
<xsl:apply-templates/>
|
14282
14913
|
</fo:block>
|
14283
14914
|
</xsl:template>
|
@@ -14481,9 +15112,15 @@
|
|
14481
15112
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
14482
15113
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
14483
15114
|
|
15115
|
+
<xsl:template name="refine_toc-leader-style">
|
15116
|
+
</xsl:template>
|
15117
|
+
|
14484
15118
|
<xsl:attribute-set name="toc-pagenumber-style">
|
14485
15119
|
</xsl:attribute-set>
|
14486
15120
|
|
15121
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
15122
|
+
</xsl:template>
|
15123
|
+
|
14487
15124
|
<!-- List of Figures, Tables -->
|
14488
15125
|
<xsl:attribute-set name="toc-listof-title-style">
|
14489
15126
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
@@ -14503,6 +15140,9 @@
|
|
14503
15140
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
14504
15141
|
</xsl:attribute-set>
|
14505
15142
|
|
15143
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
15144
|
+
</xsl:template>
|
15145
|
+
|
14506
15146
|
<xsl:attribute-set name="toc-listof-item-style">
|
14507
15147
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
14508
15148
|
<xsl:attribute name="provisional-distance-between-starts">22.5mm</xsl:attribute>
|
@@ -14511,6 +15151,9 @@
|
|
14511
15151
|
<xsl:attribute name="margin-left">2mm</xsl:attribute>
|
14512
15152
|
</xsl:attribute-set>
|
14513
15153
|
|
15154
|
+
<xsl:template name="refine_toc-listof-item-style">
|
15155
|
+
</xsl:template>
|
15156
|
+
|
14514
15157
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
14515
15158
|
<xsl:variable name="nodes_preface_">
|
14516
15159
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -15622,23 +16265,55 @@
|
|
15622
16265
|
<!-- Ruby text (CJK languages) rendering -->
|
15623
16266
|
<!-- ===================================== -->
|
15624
16267
|
<!-- ===================================== -->
|
16268
|
+
|
16269
|
+
<xsl:attribute-set name="ruby-style">
|
16270
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
16271
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
16272
|
+
</xsl:attribute-set>
|
16273
|
+
|
16274
|
+
<xsl:template name="refine_ruby-style">
|
16275
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
16276
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
16277
|
+
</xsl:if>
|
16278
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
16279
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
16280
|
+
<!-- Example: width="2em" -->
|
16281
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
16282
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
16283
|
+
<xsl:variable name="text_width">
|
16284
|
+
<xsl:choose>
|
16285
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
16286
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
16287
|
+
</xsl:choose>
|
16288
|
+
</xsl:variable>
|
16289
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
16290
|
+
</xsl:template> <!-- refine_ruby-style -->
|
16291
|
+
|
16292
|
+
<xsl:attribute-set name="rb-style">
|
16293
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
16294
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
16295
|
+
</xsl:attribute-set>
|
16296
|
+
|
16297
|
+
<xsl:template name="refine_rb-style">
|
16298
|
+
</xsl:template>
|
16299
|
+
|
16300
|
+
<xsl:attribute-set name="rt-style">
|
16301
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
16302
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
16303
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
16304
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
16305
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
16306
|
+
</xsl:attribute-set>
|
16307
|
+
|
16308
|
+
<xsl:template name="refine_rt-style">
|
16309
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
16310
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
16311
|
+
</xsl:if>
|
16312
|
+
</xsl:template>
|
16313
|
+
|
15625
16314
|
<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>
|
16315
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
16316
|
+
<xsl:call-template name="refine_ruby-style"/>
|
15642
16317
|
|
15643
16318
|
<xsl:choose>
|
15644
16319
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -15656,17 +16331,14 @@
|
|
15656
16331
|
</xsl:template>
|
15657
16332
|
|
15658
16333
|
<xsl:template match="mn:rb">
|
15659
|
-
<fo:block
|
16334
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
15660
16335
|
</xsl:template>
|
15661
16336
|
|
15662
16337
|
<xsl:template match="mn:rt">
|
15663
|
-
<fo:block
|
15664
|
-
<xsl:
|
15665
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
15666
|
-
</xsl:if>
|
16338
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
16339
|
+
<xsl:call-template name="refine_rt-style"/>
|
15667
16340
|
<xsl:apply-templates/>
|
15668
16341
|
</fo:block>
|
15669
|
-
|
15670
16342
|
</xsl:template>
|
15671
16343
|
|
15672
16344
|
<!-- ===================================== -->
|
@@ -15675,6 +16347,27 @@
|
|
15675
16347
|
<!-- ===================================== -->
|
15676
16348
|
<!-- ===================================== -->
|
15677
16349
|
|
16350
|
+
<xsl:attribute-set name="annex-title-style">
|
16351
|
+
</xsl:attribute-set>
|
16352
|
+
|
16353
|
+
<xsl:template name="refine_annex-title-style">
|
16354
|
+
</xsl:template>
|
16355
|
+
|
16356
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
16357
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
16358
|
+
<xsl:attribute name="font-size">23pt</xsl:attribute>
|
16359
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
16360
|
+
<xsl:attribute name="margin-top">84pt</xsl:attribute>
|
16361
|
+
<xsl:attribute name="margin-bottom">40pt</xsl:attribute>
|
16362
|
+
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
16363
|
+
</xsl:attribute-set>
|
16364
|
+
|
16365
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
16366
|
+
<xsl:if test="(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '') or $current_template = 'standard'">
|
16367
|
+
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
16368
|
+
</xsl:if>
|
16369
|
+
</xsl:template>
|
16370
|
+
|
15678
16371
|
<xsl:template name="processPrefaceSectionsDefault">
|
15679
16372
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
15680
16373
|
<xsl:sort select="@displayorder" data-type="number"/>
|