metanorma-iec 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/html/htmlstyle.css +7 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +144 -34
- data/lib/isodoc/iec/word_convert.rb +2 -3
- data/lib/metanorma/iec/basicdoc.rng +34 -27
- data/lib/metanorma/iec/isodoc.rng +28 -1
- data/lib/metanorma/iec/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: 7ccd01c3f1f56470992e66fd61dd23ea52f134df9b7f0368f5373b99e3a40cf9
|
4
|
+
data.tar.gz: 493a899b9534db1c2282dfd12045e0feb581f7954e1bf0c5ed0caf4f18f3328c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b0d7a25d2c843087d1ccc701d3f48d7706563cc691851394866305d9ee3887bdc25577b9300c1cfb94c861d5bdcde300fe969758a04a5ceaeca3087bda0f65
|
7
|
+
data.tar.gz: c3bb3faec8bafd2ba6fc47e88bdb6584696b0ea158fdcb8e49bcf9fdf953e2fb8f8a0f9194144f2dc531583b43c246e7d681ddf54824695e852f407a7d13cd1b
|
@@ -5559,6 +5559,8 @@
|
|
5559
5559
|
|
5560
5560
|
<xsl:template name="setTableRowAttributes">
|
5561
5561
|
|
5562
|
+
<xsl:call-template name="setColors"/>
|
5563
|
+
|
5562
5564
|
</xsl:template> <!-- setTableRowAttributes -->
|
5563
5565
|
<!-- ===================== -->
|
5564
5566
|
<!-- END Table's row processing -->
|
@@ -5610,6 +5612,7 @@
|
|
5610
5612
|
</xsl:attribute>
|
5611
5613
|
</xsl:if>
|
5612
5614
|
<xsl:call-template name="display-align"/>
|
5615
|
+
<xsl:call-template name="setColors"/>
|
5613
5616
|
</xsl:template>
|
5614
5617
|
|
5615
5618
|
<xsl:template name="display-align">
|
@@ -5625,6 +5628,29 @@
|
|
5625
5628
|
</xsl:if>
|
5626
5629
|
</xsl:template>
|
5627
5630
|
|
5631
|
+
<xsl:template name="setColors">
|
5632
|
+
<xsl:variable name="styles__">
|
5633
|
+
<xsl:call-template name="split">
|
5634
|
+
<xsl:with-param name="pText" select="concat(@style,';')"/>
|
5635
|
+
<xsl:with-param name="sep" select="';'"/>
|
5636
|
+
</xsl:call-template>
|
5637
|
+
</xsl:variable>
|
5638
|
+
<xsl:variable name="quot">"</xsl:variable>
|
5639
|
+
<xsl:variable name="styles_">
|
5640
|
+
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
5641
|
+
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
5642
|
+
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
5643
|
+
<xsl:if test="$key = 'color' or $key = 'background-color'">
|
5644
|
+
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
5645
|
+
</xsl:if>
|
5646
|
+
</xsl:for-each>
|
5647
|
+
</xsl:variable>
|
5648
|
+
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
5649
|
+
<xsl:for-each select="$styles/style">
|
5650
|
+
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
5651
|
+
</xsl:for-each>
|
5652
|
+
</xsl:template>
|
5653
|
+
|
5628
5654
|
<!-- cell in table body, footer -->
|
5629
5655
|
<xsl:template match="*[local-name()='td']" name="td">
|
5630
5656
|
<fo:table-cell xsl:use-attribute-sets="table-cell-style"> <!-- text-align="{@align}" -->
|
@@ -5636,12 +5662,12 @@
|
|
5636
5662
|
|
5637
5663
|
<xsl:call-template name="refine_table-cell-style"/>
|
5638
5664
|
|
5665
|
+
<xsl:call-template name="setTableCellAttributes"/>
|
5666
|
+
|
5639
5667
|
<xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
|
5640
5668
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5641
5669
|
</xsl:if>
|
5642
5670
|
|
5643
|
-
<xsl:call-template name="setTableCellAttributes"/>
|
5644
|
-
|
5645
5671
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
5646
5672
|
<xsl:attribute name="border">1pt solid black</xsl:attribute> <!-- border is mandatory, to determine page width -->
|
5647
5673
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -7510,7 +7536,7 @@
|
|
7510
7536
|
<xsl:choose>
|
7511
7537
|
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:apply-templates/></xsl:when>
|
7512
7538
|
<xsl:when test="following-sibling::*[2][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']">
|
7513
|
-
<fo:inline keep-with-next.within-line="always"><xsl:apply-templates/></fo:inline>
|
7539
|
+
<fo:inline keep-with-next.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
7514
7540
|
</xsl:when>
|
7515
7541
|
<xsl:otherwise>
|
7516
7542
|
<xsl:apply-templates/>
|
@@ -7518,7 +7544,7 @@
|
|
7518
7544
|
</xsl:choose>
|
7519
7545
|
</xsl:template>
|
7520
7546
|
<xsl:template match="text()[not(ancestor::*[local-name() = 'table']) and preceding-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear'] and following-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']]" priority="2">
|
7521
|
-
<fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
|
7547
|
+
<fo:inline keep-with-next.within-line="always" role="SKIP"><xsl:value-of select="."/></fo:inline>
|
7522
7548
|
</xsl:template>
|
7523
7549
|
|
7524
7550
|
<xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
|
@@ -8558,24 +8584,26 @@
|
|
8558
8584
|
<xsl:apply-templates select="." mode="mathml"/>
|
8559
8585
|
</xsl:variable>
|
8560
8586
|
|
8561
|
-
<fo:instream-foreign-object fox:alt-text="Math">
|
8587
|
+
<fo:instream-foreign-object fox:alt-text="Math" fox:actual-text="Math">
|
8562
8588
|
|
8563
8589
|
<xsl:call-template name="refine_mathml_insteam_object_style"/>
|
8564
8590
|
|
8565
|
-
|
8566
|
-
|
8567
|
-
|
8568
|
-
<xsl:
|
8569
|
-
|
8570
|
-
|
8571
|
-
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
8572
|
-
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
8573
|
-
<!-- put Mathin Alternate Text -->
|
8574
|
-
<xsl:attribute name="fox:alt-text">
|
8575
|
-
<xsl:value-of select="$asciimath_text_"/>
|
8591
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
8592
|
+
<!-- put MathML in Actual Text -->
|
8593
|
+
<!-- DEBUG: mathml_content=<xsl:value-of select="$mathml_content"/> -->
|
8594
|
+
<xsl:attribute name="fox:actual-text">
|
8595
|
+
<xsl:value-of select="$mathml_content"/>
|
8576
8596
|
</xsl:attribute>
|
8597
|
+
|
8598
|
+
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
8599
|
+
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
8600
|
+
<!-- put Mathin Alternate Text -->
|
8601
|
+
<xsl:attribute name="fox:alt-text">
|
8602
|
+
<xsl:value-of select="$asciimath_text_"/>
|
8603
|
+
</xsl:attribute>
|
8604
|
+
</xsl:if>
|
8605
|
+
<!-- </xsl:if> -->
|
8577
8606
|
</xsl:if>
|
8578
|
-
<!-- </xsl:if> -->
|
8579
8607
|
|
8580
8608
|
<xsl:copy-of select="xalan:nodeset($mathml)"/>
|
8581
8609
|
|
@@ -10333,6 +10361,8 @@
|
|
10333
10361
|
<xsl:template match="*[local-name() = 'origin']" mode="contents"/>
|
10334
10362
|
<xsl:template match="*[local-name() = 'erefstack ']" mode="contents"/>
|
10335
10363
|
|
10364
|
+
<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="contents" priority="3"/>
|
10365
|
+
|
10336
10366
|
<xsl:template match="*[local-name() = 'stem']" mode="bookmarks"/>
|
10337
10367
|
<xsl:template match="*[local-name() = 'fmt-stem']" mode="bookmarks">
|
10338
10368
|
<xsl:apply-templates mode="bookmarks"/>
|
@@ -10354,6 +10384,8 @@
|
|
10354
10384
|
<xsl:template match="*[local-name() = 'origin']" mode="bookmarks"/>
|
10355
10385
|
<xsl:template match="*[local-name() = 'erefstack ']" mode="bookmarks"/>
|
10356
10386
|
|
10387
|
+
<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="bookmarks" priority="3"/>
|
10388
|
+
|
10357
10389
|
<!-- Bookmarks -->
|
10358
10390
|
<xsl:template name="addBookmarks">
|
10359
10391
|
<xsl:param name="contents"/>
|
@@ -12252,21 +12284,32 @@
|
|
12252
12284
|
<!-- ========== -->
|
12253
12285
|
|
12254
12286
|
<xsl:variable name="reviews_">
|
12255
|
-
<xsl:for-each select="//*[local-name() = 'review'][@from]">
|
12287
|
+
<xsl:for-each select="//*[local-name() = 'review'][not(parent::*[local-name() = 'review-container'])][@from]">
|
12256
12288
|
<xsl:copy>
|
12257
12289
|
<xsl:copy-of select="@from"/>
|
12258
12290
|
<xsl:copy-of select="@id"/>
|
12259
12291
|
</xsl:copy>
|
12260
12292
|
</xsl:for-each>
|
12293
|
+
<xsl:for-each select="//*[local-name() = 'fmt-review-start'][@source]">
|
12294
|
+
<xsl:copy>
|
12295
|
+
<xsl:copy-of select="@source"/>
|
12296
|
+
<xsl:copy-of select="@id"/>
|
12297
|
+
</xsl:copy>
|
12298
|
+
</xsl:for-each>
|
12261
12299
|
</xsl:variable>
|
12262
12300
|
<xsl:variable name="reviews" select="xalan:nodeset($reviews_)"/>
|
12263
12301
|
|
12264
12302
|
<xsl:template name="addReviewHelper">
|
12265
|
-
|
12266
|
-
|
12267
|
-
|
12268
|
-
|
12269
|
-
<
|
12303
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
12304
|
+
<!-- if there is review with from="...", then add small helper block for Annot tag adding, see 'review' template -->
|
12305
|
+
<xsl:variable name="curr_id" select="@id"/>
|
12306
|
+
<!-- <xsl:variable name="review_id" select="normalize-space(/@id)"/> -->
|
12307
|
+
<xsl:for-each select="$reviews//*[local-name() = 'review'][@from = $curr_id]"> <!-- $reviews//*[local-name() = 'fmt-review-start'][@source = $curr_id] -->
|
12308
|
+
<xsl:variable name="review_id" select="normalize-space(@id)"/>
|
12309
|
+
<xsl:if test="$review_id != ''"> <!-- i.e. if review found -->
|
12310
|
+
<fo:block keep-with-next="always" line-height="0.1" id="{$review_id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$review_id}" fox:alt-text="Annot___{$review_id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12311
|
+
</xsl:if>
|
12312
|
+
</xsl:for-each>
|
12270
12313
|
</xsl:if>
|
12271
12314
|
<!-- <fo:block>
|
12272
12315
|
<curr_id><xsl:value-of select="$curr_id"/></curr_id>
|
@@ -12403,14 +12446,61 @@
|
|
12403
12446
|
|
12404
12447
|
</xsl:template>
|
12405
12448
|
|
12406
|
-
|
12449
|
+
<!-- document text (not figures, or tables) footnotes -->
|
12450
|
+
<xsl:variable name="reviews_container_">
|
12451
|
+
<xsl:for-each select="//*[local-name() = 'review-container']/*[local-name() = 'fmt-review-body']">
|
12452
|
+
<xsl:variable name="update_xml_step1">
|
12453
|
+
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
12454
|
+
</xsl:variable>
|
12455
|
+
<xsl:apply-templates select="xalan:nodeset($update_xml_step1)" mode="update_xml_enclose_keep-together_within-line"/>
|
12456
|
+
</xsl:for-each>
|
12457
|
+
</xsl:variable>
|
12458
|
+
<xsl:variable name="reviews_container" select="xalan:nodeset($reviews_container_)"/>
|
12459
|
+
|
12460
|
+
<xsl:template match="*[local-name() = 'review-container']"/>
|
12461
|
+
|
12462
|
+
<!-- for old Presentation XML (before https://github.com/metanorma/isodoc/issues/670) -->
|
12463
|
+
<xsl:template match="*[local-name() = 'review'][not(parent::*[local-name() = 'review-container'])]"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
|
12464
|
+
<xsl:variable name="id_from" select="normalize-space(current()/@from)"/>
|
12465
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
12466
|
+
<xsl:choose>
|
12467
|
+
<!-- if there isn't the attribute '@from', then -->
|
12468
|
+
<xsl:when test="$id_from = ''">
|
12469
|
+
<fo:block id="{@id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@id}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12470
|
+
</xsl:when>
|
12471
|
+
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
12472
|
+
<xsl:when test="ancestor::*[local-name() = 'metanorma'] and not(ancestor::*[local-name() = 'metanorma']//*[@id = $id_from])">
|
12473
|
+
<fo:block id="{@from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12474
|
+
</xsl:when>
|
12475
|
+
<xsl:when test="not(/*[@id = $id_from]) and not(/*//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
12476
|
+
<fo:block id="{@from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12477
|
+
</xsl:when>
|
12478
|
+
</xsl:choose>
|
12479
|
+
</xsl:if>
|
12480
|
+
</xsl:template>
|
12481
|
+
|
12482
|
+
<!-- for new Presentation XML (https://github.com/metanorma/isodoc/issues/670) -->
|
12483
|
+
<xsl:template match="*[local-name() = 'fmt-review-start']" name="fmt-review-start"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
|
12407
12484
|
<!-- comment 2019-11-29 -->
|
12408
12485
|
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
12409
12486
|
<xsl:apply-templates /> -->
|
12410
12487
|
|
12411
|
-
<xsl:variable name="id_from" select="normalize-space(current()/@
|
12488
|
+
<xsl:variable name="id_from" select="normalize-space(current()/@source)"/>
|
12412
12489
|
|
12413
|
-
<xsl:
|
12490
|
+
<xsl:variable name="source" select="normalize-space(@source)"/>
|
12491
|
+
|
12492
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
12493
|
+
<!-- <xsl:variable name="id_from" select="normalize-space(current()/@from)"/> -->
|
12494
|
+
|
12495
|
+
<!-- <xsl:if test="@source = @end"> -->
|
12496
|
+
<!-- following-sibling::node()[1][local-name() = 'bookmark'][@id = $source] and
|
12497
|
+
following-sibling::node()[2][local-name() = 'fmt-review-end'][@source = $source] -->
|
12498
|
+
<!-- <fo:block id="{$source}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$source}" fox:alt-text="Annot___{$source}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block> -->
|
12499
|
+
<fo:block id="{@id}" font-size="1pt" role="SKIP" keep-with-next="always" line-height="0.1"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@id}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12500
|
+
<!-- </xsl:if> -->
|
12501
|
+
</xsl:if>
|
12502
|
+
|
12503
|
+
<xsl:if test="1 = 2">
|
12414
12504
|
<xsl:choose>
|
12415
12505
|
<!-- if there isn't the attribute '@from', then -->
|
12416
12506
|
<xsl:when test="$id_from = ''">
|
@@ -12418,10 +12508,10 @@
|
|
12418
12508
|
</xsl:when>
|
12419
12509
|
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
12420
12510
|
<xsl:when test="ancestor::*[local-name() = 'metanorma'] and not(ancestor::*[local-name() = 'metanorma']//*[@id = $id_from])">
|
12421
|
-
<fo:block id="{
|
12511
|
+
<fo:block id="{$id_from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$id_from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12422
12512
|
</xsl:when>
|
12423
12513
|
<xsl:when test="not(/*[@id = $id_from]) and not(/*//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
12424
|
-
<fo:block id="{
|
12514
|
+
<fo:block id="{$id_from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$id_from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12425
12515
|
</xsl:when>
|
12426
12516
|
</xsl:choose>
|
12427
12517
|
</xsl:if>
|
@@ -12472,16 +12562,21 @@
|
|
12472
12562
|
<xsl:variable name="list_level">
|
12473
12563
|
<xsl:choose>
|
12474
12564
|
<xsl:when test="$list_level_ <= 3"><xsl:value-of select="$list_level_"/></xsl:when>
|
12475
|
-
<xsl:
|
12565
|
+
<xsl:when test="$ul_labels/label[@level = 3]"><xsl:value-of select="$list_level_ mod 3"/></xsl:when>
|
12566
|
+
<xsl:when test="$list_level_ mod 2 = 0">2</xsl:when>
|
12567
|
+
<xsl:otherwise><xsl:value-of select="$list_level_ mod 2"/></xsl:otherwise>
|
12476
12568
|
</xsl:choose>
|
12477
12569
|
</xsl:variable>
|
12478
12570
|
<xsl:choose>
|
12479
12571
|
<xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
|
12480
12572
|
<xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
|
12481
12573
|
</xsl:when>
|
12482
|
-
<xsl:when test="$list_level mod 3 = 0">
|
12574
|
+
<xsl:when test="$list_level mod 3 = 0 and $ul_labels/label[@level = 3]">
|
12483
12575
|
<xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
|
12484
12576
|
</xsl:when>
|
12577
|
+
<xsl:when test="$list_level mod 3 = 0">
|
12578
|
+
<xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
|
12579
|
+
</xsl:when>
|
12485
12580
|
<xsl:when test="$list_level mod 2 = 0">
|
12486
12581
|
<xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
|
12487
12582
|
</xsl:when>
|
@@ -13028,10 +13123,22 @@
|
|
13028
13123
|
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/>
|
13029
13124
|
|
13030
13125
|
<xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
13031
|
-
|
13032
|
-
<
|
13033
|
-
|
13034
|
-
|
13126
|
+
<xsl:variable name="bookmark_id" select="@id"/>
|
13127
|
+
<xsl:choose>
|
13128
|
+
<!-- Example:
|
13129
|
+
<fmt-review-start id="_7ef81cf7-3f6c-4ed4-9c1f-1ba092052bbd" source="_dda23915-8574-ef1e-29a1-822d465a5b97" target="_ecfb2210-3b1b-46a2-b63a-8b8505be6686" end="_dda23915-8574-ef1e-29a1-822d465a5b97" author="" date="2025-03-24T00:00:00Z"/>
|
13130
|
+
<bookmark id="_dda23915-8574-ef1e-29a1-822d465a5b97"/>
|
13131
|
+
<fmt-review-end id="_f336a8d0-08a8-4b7f-a1aa-b04688ed40c1" source="_dda23915-8574-ef1e-29a1-822d465a5b97" target="_ecfb2210-3b1b-46a2-b63a-8b8505be6686" start="_dda23915-8574-ef1e-29a1-822d465a5b97" author="" date="2025-03-24T00:00:00Z"/> -->
|
13132
|
+
<xsl:when test="1 = 2 and preceding-sibling::node()[local-name() = 'fmt-review-start'][@source = $bookmark_id] and following-sibling::node()[local-name() = 'fmt-review-end'][@source = $bookmark_id]">
|
13133
|
+
<!-- skip here, see the template 'fmt-review-start' -->
|
13134
|
+
</xsl:when>
|
13135
|
+
<xsl:otherwise>
|
13136
|
+
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
13137
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[local-name() = 'fmt-review-start'][@source = $bookmark_id] and following-sibling::node()[local-name() = 'fmt-review-end'][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
13138
|
+
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
13139
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
13140
|
+
</xsl:otherwise>
|
13141
|
+
</xsl:choose>
|
13035
13142
|
</xsl:template>
|
13036
13143
|
<!-- =================== -->
|
13037
13144
|
<!-- End of Index processing -->
|
@@ -14383,6 +14490,9 @@
|
|
14383
14490
|
<xsl:template match="*[local-name() = 'svgmap']" mode="update_xml_step1"/>
|
14384
14491
|
<xsl:template match="*[local-name() = 'svgmap']" mode="update_xml_pres"/>
|
14385
14492
|
|
14493
|
+
<xsl:template match="*[local-name() = 'review-container']" mode="update_xml_step1"/>
|
14494
|
+
<xsl:template match="*[local-name() = 'review-container']" mode="update_xml_pres"/>
|
14495
|
+
|
14386
14496
|
<!-- END: update new Presentation XML -->
|
14387
14497
|
|
14388
14498
|
<!-- =========================================================================== -->
|
@@ -104,9 +104,8 @@ module IsoDoc
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def tr_parse(node, out, ord, totalrows, header)
|
107
|
-
|
108
|
-
|
109
|
-
out.tr do |r|
|
107
|
+
bordered = table_bordered?(node)
|
108
|
+
out.tr **attr_code(style: node["style"]) do |r|
|
110
109
|
node.elements.each do |td|
|
111
110
|
attrs = make_tr_attr(td, ord, totalrows - 1, header, bordered)
|
112
111
|
attrs[:class] = "TABLE-col-heading" if header
|
@@ -382,33 +382,7 @@ in a document (e.g. sourcecode annotations)</a:documentation>
|
|
382
382
|
<a:documentation>Block intended to capture reviewer comments about some text in the document</a:documentation>
|
383
383
|
<element name="review">
|
384
384
|
<ref name="RequiredId"/>
|
385
|
-
<
|
386
|
-
<a:documentation>The party who has offered the comment</a:documentation>
|
387
|
-
</attribute>
|
388
|
-
<optional>
|
389
|
-
<attribute name="type">
|
390
|
-
<a:documentation>The type of reviewer comment</a:documentation>
|
391
|
-
</attribute>
|
392
|
-
</optional>
|
393
|
-
<optional>
|
394
|
-
<attribute name="date">
|
395
|
-
<a:documentation>The date when the comment was made</a:documentation>
|
396
|
-
<data type="dateTime"/>
|
397
|
-
</attribute>
|
398
|
-
</optional>
|
399
|
-
<optional>
|
400
|
-
<attribute name="from">
|
401
|
-
<a:documentation>Identifier for the start of the text or point in the text to which the comment applies.
|
402
|
-
If not provided, the comment applies in the vicinity of the place it has been inserted into the text</a:documentation>
|
403
|
-
<data type="IDREF"/>
|
404
|
-
</attribute>
|
405
|
-
</optional>
|
406
|
-
<optional>
|
407
|
-
<attribute name="to">
|
408
|
-
<a:documentation>Identifier for the end of the text to which the comment applies</a:documentation>
|
409
|
-
<data type="IDREF"/>
|
410
|
-
</attribute>
|
411
|
-
</optional>
|
385
|
+
<ref name="ReviewAttributes"/>
|
412
386
|
<oneOrMore>
|
413
387
|
<ref name="paragraph">
|
414
388
|
<a:documentation>Reviewer comments content</a:documentation>
|
@@ -416,6 +390,35 @@ If not provided, the comment applies in the vicinity of the place it has been in
|
|
416
390
|
</oneOrMore>
|
417
391
|
</element>
|
418
392
|
</define>
|
393
|
+
<define name="ReviewAttributes">
|
394
|
+
<attribute name="reviewer">
|
395
|
+
<a:documentation>The party who has offered the comment</a:documentation>
|
396
|
+
</attribute>
|
397
|
+
<optional>
|
398
|
+
<attribute name="type">
|
399
|
+
<a:documentation>The type of reviewer comment</a:documentation>
|
400
|
+
</attribute>
|
401
|
+
</optional>
|
402
|
+
<optional>
|
403
|
+
<attribute name="date">
|
404
|
+
<a:documentation>The date when the comment was made</a:documentation>
|
405
|
+
<data type="dateTime"/>
|
406
|
+
</attribute>
|
407
|
+
</optional>
|
408
|
+
<optional>
|
409
|
+
<attribute name="from">
|
410
|
+
<a:documentation>Identifier for the start of the text or point in the text to which the comment applies.
|
411
|
+
If not provided, the comment applies in the vicinity of the place it has been inserted into the text</a:documentation>
|
412
|
+
<data type="IDREF"/>
|
413
|
+
</attribute>
|
414
|
+
</optional>
|
415
|
+
<optional>
|
416
|
+
<attribute name="to">
|
417
|
+
<a:documentation>Identifier for the end of the text to which the comment applies</a:documentation>
|
418
|
+
<data type="IDREF"/>
|
419
|
+
</attribute>
|
420
|
+
</optional>
|
421
|
+
</define>
|
419
422
|
<define name="NumberingAttributes">
|
420
423
|
<optional>
|
421
424
|
<attribute name="unnumbered">
|
@@ -857,6 +860,7 @@ in case the table cannot be rendered accessibly (HTML 5)</a:documentation>
|
|
857
860
|
<define name="tr">
|
858
861
|
<a:documentation>Sequence of cells to be displayed as a row in a table</a:documentation>
|
859
862
|
<element name="tr">
|
863
|
+
<ref name="TrAttributes"/>
|
860
864
|
<oneOrMore>
|
861
865
|
<choice>
|
862
866
|
<ref name="td">
|
@@ -869,6 +873,9 @@ in case the table cannot be rendered accessibly (HTML 5)</a:documentation>
|
|
869
873
|
</oneOrMore>
|
870
874
|
</element>
|
871
875
|
</define>
|
876
|
+
<define name="TrAttributes">
|
877
|
+
<empty/>
|
878
|
+
</define>
|
872
879
|
<define name="tr-no-id">
|
873
880
|
<a:documentation>Sequence of cells to be displayed as a row in a table: optional ID attributes recursively (for use in Relaton, metadata)</a:documentation>
|
874
881
|
<element name="tr">
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v2.0.
|
20
|
+
<!-- VERSION v2.0.2 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -423,6 +423,21 @@ normative or informative references, some split references into sections organiz
|
|
423
423
|
</oneOrMore>
|
424
424
|
</choice>
|
425
425
|
</define>
|
426
|
+
<define name="TdAttributes" combine="interleave">
|
427
|
+
<attribute name="style">
|
428
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
429
|
+
</attribute>
|
430
|
+
</define>
|
431
|
+
<define name="ThAttributes" combine="interleave">
|
432
|
+
<attribute name="style">
|
433
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
434
|
+
</attribute>
|
435
|
+
</define>
|
436
|
+
<define name="TrAttributes">
|
437
|
+
<attribute name="style">
|
438
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
439
|
+
</attribute>
|
440
|
+
</define>
|
426
441
|
<define name="table-note">
|
427
442
|
<element name="note">
|
428
443
|
<ref name="OptionalId"/>
|
@@ -1272,6 +1287,11 @@ numbers</a:documentation>
|
|
1272
1287
|
<a:documentation>Colophon or postface material</a:documentation>
|
1273
1288
|
</ref>
|
1274
1289
|
</optional>
|
1290
|
+
<optional>
|
1291
|
+
<ref name="review-container">
|
1292
|
+
<a:documentation>Annotations to the document</a:documentation>
|
1293
|
+
</ref>
|
1294
|
+
</optional>
|
1275
1295
|
</element>
|
1276
1296
|
</define>
|
1277
1297
|
<define name="misccontainer">
|
@@ -1282,6 +1302,13 @@ numbers</a:documentation>
|
|
1282
1302
|
</oneOrMore>
|
1283
1303
|
</element>
|
1284
1304
|
</define>
|
1305
|
+
<define name="review-container">
|
1306
|
+
<element name="review-container">
|
1307
|
+
<oneOrMore>
|
1308
|
+
<ref name="review"/>
|
1309
|
+
</oneOrMore>
|
1310
|
+
</element>
|
1311
|
+
</define>
|
1285
1312
|
<define name="preface">
|
1286
1313
|
<element name="preface">
|
1287
1314
|
<oneOrMore>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|