metanorma-ieee 0.0.2 → 0.0.3
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_amd.html +105 -0
- data/lib/isodoc/ieee/html/html_ieee_titlepage.html +11 -12
- data/lib/isodoc/ieee/html/ieee.css +23 -15
- data/lib/isodoc/ieee/html/ieee.scss +24 -15
- data/lib/isodoc/ieee/html/word_ieee_titlepage.html +12 -1
- data/lib/isodoc/ieee/i18n-en.yaml +1 -0
- data/lib/isodoc/ieee/ieee.amendment.xsl +370 -184
- data/lib/isodoc/ieee/ieee.standard.xsl +370 -184
- data/lib/isodoc/ieee/metadata.rb +25 -47
- data/lib/isodoc/ieee/pdf_convert.rb +2 -2
- data/lib/isodoc/ieee/presentation_ref.rb +70 -0
- data/lib/isodoc/ieee/presentation_terms.rb +67 -20
- data/lib/isodoc/ieee/presentation_xml_convert.rb +97 -63
- data/lib/isodoc/ieee/word_authority.rb +5 -3
- data/lib/isodoc/ieee/word_convert.rb +12 -0
- data/lib/metanorma/ieee/boilerplate.xml +68 -19
- data/lib/metanorma/ieee/cleanup.rb +96 -33
- data/lib/metanorma/ieee/cleanup_ref.rb +1 -0
- data/lib/metanorma/ieee/converter.rb +7 -0
- data/lib/metanorma/ieee/front.rb +40 -53
- data/lib/metanorma/ieee/ieee.rng +32 -2
- data/lib/metanorma/ieee/isodoc.rng +10 -0
- data/lib/metanorma/ieee/term_lookup_cleanup.rb +11 -0
- data/lib/metanorma/ieee/validate.rb +57 -53
- data/lib/metanorma/ieee/validate_style.rb +53 -0
- data/lib/metanorma/ieee/version.rb +1 -1
- metadata +5 -2
@@ -47,13 +47,69 @@
|
|
47
47
|
</xsl:for-each>
|
48
48
|
</xsl:variable>
|
49
49
|
|
50
|
-
<xsl:variable name="doctype" select="(//ieee:ieee-standard)[1]/ieee:bibdata/ieee:ext/ieee:doctype[normalize-space(@language) = '']"/>
|
50
|
+
<xsl:variable name="doctype" select="(//ieee:ieee-standard)[1]/ieee:bibdata/ieee:ext/ieee:doctype[normalize-space(@language) = '']"/> <!-- values standard, guide, recommended-practice -->
|
51
51
|
|
52
|
-
<xsl:variable name="
|
52
|
+
<xsl:variable name="doctype_localized" select="(//ieee:ieee-standard)[1]/ieee:bibdata/ieee:ext/ieee:doctype[@language = $lang]"/>
|
53
|
+
|
54
|
+
<xsl:variable name="subdoctype" select="(//ieee:ieee-standard)[1]/ieee:bibdata/ieee:ext/ieee:subdoctype[normalize-space(@language) = '']"/> <!-- has values amendment, corrigendum, erratum -->
|
55
|
+
|
56
|
+
<xsl:variable name="stage_" select="normalize-space((//ieee:ieee-standard)[1]/ieee:bibdata/ieee:status/ieee:stage)"/>
|
57
|
+
|
58
|
+
<xsl:variable name="stage">
|
59
|
+
<xsl:choose>
|
60
|
+
<xsl:when test="translate($stage_,'0123456789','') != ''">
|
61
|
+
<xsl:choose>
|
62
|
+
<xsl:when test="$stage_ = 'Developing' or $stage_ = 'developing' or $stage_ = 'draft'">draft</xsl:when>
|
63
|
+
<xsl:when test="$stage_ = 'Active' or $stage_ = 'active' or $stage_ = 'Inactive' or $stage_ = 'inactive'">published</xsl:when>
|
64
|
+
<xsl:otherwise>
|
65
|
+
<xsl:value-of select="$stage_"/>
|
66
|
+
</xsl:otherwise>
|
67
|
+
</xsl:choose>
|
68
|
+
</xsl:when> <!-- 'draft' or 'published' -->
|
69
|
+
<xsl:otherwise> <!-- stage in digits form -->
|
70
|
+
<xsl:choose>
|
71
|
+
<xsl:when test="number($stage_) < 60">draft</xsl:when>
|
72
|
+
<xsl:otherwise>published</xsl:otherwise>
|
73
|
+
</xsl:choose>
|
74
|
+
</xsl:otherwise>
|
75
|
+
</xsl:choose>
|
76
|
+
</xsl:variable>
|
77
|
+
|
78
|
+
<xsl:variable name="trial_use" select="(//ieee:ieee-standard)[1]/ieee:bibdata/ieee:ext/ieee:trial-use[normalize-space(@language) = '']"/>
|
79
|
+
|
80
|
+
<xsl:variable name="current_template">
|
81
|
+
<xsl:choose>
|
82
|
+
<xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'draft'">draft</xsl:when>
|
83
|
+
<xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'published'">standard</xsl:when>
|
84
|
+
<xsl:otherwise><xsl:value-of select="$doctype"/></xsl:otherwise>
|
85
|
+
</xsl:choose>
|
86
|
+
</xsl:variable>
|
87
|
+
|
88
|
+
<xsl:variable name="title_prefix">
|
89
|
+
<xsl:choose>
|
90
|
+
<xsl:when test="$current_template = 'draft'">
|
91
|
+
<xsl:text>Draft </xsl:text>
|
92
|
+
</xsl:when>
|
93
|
+
<xsl:when test="$current_template = 'standard'">
|
94
|
+
<xsl:text>IEEE </xsl:text>
|
95
|
+
</xsl:when>
|
96
|
+
</xsl:choose>
|
97
|
+
<xsl:if test="$trial_use = 'true'">Trial-Use </xsl:if>
|
98
|
+
<xsl:value-of select="$doctype_localized"/>
|
99
|
+
<xsl:if test="normalize-space($doctype_localized) = ''">
|
100
|
+
<xsl:choose>
|
101
|
+
<xsl:when test="$doctype = 'standard'">Standard</xsl:when>
|
102
|
+
<xsl:when test="$doctype = 'guide'">Guide</xsl:when>
|
103
|
+
<xsl:when test="$doctype = 'recommended-practice'">Recommended Practice</xsl:when>
|
104
|
+
</xsl:choose>
|
105
|
+
</xsl:if>
|
106
|
+
<xsl:text> for </xsl:text>
|
107
|
+
<!-- <xsl:copy-of select="$title"/> -->
|
108
|
+
</xsl:variable>
|
53
109
|
|
54
110
|
<xsl:variable name="color_blue">
|
55
111
|
<xsl:choose>
|
56
|
-
<xsl:when test="$
|
112
|
+
<xsl:when test="$current_template = 'standard'">rgb(57,82,164)</xsl:when>
|
57
113
|
<xsl:otherwise>rgb(0,176,240)</xsl:otherwise>
|
58
114
|
</xsl:choose>
|
59
115
|
</xsl:variable>
|
@@ -64,7 +120,7 @@
|
|
64
120
|
<fo:root xml:lang="{$lang}">
|
65
121
|
<xsl:variable name="root-style">
|
66
122
|
<root-style xsl:use-attribute-sets="root-style">
|
67
|
-
<xsl:if test="$
|
123
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
68
124
|
<xsl:attribute name="font-family">Calibri, STIX Two Math, <xsl:value-of select="$font_noto_serif"/></xsl:attribute>
|
69
125
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
70
126
|
</xsl:if>
|
@@ -262,8 +318,11 @@
|
|
262
318
|
|
263
319
|
<xsl:for-each select=".">
|
264
320
|
|
321
|
+
<xsl:variable name="copyright_year" select="/ieee:ieee-standard/ieee:bibdata/ieee:copyright/ieee:from"/>
|
322
|
+
|
265
323
|
<!-- IEEE Std 802.1X™-2020 -->
|
266
|
-
<xsl:variable name="standard_number">IEEE Std <xsl:value-of select="/ieee:ieee-standard/ieee:bibdata/ieee:docidentifier[@type = 'IEEE']"/>-<xsl:value-of select="
|
324
|
+
<xsl:variable name="standard_number">IEEE Std <xsl:value-of select="/ieee:ieee-standard/ieee:bibdata/ieee:docidentifier[@type = 'IEEE']"/>-<xsl:value-of select="$copyright_year"/></xsl:variable>
|
325
|
+
<!-- <xsl:value-of select="substring(/ieee:ieee-standard/ieee:bibdata/ieee:date[@type = 'published'],1,4)"/> -->
|
267
326
|
|
268
327
|
<xsl:variable name="designation" select="/ieee:ieee-standard/ieee:bibdata/ieee:docnumber"/>
|
269
328
|
<xsl:variable name="draft_number" select="/ieee:ieee-standard/ieee:bibdata/ieee:version/ieee:draft"/>
|
@@ -275,36 +334,59 @@
|
|
275
334
|
</xsl:variable>
|
276
335
|
<xsl:variable name="draft_year" select="substring($revision_month, 1, 4)"/>
|
277
336
|
|
278
|
-
<xsl:variable name="doctype_localized" select="/ieee:ieee-standard/ieee:bibdata/ieee:ext/ieee:doctype[@language = $lang]"/>
|
279
|
-
|
280
337
|
<xsl:variable name="title_intro">
|
281
338
|
<!-- Example Local and Metropolitan Area Networks— -->
|
282
|
-
<xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = '
|
283
|
-
<xsl:
|
339
|
+
<xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'en']/node()"/>
|
340
|
+
<!-- <xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'intro' or @language = 'intro-en']/node()"/>
|
341
|
+
<xsl:if test="not(/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'intro' or @language = 'intro-en'])">
|
342
|
+
</xsl:if>
|
343
|
+
<xsl:if test="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'intro' or @language = 'intro-en' or @language = 'en'] and /ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'main' or @language = 'main-en']">—</xsl:if> -->
|
284
344
|
</xsl:variable>
|
285
345
|
|
286
346
|
<xsl:variable name="title_main">
|
287
347
|
<!-- Example: Port-Based Network Access Control -->
|
288
|
-
<xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'main' or @language = 'main-en']/node()"/>
|
348
|
+
<!-- <xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[@language = 'main' or @language = 'main-en']/node()"/> -->
|
289
349
|
</xsl:variable>
|
290
350
|
|
291
351
|
<xsl:variable name="title">
|
292
352
|
<xsl:choose>
|
293
|
-
<xsl:when test="$
|
353
|
+
<xsl:when test="$current_template = 'standard'">
|
294
354
|
<xsl:copy-of select="$title_intro"/>
|
295
355
|
<xsl:copy-of select="$title_main"/>
|
296
356
|
</xsl:when>
|
297
357
|
<xsl:otherwise>
|
298
|
-
<xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title/node()"/>
|
358
|
+
<xsl:apply-templates select="/ieee:ieee-standard/ieee:bibdata/ieee:title[1]/node()"/>
|
359
|
+
|
360
|
+
<!-- Example: Amendment # -->
|
361
|
+
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
362
|
+
<xsl:value-of select="$linebreak"/>
|
363
|
+
<xsl:call-template name="capitalize">
|
364
|
+
<xsl:with-param name="str" select="$subdoctype"/>
|
365
|
+
</xsl:call-template>
|
366
|
+
<fo:inline> #</fo:inline>
|
367
|
+
</xsl:if>
|
368
|
+
|
299
369
|
</xsl:otherwise>
|
300
370
|
</xsl:choose>
|
301
371
|
</xsl:variable>
|
302
|
-
|
303
|
-
<xsl:variable name="
|
372
|
+
|
373
|
+
<xsl:variable name="copyright_abbreviation" select="normalize-space(/ieee:ieee-standard/ieee:bibdata/ieee:copyright/ieee:owner/ieee:organization/ieee:abbreviation)"/>
|
374
|
+
<xsl:variable name="copyright_holder">
|
375
|
+
<xsl:value-of select="$copyright_abbreviation"/>
|
376
|
+
<xsl:if test="$copyright_abbreviation = ''">
|
377
|
+
<xsl:for-each select="/ieee:ieee-standard/ieee:bibdata/ieee:contributor[ieee:role/@type = 'publisher']/ieee:organization/ieee:abbreviation">
|
378
|
+
<xsl:value-of select="."/>
|
379
|
+
<xsl:if test="position() != last()">, </xsl:if>
|
380
|
+
</xsl:for-each>
|
381
|
+
</xsl:if>
|
382
|
+
</xsl:variable>
|
304
383
|
|
305
384
|
<xsl:variable name="document_id">
|
306
385
|
<xsl:choose>
|
307
|
-
<xsl:when test="$
|
386
|
+
<xsl:when test="$current_template = 'draft'">
|
387
|
+
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
388
|
+
<xsl:text>IEEE </xsl:text>
|
389
|
+
</xsl:if>
|
308
390
|
<xsl:text>P</xsl:text>
|
309
391
|
<xsl:value-of select="$designation"/>
|
310
392
|
<xsl:text>/D</xsl:text>
|
@@ -314,40 +396,12 @@
|
|
314
396
|
<xsl:text> </xsl:text>
|
315
397
|
<xsl:value-of select="$draft_year"/>
|
316
398
|
</xsl:when>
|
317
|
-
<xsl:when test="$
|
399
|
+
<xsl:when test="$current_template = 'standard'">
|
318
400
|
<xsl:value-of select="$standard_number"/>
|
319
401
|
</xsl:when>
|
320
402
|
</xsl:choose>
|
321
403
|
</xsl:variable>
|
322
404
|
|
323
|
-
<xsl:variable name="title_prefix">
|
324
|
-
<xsl:choose>
|
325
|
-
<xsl:when test="$doctype = 'standard' and $stage = 'draft'">
|
326
|
-
<xsl:text>Draft </xsl:text>
|
327
|
-
<xsl:value-of select="$doctype_localized"/>
|
328
|
-
<xsl:if test="normalize-space($doctype_localized) = ''">
|
329
|
-
<xsl:choose>
|
330
|
-
<xsl:when test="$doctype = 'standard'">Standard</xsl:when>
|
331
|
-
</xsl:choose>
|
332
|
-
</xsl:if>
|
333
|
-
<xsl:text> for </xsl:text>
|
334
|
-
</xsl:when>
|
335
|
-
<xsl:when test="$doctype = 'standard' and $stage = 'published'">
|
336
|
-
<xsl:text>IEEE </xsl:text>
|
337
|
-
<xsl:value-of select="$doctype_localized"/>
|
338
|
-
<xsl:if test="normalize-space($doctype_localized) = ''">
|
339
|
-
<xsl:choose>
|
340
|
-
<xsl:when test="$doctype = 'standard'">Standard</xsl:when>
|
341
|
-
</xsl:choose>
|
342
|
-
</xsl:if>
|
343
|
-
<xsl:text> for </xsl:text>
|
344
|
-
</xsl:when>
|
345
|
-
</xsl:choose>
|
346
|
-
<!-- <xsl:copy-of select="$title"/> -->
|
347
|
-
</xsl:variable>
|
348
|
-
|
349
|
-
|
350
|
-
|
351
405
|
|
352
406
|
|
353
407
|
<xsl:variable name="society" select="/ieee:ieee-standard/ieee:bibdata/ieee:ext/ieee:editorialgroup/ieee:society"/>
|
@@ -357,11 +411,24 @@
|
|
357
411
|
<xsl:variable name="approved_by">IEEE SA Standards Board</xsl:variable>
|
358
412
|
<xsl:variable name="approved_date">
|
359
413
|
<xsl:call-template name="convertDate">
|
360
|
-
<xsl:with-param name="date" select="/ieee:ieee-standard/ieee:bibdata/ieee:date[@type = '
|
414
|
+
<xsl:with-param name="date" select="/ieee:ieee-standard/ieee:bibdata/ieee:date[@type = 'issued']"/>
|
361
415
|
<xsl:with-param name="format" select="'ddMMyyyy'"/>
|
362
416
|
</xsl:call-template>
|
363
417
|
</xsl:variable>
|
364
418
|
|
419
|
+
<xsl:variable name="cutoff_date">
|
420
|
+
<xsl:call-template name="convertDate">
|
421
|
+
<xsl:with-param name="date" select="/ieee:ieee-standard/ieee:bibdata/ieee:date[@type = 'feedback-ended']"/>
|
422
|
+
<xsl:with-param name="format" select="'ddMMyyyy'"/>
|
423
|
+
</xsl:call-template>
|
424
|
+
</xsl:variable>
|
425
|
+
|
426
|
+
<xsl:variable name="expiration_date">
|
427
|
+
<xsl:call-template name="convertDate">
|
428
|
+
<xsl:with-param name="date" select="/ieee:ieee-standard/ieee:bibdata/ieee:date[@type = 'obsoleted']"/>
|
429
|
+
<xsl:with-param name="format" select="'ddMMyyyy'"/>
|
430
|
+
</xsl:call-template>
|
431
|
+
</xsl:variable>
|
365
432
|
|
366
433
|
<!-- Example: Revision of IEEE Std 802.1X™-2010
|
367
434
|
Incorporating IEEE Std 802.1Xbx™-2014
|
@@ -395,12 +462,24 @@
|
|
395
462
|
<xsl:if test="string-length($history) != 0">)</xsl:if>
|
396
463
|
</xsl:variable>
|
397
464
|
|
465
|
+
|
466
|
+
<!-- <fo:page-sequence master-reference="document-draft" force-page-count="no-force">
|
467
|
+
<fo:flow flow-name="xsl-region-body">
|
468
|
+
<fo:block-container>
|
469
|
+
<fo:block>DEBUG:</fo:block>
|
470
|
+
<fo:block>current_template=<xsl:value-of select="$current_template"/></fo:block>
|
471
|
+
<fo:block>doctype=<xsl:value-of select="$doctype"/></fo:block>
|
472
|
+
</fo:block-container>
|
473
|
+
</fo:flow>
|
474
|
+
</fo:page-sequence> -->
|
475
|
+
|
476
|
+
|
398
477
|
<!-- ======================= -->
|
399
478
|
<!-- Cover page -->
|
400
479
|
<!-- ======================= -->
|
401
480
|
<xsl:choose>
|
402
481
|
|
403
|
-
<xsl:when test="$
|
482
|
+
<xsl:when test="$current_template = 'draft'">
|
404
483
|
<!-- 'Draft' first page -->
|
405
484
|
<fo:page-sequence master-reference="document-draft" force-page-count="no-force">
|
406
485
|
|
@@ -421,6 +500,9 @@
|
|
421
500
|
<fo:block-container margin-top="18mm" id="firstpage_id_{$num}">
|
422
501
|
<fo:block font-family="Arial">
|
423
502
|
<fo:block font-size="23pt" font-weight="bold" margin-top="50pt" margin-bottom="36pt">
|
503
|
+
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
504
|
+
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
505
|
+
</xsl:if>
|
424
506
|
<xsl:text>P</xsl:text>
|
425
507
|
<xsl:value-of select="$designation"/>
|
426
508
|
<xsl:text>™/D</xsl:text>
|
@@ -428,6 +510,7 @@
|
|
428
510
|
<xsl:value-of select="$linebreak"/>
|
429
511
|
<xsl:copy-of select="$title_prefix"/>
|
430
512
|
<xsl:copy-of select="$title"/>
|
513
|
+
|
431
514
|
<!-- <xsl:copy-of select="$draft_title_part"/> -->
|
432
515
|
</fo:block>
|
433
516
|
<fo:block>Developed by the</fo:block>
|
@@ -451,6 +534,21 @@
|
|
451
534
|
<fo:block> </fo:block>
|
452
535
|
<!-- Example: IEEE SA Standards Board -->
|
453
536
|
<fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$approved_by"/></fo:block>
|
537
|
+
|
538
|
+
<xsl:if test="normalize-space($cutoff_date) != ''">
|
539
|
+
<fo:block> </fo:block>
|
540
|
+
<fo:block>
|
541
|
+
<xsl:text>Cutoff date </xsl:text>
|
542
|
+
<xsl:value-of select="$cutoff_date"/>
|
543
|
+
</fo:block>
|
544
|
+
</xsl:if>
|
545
|
+
<xsl:if test="normalize-space($cutoff_date) != ''">
|
546
|
+
<fo:block> </fo:block>
|
547
|
+
<fo:block>
|
548
|
+
<xsl:text>Expiration date </xsl:text>
|
549
|
+
<xsl:value-of select="$expiration_date"/>
|
550
|
+
</fo:block>
|
551
|
+
</xsl:if>
|
454
552
|
</fo:block>
|
455
553
|
|
456
554
|
<xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:copyright-statement"/>
|
@@ -473,7 +571,11 @@
|
|
473
571
|
</fo:block>
|
474
572
|
<fo:block> </fo:block>
|
475
573
|
<fo:block>
|
476
|
-
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
574
|
+
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
575
|
+
<xsl:for-each select="/ieee:ieee-standard/ieee:bibdata/ieee:keyword">
|
576
|
+
<xsl:value-of select="."/>
|
577
|
+
<xsl:if test="position() != last()">, </xsl:if>
|
578
|
+
</xsl:for-each>
|
477
579
|
</fo:block>
|
478
580
|
</fo:block>
|
479
581
|
|
@@ -491,7 +593,7 @@
|
|
491
593
|
</fo:page-sequence> <!-- End: 'Draft' first page -->
|
492
594
|
</xsl:when>
|
493
595
|
|
494
|
-
<xsl:when test="$
|
596
|
+
<xsl:when test="$current_template = 'standard'">
|
495
597
|
<xsl:call-template name="insertCoverPage_Standard">
|
496
598
|
<xsl:with-param name="title_intro" select="$title_intro"/>
|
497
599
|
<xsl:with-param name="title_main" select="$title_main"/>
|
@@ -499,14 +601,14 @@
|
|
499
601
|
<xsl:with-param name="committee" select="$committee"/>
|
500
602
|
<xsl:with-param name="standard_number" select="$standard_number"/>
|
501
603
|
<xsl:with-param name="history" select="$history_text"/>
|
604
|
+
<xsl:with-param name="standard_title_prefix" select="$title_prefix"/>
|
605
|
+
<xsl:with-param name="cutoff_date" select="$cutoff_date"/>
|
606
|
+
<xsl:with-param name="expiration_date" select="$expiration_date"/>
|
502
607
|
</xsl:call-template>
|
503
608
|
</xsl:when>
|
504
609
|
|
505
|
-
<!-- <xsl:when test="$doctype = 'industry-connection-report'">
|
506
|
-
<xsl:call-template name="insertCoverPage_IndustryConnectionReport"/>
|
507
|
-
</xsl:when> -->
|
508
610
|
|
509
|
-
<xsl:when test="$
|
611
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
510
612
|
<xsl:call-template name="insertCoverPage_NonStandard">
|
511
613
|
<xsl:with-param name="title" select="$title"/>
|
512
614
|
</xsl:call-template>
|
@@ -517,13 +619,39 @@
|
|
517
619
|
<!-- END Cover page -->
|
518
620
|
<!-- ======================= -->
|
519
621
|
|
622
|
+
<xsl:variable name="title_standard_coverpage_">
|
623
|
+
<xsl:choose>
|
624
|
+
<!-- title starts with lower-cased letter -->
|
625
|
+
<xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
|
626
|
+
<fo:block font-size="18pt">
|
627
|
+
<xsl:value-of select="$title_prefix"/>
|
628
|
+
<xsl:copy-of select="$title_intro"/>
|
629
|
+
</fo:block>
|
630
|
+
</xsl:when>
|
631
|
+
<xsl:otherwise>
|
632
|
+
<!-- Example: IEEE Standard for -->
|
633
|
+
<fo:block font-size="18pt">
|
634
|
+
<xsl:value-of select="$title_prefix"/>
|
635
|
+
</fo:block>
|
636
|
+
<fo:block font-size="18pt" margin-left="6mm">
|
637
|
+
<!-- Example Local and Metropolitan Area Networks— -->
|
638
|
+
<xsl:copy-of select="$title_intro"/>
|
639
|
+
</fo:block>
|
640
|
+
</xsl:otherwise>
|
641
|
+
</xsl:choose>
|
642
|
+
<fo:block font-size="24pt" space-before="12pt">
|
643
|
+
<!-- Example: Port-Based Network Access Control -->
|
644
|
+
<xsl:copy-of select="$title_main"/>
|
645
|
+
</fo:block>
|
646
|
+
</xsl:variable>
|
647
|
+
<xsl:variable name="title_standard_coverpage" select="xalan:nodeset($title_standard_coverpage_)"/>
|
520
648
|
|
521
649
|
<!-- =================== -->
|
522
650
|
<!-- Second page(s) -->
|
523
651
|
<!-- =================== -->
|
524
652
|
<xsl:choose>
|
525
653
|
|
526
|
-
<xsl:when test="$
|
654
|
+
<xsl:when test="$current_template = 'draft'">
|
527
655
|
<!-- Legal statement -->
|
528
656
|
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" format="1">
|
529
657
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
@@ -535,6 +663,7 @@
|
|
535
663
|
<xsl:with-param name="doctype" select="$doctype"/>
|
536
664
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
537
665
|
<xsl:with-param name="copyright_holder" select="$copyright_holder"/>
|
666
|
+
<xsl:with-param name="hideFooter"><xsl:if test="not(contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != '')">false</xsl:if></xsl:with-param>
|
538
667
|
</xsl:call-template>
|
539
668
|
|
540
669
|
<fo:flow flow-name="xsl-region-body">
|
@@ -550,10 +679,10 @@
|
|
550
679
|
|
551
680
|
</fo:page-sequence> <!-- End: Legal statement -->
|
552
681
|
|
553
|
-
</xsl:when> <!-- $
|
682
|
+
</xsl:when> <!-- $current_template = 'draft' -->
|
554
683
|
|
555
684
|
|
556
|
-
<xsl:when test="$
|
685
|
+
<xsl:when test="$current_template = 'standard'">
|
557
686
|
<!-- Second, third page -->
|
558
687
|
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" font-family="Arial" initial-page-number="1">
|
559
688
|
|
@@ -573,16 +702,7 @@
|
|
573
702
|
</fo:block>
|
574
703
|
|
575
704
|
<fo:block font-weight="bold" space-before="13mm">
|
576
|
-
<
|
577
|
-
<fo:block font-size="18pt">
|
578
|
-
<!-- Example Local and Metropolitan Area Networks— -->
|
579
|
-
<xsl:text> </xsl:text>
|
580
|
-
<xsl:copy-of select="$title_intro"/>
|
581
|
-
</fo:block>
|
582
|
-
<fo:block font-size="24pt" space-before="12pt">
|
583
|
-
<!-- Example: Port-Based Network Access Control -->
|
584
|
-
<xsl:copy-of select="$title_main"/>
|
585
|
-
</fo:block>
|
705
|
+
<xsl:copy-of select="$title_standard_coverpage"/>
|
586
706
|
</fo:block>
|
587
707
|
|
588
708
|
<fo:block font-size="10pt" space-before="9mm" space-after="4pt">Developed by the</fo:block>
|
@@ -593,7 +713,7 @@
|
|
593
713
|
<xsl:text>of the</xsl:text>
|
594
714
|
<xsl:value-of select="$linebreak"/>
|
595
715
|
<!-- Example: IEEE Computer Society -->
|
596
|
-
<xsl:value-of select="$society"/>
|
716
|
+
<xsl:text>IEEE </xsl:text><xsl:value-of select="$society"/>
|
597
717
|
<xsl:value-of select="$linebreak"/>
|
598
718
|
</fo:block>
|
599
719
|
|
@@ -615,7 +735,11 @@
|
|
615
735
|
</fo:block>
|
616
736
|
<fo:block> </fo:block>
|
617
737
|
<fo:block>
|
618
|
-
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
738
|
+
<fo:inline font-weight="bold">Keywords: </fo:inline>
|
739
|
+
<xsl:for-each select="/ieee:ieee-standard/ieee:bibdata/ieee:keyword">
|
740
|
+
<xsl:value-of select="."/>
|
741
|
+
<xsl:if test="position() != last()">, </xsl:if>
|
742
|
+
</xsl:for-each>
|
619
743
|
</fo:block>
|
620
744
|
</fo:block>
|
621
745
|
|
@@ -656,7 +780,7 @@
|
|
656
780
|
</xsl:when> <!-- $stage = 'published' -->
|
657
781
|
|
658
782
|
|
659
|
-
<xsl:when test="$
|
783
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
660
784
|
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force" font-family="Calibri Light">
|
661
785
|
|
662
786
|
<xsl:call-template name="insertHeaderFooter">
|
@@ -703,7 +827,7 @@
|
|
703
827
|
|
704
828
|
</fo:page-sequence>
|
705
829
|
|
706
|
-
</xsl:when> <!-- $
|
830
|
+
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
707
831
|
|
708
832
|
</xsl:choose>
|
709
833
|
<!-- =================== -->
|
@@ -740,7 +864,7 @@
|
|
740
864
|
|
741
865
|
<xsl:choose>
|
742
866
|
|
743
|
-
<xsl:when test="
|
867
|
+
<xsl:when test="$current_template = 'standard' or $current_template = 'draft'">
|
744
868
|
<fo:page-sequence master-reference="document-draft" id="prefaceSequence"> <!-- format="i" initial-page-number="1" -->
|
745
869
|
|
746
870
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
@@ -920,7 +1044,7 @@
|
|
920
1044
|
</xsl:when> <!-- $stage = 'draft' -->
|
921
1045
|
|
922
1046
|
|
923
|
-
<xsl:when test="$
|
1047
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
924
1048
|
<!-- TRADEMARKS AND DISCLAIMERS -->
|
925
1049
|
<!-- ACKNOWLEDGEMENTS -->
|
926
1050
|
<!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA INDUSTRY CONNECTIONS DOCUMENTS -->
|
@@ -1030,7 +1154,7 @@
|
|
1030
1154
|
</fo:flow>
|
1031
1155
|
</fo:page-sequence> <!-- page-toc -->
|
1032
1156
|
|
1033
|
-
</xsl:when> <!-- $
|
1157
|
+
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1034
1158
|
</xsl:choose>
|
1035
1159
|
|
1036
1160
|
|
@@ -1044,8 +1168,7 @@
|
|
1044
1168
|
|
1045
1169
|
<xsl:choose>
|
1046
1170
|
|
1047
|
-
<xsl:when test="$
|
1048
|
-
<!-- ($stage = 'published' and $doctype = 'standard') or -->
|
1171
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1049
1172
|
<item>
|
1050
1173
|
<xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:abstract" mode="flatxml"/>
|
1051
1174
|
</item>
|
@@ -1055,15 +1178,15 @@
|
|
1055
1178
|
<xsl:apply-templates select="." mode="flatxml"/>
|
1056
1179
|
</item>
|
1057
1180
|
</xsl:for-each>
|
1058
|
-
</xsl:when> <!-- $
|
1181
|
+
</xsl:when> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1059
1182
|
|
1060
|
-
<xsl:when test="$
|
1183
|
+
<xsl:when test="$current_template = 'standard'">
|
1061
1184
|
<xsl:for-each select="/*/*[local-name()='sections']/*"> <!-- each section starts with a new page -->
|
1062
1185
|
<item>
|
1063
1186
|
<xsl:apply-templates select="." mode="flatxml"/>
|
1064
1187
|
</item>
|
1065
1188
|
</xsl:for-each>
|
1066
|
-
</xsl:when> <!-- $
|
1189
|
+
</xsl:when> <!-- $current_template = 'standard' -->
|
1067
1190
|
|
1068
1191
|
<xsl:otherwise>
|
1069
1192
|
<item>
|
@@ -1116,14 +1239,14 @@
|
|
1116
1239
|
<xsl:attribute name="master-reference">document-draft-<xsl:value-of select="@orientation"/></xsl:attribute>
|
1117
1240
|
</xsl:if>
|
1118
1241
|
|
1119
|
-
<xsl:if test="$
|
1242
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1120
1243
|
<xsl:attribute name="master-reference">document-nonstandard</xsl:attribute>
|
1121
1244
|
<xsl:if test="@orientation = 'landscape'">
|
1122
1245
|
<xsl:attribute name="master-reference">document-nonstandard<xsl:value-of select="@orientation"/></xsl:attribute>
|
1123
1246
|
</xsl:if>
|
1124
1247
|
</xsl:if>
|
1125
1248
|
|
1126
|
-
<xsl:if test="$
|
1249
|
+
<xsl:if test="$current_template = 'standard'">
|
1127
1250
|
<xsl:attribute name="master-reference">document-standard</xsl:attribute>
|
1128
1251
|
<xsl:if test="@orientation = 'landscape'">
|
1129
1252
|
<xsl:attribute name="master-reference">document-standard<xsl:value-of select="@orientation"/></xsl:attribute>
|
@@ -1140,7 +1263,7 @@
|
|
1140
1263
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
1141
1264
|
|
1142
1265
|
<xsl:choose>
|
1143
|
-
<xsl:when test="
|
1266
|
+
<xsl:when test="$current_template = 'standard' or $current_template = 'draft'">
|
1144
1267
|
<xsl:call-template name="insertHeaderFooter">
|
1145
1268
|
<xsl:with-param name="document_id" select="$document_id"/>
|
1146
1269
|
<xsl:with-param name="title_prefix" select="$title_prefix"/>
|
@@ -1151,7 +1274,7 @@
|
|
1151
1274
|
<xsl:with-param name="orientation">@orientation</xsl:with-param>
|
1152
1275
|
</xsl:call-template>
|
1153
1276
|
</xsl:when>
|
1154
|
-
<xsl:otherwise> <!-- ($
|
1277
|
+
<xsl:otherwise> <!-- ($current_template = 'international-standard' and $isDraft = 'false') or $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1155
1278
|
<xsl:call-template name="insertHeaderFooter">
|
1156
1279
|
<xsl:with-param name="doctype" select="$doctype"/>
|
1157
1280
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
@@ -1169,35 +1292,34 @@
|
|
1169
1292
|
<xsl:if test="position() = 1">
|
1170
1293
|
|
1171
1294
|
<xsl:choose>
|
1172
|
-
<xsl:when test="$
|
1295
|
+
<xsl:when test="$current_template = 'draft'">
|
1173
1296
|
<fo:block font-family="Arial" font-size="23pt" font-weight="bold" margin-top="70pt" margin-bottom="48pt">
|
1297
|
+
|
1298
|
+
<xsl:if test="contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
1299
|
+
<xsl:attribute name="font-size">24pt</xsl:attribute>
|
1300
|
+
</xsl:if>
|
1301
|
+
|
1174
1302
|
<xsl:copy-of select="$title_prefix"/>
|
1175
1303
|
<xsl:copy-of select="$title"/>
|
1304
|
+
|
1305
|
+
|
1176
1306
|
<!-- <xsl:copy-of select="$draft_title_part"/> -->
|
1177
1307
|
</fo:block>
|
1178
1308
|
</xsl:when>
|
1179
1309
|
|
1180
|
-
<xsl:when test="$
|
1310
|
+
<xsl:when test="$current_template = 'standard'">
|
1181
1311
|
<fo:block font-family="Arial" font-weight="bold" margin-top="13mm" space-after="12pt">
|
1182
|
-
<fo:block font-
|
1183
|
-
|
1184
|
-
<!-- Example Local and Metropolitan Area Networks— -->
|
1185
|
-
<xsl:text> </xsl:text>
|
1186
|
-
<xsl:copy-of select="$title_intro"/>
|
1187
|
-
</fo:block>
|
1188
|
-
<fo:block font-size="24pt" space-before="12pt">
|
1189
|
-
<!-- Example: Port-Based Network Access Control -->
|
1190
|
-
<xsl:copy-of select="$title_main"/>
|
1312
|
+
<fo:block font-weight="bold" space-before="13mm">
|
1313
|
+
<xsl:copy-of select="$title_standard_coverpage"/>
|
1191
1314
|
</fo:block>
|
1192
1315
|
</fo:block>
|
1193
1316
|
</xsl:when>
|
1194
1317
|
|
1195
|
-
<xsl:otherwise> <!--
|
1318
|
+
<xsl:otherwise> <!-- $current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report' -->
|
1196
1319
|
|
1197
1320
|
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
1198
1321
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1199
1322
|
|
1200
|
-
|
1201
1323
|
<fo:block font-family="Arial Black" font-size="20pt" margin-top="18pt">
|
1202
1324
|
<xsl:copy-of select="$title"/>
|
1203
1325
|
<!-- <xsl:copy-of select="$draft_title_part"/> -->
|
@@ -1231,19 +1353,24 @@
|
|
1231
1353
|
<!-- Back page -->
|
1232
1354
|
<!-- ======================= -->
|
1233
1355
|
<xsl:choose>
|
1234
|
-
<xsl:when test="$
|
1356
|
+
<xsl:when test="$current_template = 'standard'">
|
1235
1357
|
<xsl:call-template name="insertBackPage_Standard"/>
|
1236
1358
|
</xsl:when>
|
1237
|
-
|
1238
|
-
|
1239
|
-
</xsl:when> -->
|
1240
|
-
<xsl:when test="$doctype = 'whitepaper' or $doctype = 'icap-whitepaper' or $doctype = 'industry-connection-report'">
|
1359
|
+
|
1360
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1241
1361
|
<xsl:call-template name="insertBackPage_NonStandard"/>
|
1242
1362
|
</xsl:when>
|
1243
1363
|
</xsl:choose>
|
1244
1364
|
<!-- ======================= -->
|
1245
1365
|
<!-- END Back page -->
|
1246
1366
|
<!-- ======================= -->
|
1367
|
+
<xsl:if test="not(xalan:nodeset($paged_xml)/*[local-name()='page'][*])">
|
1368
|
+
<fo:page-sequence master-reference="document-nonstandard" force-page-count="no-force">
|
1369
|
+
<fo:flow flow-name="xsl-region-body">
|
1370
|
+
<fo:block><!-- prevent fop error for empty document --></fo:block>
|
1371
|
+
</fo:flow>
|
1372
|
+
</fo:page-sequence>
|
1373
|
+
</xsl:if>
|
1247
1374
|
|
1248
1375
|
</xsl:for-each>
|
1249
1376
|
</xsl:for-each> <!-- END of //ieee-standard iteration -->
|
@@ -1279,13 +1406,13 @@
|
|
1279
1406
|
<fo:inline/>
|
1280
1407
|
<fo:footnote-body font-family="Arial" font-size="7pt">
|
1281
1408
|
|
1282
|
-
<xsl:if test="$
|
1409
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1283
1410
|
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
1284
1411
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1285
1412
|
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
1286
1413
|
</xsl:if>
|
1287
1414
|
|
1288
|
-
<xsl:if test="$
|
1415
|
+
<xsl:if test="$current_template = 'standard'">
|
1289
1416
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
1290
1417
|
</xsl:if>
|
1291
1418
|
|
@@ -1329,7 +1456,7 @@
|
|
1329
1456
|
</xsl:choose>
|
1330
1457
|
</xsl:attribute>
|
1331
1458
|
|
1332
|
-
<xsl:if test="$
|
1459
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1333
1460
|
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
1334
1461
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
1335
1462
|
</xsl:if>
|
@@ -1422,13 +1549,13 @@
|
|
1422
1549
|
<xsl:with-param name="default">justify</xsl:with-param>
|
1423
1550
|
</xsl:call-template>
|
1424
1551
|
|
1425
|
-
<xsl:if test="$
|
1552
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1426
1553
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1427
1554
|
<xsl:attribute name="font-family">Calibri Light</xsl:attribute>
|
1428
1555
|
<xsl:attribute name="line-height"><xsl:value-of select="$line-height"/></xsl:attribute>
|
1429
1556
|
</xsl:if>
|
1430
1557
|
|
1431
|
-
<xsl:if test="$
|
1558
|
+
<xsl:if test="$current_template = 'standard'">
|
1432
1559
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1433
1560
|
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
1434
1561
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
@@ -1602,7 +1729,7 @@
|
|
1602
1729
|
|
1603
1730
|
<xsl:variable name="skip">
|
1604
1731
|
<xsl:choose>
|
1605
|
-
<xsl:when test="($
|
1732
|
+
<xsl:when test="($current_template = 'standard' or $current_template = 'draft') and ancestor-or-self::ieee:preface">true</xsl:when> <!-- no need render preface sections in ToC -->
|
1606
1733
|
<xsl:when test="ancestor-or-self::ieee:bibitem">true</xsl:when>
|
1607
1734
|
<xsl:when test="ancestor-or-self::ieee:term">true</xsl:when>
|
1608
1735
|
<xsl:when test="@type = 'corrigenda'">true</xsl:when>
|
@@ -1639,7 +1766,7 @@
|
|
1639
1766
|
</xsl:template>
|
1640
1767
|
|
1641
1768
|
<xsl:template match="ieee:figure[ieee:name] | ieee:table[ieee:name and not(@unnumbered = 'true' and java:endsWith(java:java.lang.String.new(ieee:name),'Key'))]" priority="2" mode="contents">
|
1642
|
-
<xsl:if test="$
|
1769
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
1643
1770
|
<xsl:variable name="level">
|
1644
1771
|
<xsl:for-each select="ancestor::ieee:clause[1] | ancestor::ieee:annex[1]">
|
1645
1772
|
<xsl:call-template name="getLevel">
|
@@ -1683,7 +1810,7 @@
|
|
1683
1810
|
<xsl:template name="insertListOf_Title">
|
1684
1811
|
<xsl:param name="title"/>
|
1685
1812
|
<fo:block role="TOCI" space-before="12pt" keep-with-next="always">
|
1686
|
-
<xsl:if test="$
|
1813
|
+
<xsl:if test="$current_template = 'standard'">
|
1687
1814
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1688
1815
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1689
1816
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
@@ -1696,7 +1823,7 @@
|
|
1696
1823
|
<xsl:template name="insertListOf_Item">
|
1697
1824
|
|
1698
1825
|
<xsl:choose>
|
1699
|
-
<xsl:when test="$
|
1826
|
+
<xsl:when test="$current_template = 'standard'">
|
1700
1827
|
<fo:list-block provisional-distance-between-starts="22.5mm" font-weight="normal" role="TOCI" margin-left="2mm">
|
1701
1828
|
|
1702
1829
|
<fo:list-item>
|
@@ -1746,7 +1873,7 @@
|
|
1746
1873
|
|
1747
1874
|
<xsl:template match="*[local-name() = 'figures']/*[local-name() = 'figure']/*[local-name() = 'name']/text()[1] | *[local-name() = 'tables']/*[local-name() = 'table']/*[local-name() = 'name']/text()[1]" mode="contents" priority="3">
|
1748
1875
|
<xsl:choose>
|
1749
|
-
<xsl:when test="
|
1876
|
+
<xsl:when test="$current_template = 'standard' and contains(.,'—')"><xsl:value-of select="substring-after(.,'—')"/></xsl:when>
|
1750
1877
|
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
1751
1878
|
</xsl:choose>
|
1752
1879
|
</xsl:template>
|
@@ -2105,14 +2232,14 @@
|
|
2105
2232
|
<xsl:call-template name="getLevel"/>
|
2106
2233
|
</xsl:variable>
|
2107
2234
|
<xsl:choose>
|
2108
|
-
<xsl:when test="$
|
2235
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2109
2236
|
<xsl:choose>
|
2110
2237
|
<xsl:when test="$level = 2">22.4pt</xsl:when>
|
2111
2238
|
<xsl:when test="$level = 3">4.6pt</xsl:when>
|
2112
2239
|
<xsl:otherwise>0mm</xsl:otherwise>
|
2113
2240
|
</xsl:choose>
|
2114
2241
|
</xsl:when>
|
2115
|
-
<xsl:when test="$
|
2242
|
+
<xsl:when test="$current_template = 'standard'">
|
2116
2243
|
<xsl:choose>
|
2117
2244
|
<xsl:when test="$level = 1">12pt</xsl:when>
|
2118
2245
|
<xsl:when test="$level = 2">12pt</xsl:when>
|
@@ -2133,7 +2260,7 @@
|
|
2133
2260
|
|
2134
2261
|
<xsl:template name="getTitleMarginBottom">
|
2135
2262
|
<xsl:choose>
|
2136
|
-
<xsl:when test="$
|
2263
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2137
2264
|
<xsl:choose>
|
2138
2265
|
<xsl:when test="ancestor::ieee:abstract">6pt</xsl:when>
|
2139
2266
|
<xsl:otherwise>12pt</xsl:otherwise>
|
@@ -2151,14 +2278,14 @@
|
|
2151
2278
|
|
2152
2279
|
<xsl:variable name="font-family">
|
2153
2280
|
<xsl:choose>
|
2154
|
-
<xsl:when test="$
|
2281
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">Arial Black</xsl:when>
|
2155
2282
|
<xsl:otherwise>Arial</xsl:otherwise>
|
2156
2283
|
</xsl:choose>
|
2157
2284
|
</xsl:variable>
|
2158
2285
|
|
2159
2286
|
<xsl:variable name="font-size">
|
2160
2287
|
<xsl:choose>
|
2161
|
-
<xsl:when test="$
|
2288
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2162
2289
|
<xsl:choose>
|
2163
2290
|
<xsl:when test="ancestor::ieee:abstract">13pt</xsl:when>
|
2164
2291
|
<xsl:when test="$level = 1">20pt</xsl:when>
|
@@ -2180,7 +2307,7 @@
|
|
2180
2307
|
|
2181
2308
|
<xsl:variable name="font-weight">
|
2182
2309
|
<xsl:choose>
|
2183
|
-
<xsl:when test="$
|
2310
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">normal</xsl:when>
|
2184
2311
|
<xsl:otherwise>
|
2185
2312
|
<xsl:choose>
|
2186
2313
|
<xsl:when test="@ancestor = 'annex' and $level = 1">normal</xsl:when>
|
@@ -2235,7 +2362,7 @@
|
|
2235
2362
|
|
2236
2363
|
|
2237
2364
|
<xsl:choose>
|
2238
|
-
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($
|
2365
|
+
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
2239
2366
|
|
2240
2367
|
<xsl:variable name="provisional-distance-between-starts">
|
2241
2368
|
<xsl:choose>
|
@@ -2300,7 +2427,7 @@
|
|
2300
2427
|
</xsl:choose>
|
2301
2428
|
|
2302
2429
|
|
2303
|
-
<xsl:if test="($
|
2430
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and preceding-sibling::*[1][self::ieee:references[@normative = 'false']]">
|
2304
2431
|
<xsl:call-template name="addBlueBox"/>
|
2305
2432
|
</xsl:if>
|
2306
2433
|
|
@@ -2322,7 +2449,7 @@
|
|
2322
2449
|
<!-- add blue box after first break in Annex title -->
|
2323
2450
|
<xsl:template match="*[local-name()='br'][not(preceding-sibling::ieee:br)][ancestor::ieee:title[preceding-sibling::*[1][self::ieee:annex]]]" priority="2">
|
2324
2451
|
<xsl:choose>
|
2325
|
-
<xsl:when test="($
|
2452
|
+
<xsl:when test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') ">
|
2326
2453
|
<xsl:call-template name="addBlueBox"/>
|
2327
2454
|
</xsl:when>
|
2328
2455
|
<xsl:otherwise>
|
@@ -2438,7 +2565,7 @@
|
|
2438
2565
|
<xsl:with-param name="default">justify</xsl:with-param>
|
2439
2566
|
</xsl:call-template>
|
2440
2567
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute><!-- 8pt -->
|
2441
|
-
<xsl:if test="($
|
2568
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and (ancestor::ieee:sections or ancestor::ieee:annex)">
|
2442
2569
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2443
2570
|
</xsl:if>
|
2444
2571
|
<xsl:if test="../following-sibling::*[1][self::ieee:note or self::ieee:termnote or self::ieee:ul or self::ieee:ol] or following-sibling::*[1][self::ieee:ul or self::ieee:ol]">
|
@@ -2467,12 +2594,12 @@
|
|
2467
2594
|
<xsl:attribute name="line-height">0</xsl:attribute>
|
2468
2595
|
</xsl:if>
|
2469
2596
|
|
2470
|
-
<xsl:if test="($
|
2597
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and not(parent::ieee:li)">
|
2471
2598
|
<xsl:attribute name="line-height"><xsl:value-of select="$line-height"/></xsl:attribute>
|
2472
2599
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2473
2600
|
</xsl:if>
|
2474
2601
|
|
2475
|
-
<xsl:if test="($
|
2602
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and parent::ieee:li">
|
2476
2603
|
<xsl:attribute name="line-height">inherit</xsl:attribute>
|
2477
2604
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2478
2605
|
</xsl:if>
|
@@ -2548,7 +2675,7 @@
|
|
2548
2675
|
<xsl:attribute name="provisional-distance-between-starts">0mm</xsl:attribute>
|
2549
2676
|
</xsl:if>
|
2550
2677
|
|
2551
|
-
<xsl:if test="$
|
2678
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2552
2679
|
<xsl:attribute name="line-height">1.3</xsl:attribute>
|
2553
2680
|
<xsl:attribute name="margin-left">6.2mm</xsl:attribute>
|
2554
2681
|
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
@@ -2564,7 +2691,7 @@
|
|
2564
2691
|
*[local-name() = 'image']/*[local-name() = 'name']/text()[1] |
|
2565
2692
|
*[local-name() = 'table']/*[local-name() = 'name']/text()[1]" priority="2">
|
2566
2693
|
<xsl:choose>
|
2567
|
-
<xsl:when test="($
|
2694
|
+
<xsl:when test="($current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report') and contains(., ' — ')">
|
2568
2695
|
<fo:inline color="{$color_blue}"><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring-before(., ' — ')))"/></fo:inline>
|
2569
2696
|
<xsl:text>  </xsl:text>
|
2570
2697
|
<xsl:value-of select="substring-after(., ' — ')"/>
|
@@ -2585,7 +2712,7 @@
|
|
2585
2712
|
<xsl:otherwise>
|
2586
2713
|
<fo:inline font-weight="bold" font-style="normal">
|
2587
2714
|
<xsl:choose>
|
2588
|
-
<xsl:when test="$
|
2715
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2589
2716
|
<!-- Figure N in blue color -->
|
2590
2717
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
2591
2718
|
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring-before(., '—')))"/> <!-- 'FIgure' 1 to 'FIGURE A' -->
|
@@ -2599,7 +2726,7 @@
|
|
2599
2726
|
</xsl:otherwise>
|
2600
2727
|
</xsl:choose>
|
2601
2728
|
</fo:inline>
|
2602
|
-
<xsl:if test="not($
|
2729
|
+
<xsl:if test="not($current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
2603
2730
|
<xsl:text>—</xsl:text>
|
2604
2731
|
</xsl:if>
|
2605
2732
|
</xsl:otherwise>
|
@@ -2698,7 +2825,7 @@
|
|
2698
2825
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
2699
2826
|
</xsl:if>
|
2700
2827
|
|
2701
|
-
<xsl:if test="
|
2828
|
+
<xsl:if test="$current_template = 'standard' or $current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2702
2829
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
2703
2830
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
2704
2831
|
</xsl:if>
|
@@ -2779,7 +2906,7 @@
|
|
2779
2906
|
<fo:static-content flow-name="xsl-footnote-separator">
|
2780
2907
|
<fo:block>
|
2781
2908
|
<fo:leader leader-pattern="rule" rule-thickness="0.5pt" leader-length="35%">
|
2782
|
-
<xsl:if test="$
|
2909
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2783
2910
|
<xsl:attribute name="rule-thickness">1pt</xsl:attribute>
|
2784
2911
|
<xsl:attribute name="leader-length">51mm</xsl:attribute>
|
2785
2912
|
</xsl:if>
|
@@ -2811,6 +2938,15 @@
|
|
2811
2938
|
<!-- P<designation>/D<draft_number>, <draft_month> <draft_year>
|
2812
2939
|
Draft<opt_Trial-Use><Gde./Rec. Prac./Std.> for <Complete Title Matching PAR>
|
2813
2940
|
-->
|
2941
|
+
|
2942
|
+
<!-- IEEE P<designation>/D<draft_number>, <draft_month> <draft_year> -->
|
2943
|
+
<!-- <xsl:when test="$current_template = 'draft1' and contains('amendment corrigendum erratum', $subdoctype) and $subdoctype != ''">
|
2944
|
+
<xsl:attribute name="text-align">right</xsl:attribute>
|
2945
|
+
<fo:block>
|
2946
|
+
<xsl:value-of select="$document_id"/>
|
2947
|
+
</fo:block>
|
2948
|
+
</xsl:when> -->
|
2949
|
+
|
2814
2950
|
<fo:block>
|
2815
2951
|
<xsl:value-of select="$document_id"/>
|
2816
2952
|
</fo:block>
|
@@ -2818,6 +2954,7 @@
|
|
2818
2954
|
<xsl:copy-of select="$title_prefix"/>
|
2819
2955
|
<xsl:copy-of select="$title"/>
|
2820
2956
|
</fo:block>
|
2957
|
+
|
2821
2958
|
</fo:block>
|
2822
2959
|
</xsl:variable>
|
2823
2960
|
|
@@ -2838,9 +2975,9 @@
|
|
2838
2975
|
|
2839
2976
|
<xsl:variable name="footer">
|
2840
2977
|
<xsl:choose>
|
2841
|
-
<xsl:when test="$
|
2978
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2842
2979
|
<fo:block margin-bottom="8mm">
|
2843
|
-
<xsl:if test="$
|
2980
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2844
2981
|
<xsl:attribute name="margin-bottom">10.5mm</xsl:attribute>
|
2845
2982
|
</xsl:if>
|
2846
2983
|
<fo:table width="100%" table-layout="fixed" font-size="7pt">
|
@@ -2850,13 +2987,13 @@
|
|
2850
2987
|
<fo:block font-weight="bold" font-family="Calibri"><fo:inline font-size="10pt"><fo:page-number/></fo:inline>
|
2851
2988
|
<xsl:text> IEEE </xsl:text>
|
2852
2989
|
<xsl:choose>
|
2853
|
-
<xsl:when test="$
|
2990
|
+
<xsl:when test="$current_template = 'icap-whitepaper'">CONFORMITY ASSESSMENT PROGRAM (ICAP)</xsl:when>
|
2854
2991
|
<xsl:otherwise>SA</xsl:otherwise>
|
2855
2992
|
</xsl:choose>
|
2856
2993
|
</fo:block> <!-- INDUSTRY CONNECTIONS -->
|
2857
2994
|
</fo:table-cell>
|
2858
2995
|
<fo:table-cell text-align="right" font-family="Calibri Light">
|
2859
|
-
<xsl:if test="$
|
2996
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template= 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
2860
2997
|
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
2861
2998
|
</xsl:if>
|
2862
2999
|
<fo:block>
|
@@ -2870,11 +3007,11 @@
|
|
2870
3007
|
</xsl:when>
|
2871
3008
|
<xsl:otherwise>
|
2872
3009
|
<fo:block text-align="center" margin-bottom="12.7mm">
|
2873
|
-
<xsl:if test="$
|
3010
|
+
<xsl:if test="$current_template = 'standard'">
|
2874
3011
|
<xsl:attribute name="margin-bottom">8.5mm</xsl:attribute>
|
2875
3012
|
</xsl:if>
|
2876
3013
|
<fo:block> <!-- font-weight="bold" -->
|
2877
|
-
<xsl:if test="$
|
3014
|
+
<xsl:if test="$current_template = 'standard'">
|
2878
3015
|
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
2879
3016
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2880
3017
|
</xsl:if>
|
@@ -2886,7 +3023,7 @@
|
|
2886
3023
|
<xsl:value-of select="$copyrightText"/>
|
2887
3024
|
</fo:block>
|
2888
3025
|
<xsl:choose>
|
2889
|
-
<xsl:when test="$
|
3026
|
+
<xsl:when test="$current_template = 'standard'"/>
|
2890
3027
|
<xsl:otherwise>
|
2891
3028
|
<fo:block>This is an unapproved IEEE Standards Draft, subject to change.</fo:block>
|
2892
3029
|
</xsl:otherwise>
|
@@ -3094,6 +3231,9 @@
|
|
3094
3231
|
<xsl:param name="committee"/>
|
3095
3232
|
<xsl:param name="standard_number"/>
|
3096
3233
|
<xsl:param name="history"/>
|
3234
|
+
<xsl:param name="standard_title_prefix"/>
|
3235
|
+
<xsl:param name="cutoff_date"/>
|
3236
|
+
<xsl:param name="expiration_date"/>
|
3097
3237
|
|
3098
3238
|
<fo:page-sequence master-reference="cover-and-back-page-standard" force-page-count="no-force">
|
3099
3239
|
|
@@ -3139,12 +3279,29 @@
|
|
3139
3279
|
|
3140
3280
|
<fo:flow flow-name="xsl-region-body" font-family="Calibri">
|
3141
3281
|
<fo:block-container height="81mm" display-align="center" font-weight="bold">
|
3142
|
-
|
3143
|
-
<
|
3144
|
-
|
3145
|
-
|
3146
|
-
|
3147
|
-
|
3282
|
+
|
3283
|
+
<xsl:choose>
|
3284
|
+
<!-- title starts with lower-cased letter -->
|
3285
|
+
<xsl:when test="translate(substring($title_intro,1,1),$lower,'') = ''">
|
3286
|
+
<fo:block font-size="22pt">
|
3287
|
+
<xsl:value-of select="$standard_title_prefix"/>
|
3288
|
+
<xsl:copy-of select="$title_intro"/>
|
3289
|
+
</fo:block>
|
3290
|
+
</xsl:when>
|
3291
|
+
|
3292
|
+
<xsl:otherwise>
|
3293
|
+
<!-- Example: IEEE Standard for -->
|
3294
|
+
<fo:block font-size="22pt" space-after="2pt">
|
3295
|
+
<xsl:value-of select="$standard_title_prefix"/>
|
3296
|
+
</fo:block>
|
3297
|
+
<fo:block font-size="22pt" margin-left="3mm">
|
3298
|
+
<!-- Example: Local and Metropolitan Area Networks— -->
|
3299
|
+
<xsl:copy-of select="$title_intro"/>
|
3300
|
+
</fo:block>
|
3301
|
+
</xsl:otherwise>
|
3302
|
+
</xsl:choose>
|
3303
|
+
|
3304
|
+
|
3148
3305
|
<fo:block font-size="25pt" space-before="32pt">
|
3149
3306
|
<!-- Example: Port-Based Network Access Control -->
|
3150
3307
|
<xsl:copy-of select="$title_main"/>
|
@@ -3154,11 +3311,27 @@
|
|
3154
3311
|
<fo:block-container>
|
3155
3312
|
<fo:block font-size="16pt">
|
3156
3313
|
<!-- Example: IEEE Computer Society -->
|
3157
|
-
<xsl:value-of select="$society"/>
|
3314
|
+
<xsl:text>IEEE </xsl:text><xsl:value-of select="$society"/>
|
3158
3315
|
</fo:block>
|
3159
3316
|
<fo:block font-size="12pt" space-before="13mm">Developed by the</fo:block>
|
3160
3317
|
<!-- LAN/MAN Standards Committee -->
|
3161
3318
|
<fo:block font-size="12pt"><xsl:value-of select="$committee"/></fo:block>
|
3319
|
+
|
3320
|
+
<xsl:if test="normalize-space($cutoff_date) != ''">
|
3321
|
+
<fo:block> </fo:block>
|
3322
|
+
<fo:block font-size="12pt">
|
3323
|
+
<xsl:text>Cutoff date </xsl:text>
|
3324
|
+
<xsl:value-of select="$cutoff_date"/>
|
3325
|
+
</fo:block>
|
3326
|
+
</xsl:if>
|
3327
|
+
<xsl:if test="normalize-space($cutoff_date) != ''">
|
3328
|
+
<fo:block> </fo:block>
|
3329
|
+
<fo:block font-size="12pt">
|
3330
|
+
<xsl:text>Expiration date </xsl:text>
|
3331
|
+
<xsl:value-of select="$expiration_date"/>
|
3332
|
+
</fo:block>
|
3333
|
+
</xsl:if>
|
3334
|
+
|
3162
3335
|
<fo:block font-size="12pt" font-weight="bold" space-before="40mm"><xsl:value-of select="$standard_number"/></fo:block>
|
3163
3336
|
<fo:block font-size="10pt"><xsl:value-of select="$history"/></fo:block>
|
3164
3337
|
|
@@ -3243,7 +3416,7 @@
|
|
3243
3416
|
<fo:page-sequence master-reference="cover-page-nonstandard" force-page-count="no-force">
|
3244
3417
|
<fo:static-content flow-name="header" role="artifact">
|
3245
3418
|
<fo:block-container position="absolute" left="65mm"> <!-- top="-2.6mm" -->
|
3246
|
-
<xsl:if test="$
|
3419
|
+
<xsl:if test="$current_template = 'industry-connection-report'">
|
3247
3420
|
<xsl:attribute name="left">76.5mm</xsl:attribute>
|
3248
3421
|
</xsl:if>
|
3249
3422
|
<fo:block font-size="1">
|
@@ -3259,14 +3432,14 @@
|
|
3259
3432
|
|
3260
3433
|
<fo:static-content flow-name="left-region" role="artifact">
|
3261
3434
|
<fo:block-container position="absolute" left="0mm" top="0mm" width="50mm" height="{$pageHeight}mm" background-color="rgb(224,226,224)">
|
3262
|
-
<xsl:if test="$
|
3435
|
+
<xsl:if test="$current_template = 'industry-connection-report'">
|
3263
3436
|
<xsl:attribute name="background-color">black</xsl:attribute>
|
3264
3437
|
</xsl:if>
|
3265
3438
|
<fo:block> </fo:block>
|
3266
3439
|
</fo:block-container>
|
3267
3440
|
|
3268
3441
|
<fo:block-container position="absolute" left="14.5mm" top="12mm">
|
3269
|
-
<xsl:if test="$
|
3442
|
+
<xsl:if test="$current_template = 'industry-connection-report'">
|
3270
3443
|
<xsl:attribute name="left">12mm</xsl:attribute>
|
3271
3444
|
<xsl:attribute name="top">5mm</xsl:attribute>
|
3272
3445
|
</xsl:if>
|
@@ -3274,7 +3447,7 @@
|
|
3274
3447
|
<fo:instream-foreign-object content-width="27mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo">
|
3275
3448
|
|
3276
3449
|
<xsl:choose>
|
3277
|
-
<xsl:when test="$
|
3450
|
+
<xsl:when test="$current_template = 'industry-connection-report'">
|
3278
3451
|
<xsl:call-template name="insert_Image-IEEE2-Logo-svg">
|
3279
3452
|
<xsl:with-param name="color">FFFFFF</xsl:with-param>
|
3280
3453
|
</xsl:call-template>
|
@@ -3288,13 +3461,13 @@
|
|
3288
3461
|
</fo:block-container>
|
3289
3462
|
|
3290
3463
|
<fo:block-container position="absolute" left="15.2mm" top="262mm">
|
3291
|
-
<xsl:if test="$
|
3464
|
+
<xsl:if test="$current_template = 'industry-connection-report'">
|
3292
3465
|
<xsl:attribute name="left">14mm</xsl:attribute>
|
3293
3466
|
</xsl:if>
|
3294
3467
|
<fo:block font-size="1">
|
3295
3468
|
<fo:instream-foreign-object content-width="23.5mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo">
|
3296
3469
|
<xsl:choose>
|
3297
|
-
<xsl:when test="$
|
3470
|
+
<xsl:when test="$current_template = 'industry-connection-report'">
|
3298
3471
|
<xsl:attribute name="content-width">25mm</xsl:attribute>
|
3299
3472
|
<xsl:copy-of select="$Image-IEEE-Logo-white-svg"/>
|
3300
3473
|
</xsl:when>
|
@@ -3320,7 +3493,7 @@
|
|
3320
3493
|
<fo:block margin-left="71mm">
|
3321
3494
|
<fo:block margin-top="10.5mm">
|
3322
3495
|
<xsl:choose>
|
3323
|
-
<xsl:when test="$
|
3496
|
+
<xsl:when test="$current_template = 'industry-connection-report'">
|
3324
3497
|
<xsl:attribute name="font-size">36pt</xsl:attribute>
|
3325
3498
|
<xsl:attribute name="font-family">Montserrat ExtraBold</xsl:attribute>
|
3326
3499
|
<xsl:attribute name="color">white</xsl:attribute>
|
@@ -3328,7 +3501,7 @@
|
|
3328
3501
|
</xsl:when>
|
3329
3502
|
<xsl:otherwise>
|
3330
3503
|
<xsl:text>IEEE SA</xsl:text>
|
3331
|
-
<xsl:if test="$
|
3504
|
+
<xsl:if test="$current_template = 'icap-whitepaper'">
|
3332
3505
|
<xsl:text> ICAP</xsl:text>
|
3333
3506
|
</xsl:if>
|
3334
3507
|
<fo:block>WHITE PAPER</fo:block>
|
@@ -3344,7 +3517,7 @@
|
|
3344
3517
|
<fo:block-container font-family="Arial Black" display-align="center" height="85mm">
|
3345
3518
|
<fo:block font-size="13pt">
|
3346
3519
|
<xsl:choose>
|
3347
|
-
<xsl:when test="$
|
3520
|
+
<xsl:when test="$current_template = 'icap-whitepaper'">
|
3348
3521
|
<xsl:attribute name="margin-right">-10mm</xsl:attribute>
|
3349
3522
|
<xsl:text>IEEE CONFORMITY ASSESSMENT PROGRAM (ICAP)</xsl:text>
|
3350
3523
|
</xsl:when>
|
@@ -4853,9 +5026,15 @@
|
|
4853
5026
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
4854
5027
|
|
4855
5028
|
|
5029
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5030
|
+
|
5031
|
+
|
4856
5032
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
4857
5033
|
|
4858
5034
|
|
5035
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5036
|
+
|
5037
|
+
|
4859
5038
|
|
4860
5039
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
|
4861
5040
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -5347,7 +5526,7 @@
|
|
5347
5526
|
|
5348
5527
|
|
5349
5528
|
|
5350
|
-
<xsl:if test="$
|
5529
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5351
5530
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
5352
5531
|
</xsl:if>
|
5353
5532
|
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
@@ -5394,7 +5573,7 @@
|
|
5394
5573
|
|
5395
5574
|
|
5396
5575
|
|
5397
|
-
<xsl:if test="$
|
5576
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5398
5577
|
<xsl:attribute name="border">0.5 solid black</xsl:attribute>
|
5399
5578
|
</xsl:if>
|
5400
5579
|
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
@@ -5496,6 +5675,14 @@
|
|
5496
5675
|
|
5497
5676
|
|
5498
5677
|
|
5678
|
+
<xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
|
5679
|
+
<fo:block keep-with-previous="always" line-height="0.1">
|
5680
|
+
<xsl:for-each select="*[local-name()='bookmark']">
|
5681
|
+
<xsl:call-template name="bookmark"/>
|
5682
|
+
</xsl:for-each>
|
5683
|
+
</fo:block>
|
5684
|
+
</xsl:if>
|
5685
|
+
|
5499
5686
|
</fo:block-container>
|
5500
5687
|
</xsl:variable>
|
5501
5688
|
|
@@ -5538,7 +5725,7 @@
|
|
5538
5725
|
|
5539
5726
|
<fo:inline>
|
5540
5727
|
|
5541
|
-
<xsl:if test="$
|
5728
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5542
5729
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5543
5730
|
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
5544
5731
|
</xsl:if>
|
@@ -5948,7 +6135,7 @@
|
|
5948
6135
|
|
5949
6136
|
|
5950
6137
|
|
5951
|
-
<xsl:if test="$
|
6138
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
5952
6139
|
<xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
|
5953
6140
|
</xsl:if>
|
5954
6141
|
|
@@ -6227,7 +6414,7 @@
|
|
6227
6414
|
<xsl:if test="position() = last()">
|
6228
6415
|
<xsl:attribute name="border-bottom"><xsl:value-of select="$table-border"/></xsl:attribute>
|
6229
6416
|
</xsl:if>
|
6230
|
-
<xsl:if test="$
|
6417
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
6231
6418
|
<xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
|
6232
6419
|
</xsl:if>
|
6233
6420
|
|
@@ -6464,7 +6651,7 @@
|
|
6464
6651
|
<fo:block xsl:use-attribute-sets="fn-body-style">
|
6465
6652
|
|
6466
6653
|
|
6467
|
-
<xsl:if test="$
|
6654
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
6468
6655
|
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
6469
6656
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
6470
6657
|
</xsl:if>
|
@@ -6474,7 +6661,7 @@
|
|
6474
6661
|
|
6475
6662
|
|
6476
6663
|
|
6477
|
-
<xsl:if test="$
|
6664
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
6478
6665
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
6479
6666
|
</xsl:if>
|
6480
6667
|
|
@@ -8159,11 +8346,11 @@
|
|
8159
8346
|
|
8160
8347
|
|
8161
8348
|
|
8162
|
-
<xsl:if test="$
|
8349
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
8163
8350
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8164
8351
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
8165
8352
|
</xsl:if>
|
8166
|
-
<xsl:if test="$
|
8353
|
+
<xsl:if test="$current_template = 'standard'">
|
8167
8354
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8168
8355
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
8169
8356
|
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
@@ -9209,7 +9396,7 @@
|
|
9209
9396
|
|
9210
9397
|
|
9211
9398
|
|
9212
|
-
<xsl:if test="$
|
9399
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
9213
9400
|
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
9214
9401
|
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
9215
9402
|
</xsl:if>
|
@@ -9352,7 +9539,7 @@
|
|
9352
9539
|
|
9353
9540
|
|
9354
9541
|
<!-- <xsl:if test="$namespace = 'ieee'">
|
9355
|
-
<xsl:if test="$
|
9542
|
+
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
9356
9543
|
</xsl:if> -->
|
9357
9544
|
|
9358
9545
|
|
@@ -10079,7 +10266,7 @@
|
|
10079
10266
|
|
10080
10267
|
|
10081
10268
|
|
10082
|
-
<xsl:if test="$
|
10269
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
10083
10270
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
10084
10271
|
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
10085
10272
|
</xsl:if>
|
@@ -10310,7 +10497,7 @@
|
|
10310
10497
|
</xsl:template><xsl:variable name="ul_labels_">
|
10311
10498
|
|
10312
10499
|
<xsl:choose>
|
10313
|
-
<xsl:when test="$
|
10500
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
10314
10501
|
<label level="1" font-size="14pt" color="rgb(128,128,128)">▪</label> <!-- Black small square 25AA 18pt line-height="1.5" -->
|
10315
10502
|
<label level="2">—</label><!-- em dash -->
|
10316
10503
|
</xsl:when>
|
@@ -10502,7 +10689,7 @@
|
|
10502
10689
|
|
10503
10690
|
|
10504
10691
|
|
10505
|
-
<xsl:if test="$
|
10692
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
10506
10693
|
<xsl:attribute name="color">rgb(128,128,128)</xsl:attribute>
|
10507
10694
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
10508
10695
|
<xsl:if test=".//ieee:fn">
|
@@ -10696,7 +10883,7 @@
|
|
10696
10883
|
</xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
|
10697
10884
|
<!-- to split by '_' and other chars -->
|
10698
10885
|
<xsl:call-template name="add-zero-spaces-java"/>
|
10699
|
-
</xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
10886
|
+
</xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
10700
10887
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
10701
10888
|
<fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
|
10702
10889
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
@@ -10781,7 +10968,7 @@
|
|
10781
10968
|
<xsl:value-of select="*[local-name() = 'docidentifier'][@type = 'metanorma-ordinal']"/>
|
10782
10969
|
<xsl:if test="not(*[local-name() = 'docidentifier'][@type = 'metanorma-ordinal'])">
|
10783
10970
|
<xsl:choose>
|
10784
|
-
<xsl:when test="($
|
10971
|
+
<xsl:when test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
10785
10972
|
<fo:inline color="{$color_blue}">
|
10786
10973
|
<xsl:text>[ </xsl:text>
|
10787
10974
|
<xsl:number format="1" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
@@ -11030,7 +11217,7 @@
|
|
11030
11217
|
<xsl:otherwise><!-- default value -->
|
11031
11218
|
|
11032
11219
|
<xsl:choose>
|
11033
|
-
<xsl:when test="$
|
11220
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">3</xsl:when>
|
11034
11221
|
<xsl:otherwise>2</xsl:otherwise>
|
11035
11222
|
</xsl:choose>
|
11036
11223
|
|
@@ -11620,6 +11807,7 @@
|
|
11620
11807
|
</xsl:call-template>
|
11621
11808
|
</xsl:template><xsl:template name="insertKeywords">
|
11622
11809
|
<xsl:param name="sorting" select="'true'"/>
|
11810
|
+
<xsl:param name="meta" select="'false'"/>
|
11623
11811
|
<xsl:param name="charAtEnd" select="'.'"/>
|
11624
11812
|
<xsl:param name="charDelim" select="', '"/>
|
11625
11813
|
<xsl:choose>
|
@@ -11627,6 +11815,7 @@
|
|
11627
11815
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
11628
11816
|
<xsl:sort data-type="text" order="ascending"/>
|
11629
11817
|
<xsl:call-template name="insertKeyword">
|
11818
|
+
<xsl:with-param name="meta" select="$meta"/>
|
11630
11819
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
11631
11820
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
11632
11821
|
</xsl:call-template>
|
@@ -11635,6 +11824,7 @@
|
|
11635
11824
|
<xsl:otherwise>
|
11636
11825
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
11637
11826
|
<xsl:call-template name="insertKeyword">
|
11827
|
+
<xsl:with-param name="meta" select="$meta"/>
|
11638
11828
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
11639
11829
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
11640
11830
|
</xsl:call-template>
|
@@ -11644,7 +11834,15 @@
|
|
11644
11834
|
</xsl:template><xsl:template name="insertKeyword">
|
11645
11835
|
<xsl:param name="charAtEnd"/>
|
11646
11836
|
<xsl:param name="charDelim"/>
|
11647
|
-
<xsl:
|
11837
|
+
<xsl:param name="meta"/>
|
11838
|
+
<xsl:choose>
|
11839
|
+
<xsl:when test="$meta = 'true'">
|
11840
|
+
<xsl:value-of select="."/>
|
11841
|
+
</xsl:when>
|
11842
|
+
<xsl:otherwise>
|
11843
|
+
<xsl:apply-templates/>
|
11844
|
+
</xsl:otherwise>
|
11845
|
+
</xsl:choose>
|
11648
11846
|
<xsl:choose>
|
11649
11847
|
<xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
|
11650
11848
|
<xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
|
@@ -11663,21 +11861,7 @@
|
|
11663
11861
|
<xsl:variable name="title">
|
11664
11862
|
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
|
11665
11863
|
|
11666
|
-
|
11667
|
-
<item>
|
11668
|
-
<xsl:value-of select="*[local-name() = 'title'][@language = 'intro-en']"/>
|
11669
|
-
</item>
|
11670
|
-
<item>
|
11671
|
-
<xsl:value-of select="*[local-name() = 'title'][@language = 'main-en']"/>
|
11672
|
-
</item>
|
11673
|
-
<item>
|
11674
|
-
<xsl:value-of select="*[local-name() = 'title'][@language = 'part-en']"/>
|
11675
|
-
</item>
|
11676
|
-
</xsl:variable>
|
11677
|
-
<xsl:for-each select="xalan:nodeset($full_title)/item[normalize-space() != '']">
|
11678
|
-
<xsl:value-of select="."/>
|
11679
|
-
<xsl:if test="position() != last()"> - </xsl:if>
|
11680
|
-
</xsl:for-each> -->
|
11864
|
+
<xsl:value-of select="$title_prefix"/>
|
11681
11865
|
<xsl:value-of select="*[local-name() = 'title']"/>
|
11682
11866
|
|
11683
11867
|
</xsl:for-each>
|
@@ -11707,7 +11891,9 @@
|
|
11707
11891
|
<xsl:value-of select="normalize-space($abstract)"/>
|
11708
11892
|
</dc:description>
|
11709
11893
|
<pdf:Keywords>
|
11710
|
-
<xsl:call-template name="insertKeywords"
|
11894
|
+
<xsl:call-template name="insertKeywords">
|
11895
|
+
<xsl:with-param name="meta">true</xsl:with-param>
|
11896
|
+
</xsl:call-template>
|
11711
11897
|
</pdf:Keywords>
|
11712
11898
|
</rdf:Description>
|
11713
11899
|
<rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
|