metanorma-ieee 1.6.5 → 1.6.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a117b31e48253553a2fbbce5cb2ab6f5e166174942081fbba58980cdfc66f148
4
- data.tar.gz: 7613e9dbdb444981cf6913ef953782393a03f6a02942a324c1dfd7b85f6e23bd
3
+ metadata.gz: 2dd71904ed39cf33217f1b53dbc5ed4bc10e54b282e4889f7db7200ce8c911b3
4
+ data.tar.gz: 7591b738d3cdac2bab2d77493e85e082403838a2d6b5c1a3a448dd09e38765f9
5
5
  SHA512:
6
- metadata.gz: 57109cb2c025e0aa75ea7fbaf3c2afa6c1720e4e68f5f16250ffedd9b4661e5066c04a3c4c7d1f92b76d6728f3e8ef8c01cfeda5769b35559451a86179fcf44e
7
- data.tar.gz: c6c1860fc24914300523889cae42c25823742adec3c402709e7bf89de45caa275b885ca5053f9d9897b233affd0f0140078104e48dadf40994b967afaf9883b3
6
+ metadata.gz: fd178cb19b16da4d7ab2f65c74eb8bdfb8934a89acfe91b53c052e67e0959ead14ae1667f776d0925e9138b919899db57e9a576fd5d745d2dc92bdc0451b308f
7
+ data.tar.gz: c34996899332716f34e1aba35e5d20e9789ed8c768393ab71120af634591590937b599a7a638cd8d6b4a82354d0f4faffacef8228cdebb4dbad29d57a38fa949
@@ -3381,7 +3381,7 @@ span.Char {
3381
3381
  mso-fareast-language: JA;
3382
3382
  }
3383
3383
 
3384
- span.2Char {
3384
+ span.\32 Char {
3385
3385
  mso-style-name: "Body Text 2 Char";
3386
3386
  mso-style-unhide: no;
3387
3387
  mso-style-locked: yes;
@@ -3391,7 +3391,7 @@ span.2Char {
3391
3391
  mso-fareast-language: JA;
3392
3392
  }
3393
3393
 
3394
- span.3Char {
3394
+ span.\33 Char {
3395
3395
  mso-style-name: "Body Text 3 Char";
3396
3396
  mso-style-unhide: no;
3397
3397
  mso-style-locked: yes;
@@ -3422,7 +3422,7 @@ span.Char1 {
3422
3422
  mso-fareast-language: JA;
3423
3423
  }
3424
3424
 
3425
- span.2Char0 {
3425
+ span.\32 Char0 {
3426
3426
  mso-style-name: "Body Text First Indent 2 Char";
3427
3427
  mso-style-unhide: no;
3428
3428
  mso-style-locked: yes;
@@ -3432,7 +3432,7 @@ span.2Char0 {
3432
3432
  mso-fareast-language: JA;
3433
3433
  }
3434
3434
 
3435
- span.2Char1 {
3435
+ span.\32 Char1 {
3436
3436
  mso-style-name: "Body Text Indent 2 Char";
3437
3437
  mso-style-unhide: no;
3438
3438
  mso-style-locked: yes;
@@ -3442,7 +3442,7 @@ span.2Char1 {
3442
3442
  mso-fareast-language: JA;
3443
3443
  }
3444
3444
 
3445
- span.3Char0 {
3445
+ span.\33 Char0 {
3446
3446
  mso-style-name: "Body TextIndent 3 Char";
3447
3447
  mso-style-unhide: no;
3448
3448
  mso-style-locked: yes;
@@ -3035,7 +3035,7 @@ span.Char
3035
3035
  mso-style-link:"Body Text";
3036
3036
  mso-ansi-font-size:12.0pt;
3037
3037
  mso-fareast-language:JA;}
3038
- span.2Char
3038
+ span.\32 Char
3039
3039
  {mso-style-name:"Body Text 2 Char";
3040
3040
  mso-style-unhide:no;
3041
3041
  mso-style-locked:yes;
@@ -3043,7 +3043,7 @@ span.2Char
3043
3043
  mso-style-link:"Body Text 2";
3044
3044
  mso-ansi-font-size:12.0pt;
3045
3045
  mso-fareast-language:JA;}
3046
- span.3Char
3046
+ span.\33 Char
3047
3047
  {mso-style-name:"Body Text 3 Char";
3048
3048
  mso-style-unhide:no;
3049
3049
  mso-style-locked:yes;
@@ -3068,7 +3068,7 @@ span.Char1
3068
3068
  mso-style-link:"Body Text Indent";
3069
3069
  mso-ansi-font-size:12.0pt;
3070
3070
  mso-fareast-language:JA;}
3071
- span.2Char0
3071
+ span.\32 Char0
3072
3072
  {mso-style-name:"Body Text First Indent 2 Char";
3073
3073
  mso-style-unhide:no;
3074
3074
  mso-style-locked:yes;
@@ -3076,7 +3076,7 @@ span.2Char0
3076
3076
  mso-style-link:"Body Text First Indent 2";
3077
3077
  mso-ansi-font-size:12.0pt;
3078
3078
  mso-fareast-language:JA;}
3079
- span.2Char1
3079
+ span.\32 Char1
3080
3080
  {mso-style-name:"Body Text Indent 2 Char";
3081
3081
  mso-style-unhide:no;
3082
3082
  mso-style-locked:yes;
@@ -3084,7 +3084,7 @@ span.2Char1
3084
3084
  mso-style-link:"Body Text Indent 2";
3085
3085
  mso-ansi-font-size:12.0pt;
3086
3086
  mso-fareast-language:JA;}
3087
- span.3Char0
3087
+ span.\33 Char0
3088
3088
  {mso-style-name:"Body TextIndent 3 Char";
3089
3089
  mso-style-unhide:no;
3090
3090
  mso-style-locked:yes;
@@ -3383,7 +3383,7 @@ span.Char {
3383
3383
  mso-fareast-language: JA;
3384
3384
  }
3385
3385
 
3386
- span.2Char {
3386
+ span.\32 Char {
3387
3387
  mso-style-name: "Body Text 2 Char";
3388
3388
  mso-style-unhide: no;
3389
3389
  mso-style-locked: yes;
@@ -3393,7 +3393,7 @@ span.2Char {
3393
3393
  mso-fareast-language: JA;
3394
3394
  }
3395
3395
 
3396
- span.3Char {
3396
+ span.\33 Char {
3397
3397
  mso-style-name: "Body Text 3 Char";
3398
3398
  mso-style-unhide: no;
3399
3399
  mso-style-locked: yes;
@@ -3424,7 +3424,7 @@ span.Char1 {
3424
3424
  mso-fareast-language: JA;
3425
3425
  }
3426
3426
 
3427
- span.2Char0 {
3427
+ span.\32 Char0 {
3428
3428
  mso-style-name: "Body Text First Indent 2 Char";
3429
3429
  mso-style-unhide: no;
3430
3430
  mso-style-locked: yes;
@@ -3434,7 +3434,7 @@ span.2Char0 {
3434
3434
  mso-fareast-language: JA;
3435
3435
  }
3436
3436
 
3437
- span.2Char1 {
3437
+ span.\32 Char1 {
3438
3438
  mso-style-name: "Body Text Indent 2 Char";
3439
3439
  mso-style-unhide: no;
3440
3440
  mso-style-locked: yes;
@@ -3444,7 +3444,7 @@ span.2Char1 {
3444
3444
  mso-fareast-language: JA;
3445
3445
  }
3446
3446
 
3447
- span.3Char0 {
3447
+ span.\33 Char0 {
3448
3448
  mso-style-name: "Body TextIndent 3 Char";
3449
3449
  mso-style-unhide: no;
3450
3450
  mso-style-locked: yes;
@@ -3010,7 +3010,7 @@ span.Char
3010
3010
  mso-style-link:"Body Text";
3011
3011
  mso-ansi-font-size:12.0pt;
3012
3012
  mso-fareast-language:JA;}
3013
- span.2Char
3013
+ span.\32 Char
3014
3014
  /**/{mso-style-name:"Body Text 2 Char";
3015
3015
  mso-style-unhide:no;
3016
3016
  mso-style-locked:yes;
@@ -3018,7 +3018,7 @@ span.2Char
3018
3018
  mso-style-link:"Body Text 2";
3019
3019
  mso-ansi-font-size:12.0pt;
3020
3020
  mso-fareast-language:JA;}
3021
- span.3Char
3021
+ span.\33 Char
3022
3022
  /**/{mso-style-name:"Body Text 3 Char";
3023
3023
  mso-style-unhide:no;
3024
3024
  mso-style-locked:yes;
@@ -3043,7 +3043,7 @@ span.Char1
3043
3043
  mso-style-link:"Body Text Indent";
3044
3044
  mso-ansi-font-size:12.0pt;
3045
3045
  mso-fareast-language:JA;}
3046
- span.2Char0
3046
+ span.\32 Char0
3047
3047
  /**/{mso-style-name:"Body Text First Indent 2 Char";
3048
3048
  mso-style-unhide:no;
3049
3049
  mso-style-locked:yes;
@@ -3051,7 +3051,7 @@ span.2Char0
3051
3051
  mso-style-link:"Body Text First Indent 2";
3052
3052
  mso-ansi-font-size:12.0pt;
3053
3053
  mso-fareast-language:JA;}
3054
- span.2Char1
3054
+ span.\32 Char1
3055
3055
  /**/{mso-style-name:"Body Text Indent 2 Char";
3056
3056
  mso-style-unhide:no;
3057
3057
  mso-style-locked:yes;
@@ -3059,7 +3059,7 @@ span.2Char1
3059
3059
  mso-style-link:"Body Text Indent 2";
3060
3060
  mso-ansi-font-size:12.0pt;
3061
3061
  mso-fareast-language:JA;}
3062
- span.3Char0
3062
+ span.\33 Char0
3063
3063
  /**/{mso-style-name:"Body TextIndent 3 Char";
3064
3064
  mso-style-unhide:no;
3065
3065
  mso-style-locked:yes;
@@ -2053,6 +2053,9 @@
2053
2053
  <xsl:variable name="title">
2054
2054
  <xsl:call-template name="getName"/>
2055
2055
  </xsl:variable>
2056
+ <xsl:variable name="variant_title">
2057
+ <xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
2058
+ </xsl:variable>
2056
2059
 
2057
2060
  <xsl:variable name="root">
2058
2061
  <xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
@@ -2064,9 +2067,18 @@
2064
2067
  <xsl:attribute name="level">1</xsl:attribute>
2065
2068
  </xsl:if>
2066
2069
  <mnx:title>
2067
- <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
2068
- <xsl:with-param name="mode">contents</xsl:with-param>
2069
- </xsl:apply-templates>
2070
+ <xsl:choose>
2071
+ <xsl:when test="normalize-space($variant_title) != ''">
2072
+ <xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item">
2073
+ <xsl:with-param name="mode">contents</xsl:with-param>
2074
+ </xsl:apply-templates>
2075
+ </xsl:when>
2076
+ <xsl:otherwise>
2077
+ <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
2078
+ <xsl:with-param name="mode">contents</xsl:with-param>
2079
+ </xsl:apply-templates>
2080
+ </xsl:otherwise>
2081
+ </xsl:choose>
2070
2082
  </mnx:title>
2071
2083
  <xsl:if test="$type != 'index'">
2072
2084
  <xsl:apply-templates mode="contents"/>
@@ -4311,7 +4323,24 @@
4311
4323
  <xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
4312
4324
 
4313
4325
  <!-- remove image/emf -->
4314
- <xsl:template match="mn:image/mn:emf" mode="update_xml_step1"/>
4326
+ <xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
4327
+
4328
+ <!-- https://github.com/metanorma/metanorma/issues/540 -->
4329
+ <xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
4330
+ <xsl:copy>
4331
+ <xsl:apply-templates select="@*" mode="update_xml_step1"/>
4332
+ <xsl:choose>
4333
+ <xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
4334
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
4335
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
4336
+ </xsl:when>
4337
+ <xsl:otherwise>
4338
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
4339
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
4340
+ </xsl:otherwise>
4341
+ </xsl:choose>
4342
+ </xsl:copy>
4343
+ </xsl:template>
4315
4344
 
4316
4345
  <!-- remove preprocess-xslt -->
4317
4346
  <xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
@@ -4539,6 +4568,15 @@
4539
4568
  </xsl:choose>
4540
4569
  </xsl:template>
4541
4570
 
4571
+ <!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
4572
+ <xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
4573
+ <xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
4574
+ </xsl:template>
4575
+
4576
+ <xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
4577
+ <xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
4578
+ </xsl:template>
4579
+
4542
4580
  <!-- li/fmt-name -->
4543
4581
  <xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
4544
4582
  <xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
@@ -7959,6 +7997,8 @@
7959
7997
  </xsl:if>
7960
7998
 
7961
7999
  <xsl:call-template name="setBordersTableArray"/>
8000
+
8001
+ <xsl:call-template name="setNoBordersForTableList"/>
7962
8002
  </xsl:template> <!-- refine_table-style -->
7963
8003
 
7964
8004
  <xsl:attribute-set name="table-number-style">
@@ -8000,12 +8040,16 @@
8000
8040
  <xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
8001
8041
  <xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
8002
8042
  </xsl:if>
8043
+
8044
+ <xsl:call-template name="setNoBordersForTableList"/>
8003
8045
  </xsl:template> <!-- refine_table-header-row-style -->
8004
8046
 
8005
8047
  <xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
8006
8048
  </xsl:attribute-set>
8007
8049
 
8008
8050
  <xsl:template name="refine_table-footer-row-style">
8051
+
8052
+ <xsl:call-template name="setNoBordersForTableList"/>
8009
8053
  </xsl:template> <!-- refine_table-footer-row-style -->
8010
8054
 
8011
8055
  <xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
@@ -8018,6 +8062,8 @@
8018
8062
  </xsl:if>
8019
8063
 
8020
8064
  <xsl:call-template name="setBordersTableArray"/>
8065
+
8066
+ <xsl:call-template name="setNoBordersForTableList"/>
8021
8067
  </xsl:template> <!-- refine_table-body-row-style -->
8022
8068
 
8023
8069
  <xsl:attribute-set name="table-header-cell-style">
@@ -8038,6 +8084,16 @@
8038
8084
  </xsl:if>
8039
8085
 
8040
8086
  <xsl:call-template name="setTableCellAttributes"/>
8087
+
8088
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8089
+ <xsl:attribute name="display-align">before</xsl:attribute>
8090
+ <xsl:attribute name="text-align">left</xsl:attribute>
8091
+ <xsl:if test="following-sibling::*">
8092
+ <xsl:attribute name="padding-right">4mm</xsl:attribute>
8093
+ </xsl:if>
8094
+ <xsl:call-template name="setNoBordersForTableList"/>
8095
+ </xsl:if>
8096
+
8041
8097
  </xsl:template> <!-- refine_table-header-cell-style -->
8042
8098
 
8043
8099
  <xsl:attribute-set name="table-cell-style">
@@ -8062,6 +8118,15 @@
8062
8118
 
8063
8119
  <xsl:call-template name="setBordersTableArray"/>
8064
8120
 
8121
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8122
+ <xsl:attribute name="display-align">before</xsl:attribute>
8123
+ <xsl:attribute name="text-align">left</xsl:attribute>
8124
+ <xsl:if test="following-sibling::*">
8125
+ <xsl:attribute name="padding-right">4mm</xsl:attribute>
8126
+ </xsl:if>
8127
+ <xsl:call-template name="setNoBordersForTableList"/>
8128
+ </xsl:if>
8129
+
8065
8130
  </xsl:template> <!-- refine_table-cell-style -->
8066
8131
 
8067
8132
  <xsl:attribute-set name="table-footer-cell-style">
@@ -8073,6 +8138,8 @@
8073
8138
  </xsl:attribute-set> <!-- table-footer-cell-style -->
8074
8139
 
8075
8140
  <xsl:template name="refine_table-footer-cell-style">
8141
+
8142
+ <xsl:call-template name="setNoBordersForTableList"/>
8076
8143
  </xsl:template> <!-- refine_table-footer-cell-style -->
8077
8144
 
8078
8145
  <xsl:attribute-set name="table-note-style">
@@ -8120,6 +8187,16 @@
8120
8187
  <xsl:template name="refine_table-fn-body-style">
8121
8188
  </xsl:template>
8122
8189
 
8190
+ <xsl:template name="setNoBordersForTableList">
8191
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8192
+ <xsl:attribute name="border">none</xsl:attribute>
8193
+ <xsl:attribute name="border-top">none</xsl:attribute>
8194
+ <xsl:attribute name="border-bottom">none</xsl:attribute>
8195
+ <xsl:attribute name="border-left">none</xsl:attribute>
8196
+ <xsl:attribute name="border-right">none</xsl:attribute>
8197
+ </xsl:if>
8198
+ </xsl:template>
8199
+
8123
8200
  <!-- ========================== -->
8124
8201
  <!-- END Table styles -->
8125
8202
  <!-- ========================== -->
@@ -13722,6 +13799,10 @@
13722
13799
  </fo:list-item>
13723
13800
  </xsl:template>
13724
13801
 
13802
+ <xsl:template match="mn:fmt-ol | mn:fmt-ul">
13803
+ <xsl:apply-templates/>
13804
+ </xsl:template>
13805
+
13725
13806
  <!-- ===================================== -->
13726
13807
  <!-- END Lists processing -->
13727
13808
  <!-- ===================================== -->
@@ -2053,6 +2053,9 @@
2053
2053
  <xsl:variable name="title">
2054
2054
  <xsl:call-template name="getName"/>
2055
2055
  </xsl:variable>
2056
+ <xsl:variable name="variant_title">
2057
+ <xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
2058
+ </xsl:variable>
2056
2059
 
2057
2060
  <xsl:variable name="root">
2058
2061
  <xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
@@ -2064,9 +2067,18 @@
2064
2067
  <xsl:attribute name="level">1</xsl:attribute>
2065
2068
  </xsl:if>
2066
2069
  <mnx:title>
2067
- <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
2068
- <xsl:with-param name="mode">contents</xsl:with-param>
2069
- </xsl:apply-templates>
2070
+ <xsl:choose>
2071
+ <xsl:when test="normalize-space($variant_title) != ''">
2072
+ <xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item">
2073
+ <xsl:with-param name="mode">contents</xsl:with-param>
2074
+ </xsl:apply-templates>
2075
+ </xsl:when>
2076
+ <xsl:otherwise>
2077
+ <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
2078
+ <xsl:with-param name="mode">contents</xsl:with-param>
2079
+ </xsl:apply-templates>
2080
+ </xsl:otherwise>
2081
+ </xsl:choose>
2070
2082
  </mnx:title>
2071
2083
  <xsl:if test="$type != 'index'">
2072
2084
  <xsl:apply-templates mode="contents"/>
@@ -4311,7 +4323,24 @@
4311
4323
  <xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
4312
4324
 
4313
4325
  <!-- remove image/emf -->
4314
- <xsl:template match="mn:image/mn:emf" mode="update_xml_step1"/>
4326
+ <xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
4327
+
4328
+ <!-- https://github.com/metanorma/metanorma/issues/540 -->
4329
+ <xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
4330
+ <xsl:copy>
4331
+ <xsl:apply-templates select="@*" mode="update_xml_step1"/>
4332
+ <xsl:choose>
4333
+ <xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
4334
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
4335
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
4336
+ </xsl:when>
4337
+ <xsl:otherwise>
4338
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
4339
+ <xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
4340
+ </xsl:otherwise>
4341
+ </xsl:choose>
4342
+ </xsl:copy>
4343
+ </xsl:template>
4315
4344
 
4316
4345
  <!-- remove preprocess-xslt -->
4317
4346
  <xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
@@ -4539,6 +4568,15 @@
4539
4568
  </xsl:choose>
4540
4569
  </xsl:template>
4541
4570
 
4571
+ <!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
4572
+ <xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
4573
+ <xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
4574
+ </xsl:template>
4575
+
4576
+ <xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
4577
+ <xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
4578
+ </xsl:template>
4579
+
4542
4580
  <!-- li/fmt-name -->
4543
4581
  <xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
4544
4582
  <xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
@@ -7959,6 +7997,8 @@
7959
7997
  </xsl:if>
7960
7998
 
7961
7999
  <xsl:call-template name="setBordersTableArray"/>
8000
+
8001
+ <xsl:call-template name="setNoBordersForTableList"/>
7962
8002
  </xsl:template> <!-- refine_table-style -->
7963
8003
 
7964
8004
  <xsl:attribute-set name="table-number-style">
@@ -8000,12 +8040,16 @@
8000
8040
  <xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
8001
8041
  <xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
8002
8042
  </xsl:if>
8043
+
8044
+ <xsl:call-template name="setNoBordersForTableList"/>
8003
8045
  </xsl:template> <!-- refine_table-header-row-style -->
8004
8046
 
8005
8047
  <xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
8006
8048
  </xsl:attribute-set>
8007
8049
 
8008
8050
  <xsl:template name="refine_table-footer-row-style">
8051
+
8052
+ <xsl:call-template name="setNoBordersForTableList"/>
8009
8053
  </xsl:template> <!-- refine_table-footer-row-style -->
8010
8054
 
8011
8055
  <xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
@@ -8018,6 +8062,8 @@
8018
8062
  </xsl:if>
8019
8063
 
8020
8064
  <xsl:call-template name="setBordersTableArray"/>
8065
+
8066
+ <xsl:call-template name="setNoBordersForTableList"/>
8021
8067
  </xsl:template> <!-- refine_table-body-row-style -->
8022
8068
 
8023
8069
  <xsl:attribute-set name="table-header-cell-style">
@@ -8038,6 +8084,16 @@
8038
8084
  </xsl:if>
8039
8085
 
8040
8086
  <xsl:call-template name="setTableCellAttributes"/>
8087
+
8088
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8089
+ <xsl:attribute name="display-align">before</xsl:attribute>
8090
+ <xsl:attribute name="text-align">left</xsl:attribute>
8091
+ <xsl:if test="following-sibling::*">
8092
+ <xsl:attribute name="padding-right">4mm</xsl:attribute>
8093
+ </xsl:if>
8094
+ <xsl:call-template name="setNoBordersForTableList"/>
8095
+ </xsl:if>
8096
+
8041
8097
  </xsl:template> <!-- refine_table-header-cell-style -->
8042
8098
 
8043
8099
  <xsl:attribute-set name="table-cell-style">
@@ -8062,6 +8118,15 @@
8062
8118
 
8063
8119
  <xsl:call-template name="setBordersTableArray"/>
8064
8120
 
8121
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8122
+ <xsl:attribute name="display-align">before</xsl:attribute>
8123
+ <xsl:attribute name="text-align">left</xsl:attribute>
8124
+ <xsl:if test="following-sibling::*">
8125
+ <xsl:attribute name="padding-right">4mm</xsl:attribute>
8126
+ </xsl:if>
8127
+ <xsl:call-template name="setNoBordersForTableList"/>
8128
+ </xsl:if>
8129
+
8065
8130
  </xsl:template> <!-- refine_table-cell-style -->
8066
8131
 
8067
8132
  <xsl:attribute-set name="table-footer-cell-style">
@@ -8073,6 +8138,8 @@
8073
8138
  </xsl:attribute-set> <!-- table-footer-cell-style -->
8074
8139
 
8075
8140
  <xsl:template name="refine_table-footer-cell-style">
8141
+
8142
+ <xsl:call-template name="setNoBordersForTableList"/>
8076
8143
  </xsl:template> <!-- refine_table-footer-cell-style -->
8077
8144
 
8078
8145
  <xsl:attribute-set name="table-note-style">
@@ -8120,6 +8187,16 @@
8120
8187
  <xsl:template name="refine_table-fn-body-style">
8121
8188
  </xsl:template>
8122
8189
 
8190
+ <xsl:template name="setNoBordersForTableList">
8191
+ <xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
8192
+ <xsl:attribute name="border">none</xsl:attribute>
8193
+ <xsl:attribute name="border-top">none</xsl:attribute>
8194
+ <xsl:attribute name="border-bottom">none</xsl:attribute>
8195
+ <xsl:attribute name="border-left">none</xsl:attribute>
8196
+ <xsl:attribute name="border-right">none</xsl:attribute>
8197
+ </xsl:if>
8198
+ </xsl:template>
8199
+
8123
8200
  <!-- ========================== -->
8124
8201
  <!-- END Table styles -->
8125
8202
  <!-- ========================== -->
@@ -13722,6 +13799,10 @@
13722
13799
  </fo:list-item>
13723
13800
  </xsl:template>
13724
13801
 
13802
+ <xsl:template match="mn:fmt-ol | mn:fmt-ul">
13803
+ <xsl:apply-templates/>
13804
+ </xsl:template>
13805
+
13725
13806
  <!-- ===================================== -->
13726
13807
  <!-- END Lists processing -->
13727
13808
  <!-- ===================================== -->
@@ -22,24 +22,21 @@ module IsoDoc
22
22
  "&#x2014;"
23
23
  end
24
24
 
25
- def annex1(elem)
26
- if @doctype == "whitepaper"
27
- annex1_whitepaper(elem)
28
- else
29
- super
25
+ def annex1_title_fmt(elem)
26
+ if (@doctype == "whitepaper") && (t = elem.at(ns("./title")))
27
+ t.next = to_xml(t)
28
+ v = t.next
29
+ v.name = "variant-title"
30
+ v["type"] = "sub"
30
31
  end
32
+ super
31
33
  end
32
34
 
33
- def annex1_whitepaper(elem)
34
- lbl = @xrefs.anchor(elem["id"], :label)
35
- if t = elem.at(ns("./title"))
36
- d = t.dup
37
- # TODO fmt-variant-title
38
- d.name = "variant-title"
39
- d["type"] = "sub"
40
- t.next = d
35
+ def annex1_title_fmt_inline(title)
36
+ if @doctype == "whitepaper"
37
+ to_xml(title.children)
38
+ else super
41
39
  end
42
- elem.add_first_child "<fmt-title>#{lbl}</fmt-title>"
43
40
  end
44
41
 
45
42
  def annex_delim(_elem)
@@ -81,15 +78,10 @@ module IsoDoc
81
78
  warn "Failure to convert MathML to LaTeX\n#{node.parent.to_xml}\n#{e}"
82
79
  end
83
80
 
84
- #def ol(docxml)
85
- #ol_prep(docxml)
86
- # docxml.xpath(ns("//ol/li")).each { |f| ol_label(f) }
87
- #end
88
-
89
81
  def ol_numbering_containers
90
82
  "//clause | //annex | //foreword | //acknowledgements | " \
91
- "//introduction | //preface/abstract | //appendix | //terms | " \
92
- "//term | //definitions | //references | //colophon"
83
+ "//introduction | //preface/abstract | //appendix | //terms | " \
84
+ "//term | //definitions | //references | //colophon"
93
85
  end
94
86
 
95
87
  def ol_numbering(docxml)
@@ -157,7 +157,8 @@ module IsoDoc
157
157
 
158
158
  def annex_name(_annex, name, div)
159
159
  name.nil? and return
160
- name&.at(ns(".//strong"))&.remove # supplied by CSS list numbering
160
+ @doctype != "whitepaper" and # there is a prefix
161
+ name&.at(ns(".//strong"))&.remove # supplied by CSS list numbering
161
162
  div.h1 class: "Annex" do |t|
162
163
  # annex_name1(name, t)
163
164
  children_parse(name, t)
@@ -207,12 +208,12 @@ module IsoDoc
207
208
  # are provided by Word styles instead.
208
209
  # Retain the em-dash delimiting caption
209
210
  def strip_caption_semx(name)
210
- name.xpath(".//xmlns:semx[@element = 'autonum']/"\
211
+ name.xpath(".//xmlns:semx[@element = 'autonum']/" \
211
212
  "preceding-sibling::text()[normalize-space() = '']")
212
213
  .each do |s|
213
- s.ancestors("fn").empty? and s.remove
214
+ s.ancestors("fn").empty? and s.remove
214
215
  end
215
- name.xpath(ns(".//span[@class = 'fmt-element-name'] | "\
216
+ name.xpath(ns(".//span[@class = 'fmt-element-name'] | " \
216
217
  ".//semx[@element = 'autonum']")).each do |s|
217
218
  s.ancestors("fn").empty? and s.remove
218
219
  end
@@ -111,6 +111,7 @@ module IsoDoc
111
111
 
112
112
  def variant_title(node, out)
113
113
  node.parent.name == "annex" or return super
114
+ node["type"] == "sub" or return super
114
115
  out.p { |e| e << "&#xa0;" }
115
116
  out.p **attr_code(class: "Unnumberedheading") do |p|
116
117
  node.children.each { |c| parse(c, p) }
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ieee
3
- VERSION = "1.6.5".freeze
3
+ VERSION = "1.6.7".freeze
4
4
  end
5
5
  end
@@ -17,16 +17,16 @@ extenttemplate:
17
17
  template:
18
18
  # skip authoritative_identifier, it is inserted in front of formattedref within metanorma
19
19
  standard: "{{ title }}{% if home_standard %}{%else%}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %}{% endif %}$$$"
20
- article: "{{creatornames}}$$$ “{{title}}$$$|” <em>{{ series }}</em>$$$ {{ extent }}$$$ {{ date }}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
21
- book: "{{creatornames}}$$$ <em>{{title}}</em>$$$ {{ edition }}$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
20
+ article: "{{creatornames}}$$$ “{{title}}$$$|” <em>{{ series }}</em>$$$ {{ extent }}$$$ {{ disambiguated_date }}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
21
+ book: "{{creatornames}}$$$ <em>{{title}}</em>$$$ {{ edition }}$$$ {{place}}: {{publisher}}$$$ {{disambiguated_date}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
22
22
  techreport: book
23
23
  booklet: book
24
24
  manual: book
25
25
  proceedings: book
26
- inproceedings: "{{ creatornames }}$$$ “{{ title }}$$$|” <em>{{host_title}}</em>$$$ {{place}}$$$ {{extent}}$$$ {{date}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
27
- inbook: "{{ creatornames }}$$$ “{{ title }}$$$|” {{ labels['in'] }} {{ host_creatornames}} ({{ host_role}}) : <em>{{host_title}}</em>$$$ {{place}}: {{publisher}}$$$ {{date}}$$$ {{extent}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
26
+ inproceedings: "{{ creatornames }}$$$ “{{ title }}$$$|” <em>{{host_title}}</em>$$$ {{place}}$$$ {{extent}}$$$ {{disambiguated_date}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
27
+ inbook: "{{ creatornames }}$$$ “{{ title }}$$$|” {{ labels['in'] }} {{ host_creatornames}} ({{ host_role}}) : <em>{{host_title}}</em>$$$ {{place}}: {{publisher}}$$$ {{disambiguated_date}}$$$ {{extent}}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
28
28
  incollection: inbook
29
- thesis: "{{ creatornames }} $$$ “{{ title }}$$$|” {{ medium | capitalize }}$$$ {{ publisher }}$$$ {{ date }}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
29
+ thesis: "{{ creatornames }} $$$ “{{ title }}$$$|” {{ medium | capitalize }}$$$ {{ publisher }}$$$ {{ disambiguated_date }}$$$ {{ labels['viewed'] }}_{{date_accessed}}$$$ {% if uri %}{{ uri }}{% else %}{% if doi %}DOI: {{ doi | join: '$$$ ' }}{% endif %}{% endif %} $$$"
30
30
  unpublished: thesis
31
31
  misc: thesis
32
32
  website: thesis
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-16 00:00:00.000000000 Z
11
+ date: 2026-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc