metanorma-iho 1.3.1 → 1.3.2
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/iho/html/htmlstyle.css +5 -0
- data/lib/isodoc/iho/iho.specification.xsl +58 -32
- data/lib/isodoc/iho/iho.standard.xsl +58 -32
- data/lib/metanorma/iho/biblio.rng +4 -4
- data/lib/metanorma/iho/isodoc.rng +77 -28
- data/lib/metanorma/iho/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: 89f4d78fff78d82fbb04bdc8f23c5cfa59ba4a55b13981bd38345e8a4b20be5c
|
|
4
|
+
data.tar.gz: c1ef6f2e6316b4aa97b080d4c5c0fb4d28f2c5b5539b329b732fcd74dcb5363f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d3a8f209c5355bcb090c191cd3028f32de38992fbe6c84e925cb1060595d674b757fe010c94ca49f8478ebfc444ae3a222619430b553aaeb2ad09bbcee04327
|
|
7
|
+
data.tar.gz: 1ff636f8767fc2ce1b8fa9fad81566fe971f03d29b41dbf67193ae905baa1373981af7f67b4f31182255d043f14822d19b935bd64489fa0755ecdd32452d4209
|
|
@@ -249,7 +249,8 @@
|
|
|
249
249
|
<xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
250
250
|
|
|
251
251
|
<!-- Preface Pages -->
|
|
252
|
-
<fo:page-sequence
|
|
252
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
253
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
253
254
|
|
|
254
255
|
<xsl:attribute name="master-reference">
|
|
255
256
|
<xsl:text>preface</xsl:text>
|
|
@@ -298,12 +299,8 @@
|
|
|
298
299
|
<xsl:for-each select=".//mn:page_sequence[mn:foreword or mn:introduction][parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
299
300
|
|
|
300
301
|
<!-- Preface Pages -->
|
|
301
|
-
<fo:page-sequence
|
|
302
|
-
|
|
303
|
-
<xsl:attribute name="master-reference">
|
|
304
|
-
<xsl:text>preface</xsl:text>
|
|
305
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
306
|
-
</xsl:attribute>
|
|
302
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
303
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
307
304
|
|
|
308
305
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
309
306
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -334,20 +331,8 @@
|
|
|
334
331
|
|
|
335
332
|
<xsl:if test="xalan:nodeset($page_sequence_content)/node()">
|
|
336
333
|
|
|
337
|
-
<fo:page-sequence
|
|
338
|
-
|
|
339
|
-
<xsl:attribute name="master-reference">
|
|
340
|
-
<xsl:text>document</xsl:text>
|
|
341
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
342
|
-
</xsl:attribute>
|
|
343
|
-
|
|
344
|
-
<xsl:if test="mn:indexsect">
|
|
345
|
-
<xsl:attribute name="master-reference">index</xsl:attribute>
|
|
346
|
-
</xsl:if>
|
|
347
|
-
|
|
348
|
-
<xsl:if test="position() = 1">
|
|
349
|
-
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
350
|
-
</xsl:if>
|
|
334
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-main">
|
|
335
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
351
336
|
|
|
352
337
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
353
338
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -681,7 +666,7 @@
|
|
|
681
666
|
</xsl:call-template>
|
|
682
667
|
<xsl:apply-templates select="." mode="contents"/>
|
|
683
668
|
<fo:inline keep-together.within-line="always">
|
|
684
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
669
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
685
670
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
|
686
671
|
</fo:inline>
|
|
687
672
|
</fo:basic-link>
|
|
@@ -760,7 +745,7 @@
|
|
|
760
745
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mnx:title}">
|
|
761
746
|
<xsl:apply-templates select="mnx:title"/>
|
|
762
747
|
<fo:inline keep-together.within-line="always">
|
|
763
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
748
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
764
749
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
|
765
750
|
</fo:inline>
|
|
766
751
|
</fo:basic-link>
|
|
@@ -1489,20 +1474,42 @@
|
|
|
1489
1474
|
</xsl:variable>
|
|
1490
1475
|
|
|
1491
1476
|
<xsl:attribute-set name="page-sequence-preface">
|
|
1477
|
+
<xsl:attribute name="master-reference">preface</xsl:attribute>
|
|
1492
1478
|
<xsl:attribute name="format">i</xsl:attribute>
|
|
1493
|
-
|
|
1479
|
+
<xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
|
|
1480
|
+
</xsl:attribute-set> <!-- page-sequence-preface -->
|
|
1494
1481
|
|
|
1495
1482
|
<xsl:template name="refine_page-sequence-preface">
|
|
1496
1483
|
<xsl:param name="layoutVersion"/>
|
|
1497
|
-
|
|
1484
|
+
<xsl:param name="doctype"/>
|
|
1485
|
+
<xsl:param name="num"/>
|
|
1486
|
+
<xsl:param name="skip_force_page_count">false</xsl:param>
|
|
1487
|
+
<xsl:attribute name="master-reference">
|
|
1488
|
+
<xsl:text>preface</xsl:text>
|
|
1489
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
1490
|
+
</xsl:attribute>
|
|
1491
|
+
</xsl:template> <!-- refine_page-sequence-preface -->
|
|
1498
1492
|
|
|
1499
1493
|
<xsl:attribute-set name="page-sequence-main">
|
|
1500
|
-
|
|
1501
|
-
|
|
1494
|
+
<xsl:attribute name="master-reference">document</xsl:attribute>
|
|
1495
|
+
<xsl:attribute name="format">1</xsl:attribute>
|
|
1496
|
+
<xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
|
|
1497
|
+
</xsl:attribute-set> <!-- page-sequence-main -->
|
|
1502
1498
|
|
|
1503
1499
|
<xsl:template name="refine_page-sequence-main">
|
|
1504
1500
|
<xsl:param name="layoutVersion"/>
|
|
1505
|
-
|
|
1501
|
+
<xsl:param name="doctype"/>
|
|
1502
|
+
<xsl:attribute name="master-reference">
|
|
1503
|
+
<xsl:text>document</xsl:text>
|
|
1504
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
1505
|
+
</xsl:attribute>
|
|
1506
|
+
<xsl:if test="mn:indexsect">
|
|
1507
|
+
<xsl:attribute name="master-reference">index</xsl:attribute>
|
|
1508
|
+
</xsl:if>
|
|
1509
|
+
<xsl:if test="position() = 1">
|
|
1510
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
1511
|
+
</xsl:if>
|
|
1512
|
+
</xsl:template> <!-- refine_page-sequence-main -->
|
|
1506
1513
|
|
|
1507
1514
|
<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>
|
|
1508
1515
|
<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>
|
|
@@ -12311,6 +12318,7 @@
|
|
|
12311
12318
|
</xsl:attribute-set>
|
|
12312
12319
|
|
|
12313
12320
|
<xsl:template name="refine_toc-style">
|
|
12321
|
+
<xsl:copy-of select="@id"/>
|
|
12314
12322
|
</xsl:template>
|
|
12315
12323
|
|
|
12316
12324
|
<xsl:attribute-set name="toc-title-style">
|
|
@@ -12429,13 +12437,13 @@
|
|
|
12429
12437
|
|
|
12430
12438
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
12431
12439
|
<xsl:variable name="nodes_preface_">
|
|
12432
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
12440
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
12433
12441
|
<node id="{@id}"/>
|
|
12434
12442
|
</xsl:for-each>
|
|
12435
12443
|
</xsl:variable>
|
|
12436
12444
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
12437
12445
|
|
|
12438
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
12446
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
12439
12447
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
12440
12448
|
|
|
12441
12449
|
<!-- process Section's title -->
|
|
@@ -12448,6 +12456,23 @@
|
|
|
12448
12456
|
</xsl:for-each>
|
|
12449
12457
|
</xsl:template>
|
|
12450
12458
|
|
|
12459
|
+
<xsl:template match="*[@type = 'toc'][mn:title or mn:fmt-title]" mode="contents" priority="2">
|
|
12460
|
+
<xsl:variable name="title">
|
|
12461
|
+
<xsl:call-template name="getName"/>
|
|
12462
|
+
</xsl:variable>
|
|
12463
|
+
<xsl:variable name="root">
|
|
12464
|
+
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
12465
|
+
<xsl:if test="ancestor-or-self::mn:annex">annex</xsl:if>
|
|
12466
|
+
</xsl:variable>
|
|
12467
|
+
<mnx:item id="{@id}" level="1" section="" type="toc" root="{$root}" display="false">
|
|
12468
|
+
<mnx:title>
|
|
12469
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
12470
|
+
<xsl:with-param name="element" select="$root"/>
|
|
12471
|
+
</xsl:apply-templates>
|
|
12472
|
+
</mnx:title>
|
|
12473
|
+
</mnx:item>
|
|
12474
|
+
</xsl:template>
|
|
12475
|
+
|
|
12451
12476
|
<xsl:template name="processMainSectionsDefault_Contents">
|
|
12452
12477
|
|
|
12453
12478
|
<xsl:variable name="nodes_sections_">
|
|
@@ -14289,16 +14314,17 @@
|
|
|
14289
14314
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
14290
14315
|
<xsl:template name="insert_basic_link">
|
|
14291
14316
|
<xsl:param name="element"/>
|
|
14317
|
+
<xsl:param name="wrapper">true</xsl:param>
|
|
14292
14318
|
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
|
|
14293
14319
|
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
|
|
14294
14320
|
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
|
|
14295
14321
|
<xsl:choose>
|
|
14296
|
-
<xsl:when test="$internal-destination = 'true'">
|
|
14322
|
+
<xsl:when test="$internal-destination = 'true' and $wrapper = 'true'">
|
|
14297
14323
|
<fo:wrapper role="Reference">
|
|
14298
14324
|
<xsl:copy-of select="$element_node"/>
|
|
14299
14325
|
</fo:wrapper>
|
|
14300
14326
|
</xsl:when>
|
|
14301
|
-
<xsl:when test="$external-destination = 'true'">
|
|
14327
|
+
<xsl:when test="$internal-destination = 'true' or $external-destination = 'true'">
|
|
14302
14328
|
<xsl:copy-of select="$element_node"/>
|
|
14303
14329
|
</xsl:when>
|
|
14304
14330
|
<xsl:otherwise>
|
|
@@ -249,7 +249,8 @@
|
|
|
249
249
|
<xsl:for-each select=".//mn:page_sequence[parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
250
250
|
|
|
251
251
|
<!-- Preface Pages -->
|
|
252
|
-
<fo:page-sequence
|
|
252
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
253
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
253
254
|
|
|
254
255
|
<xsl:attribute name="master-reference">
|
|
255
256
|
<xsl:text>preface</xsl:text>
|
|
@@ -298,12 +299,8 @@
|
|
|
298
299
|
<xsl:for-each select=".//mn:page_sequence[mn:foreword or mn:introduction][parent::mn:preface][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
299
300
|
|
|
300
301
|
<!-- Preface Pages -->
|
|
301
|
-
<fo:page-sequence
|
|
302
|
-
|
|
303
|
-
<xsl:attribute name="master-reference">
|
|
304
|
-
<xsl:text>preface</xsl:text>
|
|
305
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
306
|
-
</xsl:attribute>
|
|
302
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
303
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
307
304
|
|
|
308
305
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
309
306
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -334,20 +331,8 @@
|
|
|
334
331
|
|
|
335
332
|
<xsl:if test="xalan:nodeset($page_sequence_content)/node()">
|
|
336
333
|
|
|
337
|
-
<fo:page-sequence
|
|
338
|
-
|
|
339
|
-
<xsl:attribute name="master-reference">
|
|
340
|
-
<xsl:text>document</xsl:text>
|
|
341
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
342
|
-
</xsl:attribute>
|
|
343
|
-
|
|
344
|
-
<xsl:if test="mn:indexsect">
|
|
345
|
-
<xsl:attribute name="master-reference">index</xsl:attribute>
|
|
346
|
-
</xsl:if>
|
|
347
|
-
|
|
348
|
-
<xsl:if test="position() = 1">
|
|
349
|
-
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
350
|
-
</xsl:if>
|
|
334
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-main">
|
|
335
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
351
336
|
|
|
352
337
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
353
338
|
<xsl:call-template name="insertHeaderFooter">
|
|
@@ -681,7 +666,7 @@
|
|
|
681
666
|
</xsl:call-template>
|
|
682
667
|
<xsl:apply-templates select="." mode="contents"/>
|
|
683
668
|
<fo:inline keep-together.within-line="always">
|
|
684
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
669
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
685
670
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
|
686
671
|
</fo:inline>
|
|
687
672
|
</fo:basic-link>
|
|
@@ -760,7 +745,7 @@
|
|
|
760
745
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mnx:title}">
|
|
761
746
|
<xsl:apply-templates select="mnx:title"/>
|
|
762
747
|
<fo:inline keep-together.within-line="always">
|
|
763
|
-
<fo:leader xsl:use-attribute-sets="toc-leader-style"
|
|
748
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"><xsl:call-template name="refine_toc-leader-style"/></fo:leader>
|
|
764
749
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
|
765
750
|
</fo:inline>
|
|
766
751
|
</fo:basic-link>
|
|
@@ -1489,20 +1474,42 @@
|
|
|
1489
1474
|
</xsl:variable>
|
|
1490
1475
|
|
|
1491
1476
|
<xsl:attribute-set name="page-sequence-preface">
|
|
1477
|
+
<xsl:attribute name="master-reference">preface</xsl:attribute>
|
|
1492
1478
|
<xsl:attribute name="format">i</xsl:attribute>
|
|
1493
|
-
|
|
1479
|
+
<xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
|
|
1480
|
+
</xsl:attribute-set> <!-- page-sequence-preface -->
|
|
1494
1481
|
|
|
1495
1482
|
<xsl:template name="refine_page-sequence-preface">
|
|
1496
1483
|
<xsl:param name="layoutVersion"/>
|
|
1497
|
-
|
|
1484
|
+
<xsl:param name="doctype"/>
|
|
1485
|
+
<xsl:param name="num"/>
|
|
1486
|
+
<xsl:param name="skip_force_page_count">false</xsl:param>
|
|
1487
|
+
<xsl:attribute name="master-reference">
|
|
1488
|
+
<xsl:text>preface</xsl:text>
|
|
1489
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
1490
|
+
</xsl:attribute>
|
|
1491
|
+
</xsl:template> <!-- refine_page-sequence-preface -->
|
|
1498
1492
|
|
|
1499
1493
|
<xsl:attribute-set name="page-sequence-main">
|
|
1500
|
-
|
|
1501
|
-
|
|
1494
|
+
<xsl:attribute name="master-reference">document</xsl:attribute>
|
|
1495
|
+
<xsl:attribute name="format">1</xsl:attribute>
|
|
1496
|
+
<xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
|
|
1497
|
+
</xsl:attribute-set> <!-- page-sequence-main -->
|
|
1502
1498
|
|
|
1503
1499
|
<xsl:template name="refine_page-sequence-main">
|
|
1504
1500
|
<xsl:param name="layoutVersion"/>
|
|
1505
|
-
|
|
1501
|
+
<xsl:param name="doctype"/>
|
|
1502
|
+
<xsl:attribute name="master-reference">
|
|
1503
|
+
<xsl:text>document</xsl:text>
|
|
1504
|
+
<xsl:call-template name="getPageSequenceOrientation"/>
|
|
1505
|
+
</xsl:attribute>
|
|
1506
|
+
<xsl:if test="mn:indexsect">
|
|
1507
|
+
<xsl:attribute name="master-reference">index</xsl:attribute>
|
|
1508
|
+
</xsl:if>
|
|
1509
|
+
<xsl:if test="position() = 1">
|
|
1510
|
+
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
|
1511
|
+
</xsl:if>
|
|
1512
|
+
</xsl:template> <!-- refine_page-sequence-main -->
|
|
1506
1513
|
|
|
1507
1514
|
<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>
|
|
1508
1515
|
<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>
|
|
@@ -12311,6 +12318,7 @@
|
|
|
12311
12318
|
</xsl:attribute-set>
|
|
12312
12319
|
|
|
12313
12320
|
<xsl:template name="refine_toc-style">
|
|
12321
|
+
<xsl:copy-of select="@id"/>
|
|
12314
12322
|
</xsl:template>
|
|
12315
12323
|
|
|
12316
12324
|
<xsl:attribute-set name="toc-title-style">
|
|
@@ -12429,13 +12437,13 @@
|
|
|
12429
12437
|
|
|
12430
12438
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
12431
12439
|
<xsl:variable name="nodes_preface_">
|
|
12432
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
12440
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
12433
12441
|
<node id="{@id}"/>
|
|
12434
12442
|
</xsl:for-each>
|
|
12435
12443
|
</xsl:variable>
|
|
12436
12444
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
12437
12445
|
|
|
12438
|
-
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc'
|
|
12446
|
+
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]"> <!-- or @type = 'toc' -->
|
|
12439
12447
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
12440
12448
|
|
|
12441
12449
|
<!-- process Section's title -->
|
|
@@ -12448,6 +12456,23 @@
|
|
|
12448
12456
|
</xsl:for-each>
|
|
12449
12457
|
</xsl:template>
|
|
12450
12458
|
|
|
12459
|
+
<xsl:template match="*[@type = 'toc'][mn:title or mn:fmt-title]" mode="contents" priority="2">
|
|
12460
|
+
<xsl:variable name="title">
|
|
12461
|
+
<xsl:call-template name="getName"/>
|
|
12462
|
+
</xsl:variable>
|
|
12463
|
+
<xsl:variable name="root">
|
|
12464
|
+
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
12465
|
+
<xsl:if test="ancestor-or-self::mn:annex">annex</xsl:if>
|
|
12466
|
+
</xsl:variable>
|
|
12467
|
+
<mnx:item id="{@id}" level="1" section="" type="toc" root="{$root}" display="false">
|
|
12468
|
+
<mnx:title>
|
|
12469
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
12470
|
+
<xsl:with-param name="element" select="$root"/>
|
|
12471
|
+
</xsl:apply-templates>
|
|
12472
|
+
</mnx:title>
|
|
12473
|
+
</mnx:item>
|
|
12474
|
+
</xsl:template>
|
|
12475
|
+
|
|
12451
12476
|
<xsl:template name="processMainSectionsDefault_Contents">
|
|
12452
12477
|
|
|
12453
12478
|
<xsl:variable name="nodes_sections_">
|
|
@@ -14289,16 +14314,17 @@
|
|
|
14289
14314
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
|
14290
14315
|
<xsl:template name="insert_basic_link">
|
|
14291
14316
|
<xsl:param name="element"/>
|
|
14317
|
+
<xsl:param name="wrapper">true</xsl:param>
|
|
14292
14318
|
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
|
|
14293
14319
|
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
|
|
14294
14320
|
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
|
|
14295
14321
|
<xsl:choose>
|
|
14296
|
-
<xsl:when test="$internal-destination = 'true'">
|
|
14322
|
+
<xsl:when test="$internal-destination = 'true' and $wrapper = 'true'">
|
|
14297
14323
|
<fo:wrapper role="Reference">
|
|
14298
14324
|
<xsl:copy-of select="$element_node"/>
|
|
14299
14325
|
</fo:wrapper>
|
|
14300
14326
|
</xsl:when>
|
|
14301
|
-
<xsl:when test="$external-destination = 'true'">
|
|
14327
|
+
<xsl:when test="$internal-destination = 'true' or $external-destination = 'true'">
|
|
14302
14328
|
<xsl:copy-of select="$element_node"/>
|
|
14303
14329
|
</xsl:when>
|
|
14304
14330
|
<xsl:otherwise>
|
|
@@ -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-iho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
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-generic
|