metanorma-plateau 1.1.1 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b9502dbb12bc7774d093699d7859cbabce81c4e290f14e6a0921c97b30068f1
4
- data.tar.gz: 885b279f620ec1f8ca940c46d8226106c92b6a79a83735a8c85f833c902f2f4e
3
+ metadata.gz: e7e6a06814e7807141de2f9d749c608e5a1ef7c74d332acd5ddc47a7536490e8
4
+ data.tar.gz: d06df3e9c20eb21306001e6023558948977ce69b00f783b8cdd2b086e7bf53a9
5
5
  SHA512:
6
- metadata.gz: fd5b15979492ead604a2b194a33b88359cc7c8abdb9e54f46074f40d40ffdf9686bf6caa83f64f3d617a1028c753207ad32d9644a13297ada7d64d514426619e
7
- data.tar.gz: f8b6f02d94ecd5148be9aaddb50097d4c69d1087fc2412da2b510730386dabdfeace0d58fb822064ae4d6cfd862422a2134ee5625a989044e0a03d7037c9429f
6
+ metadata.gz: f4752b529260e640321944866c0a94f080dfbd2b011627ec8d956e6a25d710fe5ef2efee36ad88d82b34255e0f01af1fc58a654130efe19a412936038a5d176f
7
+ data.tar.gz: c5704f8dc54eb064989a551fe608838532735133f31cb970255a091228b7e43e46275ccaace4dcb2da93083dbb3fa2aac7e8f2c21443285dbd16d0b6a0f84381
data/README.adoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-plateau.svg["Gem Version", link="https://rubygems.org/gems/metanorma-plateau"]
4
4
  image:https://github.com/metanorma/metanorma-plateau/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-plateau/actions?workflow=rake"]
5
- image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
5
+ // image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
6
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-plateau.svg["Pull Requests", link="https://github.com/metanorma/metanorma-plateau/pulls"]
7
7
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-plateau/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-plateau/releases"]
8
8
 
@@ -457,7 +457,7 @@
457
457
  </xsl:call-template>
458
458
  </xsl:template> <!-- END: processPrefaceAndMainSectionsPlateau_items -->
459
459
 
460
- <xsl:template match="mn:preface//mn:clause[@type = 'toc']" priority="4">
460
+ <xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="4">
461
461
  <xsl:param name="num"/>
462
462
  <xsl:if test="$doctype = 'technical-report'">
463
463
  <fo:block font-size="16pt" margin-top="5mm"><xsl:value-of select="$i18n_table_of_contents"/></fo:block>
@@ -466,11 +466,10 @@
466
466
  <xsl:apply-templates/>
467
467
  <xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
468
468
  <!-- fill ToC -->
469
- <fo:block role="TOC" font-weight="bold">
470
- <xsl:if test="$doctype = 'technical-report'">
471
- <xsl:attribute name="font-weight">normal</xsl:attribute>
472
- <xsl:attribute name="line-height">1.2</xsl:attribute>
473
- </xsl:if>
469
+ <fo:block role="TOC" xsl:use-attribute-sets="toc-style">
470
+
471
+ <xsl:call-template name="refine_toc-style"/>
472
+
474
473
  <xsl:if test="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true']">
475
474
  <xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true'][@level &lt;= $toc_level or @type='figure' or @type = 'table']">
476
475
  <fo:block role="TOCI">
@@ -564,7 +563,7 @@
564
563
 
565
564
  <xsl:template name="insertTocItem">
566
565
  <xsl:param name="printSection">false</xsl:param>
567
- <fo:block text-align-last="justify" role="TOCI">
566
+ <fo:block xsl:use-attribute-sets="toc-item-style">
568
567
  <fo:basic-link internal-destination="{@id}" fox:alt-text="{mnx:title}">
569
568
  <xsl:if test="$printSection = 'true' and @section != ''">
570
569
  <xsl:value-of select="@section"/>
@@ -572,7 +571,7 @@
572
571
  </xsl:if>
573
572
  <fo:inline><xsl:apply-templates select="mnx:title"/><xsl:text> </xsl:text></fo:inline>
574
573
  <fo:inline keep-together.within-line="always">
575
- <fo:leader leader-pattern="dots"/>
574
+ <fo:leader xsl:use-attribute-sets="toc-leader-style"/>
576
575
  <fo:inline>
577
576
  <xsl:if test="$doctype = 'technical-report'"><xsl:text>- </xsl:text></xsl:if>
578
577
  <fo:page-number-citation ref-id="{@id}"/>
@@ -3703,13 +3702,23 @@
3703
3702
  <xsl:attribute-set name="copyright-statement-style">
3704
3703
  </xsl:attribute-set> <!-- copyright-statement-style -->
3705
3704
 
3705
+ <xsl:template name="refine_copyright-statement-style">
3706
+ </xsl:template>
3707
+
3706
3708
  <xsl:attribute-set name="copyright-statement-title-style">
3707
3709
  </xsl:attribute-set> <!-- copyright-statement-title-style -->
3708
3710
 
3711
+ <xsl:template name="refine_copyright-statement-title-style">
3712
+ </xsl:template>
3713
+
3709
3714
  <xsl:attribute-set name="copyright-statement-p-style">
3710
3715
  </xsl:attribute-set> <!-- copyright-statement-p-style -->
3711
3716
 
3712
- <xsl:attribute-set name="license-statement-style">
3717
+ <xsl:template name="refine_copyright-statement-p-style">
3718
+
3719
+ </xsl:template>
3720
+
3721
+ <xsl:attribute-set name="license-statement-style">
3713
3722
  </xsl:attribute-set> <!-- license-statement-style -->
3714
3723
 
3715
3724
  <xsl:attribute-set name="license-statement-title-style">
@@ -3719,6 +3728,10 @@
3719
3728
  <xsl:attribute-set name="license-statement-p-style">
3720
3729
  </xsl:attribute-set> <!-- license-statement-p-style -->
3721
3730
 
3731
+ <xsl:template name="refine_license-statement-p-style">
3732
+
3733
+ </xsl:template>
3734
+
3722
3735
  <xsl:attribute-set name="legal-statement-style">
3723
3736
  </xsl:attribute-set> <!-- legal-statement-style -->
3724
3737
 
@@ -3746,6 +3759,8 @@
3746
3759
  <!-- ================================= -->
3747
3760
  <xsl:template match="mn:copyright-statement">
3748
3761
  <fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
3762
+ <xsl:call-template name="refine_copyright-statement-style"/>
3763
+
3749
3764
  <xsl:apply-templates/>
3750
3765
  </fo:block>
3751
3766
  </xsl:template> <!-- copyright-statement -->
@@ -4835,7 +4850,7 @@
4835
4850
  </xsl:otherwise>
4836
4851
  </xsl:choose>
4837
4852
  </xsl:variable>
4838
- <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift'">
4853
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift' or $key = 'line-height' ">
4839
4854
  <style name="{$key}"><xsl:value-of select="$value"/></style>
4840
4855
  </xsl:if>
4841
4856
  <xsl:if test="$key = 'text-indent'">
@@ -11641,7 +11656,7 @@
11641
11656
 
11642
11657
  <xsl:template name="insertFootnoteSeparatorCommon">
11643
11658
  <xsl:param name="leader_length">30%</xsl:param>
11644
- <fo:static-content flow-name="xsl-footnote-separator">
11659
+ <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
11645
11660
  <fo:block>
11646
11661
  <fo:leader leader-pattern="rule" leader-length="{$leader_length}"/>
11647
11662
  </fo:block>
@@ -12400,13 +12415,31 @@
12400
12415
  <!-- skip here, see the template 'fmt-review-start' -->
12401
12416
  </xsl:when>
12402
12417
  <xsl:otherwise>
12403
- <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
12404
- <fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
12405
- <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
12406
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
12418
+ <xsl:choose>
12419
+ <xsl:when test="parent::mn:example or parent::mn:termexample or parent::mn:note or parent::mn:termnote">
12420
+ <fo:block font-size="1pt" line-height="0.1">
12421
+ <xsl:call-template name="fo_inline_bookmark">
12422
+ <xsl:with-param name="bookmark_id" select="$bookmark_id"/>
12423
+ </xsl:call-template>
12424
+ </fo:block>
12425
+ </xsl:when>
12426
+ <xsl:otherwise>
12427
+ <xsl:call-template name="fo_inline_bookmark">
12428
+ <xsl:with-param name="bookmark_id" select="$bookmark_id"/>
12429
+ </xsl:call-template>
12430
+ </xsl:otherwise>
12431
+ </xsl:choose>
12407
12432
  </xsl:otherwise>
12408
12433
  </xsl:choose>
12409
12434
  </xsl:template>
12435
+
12436
+ <xsl:template name="fo_inline_bookmark">
12437
+ <xsl:param name="bookmark_id"/>
12438
+ <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
12439
+ <fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
12440
+ <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
12441
+ <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
12442
+ </xsl:template>
12410
12443
  <!-- =================== -->
12411
12444
  <!-- End of Index processing -->
12412
12445
  <!-- =================== -->
@@ -12501,17 +12534,28 @@
12501
12534
  <!-- =================== -->
12502
12535
 
12503
12536
  <xsl:attribute-set name="toc-style">
12537
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
12504
12538
  </xsl:attribute-set>
12505
12539
 
12506
12540
  <xsl:template name="refine_toc-style">
12541
+ <xsl:if test="$doctype = 'technical-report'">
12542
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
12543
+ <xsl:attribute name="line-height">1.2</xsl:attribute>
12544
+ </xsl:if>
12507
12545
  </xsl:template>
12508
12546
 
12509
12547
  <xsl:attribute-set name="toc-title-style">
12510
12548
  </xsl:attribute-set>
12511
12549
 
12550
+ <xsl:template name="refine_toc-title-style">
12551
+ </xsl:template>
12552
+
12512
12553
  <xsl:attribute-set name="toc-title-page-style">
12513
12554
  </xsl:attribute-set> <!-- toc-title-page-style -->
12514
12555
 
12556
+ <xsl:template name="refine_toc-title-page-style">
12557
+ </xsl:template>
12558
+
12515
12559
  <xsl:attribute-set name="toc-item-block-style">
12516
12560
  </xsl:attribute-set>
12517
12561
 
@@ -12520,12 +12564,14 @@
12520
12564
 
12521
12565
  <xsl:attribute-set name="toc-item-style">
12522
12566
  <xsl:attribute name="role">TOCI</xsl:attribute>
12567
+ <xsl:attribute name="text-align-last">justify</xsl:attribute>
12523
12568
  </xsl:attribute-set> <!-- END: toc-item-style -->
12524
12569
 
12525
12570
  <xsl:template name="refine_toc-item-style">
12526
12571
  </xsl:template> <!-- END: refine_toc-item-style -->
12527
12572
 
12528
12573
  <xsl:attribute-set name="toc-leader-style">
12574
+ <xsl:attribute name="leader-pattern">dots</xsl:attribute>
12529
12575
  </xsl:attribute-set> <!-- END: toc-leader-style -->
12530
12576
 
12531
12577
  <xsl:attribute-set name="toc-pagenumber-style">
@@ -12535,6 +12581,9 @@
12535
12581
  <xsl:attribute-set name="toc-listof-title-style">
12536
12582
  </xsl:attribute-set>
12537
12583
 
12584
+ <xsl:template name="refine_toc-listof-title-style">
12585
+ </xsl:template>
12586
+
12538
12587
  <xsl:attribute-set name="toc-listof-item-block-style">
12539
12588
  </xsl:attribute-set>
12540
12589
 
@@ -12879,7 +12928,7 @@
12879
12928
  </xsl:if>
12880
12929
 
12881
12930
  <xsl:for-each select="$contents_nodes/mnx:doc">
12882
- <fo:bookmark internal-destination="{contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
12931
+ <fo:bookmark internal-destination="{mnx:contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
12883
12932
  <xsl:if test="@bundle = 'true'">
12884
12933
  <xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
12885
12934
  </xsl:if>
@@ -12913,7 +12962,7 @@
12913
12962
  </xsl:choose>
12914
12963
  </fo:bookmark-title>
12915
12964
 
12916
- <xsl:apply-templates select="contents/mnx:item" mode="bookmark"/>
12965
+ <xsl:apply-templates select="mnx:contents/mnx:item" mode="bookmark"/>
12917
12966
 
12918
12967
  <xsl:call-template name="insertFigureBookmarks">
12919
12968
  <xsl:with-param name="contents" select="mnx:contents"/>
@@ -14256,11 +14305,35 @@
14256
14305
 
14257
14306
  <xsl:template match="mn:svgmap"/>
14258
14307
 
14308
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
14309
+
14259
14310
  <!-- for correct rendering combining chars, added in mode="update_xml_step2" -->
14260
14311
  <xsl:template match="*[local-name() = 'lang_none']">
14261
14312
  <fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
14262
14313
  </xsl:template>
14263
14314
 
14315
+ <xsl:template name="addTagElementT">
14316
+ <xsl:variable name="title_">
14317
+ <xsl:apply-templates select="mn:fmt-title"/>
14318
+ </xsl:variable>
14319
+ <xsl:variable name="title__">
14320
+ <xsl:for-each select="xalan:nodeset($title_)/*/node()">
14321
+ <xsl:choose>
14322
+ <xsl:when test="self::text()"><xsl:text> </xsl:text><xsl:value-of select="."/><xsl:text> </xsl:text></xsl:when>
14323
+ <xsl:otherwise><xsl:text> </xsl:text><xsl:copy-of select="."/><xsl:text> </xsl:text></xsl:otherwise>
14324
+ </xsl:choose>
14325
+ </xsl:for-each>
14326
+ </xsl:variable>
14327
+ <xsl:variable name="title" select="normalize-space($title__)"/>
14328
+ <xsl:if test="$title != ''">
14329
+ <xsl:attribute name="fox:title">
14330
+ <xsl:if test="ancestor::mn:sections">
14331
+ <xsl:text>Section </xsl:text>
14332
+ </xsl:if>
14333
+ <xsl:value-of select="$title"/></xsl:attribute>
14334
+ </xsl:if>
14335
+ </xsl:template>
14336
+
14264
14337
  <xsl:template name="replaceChar">
14265
14338
  <xsl:param name="text"/>
14266
14339
  <xsl:param name="replace"/>
@@ -15051,6 +15124,13 @@
15051
15124
  <xsl:with-param name="default" select="$text_align_default"/>
15052
15125
  </xsl:call-template>
15053
15126
  <xsl:call-template name="setKeepAttributes"/>
15127
+ <xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
15128
+ <xsl:variable name="styles">
15129
+ <xsl:apply-templates select="*[1]"/>
15130
+ </xsl:variable>
15131
+ <!-- move attribute line-height from inline to block -->
15132
+ <xsl:attribute name="line-height"><xsl:value-of select="xalan:nodeset($styles)//*/@line-height"/></xsl:attribute>
15133
+ </xsl:if>
15054
15134
  </xsl:template>
15055
15135
 
15056
15136
  <xsl:template name="setKeepAttributes">
@@ -15076,34 +15156,41 @@
15076
15156
  <fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
15077
15157
  <fo:block>
15078
15158
  <xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image[$num]">
15079
- <xsl:choose>
15080
- <xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
15081
- <fo:instream-foreign-object fox:alt-text="Image Front">
15082
- <xsl:attribute name="content-height"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
15083
- <xsl:call-template name="getSVG"/>
15084
- </fo:instream-foreign-object>
15085
- </xsl:when>
15086
- <xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
15087
- <fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
15088
- </xsl:when>
15089
- <xsl:otherwise> <!-- bitmap image -->
15090
- <xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
15091
- <xsl:if test="$coverimage_src != ''">
15092
- <xsl:variable name="coverpage">
15093
- <xsl:call-template name="getImageURL">
15094
- <xsl:with-param name="src" select="$coverimage_src"/>
15095
- </xsl:call-template>
15096
- </xsl:variable>
15097
- <!-- <xsl:variable name="coverpage" select="concat('url(file:',$basepath, 'coverpage1.png', ')')"/> --> <!-- for DEBUG -->
15098
- <fo:external-graphic src="{$coverpage}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
15099
- </xsl:if>
15100
- </xsl:otherwise>
15101
- </xsl:choose>
15159
+
15160
+ <xsl:call-template name="insertPageImage"/>
15161
+
15102
15162
  </xsl:for-each>
15103
15163
  </fo:block>
15104
15164
  </fo:block-container>
15105
15165
  </xsl:template>
15106
15166
 
15167
+ <xsl:template name="insertPageImage">
15168
+ <xsl:param name="svg_content_height" select="$pageHeight"/>
15169
+ <xsl:param name="bitmap_width" select="$pageWidth"/>
15170
+ <xsl:choose>
15171
+ <xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
15172
+ <fo:instream-foreign-object fox:alt-text="Image Front">
15173
+ <xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
15174
+ <xsl:call-template name="getSVG"/>
15175
+ </fo:instream-foreign-object>
15176
+ </xsl:when>
15177
+ <xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
15178
+ <fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
15179
+ </xsl:when>
15180
+ <xsl:otherwise> <!-- bitmap image -->
15181
+ <xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
15182
+ <xsl:if test="$coverimage_src != ''">
15183
+ <xsl:variable name="coverpage">
15184
+ <xsl:call-template name="getImageURL">
15185
+ <xsl:with-param name="src" select="$coverimage_src"/>
15186
+ </xsl:call-template>
15187
+ </xsl:variable>
15188
+ <fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
15189
+ </xsl:if>
15190
+ </xsl:otherwise>
15191
+ </xsl:choose>
15192
+ </xsl:template>
15193
+
15107
15194
  <xsl:template name="getImageURL">
15108
15195
  <xsl:param name="src"/>
15109
15196
  <xsl:choose>
@@ -15531,6 +15618,14 @@
15531
15618
  </xsl:attribute>
15532
15619
  </xsl:template>
15533
15620
 
15621
+ <xsl:template name="getCharByCodePoint">
15622
+ <xsl:param name="codepoint"/>
15623
+ <xsl:param name="radix">16</xsl:param>
15624
+ <xsl:variable name="codepointInt" select="java:java.lang.Integer.parseInt($codepoint,$radix)"/>
15625
+ <xsl:variable name="chars" select="java:java.lang.Character.toChars($codepointInt)"/>
15626
+ <xsl:value-of select="java:java.lang.String.new($chars)"/>
15627
+ </xsl:template>
15628
+
15534
15629
  <xsl:template name="substring-after-last">
15535
15630
  <xsl:param name="value"/>
15536
15631
  <xsl:param name="delimiter"/>
@@ -1291,13 +1291,13 @@ Restricted recursively to contain only other such inline elements with no identi
1291
1291
  <ref name="pure_strike"/>
1292
1292
  <ref name="pure_smallcap"/>
1293
1293
  <ref name="br"/>
1294
+ <ref name="stem"/>
1294
1295
  </choice>
1295
1296
  </define>
1296
1297
  <define name="NestedTextElement">
1297
1298
  <a:documentation>Contents of TextElement tags: leaves out tags that should occur only at top level of block: bookmark image hr pagebreak</a:documentation>
1298
1299
  <choice>
1299
1300
  <ref name="PureTextElement"/>
1300
- <ref name="stem"/>
1301
1301
  <ref name="eref"/>
1302
1302
  <ref name="xref"/>
1303
1303
  <ref name="hyperlink"/>
@@ -76,12 +76,6 @@ from other documents in the same doctype</a:documentation>
76
76
  <ref name="flavor">
77
77
  <a:documentation>Flavour of Metanorma used to process this document</a:documentation>
78
78
  </ref>
79
- <optional>
80
- <ref name="editorialgroup">
81
- <a:documentation>Groups associated with the production of the standards document, typically within
82
- a standards definition organization</a:documentation>
83
- </ref>
84
- </optional>
85
79
  <zeroOrMore>
86
80
  <ref name="ics">
87
81
  <a:documentation>Classification of the document contents taken from the International Classification of Standards</a:documentation>
@@ -130,49 +124,6 @@ a standards definition organization</a:documentation>
130
124
  However we prefer not to hardcode it, given ongoing extension.</a:documentation>
131
125
  <text/>
132
126
  </define>
133
- <define name="editorialgroup">
134
- <a:documentation>A group associated with the production of the standards document, typically within
135
- a standards definition organization</a:documentation>
136
- <element name="editorialgroup">
137
- <oneOrMore>
138
- <ref name="technical-committee">
139
- <a:documentation>A technical committee associated with the production of the standards document</a:documentation>
140
- </ref>
141
- </oneOrMore>
142
- </element>
143
- </define>
144
- <define name="technical-committee">
145
- <a:documentation>Technical committee associated with the production of a standards document</a:documentation>
146
- <element name="technical-committee">
147
- <ref name="IsoWorkgroup"/>
148
- </element>
149
- </define>
150
- <define name="IsoWorkgroup">
151
- <optional>
152
- <attribute name="number">
153
- <a:documentation>Numeric identifier of the technical committee</a:documentation>
154
- </attribute>
155
- </optional>
156
- <optional>
157
- <attribute name="type">
158
- <a:documentation>Type of the technical committee, used in identifying the technical committee</a:documentation>
159
- </attribute>
160
- </optional>
161
- <optional>
162
- <attribute name="identifier">
163
- <a:documentation>Non-numeric, complete identifier of the technical committee</a:documentation>
164
- </attribute>
165
- </optional>
166
- <optional>
167
- <attribute name="prefix">
168
- <a:documentation>Disambiguating prefix added to number to form the identifier of the technical committee,
169
- typically indicating its type</a:documentation>
170
- </attribute>
171
- </optional>
172
- <text>
173
- <a:documentation>Name of the technical committee</a:documentation>
174
- </text>
175
- </define>
176
127
  <define name="ics">
177
128
  <a:documentation>Classification taken from the International Classification of Standards.
178
129
  ICS is defined by ISO here -- https://www.iso.org/publication/PUB100033.html</a:documentation>
@@ -242,6 +242,8 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
242
242
  </choice>
243
243
  </define>
244
244
  <define name="roledescription">
245
+ <a:documentation>A more detailed description of the role of the contributor
246
+ Some descriptions are reserved words; in particular, the editorial committee of a standard has the role description "committee"</a:documentation>
245
247
  <element name="description">
246
248
  <ref name="LocalizedMarkedUpString"/>
247
249
  </element>
@@ -443,7 +445,10 @@ real names (if the person is named with a pseudonym or user name); previous lega
443
445
  </oneOrMore>
444
446
  <zeroOrMore>
445
447
  <ref name="subdivision">
446
- <a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item</a:documentation>
448
+ <a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item.
449
+ Multiple subdivisions can be specified for an organization, with no implication of hierarchical
450
+ relation between them
451
+ Editorial and advisory groups are represented as consecutive subdivisions of the SDO</a:documentation>
447
452
  </ref>
448
453
  </zeroOrMore>
449
454
  <optional>
@@ -485,6 +490,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
485
490
  <a:documentation>The type of subdivision</a:documentation>
486
491
  </attribute>
487
492
  </optional>
493
+ <optional>
494
+ <attribute name="subtype">
495
+ <a:documentation>The subtype of subdivision; e.g. different types of technical committee</a:documentation>
496
+ </attribute>
497
+ </optional>
488
498
  <ref name="OrganizationType">
489
499
  <a:documentation>The subdivision, modelled recursively as an organization</a:documentation>
490
500
  </ref>
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <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">
3
- <!-- VERSION v2.1.0 -->
3
+ <!-- VERSION v2.1.1 -->
4
4
 
5
5
  <!--
6
6
  ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
@@ -42,36 +42,6 @@ All IdRefType instances point not to `@id` in Semantic XML, which is the Content
42
42
  but to `@anchor`, the user-supplied cross-reference</a:documentation>
43
43
  <text/>
44
44
  </define>
45
- <define name="index-primary">
46
- <element name="primary">
47
- <oneOrMore>
48
- <choice>
49
- <ref name="PureTextElement"/>
50
- <ref name="stem"/>
51
- </choice>
52
- </oneOrMore>
53
- </element>
54
- </define>
55
- <define name="index-secondary">
56
- <element name="secondary">
57
- <oneOrMore>
58
- <choice>
59
- <ref name="PureTextElement"/>
60
- <ref name="stem"/>
61
- </choice>
62
- </oneOrMore>
63
- </element>
64
- </define>
65
- <define name="index-tertiary">
66
- <element name="tertiary">
67
- <oneOrMore>
68
- <choice>
69
- <ref name="PureTextElement"/>
70
- <ref name="stem"/>
71
- </choice>
72
- </oneOrMore>
73
- </element>
74
- </define>
75
45
  <define name="review">
76
46
  <a:documentation>Generalise BasicDoc element from just review comments, to general annotations;
77
47
  the type attribute defaults to `review` for reviews</a:documentation>
@@ -592,28 +562,6 @@ normative or informative references, some split references into sections organiz
592
562
  </oneOrMore>
593
563
  </element>
594
564
  </define>
595
- <define name="sub">
596
- <a:documentation>Subscript text. Corresponds to HTML `sub</a:documentation>
597
- <element name="sub">
598
- <zeroOrMore>
599
- <choice>
600
- <ref name="PureTextElement"/>
601
- <ref name="stem"/>
602
- </choice>
603
- </zeroOrMore>
604
- </element>
605
- </define>
606
- <define name="sup">
607
- <a:documentation>Superscript text. Corresponds to HTML `sup`</a:documentation>
608
- <element name="sup">
609
- <zeroOrMore>
610
- <choice>
611
- <ref name="PureTextElement"/>
612
- <ref name="stem"/>
613
- </choice>
614
- </zeroOrMore>
615
- </element>
616
- </define>
617
565
  <define name="pagebreak">
618
566
  <a:documentation>Page break. Only applicable in paged layouts (e.g. PDF, Word), and not flow layouts (e.g. HTML)</a:documentation>
619
567
  <element name="pagebreak">
@@ -1094,7 +1042,6 @@ That concept may be defined as a term within the current document, or it may be
1094
1042
  <zeroOrMore>
1095
1043
  <choice>
1096
1044
  <ref name="PureTextElement"/>
1097
- <ref name="stem"/>
1098
1045
  <ref name="index"/>
1099
1046
  <ref name="index-xref"/>
1100
1047
  </choice>
@@ -1107,7 +1054,6 @@ That concept may be defined as a term within the current document, or it may be
1107
1054
  <zeroOrMore>
1108
1055
  <choice>
1109
1056
  <ref name="PureTextElement"/>
1110
- <ref name="stem"/>
1111
1057
  <ref name="index"/>
1112
1058
  <ref name="index-xref"/>
1113
1059
  </choice>
@@ -2025,10 +1971,7 @@ used in document amendments</a:documentation>
2025
1971
  <element name="name">
2026
1972
  <a:documentation>The symbolic form of the designation</a:documentation>
2027
1973
  <oneOrMore>
2028
- <choice>
2029
- <ref name="PureTextElement"/>
2030
- <ref name="stem"/>
2031
- </choice>
1974
+ <ref name="PureTextElement"/>
2032
1975
  </oneOrMore>
2033
1976
  </element>
2034
1977
  </element>
@@ -2081,7 +2024,6 @@ used in document amendments</a:documentation>
2081
2024
  <zeroOrMore>
2082
2025
  <choice>
2083
2026
  <ref name="PureTextElement"/>
2084
- <ref name="stem"/>
2085
2027
  <ref name="index"/>
2086
2028
  <ref name="index-xref"/>
2087
2029
  </choice>
@@ -2291,6 +2233,11 @@ used in document amendments</a:documentation>
2291
2233
  <ref name="RequiredId"/>
2292
2234
  <ref name="NumberingAttributes"/>
2293
2235
  <ref name="BlockAttributes"/>
2236
+ <optional>
2237
+ <attribute name="type">
2238
+ <a:documentation>Semantic classification of note</a:documentation>
2239
+ </attribute>
2240
+ </optional>
2294
2241
  <oneOrMore>
2295
2242
  <choice>
2296
2243
  <a:documentation>Content of the term note</a:documentation>
@@ -22,11 +22,6 @@
22
22
  </group>
23
23
  </element>
24
24
  </define>
25
- <define name="editorialgroup">
26
- <element name="editorialgroup">
27
- <ref name="ISOProjectGroup"/>
28
- </element>
29
- </define>
30
25
  </include>
31
26
  <define name="BibDataExtensionType" combine="interleave">
32
27
  <optional>
@@ -35,28 +30,6 @@
35
30
  </ref>
36
31
  </optional>
37
32
  </define>
38
- <define name="ISOProjectGroup">
39
- <zeroOrMore>
40
- <ref name="agency"/>
41
- </zeroOrMore>
42
- <oneOrMore>
43
- <ref name="technical-committee"/>
44
- </oneOrMore>
45
- <zeroOrMore>
46
- <ref name="subcommittee"/>
47
- </zeroOrMore>
48
- <zeroOrMore>
49
- <ref name="workgroup"/>
50
- </zeroOrMore>
51
- <optional>
52
- <ref name="secretariat"/>
53
- </optional>
54
- </define>
55
- <define name="agency">
56
- <element name="agency">
57
- <text/>
58
- </element>
59
- </define>
60
33
  <define name="documentnumber">
61
34
  <element name="project-number">
62
35
  <optional>
@@ -92,21 +65,6 @@
92
65
  <data type="int"/>
93
66
  </element>
94
67
  </define>
95
- <define name="subcommittee">
96
- <element name="subcommittee">
97
- <ref name="IsoWorkgroup"/>
98
- </element>
99
- </define>
100
- <define name="workgroup">
101
- <element name="workgroup">
102
- <ref name="IsoWorkgroup"/>
103
- </element>
104
- </define>
105
- <define name="secretariat">
106
- <element name="secretariat">
107
- <text/>
108
- </element>
109
- </define>
110
68
  <define name="stagename">
111
69
  <element name="stagename">
112
70
  <optional>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "1.1.1".freeze
3
+ VERSION = "1.1.3".freeze
4
4
  end
5
5
  end
@@ -45,5 +45,5 @@ spec.add_development_dependency "rubocop-performance"
45
45
  spec.add_development_dependency "simplecov", "~> 0.15"
46
46
  spec.add_development_dependency "timecop", "~> 0.9"
47
47
  spec.add_development_dependency "webmock"
48
- spec.add_development_dependency "xml-c14n"
48
+ spec.add_development_dependency "canon"
49
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.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-07-21 00:00:00.000000000 Z
11
+ date: 2025-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis
@@ -221,7 +221,7 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
- name: xml-c14n
224
+ name: canon
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="