metanorma-ieee 1.5.6 → 1.6.0
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/i18n-en.yaml +3 -1
- data/lib/isodoc/ieee/ieee.amendment.xsl +294 -235
- data/lib/isodoc/ieee/ieee.standard.xsl +294 -235
- data/lib/isodoc/ieee/presentation_bibdata.rb +17 -0
- data/lib/isodoc/ieee/presentation_bibitem.rb +2 -2
- data/lib/isodoc/ieee/presentation_ref.rb +7 -15
- data/lib/isodoc/ieee/presentation_terms.rb +5 -0
- data/lib/isodoc/ieee/presentation_xml_convert.rb +4 -5
- data/lib/isodoc/ieee/word_cleanup.rb +1 -0
- data/lib/metanorma/ieee/biblio.rng +1 -1
- data/lib/metanorma/ieee/converter.rb +2 -0
- data/lib/metanorma/ieee/isodoc.rng +35 -10
- data/lib/metanorma/ieee/log.rb +100 -0
- data/lib/metanorma/ieee/validate.rb +22 -45
- data/lib/metanorma/ieee/validate_section.rb +12 -13
- data/lib/metanorma/ieee/validate_style.rb +4 -8
- data/lib/metanorma/ieee/version.rb +1 -1
- data/lib/relaton/render/config.yml +6 -6
- data/metanorma-ieee.gemspec +3 -2
- metadata +23 -8
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
<xsl:with-param name="format" select="'ddMMyyyy'"/>
|
|
458
458
|
</xsl:call-template>
|
|
459
459
|
</xsl:variable> -->
|
|
460
|
-
<xsl:variable name="approved_date" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'ieee-sasb-approved' and @format = 'ddMMMyyyy'])"/>
|
|
460
|
+
<xsl:variable name="approved_date" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'ieee-sasb-approved' and (@format = 'ddMMMyyyy' or @format = 'text')])"/>
|
|
461
461
|
|
|
462
462
|
<!-- Example: Revision of IEEE Std 802.1X™-2010
|
|
463
463
|
Incorporating IEEE Std 802.1Xbx™-2014
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
|
|
641
641
|
<fo:block-container margin-left="47mm" margin-top="10mm"> <!-- margin-top="27mm" -->
|
|
642
642
|
|
|
643
|
-
<fo:block-container
|
|
643
|
+
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
644
644
|
|
|
645
645
|
<xsl:apply-templates select="/*/mn:preface/mn:clause[@type = 'toc']">
|
|
646
646
|
<xsl:with-param name="num" select="$num"/>
|
|
@@ -952,6 +952,9 @@
|
|
|
952
952
|
</xsl:variable>
|
|
953
953
|
|
|
954
954
|
<xsl:choose>
|
|
955
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'coverpage-image']/mn:value/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
|
956
|
+
<xsl:call-template name="insertCoverPageFullImage"/>
|
|
957
|
+
</xsl:when>
|
|
955
958
|
|
|
956
959
|
<xsl:when test="$current_template = 'draft'">
|
|
957
960
|
|
|
@@ -2288,12 +2291,9 @@
|
|
|
2288
2291
|
<!-- <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"> -->
|
|
2289
2292
|
<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">
|
|
2290
2293
|
<fo:block>
|
|
2291
|
-
<xsl:attribute name="
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
<xsl:attribute name="margin-bottom">
|
|
2295
|
-
<xsl:call-template name="getTitleMarginBottom"/>
|
|
2296
|
-
</xsl:attribute>
|
|
2294
|
+
<xsl:variable name="title_styles"><styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"/></styles></xsl:variable>
|
|
2295
|
+
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*[local-name() = 'space-before' or local-name() = 'margin-bottom']"/>
|
|
2296
|
+
|
|
2297
2297
|
<xsl:call-template name="title"/>
|
|
2298
2298
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:p]">
|
|
2299
2299
|
<xsl:with-param name="inline-header">true</xsl:with-param>
|
|
@@ -2342,90 +2342,8 @@
|
|
|
2342
2342
|
</xsl:choose>
|
|
2343
2343
|
</xsl:template>
|
|
2344
2344
|
|
|
2345
|
-
<xsl:template name="getTitleMarginBottom">
|
|
2346
|
-
<xsl:variable name="level">
|
|
2347
|
-
<xsl:call-template name="getLevel"/>
|
|
2348
|
-
</xsl:variable>
|
|
2349
|
-
<xsl:choose>
|
|
2350
|
-
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
|
2351
|
-
<xsl:choose>
|
|
2352
|
-
<xsl:when test="ancestor::mn:abstract">6pt</xsl:when>
|
|
2353
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
|
2354
|
-
</xsl:choose>
|
|
2355
|
-
</xsl:when>
|
|
2356
|
-
<xsl:otherwise>
|
|
2357
|
-
<xsl:choose>
|
|
2358
|
-
<xsl:when test="$level = 1 and (ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:acknowledgements)">12pt</xsl:when>
|
|
2359
|
-
<xsl:when test="$level = 1 and not(following-sibling::*[1][self::mn:clause])">12pt</xsl:when>
|
|
2360
|
-
<xsl:when test="$level = 1">24pt</xsl:when>
|
|
2361
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
|
2362
|
-
</xsl:choose>
|
|
2363
|
-
</xsl:otherwise>
|
|
2364
|
-
</xsl:choose>
|
|
2365
|
-
</xsl:template>
|
|
2366
|
-
|
|
2367
2345
|
<xsl:template match="mn:fmt-title" priority="2" name="title">
|
|
2368
2346
|
|
|
2369
|
-
<xsl:variable name="level">
|
|
2370
|
-
<xsl:call-template name="getLevel"/>
|
|
2371
|
-
</xsl:variable>
|
|
2372
|
-
|
|
2373
|
-
<xsl:variable name="font-family">
|
|
2374
|
-
<xsl:choose>
|
|
2375
|
-
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">Arial Black</xsl:when>
|
|
2376
|
-
<xsl:otherwise>Arial</xsl:otherwise>
|
|
2377
|
-
</xsl:choose>
|
|
2378
|
-
</xsl:variable>
|
|
2379
|
-
|
|
2380
|
-
<xsl:variable name="font-size">
|
|
2381
|
-
<xsl:choose>
|
|
2382
|
-
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
|
2383
|
-
<xsl:choose>
|
|
2384
|
-
<xsl:when test="ancestor::mn:abstract">13pt</xsl:when>
|
|
2385
|
-
<xsl:when test="$level = 1">20pt</xsl:when>
|
|
2386
|
-
<xsl:when test="$level = 2">16pt</xsl:when>
|
|
2387
|
-
<xsl:when test="$level = 3">13pt</xsl:when>
|
|
2388
|
-
<xsl:otherwise>11pt</xsl:otherwise> <!-- 4th, ... levels -->
|
|
2389
|
-
</xsl:choose>
|
|
2390
|
-
</xsl:when>
|
|
2391
|
-
<xsl:otherwise>
|
|
2392
|
-
<xsl:choose>
|
|
2393
|
-
<xsl:when test="@type = 'section-title'">12pt</xsl:when>
|
|
2394
|
-
<xsl:when test="$level = 1 and ancestor::mn:acknowledgements">11pt</xsl:when>
|
|
2395
|
-
<xsl:when test="$level = 1">12pt</xsl:when>
|
|
2396
|
-
<xsl:when test="$level = 2">11pt</xsl:when>
|
|
2397
|
-
<xsl:otherwise>10pt</xsl:otherwise> <!-- 3rd, 4th, ... levels -->
|
|
2398
|
-
</xsl:choose>
|
|
2399
|
-
</xsl:otherwise>
|
|
2400
|
-
</xsl:choose>
|
|
2401
|
-
</xsl:variable>
|
|
2402
|
-
|
|
2403
|
-
<xsl:variable name="font-weight">
|
|
2404
|
-
<xsl:choose>
|
|
2405
|
-
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">normal</xsl:when>
|
|
2406
|
-
<xsl:otherwise>
|
|
2407
|
-
<xsl:choose>
|
|
2408
|
-
<!-- <xsl:when test="@ancestor = 'annex' and $level = 1">normal</xsl:when> -->
|
|
2409
|
-
<xsl:when test="ancestor::mn:annex and $level = 1">normal</xsl:when>
|
|
2410
|
-
<xsl:otherwise>bold</xsl:otherwise>
|
|
2411
|
-
</xsl:choose>
|
|
2412
|
-
</xsl:otherwise>
|
|
2413
|
-
</xsl:choose>
|
|
2414
|
-
</xsl:variable>
|
|
2415
|
-
|
|
2416
|
-
<xsl:variable name="margin-top">
|
|
2417
|
-
<xsl:call-template name="getTitleMarginTop"/>
|
|
2418
|
-
</xsl:variable>
|
|
2419
|
-
|
|
2420
|
-
<xsl:variable name="margin-bottom">
|
|
2421
|
-
<xsl:call-template name="getTitleMarginBottom"/>
|
|
2422
|
-
</xsl:variable>
|
|
2423
|
-
<!-- <xsl:choose>
|
|
2424
|
-
<xsl:when test="$level = 1">12pt</xsl:when>
|
|
2425
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
|
2426
|
-
</xsl:choose>
|
|
2427
|
-
</xsl:variable> -->
|
|
2428
|
-
|
|
2429
2347
|
<xsl:variable name="element-name">
|
|
2430
2348
|
<xsl:choose>
|
|
2431
2349
|
<xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
|
|
@@ -2433,26 +2351,7 @@
|
|
|
2433
2351
|
</xsl:choose>
|
|
2434
2352
|
</xsl:variable>
|
|
2435
2353
|
|
|
2436
|
-
<xsl:variable name="
|
|
2437
|
-
<attributes>
|
|
2438
|
-
<xsl:attribute name="font-family"><xsl:value-of select="$font-family"/></xsl:attribute>
|
|
2439
|
-
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
|
2440
|
-
<xsl:attribute name="font-weight"><xsl:value-of select="$font-weight"/></xsl:attribute>
|
|
2441
|
-
<xsl:attribute name="space-before"><xsl:value-of select="$margin-top"/></xsl:attribute>
|
|
2442
|
-
<!-- <xsl:attribute name="margin-top"><xsl:value-of select="$margin-top"/></xsl:attribute> -->
|
|
2443
|
-
<xsl:if test="ancestor::mn:introduction"><xsl:attribute name="margin-top"><xsl:value-of select="$margin-top"/></xsl:attribute></xsl:if>
|
|
2444
|
-
<xsl:attribute name="margin-bottom"><xsl:value-of select="$margin-bottom"/></xsl:attribute>
|
|
2445
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
2446
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
|
2447
|
-
|
|
2448
|
-
<xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
|
|
2449
|
-
|
|
2450
|
-
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
2451
|
-
<xsl:copy-of select="@id"/>
|
|
2452
|
-
</xsl:if>
|
|
2453
|
-
</attributes>
|
|
2454
|
-
</xsl:variable>
|
|
2455
|
-
<xsl:variable name="attributes" select="xalan:nodeset($attributes_)"/>
|
|
2354
|
+
<xsl:variable name="title_styles"><styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template></styles></xsl:variable>
|
|
2456
2355
|
|
|
2457
2356
|
<xsl:variable name="section">
|
|
2458
2357
|
<xsl:call-template name="extractSection"/>
|
|
@@ -2460,26 +2359,15 @@
|
|
|
2460
2359
|
|
|
2461
2360
|
<xsl:choose>
|
|
2462
2361
|
<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')">
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
<xsl:choose>
|
|
2466
|
-
<xsl:when test="$level = 1 and string-length($section) = 2">8.5mm</xsl:when>
|
|
2467
|
-
<xsl:when test="$level = 1 and string-length($section) = 3">13mm</xsl:when>
|
|
2468
|
-
<xsl:when test="$level >= 2">17.8mm</xsl:when>
|
|
2469
|
-
<xsl:otherwise>10mm</xsl:otherwise>
|
|
2470
|
-
</xsl:choose>
|
|
2471
|
-
</xsl:variable>
|
|
2472
|
-
<fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}">
|
|
2473
|
-
|
|
2474
|
-
<xsl:copy-of select="$attributes/attributes/@*"/>
|
|
2475
|
-
|
|
2476
|
-
<xsl:if test="$level = 1">
|
|
2477
|
-
<xsl:attribute name="line-height">20pt</xsl:attribute>
|
|
2478
|
-
</xsl:if>
|
|
2362
|
+
<fo:list-block>
|
|
2363
|
+
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
2479
2364
|
|
|
2480
2365
|
<fo:list-item>
|
|
2481
2366
|
<fo:list-item-label end-indent="label-end()">
|
|
2482
2367
|
<fo:block id="__internal_layout__toc_section_{generate-id()}">
|
|
2368
|
+
<xsl:variable name="level">
|
|
2369
|
+
<xsl:call-template name="getLevel"/>
|
|
2370
|
+
</xsl:variable>
|
|
2483
2371
|
<xsl:if test="$level = 1">
|
|
2484
2372
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
2485
2373
|
</xsl:if>
|
|
@@ -2507,8 +2395,7 @@
|
|
|
2507
2395
|
</xsl:when>
|
|
2508
2396
|
<xsl:otherwise>
|
|
2509
2397
|
<xsl:element name="{$element-name}">
|
|
2510
|
-
|
|
2511
|
-
<xsl:copy-of select="$attributes/attributes/@*"/>
|
|
2398
|
+
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
2512
2399
|
|
|
2513
2400
|
<!-- if first and last childs are `add` ace-tag, then move start ace-tag before title -->
|
|
2514
2401
|
<xsl:if test="mn:tab[1]/following-sibling::node()[last()][self::mn:add][starts-with(text(), $ace_tag)]">
|
|
@@ -2614,7 +2501,8 @@
|
|
|
2614
2501
|
</xsl:template>
|
|
2615
2502
|
|
|
2616
2503
|
<xsl:template match="mn:term/mn:fmt-definition" priority="2">
|
|
2617
|
-
<fo:block xsl:use-attribute-sets="definition-style">
|
|
2504
|
+
<fo:block xsl:use-attribute-sets="term-definition-style">
|
|
2505
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
|
2618
2506
|
<xsl:apply-templates/>
|
|
2619
2507
|
</fo:block>
|
|
2620
2508
|
<!-- change termsource order - show after definition before termnote -->
|
|
@@ -2654,50 +2542,15 @@
|
|
|
2654
2542
|
<!-- <xsl:otherwise>fo:block</xsl:otherwise>
|
|
2655
2543
|
</xsl:choose>
|
|
2656
2544
|
</xsl:variable> -->
|
|
2657
|
-
<xsl:element name="{$element-name}">
|
|
2658
|
-
<xsl:call-template name="setBlockAttributes">
|
|
2659
|
-
<xsl:with-param name="text_align_default">justify</xsl:with-param>
|
|
2660
|
-
</xsl:call-template>
|
|
2661
|
-
|
|
2662
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute><!-- 8pt -->
|
|
2663
|
-
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and (ancestor::mn:sections or ancestor::mn:annex)">
|
|
2664
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
2665
|
-
</xsl:if>
|
|
2666
|
-
<xsl:if test="../following-sibling::*[1][self::mn:note or self::mn:termnote or self::mn:ul or self::mn:ol] or following-sibling::*[1][self::mn:ul or self::mn:ol]">
|
|
2667
|
-
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
|
2668
|
-
</xsl:if>
|
|
2669
|
-
<xsl:if test="parent::mn:li">
|
|
2670
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
2671
|
-
<xsl:if test="ancestor::mn:feedback-statement">
|
|
2672
|
-
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
2673
|
-
</xsl:if>
|
|
2674
|
-
</xsl:if>
|
|
2675
|
-
<xsl:if test="parent::mn:li and (ancestor::mn:note or ancestor::mn:termnote)">
|
|
2676
|
-
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
|
2677
|
-
</xsl:if>
|
|
2678
|
-
<xsl:if test="(following-sibling::*[1][self::mn:clause or self::mn:terms or self::mn:references])">
|
|
2679
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
2680
|
-
</xsl:if>
|
|
2681
|
-
<xsl:if test="@id">
|
|
2682
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
2683
|
-
</xsl:if>
|
|
2684
|
-
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
|
2685
|
-
<!-- bookmarks only in paragraph -->
|
|
2686
|
-
<xsl:if test="count(mn:bookmark) != 0 and count(*) = count(mn:bookmark) and normalize-space() = ''">
|
|
2687
|
-
<xsl:attribute name="font-size">0</xsl:attribute>
|
|
2688
|
-
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
2689
|
-
<xsl:attribute name="line-height">0</xsl:attribute>
|
|
2690
|
-
</xsl:if>
|
|
2691
2545
|
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
<xsl:
|
|
2695
|
-
</
|
|
2546
|
+
<xsl:variable name="p_styles">
|
|
2547
|
+
<styles xsl:use-attribute-sets="p-style">
|
|
2548
|
+
<xsl:call-template name="refine_p-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template>
|
|
2549
|
+
</styles>
|
|
2550
|
+
</xsl:variable>
|
|
2696
2551
|
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
2700
|
-
</xsl:if>
|
|
2552
|
+
<xsl:element name="{$element-name}">
|
|
2553
|
+
<xsl:copy-of select="xalan:nodeset($p_styles)/styles/@*"/>
|
|
2701
2554
|
|
|
2702
2555
|
<xsl:apply-templates>
|
|
2703
2556
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
|
@@ -2949,7 +2802,8 @@
|
|
|
2949
2802
|
<xsl:value-of select="$localized.source"/>
|
|
2950
2803
|
<xsl:text>: </xsl:text>
|
|
2951
2804
|
</fo:inline> -->
|
|
2952
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
|
2805
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
|
2806
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
|
2953
2807
|
<xsl:apply-templates/>
|
|
2954
2808
|
</fo:inline>
|
|
2955
2809
|
</fo:basic-link>
|
|
@@ -5980,6 +5834,10 @@
|
|
|
5980
5834
|
</xsl:element>
|
|
5981
5835
|
</xsl:template>
|
|
5982
5836
|
|
|
5837
|
+
<!-- show sourcecode's name 'before' or 'after' source code -->
|
|
5838
|
+
<xsl:variable name="sourcecode-name-position"><xsl:text>after</xsl:text>
|
|
5839
|
+
</xsl:variable>
|
|
5840
|
+
|
|
5983
5841
|
<xsl:template match="mn:sourcecode" name="sourcecode">
|
|
5984
5842
|
|
|
5985
5843
|
<xsl:variable name="sourcecode_attributes">
|
|
@@ -6003,7 +5861,12 @@
|
|
|
6003
5861
|
|
|
6004
5862
|
<xsl:call-template name="refine_sourcecode-container-style"/>
|
|
6005
5863
|
|
|
6006
|
-
<fo:block-container margin-left="0mm" role="SKIP">
|
|
5864
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
5865
|
+
|
|
5866
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
5867
|
+
<xsl:if test="$sourcecode-name-position = 'before'">
|
|
5868
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name BEFORE content -->
|
|
5869
|
+
</xsl:if>
|
|
6007
5870
|
|
|
6008
5871
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
6009
5872
|
|
|
@@ -6025,7 +5888,16 @@
|
|
|
6025
5888
|
</fo:block>
|
|
6026
5889
|
|
|
6027
5890
|
<xsl:apply-templates select="mn:dl"/> <!-- Key table -->
|
|
6028
|
-
|
|
5891
|
+
|
|
5892
|
+
<!-- <xsl:choose>
|
|
5893
|
+
<xsl:when test="$namespace = 'rsd'"></xsl:when>
|
|
5894
|
+
<xsl:otherwise>
|
|
5895
|
+
<xsl:apply-templates select="mn:fmt-name" /> --><!-- show sourcecode's name AFTER content -->
|
|
5896
|
+
<!-- </xsl:otherwise>
|
|
5897
|
+
</xsl:choose> -->
|
|
5898
|
+
<xsl:if test="$sourcecode-name-position = 'after'">
|
|
5899
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name AFTER content -->
|
|
5900
|
+
</xsl:if>
|
|
6029
5901
|
|
|
6030
5902
|
</fo:block-container>
|
|
6031
5903
|
</fo:block-container>
|
|
@@ -7282,83 +7154,77 @@
|
|
|
7282
7154
|
<xsl:template name="refine_term-style">
|
|
7283
7155
|
</xsl:template>
|
|
7284
7156
|
|
|
7285
|
-
<xsl:attribute-set name="term-
|
|
7157
|
+
<xsl:attribute-set name="term-number-style">
|
|
7286
7158
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
7287
7159
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
7288
7160
|
</xsl:attribute-set> <!-- term-name-style -->
|
|
7289
7161
|
|
|
7290
|
-
<xsl:template name="refine_term-
|
|
7291
|
-
</xsl:template>
|
|
7292
|
-
|
|
7293
|
-
<xsl:attribute-set name="preferred-style">
|
|
7294
|
-
</xsl:attribute-set> <!-- preferred-style -->
|
|
7295
|
-
|
|
7296
|
-
<xsl:template name="refine_preferred-style">
|
|
7162
|
+
<xsl:template name="refine_term-number-style">
|
|
7297
7163
|
</xsl:template>
|
|
7298
7164
|
|
|
7299
|
-
<xsl:attribute-set name="preferred-block-style">
|
|
7165
|
+
<xsl:attribute-set name="term-preferred-block-style">
|
|
7300
7166
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
|
7301
7167
|
|
|
7302
|
-
<xsl:template name="
|
|
7168
|
+
<xsl:template name="refine_term-preferred-block-style">
|
|
7303
7169
|
</xsl:template>
|
|
7304
7170
|
|
|
7305
|
-
<xsl:attribute-set name="preferred-
|
|
7171
|
+
<xsl:attribute-set name="term-preferred-style">
|
|
7306
7172
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
7307
7173
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
7308
7174
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
|
7309
7175
|
|
|
7310
|
-
<xsl:template name="
|
|
7176
|
+
<xsl:template name="refine_term-preferred-style">
|
|
7311
7177
|
<xsl:if test="mn:strong">
|
|
7312
7178
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
7313
7179
|
</xsl:if>
|
|
7314
7180
|
</xsl:template>
|
|
7315
7181
|
|
|
7316
|
-
<xsl:attribute-set name="domain-style">
|
|
7317
|
-
</xsl:attribute-set> <!-- domain-style -->
|
|
7182
|
+
<xsl:attribute-set name="term-domain-style">
|
|
7183
|
+
</xsl:attribute-set> <!-- term-domain-style -->
|
|
7318
7184
|
|
|
7319
|
-
<xsl:template name="
|
|
7185
|
+
<xsl:template name="refine_term-domain-style">
|
|
7320
7186
|
</xsl:template>
|
|
7321
7187
|
|
|
7322
|
-
<xsl:attribute-set name="admitted-style">
|
|
7323
|
-
</xsl:attribute-set> <!-- admitted-style -->
|
|
7188
|
+
<xsl:attribute-set name="term-admitted-style">
|
|
7189
|
+
</xsl:attribute-set> <!-- term-admitted-style -->
|
|
7324
7190
|
|
|
7325
|
-
<xsl:template name="
|
|
7191
|
+
<xsl:template name="refine_term-admitted-style">
|
|
7326
7192
|
</xsl:template>
|
|
7327
7193
|
|
|
7328
|
-
<xsl:attribute-set name="deprecates-style">
|
|
7329
|
-
</xsl:attribute-set> <!-- deprecates-style -->
|
|
7194
|
+
<xsl:attribute-set name="term-deprecates-style">
|
|
7195
|
+
</xsl:attribute-set> <!-- term-deprecates-style -->
|
|
7330
7196
|
|
|
7331
|
-
<xsl:template name="
|
|
7197
|
+
<xsl:template name="refine_term-deprecates-style">
|
|
7332
7198
|
</xsl:template>
|
|
7333
7199
|
|
|
7334
|
-
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
|
7200
|
+
<xsl:attribute-set name="term-related-block-style" use-attribute-sets="term-preferred-block-style">
|
|
7335
7201
|
</xsl:attribute-set>
|
|
7336
7202
|
|
|
7337
|
-
<xsl:template name="
|
|
7203
|
+
<xsl:template name="refine_term-related-block-style">
|
|
7338
7204
|
</xsl:template>
|
|
7339
7205
|
|
|
7340
|
-
<xsl:attribute-set name="definition-style">
|
|
7341
|
-
</xsl:attribute-set> <!-- definition-style -->
|
|
7206
|
+
<xsl:attribute-set name="term-definition-style">
|
|
7207
|
+
</xsl:attribute-set> <!-- term-definition-style -->
|
|
7342
7208
|
|
|
7343
|
-
<xsl:template name="
|
|
7209
|
+
<xsl:template name="refine_term-definition-style">
|
|
7344
7210
|
</xsl:template>
|
|
7345
7211
|
|
|
7346
|
-
<xsl:attribute-set name="termsource-style">
|
|
7347
|
-
</xsl:attribute-set> <!-- termsource-style -->
|
|
7212
|
+
<xsl:attribute-set name="term-termsource-style">
|
|
7213
|
+
</xsl:attribute-set> <!-- term-termsource-style -->
|
|
7348
7214
|
|
|
7349
|
-
<xsl:template name="
|
|
7350
|
-
</xsl:template> <!--
|
|
7215
|
+
<xsl:template name="refine_term-termsource-style">
|
|
7216
|
+
</xsl:template> <!-- refine_term-termsource-style -->
|
|
7351
7217
|
|
|
7352
|
-
<xsl:attribute-set name="termsource-text-style">
|
|
7353
|
-
</xsl:attribute-set> <!-- termsource-text-style -->
|
|
7218
|
+
<xsl:attribute-set name="term-termsource-text-style">
|
|
7219
|
+
</xsl:attribute-set> <!-- term-termsource-text-style -->
|
|
7354
7220
|
|
|
7355
|
-
<xsl:template name="
|
|
7221
|
+
<xsl:template name="refine_term-termsource-text-style">
|
|
7356
7222
|
</xsl:template>
|
|
7357
7223
|
|
|
7358
|
-
<xsl:attribute-set name="origin-style">
|
|
7359
|
-
</xsl:attribute-set> <!-- origin-style -->
|
|
7224
|
+
<xsl:attribute-set name="term-origin-style">
|
|
7225
|
+
</xsl:attribute-set> <!-- term-origin-style -->
|
|
7360
7226
|
|
|
7361
|
-
<xsl:template name="
|
|
7227
|
+
<xsl:template name="refine_term-origin-style">
|
|
7362
7228
|
</xsl:template>
|
|
7363
7229
|
|
|
7364
7230
|
<!-- ====== -->
|
|
@@ -7402,9 +7268,9 @@
|
|
|
7402
7268
|
<!-- modification -->
|
|
7403
7269
|
<!-- ====== -->
|
|
7404
7270
|
<xsl:template match="mn:fmt-termsource" name="termsource">
|
|
7405
|
-
<fo:block xsl:use-attribute-sets="termsource-style">
|
|
7271
|
+
<fo:block xsl:use-attribute-sets="term-termsource-style">
|
|
7406
7272
|
|
|
7407
|
-
<xsl:call-template name="
|
|
7273
|
+
<xsl:call-template name="refine_term-termsource-style"/>
|
|
7408
7274
|
|
|
7409
7275
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
|
7410
7276
|
<xsl:variable name="termsource_text">
|
|
@@ -7452,8 +7318,8 @@
|
|
|
7452
7318
|
|
|
7453
7319
|
<!-- text SOURCE: -->
|
|
7454
7320
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
|
7455
|
-
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
|
7456
|
-
<xsl:call-template name="
|
|
7321
|
+
<fo:inline xsl:use-attribute-sets="term-termsource-text-style">
|
|
7322
|
+
<xsl:call-template name="refine_term-termsource-text-style"/>
|
|
7457
7323
|
<xsl:value-of select="."/>
|
|
7458
7324
|
</fo:inline>
|
|
7459
7325
|
</xsl:template>
|
|
@@ -7465,8 +7331,8 @@
|
|
|
7465
7331
|
<xsl:if test="normalize-space(@citeas) = ''">
|
|
7466
7332
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
|
7467
7333
|
</xsl:if>
|
|
7468
|
-
<fo:inline xsl:use-attribute-sets="origin-style">
|
|
7469
|
-
<xsl:call-template name="
|
|
7334
|
+
<fo:inline xsl:use-attribute-sets="term-origin-style">
|
|
7335
|
+
<xsl:call-template name="refine_term-origin-style"/>
|
|
7470
7336
|
<xsl:apply-templates/>
|
|
7471
7337
|
</fo:inline>
|
|
7472
7338
|
</fo:basic-link>
|
|
@@ -7514,14 +7380,14 @@
|
|
|
7514
7380
|
<xsl:variable name="levelTerm">
|
|
7515
7381
|
<xsl:call-template name="getLevelTermName"/>
|
|
7516
7382
|
</xsl:variable>
|
|
7517
|
-
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
7383
|
+
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="term-preferred-block-style">
|
|
7518
7384
|
|
|
7519
|
-
<xsl:call-template name="
|
|
7385
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
|
7520
7386
|
|
|
7521
7387
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
|
7522
7388
|
|
|
7523
|
-
<fo:block xsl:use-attribute-sets="term-
|
|
7524
|
-
<xsl:call-template name="refine_term-
|
|
7389
|
+
<fo:block xsl:use-attribute-sets="term-number-style" role="SKIP">
|
|
7390
|
+
<xsl:call-template name="refine_term-number-style"/>
|
|
7525
7391
|
|
|
7526
7392
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
|
7527
7393
|
<xsl:call-template name="setIDforNamedDestination"/>
|
|
@@ -7531,8 +7397,8 @@
|
|
|
7531
7397
|
</fo:block>
|
|
7532
7398
|
</xsl:if>
|
|
7533
7399
|
|
|
7534
|
-
<fo:block xsl:use-attribute-sets="preferred-
|
|
7535
|
-
<xsl:call-template name="
|
|
7400
|
+
<fo:block xsl:use-attribute-sets="term-preferred-style" role="SKIP">
|
|
7401
|
+
<xsl:call-template name="refine_term-preferred-style"/>
|
|
7536
7402
|
|
|
7537
7403
|
<xsl:apply-templates/>
|
|
7538
7404
|
</fo:block>
|
|
@@ -7552,15 +7418,15 @@
|
|
|
7552
7418
|
<xsl:template match="mn:domain"/>
|
|
7553
7419
|
|
|
7554
7420
|
<xsl:template match="mn:fmt-admitted">
|
|
7555
|
-
<fo:block xsl:use-attribute-sets="admitted-style">
|
|
7556
|
-
<xsl:call-template name="
|
|
7421
|
+
<fo:block xsl:use-attribute-sets="term-admitted-style">
|
|
7422
|
+
<xsl:call-template name="refine_term-admitted-style"/>
|
|
7557
7423
|
<xsl:apply-templates/>
|
|
7558
7424
|
</fo:block>
|
|
7559
7425
|
</xsl:template>
|
|
7560
7426
|
|
|
7561
7427
|
<xsl:template match="mn:fmt-deprecates">
|
|
7562
|
-
<fo:block xsl:use-attribute-sets="deprecates-style">
|
|
7563
|
-
<xsl:call-template name="
|
|
7428
|
+
<fo:block xsl:use-attribute-sets="term-deprecates-style">
|
|
7429
|
+
<xsl:call-template name="refine_term-deprecates-style"/>
|
|
7564
7430
|
<xsl:apply-templates/>
|
|
7565
7431
|
</fo:block>
|
|
7566
7432
|
</xsl:template>
|
|
@@ -7573,8 +7439,8 @@
|
|
|
7573
7439
|
<!-- End Preferred, admitted, deprecated -->
|
|
7574
7440
|
|
|
7575
7441
|
<xsl:template match="mn:fmt-related">
|
|
7576
|
-
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
|
7577
|
-
<xsl:call-template name="
|
|
7442
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="term-related-block-style">
|
|
7443
|
+
<xsl:call-template name="refine_term-related-block-style"/>
|
|
7578
7444
|
<xsl:apply-templates/>
|
|
7579
7445
|
</fo:block>
|
|
7580
7446
|
</xsl:template>
|
|
@@ -7588,8 +7454,8 @@
|
|
|
7588
7454
|
<!-- definition -->
|
|
7589
7455
|
<!-- ========== -->
|
|
7590
7456
|
<xsl:template match="mn:fmt-definition">
|
|
7591
|
-
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
|
7592
|
-
<xsl:call-template name="
|
|
7457
|
+
<fo:block xsl:use-attribute-sets="term-definition-style" role="SKIP">
|
|
7458
|
+
<xsl:call-template name="refine_term-definition-style"/>
|
|
7593
7459
|
<xsl:apply-templates/>
|
|
7594
7460
|
</fo:block>
|
|
7595
7461
|
</xsl:template>
|
|
@@ -11853,6 +11719,10 @@
|
|
|
11853
11719
|
<!-- image -->
|
|
11854
11720
|
<!-- ====== -->
|
|
11855
11721
|
|
|
11722
|
+
<!-- show figure's name 'before' or 'after' image -->
|
|
11723
|
+
<xsl:variable name="figure-name-position"><xsl:text>after</xsl:text>
|
|
11724
|
+
</xsl:variable>
|
|
11725
|
+
|
|
11856
11726
|
<xsl:template match="mn:figure" name="figure">
|
|
11857
11727
|
<xsl:variable name="isAdded" select="@added"/>
|
|
11858
11728
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
@@ -11865,6 +11735,10 @@
|
|
|
11865
11735
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
|
11866
11736
|
</xsl:call-template>
|
|
11867
11737
|
|
|
11738
|
+
<xsl:if test="$figure-name-position = 'before'"> <!-- show figure's name BEFORE image -->
|
|
11739
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
11740
|
+
</xsl:if>
|
|
11741
|
+
|
|
11868
11742
|
<!-- Example: Dimensions in millimeters -->
|
|
11869
11743
|
<xsl:apply-templates select="mn:note[@type = 'units']"/>
|
|
11870
11744
|
|
|
@@ -11885,7 +11759,16 @@
|
|
|
11885
11759
|
<xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
|
|
11886
11760
|
<xsl:call-template name="showFigureKey"/>
|
|
11887
11761
|
</xsl:if>
|
|
11888
|
-
|
|
11762
|
+
|
|
11763
|
+
<!-- <xsl:choose>
|
|
11764
|
+
<xsl:when test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'rsd'"></xsl:when>
|
|
11765
|
+
<xsl:otherwise>
|
|
11766
|
+
<xsl:apply-templates select="mn:fmt-name" /> --> <!-- show figure's name AFTER image -->
|
|
11767
|
+
<!-- </xsl:otherwise>
|
|
11768
|
+
</xsl:choose> -->
|
|
11769
|
+
<xsl:if test="$figure-name-position = 'after'">
|
|
11770
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show figure's name AFTER image -->
|
|
11771
|
+
</xsl:if>
|
|
11889
11772
|
|
|
11890
11773
|
</fo:block-container>
|
|
11891
11774
|
</xsl:template>
|
|
@@ -14064,7 +13947,6 @@
|
|
|
14064
13947
|
</xsl:attribute-set>
|
|
14065
13948
|
|
|
14066
13949
|
<xsl:template name="refine_references-non-normative-title-style">
|
|
14067
|
-
|
|
14068
13950
|
</xsl:template>
|
|
14069
13951
|
|
|
14070
13952
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
|
@@ -16145,7 +16027,7 @@
|
|
|
16145
16027
|
<!-- ===================================== -->
|
|
16146
16028
|
|
|
16147
16029
|
<xsl:attribute-set name="annex-title-style">
|
|
16148
|
-
</xsl:attribute-set>
|
|
16030
|
+
</xsl:attribute-set> <!-- annex-title-style -->
|
|
16149
16031
|
|
|
16150
16032
|
<xsl:template name="refine_annex-title-style">
|
|
16151
16033
|
</xsl:template>
|
|
@@ -16165,6 +16047,156 @@
|
|
|
16165
16047
|
</xsl:if>
|
|
16166
16048
|
</xsl:template>
|
|
16167
16049
|
|
|
16050
|
+
<xsl:attribute-set name="p-style">
|
|
16051
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute><!-- 8pt -->
|
|
16052
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
|
16053
|
+
</xsl:attribute-set> <!-- p-style -->
|
|
16054
|
+
|
|
16055
|
+
<xsl:template name="refine_p-style">
|
|
16056
|
+
<xsl:param name="element-name"/>
|
|
16057
|
+
<xsl:param name="margin"/>
|
|
16058
|
+
<xsl:call-template name="setBlockAttributes">
|
|
16059
|
+
<xsl:with-param name="text_align_default">justify</xsl:with-param>
|
|
16060
|
+
</xsl:call-template>
|
|
16061
|
+
|
|
16062
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and (ancestor::mn:sections or ancestor::mn:annex)">
|
|
16063
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16064
|
+
</xsl:if>
|
|
16065
|
+
<xsl:if test="../following-sibling::*[1][self::mn:note or self::mn:termnote or self::mn:ul or self::mn:ol] or following-sibling::*[1][self::mn:ul or self::mn:ol]">
|
|
16066
|
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
|
16067
|
+
</xsl:if>
|
|
16068
|
+
<xsl:if test="parent::mn:li">
|
|
16069
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
16070
|
+
<xsl:if test="ancestor::mn:feedback-statement">
|
|
16071
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
16072
|
+
</xsl:if>
|
|
16073
|
+
</xsl:if>
|
|
16074
|
+
<xsl:if test="parent::mn:li and (ancestor::mn:note or ancestor::mn:termnote)">
|
|
16075
|
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
|
16076
|
+
</xsl:if>
|
|
16077
|
+
<xsl:if test="(following-sibling::*[1][self::mn:clause or self::mn:terms or self::mn:references])">
|
|
16078
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
16079
|
+
</xsl:if>
|
|
16080
|
+
<xsl:copy-of select="@id"/>
|
|
16081
|
+
|
|
16082
|
+
<!-- bookmarks only in paragraph -->
|
|
16083
|
+
<xsl:if test="count(mn:bookmark) != 0 and count(*) = count(mn:bookmark) and normalize-space() = ''">
|
|
16084
|
+
<xsl:attribute name="font-size">0</xsl:attribute>
|
|
16085
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
16086
|
+
<xsl:attribute name="line-height">0</xsl:attribute>
|
|
16087
|
+
</xsl:if>
|
|
16088
|
+
|
|
16089
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and not(parent::mn:li)">
|
|
16090
|
+
<xsl:attribute name="line-height"><xsl:value-of select="$line-height"/></xsl:attribute>
|
|
16091
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16092
|
+
</xsl:if>
|
|
16093
|
+
|
|
16094
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and parent::mn:li">
|
|
16095
|
+
<xsl:attribute name="line-height">inherit</xsl:attribute>
|
|
16096
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
16097
|
+
</xsl:if>
|
|
16098
|
+
<!-- $namespace = 'ieee' -->
|
|
16099
|
+
|
|
16100
|
+
</xsl:template> <!-- refine_p-style -->
|
|
16101
|
+
|
|
16102
|
+
<xsl:attribute-set name="title-style">
|
|
16103
|
+
<!-- Note: font-size for level 1 title -->
|
|
16104
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
|
16105
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
16106
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
16107
|
+
<xsl:attribute name="margin-bottom">24pt</xsl:attribute>
|
|
16108
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
16109
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
|
16110
|
+
</xsl:attribute-set> <!-- title-style -->
|
|
16111
|
+
|
|
16112
|
+
<xsl:template name="refine_title-style">
|
|
16113
|
+
<xsl:param name="element-name"/>
|
|
16114
|
+
<xsl:variable name="level">
|
|
16115
|
+
<xsl:call-template name="getLevel"/>
|
|
16116
|
+
</xsl:variable>
|
|
16117
|
+
<xsl:variable name="space_before">
|
|
16118
|
+
<xsl:call-template name="getTitleMarginTop"/>
|
|
16119
|
+
</xsl:variable>
|
|
16120
|
+
|
|
16121
|
+
<xsl:choose>
|
|
16122
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
|
16123
|
+
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
|
16124
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16125
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16126
|
+
<xsl:if test="ancestor::mn:abstract">
|
|
16127
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
16128
|
+
</xsl:if>
|
|
16129
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16130
|
+
<xsl:variable name="section">
|
|
16131
|
+
<xsl:call-template name="extractSection"/>
|
|
16132
|
+
</xsl:variable>
|
|
16133
|
+
<xsl:if test="string-length($section) != 0 and $element-name = 'fo:block'">
|
|
16134
|
+
<xsl:attribute name="provisional-distance-between-starts">
|
|
16135
|
+
<xsl:choose>
|
|
16136
|
+
<xsl:when test="$level = 1 and string-length($section) = 2">8.5mm</xsl:when>
|
|
16137
|
+
<xsl:when test="$level = 1 and string-length($section) = 3">13mm</xsl:when>
|
|
16138
|
+
<xsl:when test="$level >= 2">17.8mm</xsl:when>
|
|
16139
|
+
<xsl:otherwise>10mm</xsl:otherwise>
|
|
16140
|
+
</xsl:choose>
|
|
16141
|
+
</xsl:attribute>
|
|
16142
|
+
<xsl:if test="$level = 1">
|
|
16143
|
+
<xsl:attribute name="font-size">20pt</xsl:attribute>
|
|
16144
|
+
<xsl:attribute name="line-height">20pt</xsl:attribute>
|
|
16145
|
+
</xsl:if>
|
|
16146
|
+
<xsl:if test="$level = 2">
|
|
16147
|
+
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
16148
|
+
</xsl:if>
|
|
16149
|
+
<xsl:if test="$level = 3">
|
|
16150
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
16151
|
+
</xsl:if>
|
|
16152
|
+
<xsl:if test="$level >= 4">
|
|
16153
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
16154
|
+
</xsl:if>
|
|
16155
|
+
<xsl:if test="ancestor::mn:abstract">
|
|
16156
|
+
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
|
16157
|
+
</xsl:if>
|
|
16158
|
+
</xsl:if>
|
|
16159
|
+
</xsl:when>
|
|
16160
|
+
<xsl:otherwise>
|
|
16161
|
+
<xsl:if test="$level = 1">
|
|
16162
|
+
<xsl:if test="ancestor::mn:acknowledgements">
|
|
16163
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
16164
|
+
</xsl:if>
|
|
16165
|
+
<xsl:if test="ancestor::mn:annex">
|
|
16166
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16167
|
+
</xsl:if>
|
|
16168
|
+
<xsl:if test="not(following-sibling::*[1][self::mn:clause])">
|
|
16169
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16170
|
+
</xsl:if>
|
|
16171
|
+
<xsl:if test="ancestor::mn:preface or ancestor::mn:introduction or ancestor::mn:acknowledgements">
|
|
16172
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16173
|
+
</xsl:if>
|
|
16174
|
+
</xsl:if>
|
|
16175
|
+
<xsl:if test="$level >= 2">
|
|
16176
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16177
|
+
</xsl:if>
|
|
16178
|
+
<xsl:if test="$level = 2">
|
|
16179
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
16180
|
+
</xsl:if>
|
|
16181
|
+
<xsl:if test="$level >= 3">
|
|
16182
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
16183
|
+
</xsl:if>
|
|
16184
|
+
<xsl:if test="@type = 'section-title'">
|
|
16185
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
16186
|
+
</xsl:if>
|
|
16187
|
+
</xsl:otherwise>
|
|
16188
|
+
</xsl:choose>
|
|
16189
|
+
|
|
16190
|
+
<xsl:attribute name="space-before"><xsl:value-of select="$space_before"/></xsl:attribute>
|
|
16191
|
+
<xsl:if test="ancestor::mn:introduction"><xsl:attribute name="margin-top"><xsl:value-of select="$space_before"/></xsl:attribute></xsl:if>
|
|
16192
|
+
|
|
16193
|
+
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
16194
|
+
<xsl:copy-of select="@id"/>
|
|
16195
|
+
</xsl:if>
|
|
16196
|
+
<!-- $namespace = 'ieee' -->
|
|
16197
|
+
<xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
|
|
16198
|
+
</xsl:template> <!-- refine_title-style -->
|
|
16199
|
+
|
|
16168
16200
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
16169
16201
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
16170
16202
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
@@ -16503,6 +16535,12 @@
|
|
|
16503
16535
|
</xsl:choose>
|
|
16504
16536
|
</xsl:template>
|
|
16505
16537
|
|
|
16538
|
+
<xsl:attribute-set name="reset-margins-style">
|
|
16539
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
16540
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
16541
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
16542
|
+
</xsl:attribute-set>
|
|
16543
|
+
|
|
16506
16544
|
<xsl:attribute-set name="clause-style">
|
|
16507
16545
|
|
|
16508
16546
|
</xsl:attribute-set>
|
|
@@ -17522,8 +17560,9 @@
|
|
|
17522
17560
|
|
|
17523
17561
|
<xsl:template name="setTextAlignment">
|
|
17524
17562
|
<xsl:param name="default">left</xsl:param>
|
|
17563
|
+
<xsl:param name="skip_default">false</xsl:param>
|
|
17525
17564
|
<xsl:variable name="align" select="normalize-space(@align)"/>
|
|
17526
|
-
<xsl:
|
|
17565
|
+
<xsl:variable name="text_align">
|
|
17527
17566
|
<xsl:choose>
|
|
17528
17567
|
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
|
|
17529
17568
|
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
|
|
@@ -17531,9 +17570,13 @@
|
|
|
17531
17570
|
<xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
|
|
17532
17571
|
<xsl:when test="ancestor::mn:td/@align"><xsl:value-of select="ancestor::mn:td/@align"/></xsl:when>
|
|
17533
17572
|
<xsl:when test="ancestor::mn:th/@align"><xsl:value-of select="ancestor::mn:th/@align"/></xsl:when>
|
|
17573
|
+
<xsl:when test="$skip_default = 'true'"/>
|
|
17534
17574
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
|
17535
17575
|
</xsl:choose>
|
|
17536
|
-
</xsl:
|
|
17576
|
+
</xsl:variable>
|
|
17577
|
+
<xsl:if test="normalize-space($text_align) != ''">
|
|
17578
|
+
<xsl:attribute name="text-align"><xsl:value-of select="$text_align"/></xsl:attribute>
|
|
17579
|
+
</xsl:if>
|
|
17537
17580
|
<xsl:if test="$align = 'indent'">
|
|
17538
17581
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
|
17539
17582
|
</xsl:if>
|
|
@@ -17541,8 +17584,10 @@
|
|
|
17541
17584
|
|
|
17542
17585
|
<xsl:template name="setBlockAttributes">
|
|
17543
17586
|
<xsl:param name="text_align_default">left</xsl:param>
|
|
17587
|
+
<xsl:param name="skip_text_align_default">false</xsl:param>
|
|
17544
17588
|
<xsl:call-template name="setTextAlignment">
|
|
17545
17589
|
<xsl:with-param name="default" select="$text_align_default"/>
|
|
17590
|
+
<xsl:with-param name="skip_default" select="$skip_text_align_default"/>
|
|
17546
17591
|
</xsl:call-template>
|
|
17547
17592
|
<xsl:call-template name="setKeepAttributes"/>
|
|
17548
17593
|
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|
|
@@ -17585,6 +17630,20 @@
|
|
|
17585
17630
|
</fo:block-container>
|
|
17586
17631
|
</xsl:template>
|
|
17587
17632
|
|
|
17633
|
+
<!-- for https://github.com/metanorma/mn-native-pdf/issues/845 -->
|
|
17634
|
+
<xsl:template name="insertCoverPageFullImage">
|
|
17635
|
+
<xsl:param name="name">coverpage-image</xsl:param>
|
|
17636
|
+
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image">
|
|
17637
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
|
17638
|
+
<fo:flow flow-name="xsl-region-body">
|
|
17639
|
+
<xsl:call-template name="insertBackgroundPageImage">
|
|
17640
|
+
<xsl:with-param name="number" select="position()"/>
|
|
17641
|
+
</xsl:call-template>
|
|
17642
|
+
</fo:flow>
|
|
17643
|
+
</fo:page-sequence>
|
|
17644
|
+
</xsl:for-each>
|
|
17645
|
+
</xsl:template>
|
|
17646
|
+
|
|
17588
17647
|
<xsl:template name="insertPageImage">
|
|
17589
17648
|
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
|
17590
17649
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|