metanorma-ieee 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ieee/html/htmlstyle.css +7 -6
- data/lib/isodoc/ieee/html/htmlstyle.scss +3 -6
- data/lib/isodoc/ieee/ieee.amendment.xsl +42 -16
- data/lib/isodoc/ieee/ieee.standard.xsl +42 -16
- data/lib/isodoc/ieee/presentation_concepts.rb +4 -4
- data/lib/metanorma/ieee/biblio.rng +4 -4
- data/lib/metanorma/ieee/isodoc.rng +77 -28
- data/lib/metanorma/ieee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a117b31e48253553a2fbbce5cb2ab6f5e166174942081fbba58980cdfc66f148
|
|
4
|
+
data.tar.gz: 7613e9dbdb444981cf6913ef953782393a03f6a02942a324c1dfd7b85f6e23bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57109cb2c025e0aa75ea7fbaf3c2afa6c1720e4e68f5f16250ffedd9b4661e5066c04a3c4c7d1f92b76d6728f3e8ef8c01cfeda5769b35559451a86179fcf44e
|
|
7
|
+
data.tar.gz: c6c1860fc24914300523889cae42c25823742adec3c402709e7bf89de45caa275b885ca5053f9d9897b233affd0f0140078104e48dadf40994b967afaf9883b3
|
|
@@ -319,6 +319,11 @@ svg {
|
|
|
319
319
|
display: block; /* ← removes unwanted inline spacing */
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
/* style dfn by override in flavor */
|
|
323
|
+
dfn {
|
|
324
|
+
font-style: inherit;
|
|
325
|
+
}
|
|
326
|
+
|
|
322
327
|
#standard-band {
|
|
323
328
|
background-color: #0AC442;
|
|
324
329
|
}
|
|
@@ -1519,16 +1524,12 @@ span.keyword {
|
|
|
1519
1524
|
}
|
|
1520
1525
|
|
|
1521
1526
|
.Admonition p,
|
|
1522
|
-
.admonition p
|
|
1523
|
-
.zzHelp p {
|
|
1527
|
+
.admonition p {
|
|
1524
1528
|
margin: 0;
|
|
1525
1529
|
}
|
|
1526
1530
|
|
|
1527
|
-
div.
|
|
1531
|
+
div.Admonition.AdmonitionEditorial {
|
|
1528
1532
|
color: green;
|
|
1529
|
-
padding: 0.5em;
|
|
1530
|
-
margin: 1.5em 0 1.5em 0;
|
|
1531
|
-
text-align: left;
|
|
1532
1533
|
}
|
|
1533
1534
|
|
|
1534
1535
|
/* Boilerplate */
|
|
@@ -804,16 +804,13 @@ span.keyword {
|
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
.Admonition p,
|
|
807
|
-
.admonition p
|
|
808
|
-
|
|
807
|
+
.admonition p
|
|
808
|
+
{
|
|
809
809
|
margin: 0;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
div.
|
|
812
|
+
div.Admonition.AdmonitionEditorial {
|
|
813
813
|
color: green;
|
|
814
|
-
padding: 0.5em;
|
|
815
|
-
margin: 1.5em 0 1.5em 0;
|
|
816
|
-
text-align: left;
|
|
817
814
|
}
|
|
818
815
|
|
|
819
816
|
/* Boilerplate */
|
|
@@ -558,7 +558,8 @@
|
|
|
558
558
|
<!-- <xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]"> -->
|
|
559
559
|
<xsl:for-each select=".//mn:page_sequence[mn:introduction or mn:acknowledgements]">
|
|
560
560
|
|
|
561
|
-
<fo:page-sequence master-reference="document-draft"> <!-- format="i" initial-page-number="1" -->
|
|
561
|
+
<fo:page-sequence master-reference="document-draft" xsl:use-attribute-sets="page-sequence-preface"> <!-- format="i" initial-page-number="1" -->
|
|
562
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
562
563
|
|
|
563
564
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
|
564
565
|
|
|
@@ -581,7 +582,9 @@
|
|
|
581
582
|
</xsl:for-each>
|
|
582
583
|
|
|
583
584
|
<xsl:for-each select="/*/mn:preface/mn:clause[@type = 'toc']">
|
|
584
|
-
<fo:page-sequence master-reference="document-draft">
|
|
585
|
+
<fo:page-sequence master-reference="document-draft" xsl:use-attribute-sets="page-sequence-preface">
|
|
586
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
587
|
+
|
|
585
588
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
|
586
589
|
|
|
587
590
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -607,7 +610,8 @@
|
|
|
607
610
|
<!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA INDUSTRY CONNECTIONS DOCUMENTS -->
|
|
608
611
|
|
|
609
612
|
<!-- ToC -->
|
|
610
|
-
<fo:page-sequence master-reference="page-toc" force-page-count="no-force">
|
|
613
|
+
<fo:page-sequence master-reference="page-toc" force-page-count="no-force" xsl:use-attribute-sets="page-sequence-preface">
|
|
614
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
611
615
|
|
|
612
616
|
<xsl:call-template name="insertHeaderFooter">
|
|
613
617
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
|
@@ -818,7 +822,8 @@
|
|
|
818
822
|
<xsl:param name="copyright_holder"/>
|
|
819
823
|
<xsl:param name="is_first_sequence"/>
|
|
820
824
|
|
|
821
|
-
<fo:page-sequence master-reference="document-draft" force-page-count="no-force">
|
|
825
|
+
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" xsl:use-attribute-sets="page-sequence-main">
|
|
826
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
822
827
|
|
|
823
828
|
<xsl:if test="@orientation = 'landscape'">
|
|
824
829
|
<xsl:attribute name="master-reference">document-draft-<xsl:value-of select="@orientation"/></xsl:attribute>
|
|
@@ -1376,7 +1381,7 @@
|
|
|
1376
1381
|
<xsl:apply-templates select="mnx:title"/>
|
|
1377
1382
|
|
|
1378
1383
|
<fo:inline keep-together.within-line="always">
|
|
1379
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
1384
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
1380
1385
|
<fo:inline>
|
|
1381
1386
|
<fo:page-number-citation ref-id="{@id}"/>
|
|
1382
1387
|
</fo:inline>
|
|
@@ -1424,7 +1429,7 @@
|
|
|
1424
1429
|
<xsl:apply-templates select="mnx:title"/>
|
|
1425
1430
|
|
|
1426
1431
|
<fo:inline keep-together.within-line="always">
|
|
1427
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
1432
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
1428
1433
|
<fo:inline>
|
|
1429
1434
|
<fo:page-number-citation ref-id="{@id}"/>
|
|
1430
1435
|
</fo:inline>
|
|
@@ -3986,20 +3991,22 @@
|
|
|
3986
3991
|
</xsl:variable>
|
|
3987
3992
|
|
|
3988
3993
|
<xsl:attribute-set name="page-sequence-preface">
|
|
3989
|
-
|
|
3990
|
-
</xsl:attribute-set>
|
|
3994
|
+
</xsl:attribute-set> <!-- page-sequence-preface -->
|
|
3991
3995
|
|
|
3992
3996
|
<xsl:template name="refine_page-sequence-preface">
|
|
3993
3997
|
<xsl:param name="layoutVersion"/>
|
|
3994
|
-
|
|
3998
|
+
<xsl:param name="doctype"/>
|
|
3999
|
+
<xsl:param name="num"/>
|
|
4000
|
+
<xsl:param name="skip_force_page_count">false</xsl:param>
|
|
4001
|
+
</xsl:template> <!-- refine_page-sequence-preface -->
|
|
3995
4002
|
|
|
3996
4003
|
<xsl:attribute-set name="page-sequence-main">
|
|
3997
|
-
|
|
3998
|
-
</xsl:attribute-set>
|
|
4004
|
+
</xsl:attribute-set> <!-- page-sequence-main -->
|
|
3999
4005
|
|
|
4000
4006
|
<xsl:template name="refine_page-sequence-main">
|
|
4001
4007
|
<xsl:param name="layoutVersion"/>
|
|
4002
|
-
|
|
4008
|
+
<xsl:param name="doctype"/>
|
|
4009
|
+
</xsl:template> <!-- refine_page-sequence-main -->
|
|
4003
4010
|
|
|
4004
4011
|
<xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
|
|
4005
4012
|
<xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
|
|
@@ -15063,6 +15070,7 @@
|
|
|
15063
15070
|
</xsl:attribute-set>
|
|
15064
15071
|
|
|
15065
15072
|
<xsl:template name="refine_toc-style">
|
|
15073
|
+
<xsl:copy-of select="@id"/>
|
|
15066
15074
|
</xsl:template>
|
|
15067
15075
|
|
|
15068
15076
|
<xsl:attribute-set name="toc-title-style">
|
|
@@ -15147,13 +15155,13 @@
|
|
|
15147
15155
|
|
|
15148
15156
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
15149
15157
|
<xsl:variable name="nodes_preface_">
|
|
15150
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
15158
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
15151
15159
|
<node id="{@id}"/>
|
|
15152
15160
|
</xsl:for-each>
|
|
15153
15161
|
</xsl:variable>
|
|
15154
15162
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
15155
15163
|
|
|
15156
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
15164
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
15157
15165
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
15158
15166
|
|
|
15159
15167
|
<!-- process Section's title -->
|
|
@@ -15166,6 +15174,23 @@
|
|
|
15166
15174
|
</xsl:for-each>
|
|
15167
15175
|
</xsl:template>
|
|
15168
15176
|
|
|
15177
|
+
<xsl:template match="*[@type = 'toc'][mn:title or mn:fmt-title]" mode="contents" priority="2">
|
|
15178
|
+
<xsl:variable name="title">
|
|
15179
|
+
<xsl:call-template name="getName"/>
|
|
15180
|
+
</xsl:variable>
|
|
15181
|
+
<xsl:variable name="root">
|
|
15182
|
+
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
15183
|
+
<xsl:if test="ancestor-or-self::mn:annex">annex</xsl:if>
|
|
15184
|
+
</xsl:variable>
|
|
15185
|
+
<mnx:item id="{@id}" level="1" section="" type="toc" root="{$root}" display="false">
|
|
15186
|
+
<mnx:title>
|
|
15187
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
15188
|
+
<xsl:with-param name="element" select="$root"/>
|
|
15189
|
+
</xsl:apply-templates>
|
|
15190
|
+
</mnx:title>
|
|
15191
|
+
</mnx:item>
|
|
15192
|
+
</xsl:template>
|
|
15193
|
+
|
|
15169
15194
|
<xsl:template name="processMainSectionsDefault_Contents">
|
|
15170
15195
|
|
|
15171
15196
|
<xsl:variable name="nodes_sections_">
|
|
@@ -17058,16 +17083,17 @@
|
|
|
17058
17083
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
17059
17084
|
<xsl:template name="insert_basic_link">
|
|
17060
17085
|
<xsl:param name="element"/>
|
|
17086
|
+
<xsl:param name="wrapper">true</xsl:param>
|
|
17061
17087
|
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
|
|
17062
17088
|
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
|
|
17063
17089
|
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
|
|
17064
17090
|
<xsl:choose>
|
|
17065
|
-
<xsl:when test="$internal-destination = 'true'">
|
|
17091
|
+
<xsl:when test="$internal-destination = 'true' and $wrapper = 'true'">
|
|
17066
17092
|
<fo:wrapper role="Reference">
|
|
17067
17093
|
<xsl:copy-of select="$element_node"/>
|
|
17068
17094
|
</fo:wrapper>
|
|
17069
17095
|
</xsl:when>
|
|
17070
|
-
<xsl:when test="$external-destination = 'true'">
|
|
17096
|
+
<xsl:when test="$internal-destination = 'true' or $external-destination = 'true'">
|
|
17071
17097
|
<xsl:copy-of select="$element_node"/>
|
|
17072
17098
|
</xsl:when>
|
|
17073
17099
|
<xsl:otherwise>
|
|
@@ -558,7 +558,8 @@
|
|
|
558
558
|
<!-- <xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]"> -->
|
|
559
559
|
<xsl:for-each select=".//mn:page_sequence[mn:introduction or mn:acknowledgements]">
|
|
560
560
|
|
|
561
|
-
<fo:page-sequence master-reference="document-draft"> <!-- format="i" initial-page-number="1" -->
|
|
561
|
+
<fo:page-sequence master-reference="document-draft" xsl:use-attribute-sets="page-sequence-preface"> <!-- format="i" initial-page-number="1" -->
|
|
562
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
562
563
|
|
|
563
564
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
|
564
565
|
|
|
@@ -581,7 +582,9 @@
|
|
|
581
582
|
</xsl:for-each>
|
|
582
583
|
|
|
583
584
|
<xsl:for-each select="/*/mn:preface/mn:clause[@type = 'toc']">
|
|
584
|
-
<fo:page-sequence master-reference="document-draft">
|
|
585
|
+
<fo:page-sequence master-reference="document-draft" xsl:use-attribute-sets="page-sequence-preface">
|
|
586
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
587
|
+
|
|
585
588
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
|
586
589
|
|
|
587
590
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -607,7 +610,8 @@
|
|
|
607
610
|
<!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA INDUSTRY CONNECTIONS DOCUMENTS -->
|
|
608
611
|
|
|
609
612
|
<!-- ToC -->
|
|
610
|
-
<fo:page-sequence master-reference="page-toc" force-page-count="no-force">
|
|
613
|
+
<fo:page-sequence master-reference="page-toc" force-page-count="no-force" xsl:use-attribute-sets="page-sequence-preface">
|
|
614
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
611
615
|
|
|
612
616
|
<xsl:call-template name="insertHeaderFooter">
|
|
613
617
|
<xsl:with-param name="copyright_year" select="$copyright_year"/>
|
|
@@ -818,7 +822,8 @@
|
|
|
818
822
|
<xsl:param name="copyright_holder"/>
|
|
819
823
|
<xsl:param name="is_first_sequence"/>
|
|
820
824
|
|
|
821
|
-
<fo:page-sequence master-reference="document-draft" force-page-count="no-force">
|
|
825
|
+
<fo:page-sequence master-reference="document-draft" force-page-count="no-force" xsl:use-attribute-sets="page-sequence-main">
|
|
826
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
822
827
|
|
|
823
828
|
<xsl:if test="@orientation = 'landscape'">
|
|
824
829
|
<xsl:attribute name="master-reference">document-draft-<xsl:value-of select="@orientation"/></xsl:attribute>
|
|
@@ -1376,7 +1381,7 @@
|
|
|
1376
1381
|
<xsl:apply-templates select="mnx:title"/>
|
|
1377
1382
|
|
|
1378
1383
|
<fo:inline keep-together.within-line="always">
|
|
1379
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
1384
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
1380
1385
|
<fo:inline>
|
|
1381
1386
|
<fo:page-number-citation ref-id="{@id}"/>
|
|
1382
1387
|
</fo:inline>
|
|
@@ -1424,7 +1429,7 @@
|
|
|
1424
1429
|
<xsl:apply-templates select="mnx:title"/>
|
|
1425
1430
|
|
|
1426
1431
|
<fo:inline keep-together.within-line="always">
|
|
1427
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
1432
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
1428
1433
|
<fo:inline>
|
|
1429
1434
|
<fo:page-number-citation ref-id="{@id}"/>
|
|
1430
1435
|
</fo:inline>
|
|
@@ -3986,20 +3991,22 @@
|
|
|
3986
3991
|
</xsl:variable>
|
|
3987
3992
|
|
|
3988
3993
|
<xsl:attribute-set name="page-sequence-preface">
|
|
3989
|
-
|
|
3990
|
-
</xsl:attribute-set>
|
|
3994
|
+
</xsl:attribute-set> <!-- page-sequence-preface -->
|
|
3991
3995
|
|
|
3992
3996
|
<xsl:template name="refine_page-sequence-preface">
|
|
3993
3997
|
<xsl:param name="layoutVersion"/>
|
|
3994
|
-
|
|
3998
|
+
<xsl:param name="doctype"/>
|
|
3999
|
+
<xsl:param name="num"/>
|
|
4000
|
+
<xsl:param name="skip_force_page_count">false</xsl:param>
|
|
4001
|
+
</xsl:template> <!-- refine_page-sequence-preface -->
|
|
3995
4002
|
|
|
3996
4003
|
<xsl:attribute-set name="page-sequence-main">
|
|
3997
|
-
|
|
3998
|
-
</xsl:attribute-set>
|
|
4004
|
+
</xsl:attribute-set> <!-- page-sequence-main -->
|
|
3999
4005
|
|
|
4000
4006
|
<xsl:template name="refine_page-sequence-main">
|
|
4001
4007
|
<xsl:param name="layoutVersion"/>
|
|
4002
|
-
|
|
4008
|
+
<xsl:param name="doctype"/>
|
|
4009
|
+
</xsl:template> <!-- refine_page-sequence-main -->
|
|
4003
4010
|
|
|
4004
4011
|
<xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
|
|
4005
4012
|
<xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
|
|
@@ -15063,6 +15070,7 @@
|
|
|
15063
15070
|
</xsl:attribute-set>
|
|
15064
15071
|
|
|
15065
15072
|
<xsl:template name="refine_toc-style">
|
|
15073
|
+
<xsl:copy-of select="@id"/>
|
|
15066
15074
|
</xsl:template>
|
|
15067
15075
|
|
|
15068
15076
|
<xsl:attribute-set name="toc-title-style">
|
|
@@ -15147,13 +15155,13 @@
|
|
|
15147
15155
|
|
|
15148
15156
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
15149
15157
|
<xsl:variable name="nodes_preface_">
|
|
15150
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
15158
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
15151
15159
|
<node id="{@id}"/>
|
|
15152
15160
|
</xsl:for-each>
|
|
15153
15161
|
</xsl:variable>
|
|
15154
15162
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
15155
15163
|
|
|
15156
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
15164
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
15157
15165
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
15158
15166
|
|
|
15159
15167
|
<!-- process Section's title -->
|
|
@@ -15166,6 +15174,23 @@
|
|
|
15166
15174
|
</xsl:for-each>
|
|
15167
15175
|
</xsl:template>
|
|
15168
15176
|
|
|
15177
|
+
<xsl:template match="*[@type = 'toc'][mn:title or mn:fmt-title]" mode="contents" priority="2">
|
|
15178
|
+
<xsl:variable name="title">
|
|
15179
|
+
<xsl:call-template name="getName"/>
|
|
15180
|
+
</xsl:variable>
|
|
15181
|
+
<xsl:variable name="root">
|
|
15182
|
+
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
15183
|
+
<xsl:if test="ancestor-or-self::mn:annex">annex</xsl:if>
|
|
15184
|
+
</xsl:variable>
|
|
15185
|
+
<mnx:item id="{@id}" level="1" section="" type="toc" root="{$root}" display="false">
|
|
15186
|
+
<mnx:title>
|
|
15187
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
15188
|
+
<xsl:with-param name="element" select="$root"/>
|
|
15189
|
+
</xsl:apply-templates>
|
|
15190
|
+
</mnx:title>
|
|
15191
|
+
</mnx:item>
|
|
15192
|
+
</xsl:template>
|
|
15193
|
+
|
|
15169
15194
|
<xsl:template name="processMainSectionsDefault_Contents">
|
|
15170
15195
|
|
|
15171
15196
|
<xsl:variable name="nodes_sections_">
|
|
@@ -17058,16 +17083,17 @@
|
|
|
17058
17083
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
17059
17084
|
<xsl:template name="insert_basic_link">
|
|
17060
17085
|
<xsl:param name="element"/>
|
|
17086
|
+
<xsl:param name="wrapper">true</xsl:param>
|
|
17061
17087
|
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
|
|
17062
17088
|
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
|
|
17063
17089
|
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
|
|
17064
17090
|
<xsl:choose>
|
|
17065
|
-
<xsl:when test="$internal-destination = 'true'">
|
|
17091
|
+
<xsl:when test="$internal-destination = 'true' and $wrapper = 'true'">
|
|
17066
17092
|
<fo:wrapper role="Reference">
|
|
17067
17093
|
<xsl:copy-of select="$element_node"/>
|
|
17068
17094
|
</fo:wrapper>
|
|
17069
17095
|
</xsl:when>
|
|
17070
|
-
<xsl:when test="$external-destination = 'true'">
|
|
17096
|
+
<xsl:when test="$internal-destination = 'true' or $external-destination = 'true'">
|
|
17071
17097
|
<xsl:copy-of select="$element_node"/>
|
|
17072
17098
|
</xsl:when>
|
|
17073
17099
|
<xsl:otherwise>
|
|
@@ -5,9 +5,9 @@ module IsoDoc
|
|
|
5
5
|
desgn.remove
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
def
|
|
9
|
-
name
|
|
10
|
-
|
|
8
|
+
def designation_expression_boldface(_desgn, name)
|
|
9
|
+
name.name == "name" and
|
|
10
|
+
name.children = "<strong>#{name.children}</strong>"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def related(docxml)
|
|
@@ -144,7 +144,7 @@ module IsoDoc
|
|
|
144
144
|
pref =
|
|
145
145
|
term.parent.at(ns("./preferred[not(abbreviation-type)][expression/name]"))
|
|
146
146
|
x = term.parent.xpath(ns("./preferred[expression/name][abbreviation-type] | " \
|
|
147
|
-
|
|
147
|
+
"./admitted[expression/name][abbreviation-type]"))
|
|
148
148
|
(pref && !x.empty?) or return
|
|
149
149
|
fmt_pref = term.parent.at(ns(".//semx[@source = '#{pref['id']}']"))
|
|
150
150
|
fdf = fmt_pref.at(ns(".//span[@class = 'fmt-designation-field']"))&.text
|
|
@@ -1939,10 +1939,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
|
|
|
1939
1939
|
<value>hasAnnotation</value>
|
|
1940
1940
|
<value>draftOf</value>
|
|
1941
1941
|
<value>hasDraft</value>
|
|
1942
|
-
<value>
|
|
1943
|
-
<value>
|
|
1944
|
-
<value>
|
|
1945
|
-
<value>
|
|
1942
|
+
<value>predecessorDraftOf</value>
|
|
1943
|
+
<value>hasPredecessorDraft</value>
|
|
1944
|
+
<value>successorDraftOf</value>
|
|
1945
|
+
<value>hasSuccessorDraft</value>
|
|
1946
1946
|
<value>editionOf</value>
|
|
1947
1947
|
<value>hasEdition</value>
|
|
1948
1948
|
<value>updates</value>
|
|
@@ -641,8 +641,85 @@ This is done if the footnote reference is already presented in some other form,
|
|
|
641
641
|
</ref>
|
|
642
642
|
</zeroOrMore>
|
|
643
643
|
</define>
|
|
644
|
+
<define name="altsource">
|
|
645
|
+
<a:documentation>Alternative file to use as media</a:documentation>
|
|
646
|
+
<element name="altsource">
|
|
647
|
+
<ref name="MediaAttributes"/>
|
|
648
|
+
<optional>
|
|
649
|
+
<attribute name="tag">
|
|
650
|
+
<a:documentation>Comma-delimited tag to indicate when the alternate file is to be used,
|
|
651
|
+
at minimum allows contain `html`, `doc`, `pdf` as the main target formats of Metanorma,
|
|
652
|
+
and `default` for the fallback. The presence of an altsource tagged `default` is required</a:documentation>
|
|
653
|
+
</attribute>
|
|
654
|
+
</optional>
|
|
655
|
+
<optional>
|
|
656
|
+
<attribute name="media">
|
|
657
|
+
<a:documentation>CSS media query to indicate when the alternate file is to be used</a:documentation>
|
|
658
|
+
</attribute>
|
|
659
|
+
</optional>
|
|
660
|
+
</element>
|
|
661
|
+
</define>
|
|
662
|
+
<define name="image">
|
|
663
|
+
<a:documentation>Container for image content</a:documentation>
|
|
664
|
+
<choice>
|
|
665
|
+
<element name="image">
|
|
666
|
+
<ref name="RequiredId"/>
|
|
667
|
+
<ref name="ImageAttributes">
|
|
668
|
+
<a:documentation>When specified along with altsource, ImageAttributes give the default image to be rendered</a:documentation>
|
|
669
|
+
</ref>
|
|
670
|
+
<ref name="ImageBody"/>
|
|
671
|
+
</element>
|
|
672
|
+
<element name="svg">
|
|
673
|
+
<a:documentation>Add svg mark up to image</a:documentation>
|
|
674
|
+
<oneOrMore>
|
|
675
|
+
<choice>
|
|
676
|
+
<text/>
|
|
677
|
+
<ref name="AnyElement"/>
|
|
678
|
+
</choice>
|
|
679
|
+
</oneOrMore>
|
|
680
|
+
</element>
|
|
681
|
+
</choice>
|
|
682
|
+
</define>
|
|
683
|
+
<define name="ImageAttributes">
|
|
684
|
+
<optional>
|
|
685
|
+
<ref name="MediaAttributes">
|
|
686
|
+
<a:documentation>If the image contains altsource, the media attributes are given on each of the altsource elements instead of the root node</a:documentation>
|
|
687
|
+
</ref>
|
|
688
|
+
</optional>
|
|
689
|
+
<ref name="MediaAccessibilityAttributes"/>
|
|
690
|
+
<optional>
|
|
691
|
+
<attribute name="width">
|
|
692
|
+
<a:documentation>Height of image</a:documentation>
|
|
693
|
+
<ref name="ImageSize"/>
|
|
694
|
+
</attribute>
|
|
695
|
+
</optional>
|
|
696
|
+
<optional>
|
|
697
|
+
<attribute name="height">
|
|
698
|
+
<a:documentation>Width of image</a:documentation>
|
|
699
|
+
<ref name="ImageSize"/>
|
|
700
|
+
</attribute>
|
|
701
|
+
</optional>
|
|
702
|
+
</define>
|
|
644
703
|
</include>
|
|
645
704
|
<!-- end overrides -->
|
|
705
|
+
<define name="ImageBody">
|
|
706
|
+
<optional>
|
|
707
|
+
<element name="svg">
|
|
708
|
+
<a:documentation>image can contain SVG XML, which is used to access its identifiers within the Metanorma XML</a:documentation>
|
|
709
|
+
<oneOrMore>
|
|
710
|
+
<choice>
|
|
711
|
+
<text/>
|
|
712
|
+
<ref name="AnyElement"/>
|
|
713
|
+
</choice>
|
|
714
|
+
</oneOrMore>
|
|
715
|
+
</element>
|
|
716
|
+
</optional>
|
|
717
|
+
<zeroOrMore>
|
|
718
|
+
<ref name="altsource">
|
|
719
|
+
<a:documentation>Alternative files to use as media</a:documentation>
|
|
720
|
+
</ref>
|
|
721
|
+
</zeroOrMore>
|
|
722
|
+
</define>
|
|
646
723
|
<define name="key">
|
|
647
724
|
<a:documentation>Key to a table, figure, or formula</a:documentation>
|
|
648
725
|
<element name="key">
|
|
@@ -930,34 +1007,6 @@ titlecase, or lowercase</a:documentation>
|
|
|
930
1007
|
<ref name="ReducedBibliographicItem"/>
|
|
931
1008
|
</element>
|
|
932
1009
|
</define>
|
|
933
|
-
<define name="image" combine="choice">
|
|
934
|
-
<choice>
|
|
935
|
-
<element name="image">
|
|
936
|
-
<ref name="RequiredId"/>
|
|
937
|
-
<ref name="ImageAttributes"/>
|
|
938
|
-
<optional>
|
|
939
|
-
<element name="svg">
|
|
940
|
-
<a:documentation>Allow svg in image/svg, for consistency</a:documentation>
|
|
941
|
-
<oneOrMore>
|
|
942
|
-
<choice>
|
|
943
|
-
<text/>
|
|
944
|
-
<ref name="AnyElement"/>
|
|
945
|
-
</choice>
|
|
946
|
-
</oneOrMore>
|
|
947
|
-
</element>
|
|
948
|
-
</optional>
|
|
949
|
-
</element>
|
|
950
|
-
<element name="svg">
|
|
951
|
-
<a:documentation>Add svg mark up to image</a:documentation>
|
|
952
|
-
<oneOrMore>
|
|
953
|
-
<choice>
|
|
954
|
-
<text/>
|
|
955
|
-
<ref name="AnyElement"/>
|
|
956
|
-
</choice>
|
|
957
|
-
</oneOrMore>
|
|
958
|
-
</element>
|
|
959
|
-
</choice>
|
|
960
|
-
</define>
|
|
961
1010
|
<define name="ParagraphFnBody" combine="interleave">
|
|
962
1011
|
<ref name="BlockSource">
|
|
963
1012
|
<a:documentation>Bibliographic source for the information in the paragraph
|
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.
|
|
4
|
+
version: 1.6.5
|
|
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-
|
|
11
|
+
date: 2026-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-standoc
|