metanorma-iec 2.5.13 → 2.6.0
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/iec.international-standard.xsl +431 -153
 - data/lib/isodoc/iec/presentation_terms.rb +7 -4
 - data/lib/isodoc/iec/word_convert.rb +1 -1
 - data/lib/metanorma/iec/iec.rng +32 -35
 - data/lib/metanorma/iec/isodoc.rng +12 -6
 - data/lib/metanorma/iec/isostandard.rng +30 -33
 - data/lib/metanorma/iec/relaton-iec.rng +21 -13
 - data/lib/metanorma/iec/version.rb +1 -1
 - data/metanorma-iec.gemspec +1 -1
 - metadata +4 -4
 
| 
         @@ -13,8 +13,8 @@ module IsoDoc 
     | 
|
| 
       13 
13 
     | 
    
         
             
                  end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                  def concept(docxml)
         
     | 
| 
       16 
     | 
    
         
            -
                    @is_iev and concept_iev(docxml)
         
     | 
| 
       17 
16 
     | 
    
         
             
                    super
         
     | 
| 
      
 17 
     | 
    
         
            +
                    @is_iev and concept_iev(docxml)
         
     | 
| 
       18 
18 
     | 
    
         
             
                  end
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         
             
                  def concept_iev(docxml)
         
     | 
| 
         @@ -23,7 +23,7 @@ module IsoDoc 
     | 
|
| 
       23 
23 
     | 
    
         
             
                    end
         
     | 
| 
       24 
24 
     | 
    
         
             
                    docpart = docxml.at(ns("//bibdata/ext/structuredidentifier/" \
         
     | 
| 
       25 
25 
     | 
    
         
             
                                            "project-number/@part"))&.text or return
         
     | 
| 
       26 
     | 
    
         
            -
                    docxml.xpath(ns("//termref[@base = 'IEV']")).each do |t|
         
     | 
| 
      
 26 
     | 
    
         
            +
                    docxml.xpath(ns("//fmt-concept//termref[@base = 'IEV']")).each do |t|
         
     | 
| 
       27 
27 
     | 
    
         
             
                      concept_iev1(t, docpart, labels)
         
     | 
| 
       28 
28 
     | 
    
         
             
                    end
         
     | 
| 
       29 
29 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -31,9 +31,10 @@ module IsoDoc 
     | 
|
| 
       31 
31 
     | 
    
         
             
                  def concept_iev1(termref, docpart, labels)
         
     | 
| 
       32 
32 
     | 
    
         
             
                    /^#{docpart}-/.match?(termref["target"]) or return
         
     | 
| 
       33 
33 
     | 
    
         
             
                    newtarget = labels[termref["target"]] or return
         
     | 
| 
       34 
     | 
    
         
            -
                    termref.name = "xref"
         
     | 
| 
      
 34 
     | 
    
         
            +
                    termref.name = "fmt-xref"
         
     | 
| 
       35 
35 
     | 
    
         
             
                    termref.delete("base")
         
     | 
| 
       36 
36 
     | 
    
         
             
                    termref["target"] = newtarget
         
     | 
| 
      
 37 
     | 
    
         
            +
                    xref1(termref)
         
     | 
| 
       37 
38 
     | 
    
         
             
                  end
         
     | 
| 
       38 
39 
     | 
    
         | 
| 
       39 
40 
     | 
    
         
             
                  def terms(docxml)
         
     | 
| 
         @@ -69,7 +70,9 @@ module IsoDoc 
     | 
|
| 
       69 
70 
     | 
    
         
             
                    dup = semx_fmt_dup(fr_term)
         
     | 
| 
       70 
71 
     | 
    
         
             
                    dup.xpath(ns("./fmt-name | ./fmt-xref-label")).each(&:remove)
         
     | 
| 
       71 
72 
     | 
    
         
             
                    en_term << dup
         
     | 
| 
       72 
     | 
    
         
            -
                    fr_term.xpath(ns(".//fmt-name | .//fmt-xref-label |  
     | 
| 
      
 73 
     | 
    
         
            +
                    fr_term.xpath(ns(".//fmt-name | .//fmt-xref-label | " \
         
     | 
| 
      
 74 
     | 
    
         
            +
                      ".//fmt-preferred | .//fmt-admitted | .//fmt-deprecates | " \
         
     | 
| 
      
 75 
     | 
    
         
            +
                      ".//fmt-definition | .//fmt-related | .//fmt-termsource")).each(&:remove)
         
     | 
| 
       73 
76 
     | 
    
         
             
                    fr_term["unnumbered"] = "true"
         
     | 
| 
       74 
77 
     | 
    
         
             
                    en_term << dl if dl
         
     | 
| 
       75 
78 
     | 
    
         
             
                    en_term["language"] = "en,fr"
         
     | 
| 
         @@ -214,7 +214,7 @@ module IsoDoc 
     | 
|
| 
       214 
214 
     | 
    
         
             
                    out.div **attr_code(class: "formula") do |div|
         
     | 
| 
       215 
215 
     | 
    
         
             
                      div.p **attr_code(class: "formula") do |_p|
         
     | 
| 
       216 
216 
     | 
    
         
             
                        insert_tab(div, 1)
         
     | 
| 
       217 
     | 
    
         
            -
                        parse(node.at(ns("./stem")), div)
         
     | 
| 
      
 217 
     | 
    
         
            +
                        parse(node.at(ns("./fmt-stem")), div)
         
     | 
| 
       218 
218 
     | 
    
         
             
                        if lbl = node&.at(ns("./fmt-name"))&.text
         
     | 
| 
       219 
219 
     | 
    
         
             
                          insert_tab(div, 1)
         
     | 
| 
       220 
220 
     | 
    
         
             
                          div << lbl
         
     | 
    
        data/lib/metanorma/iec/iec.rng
    CHANGED
    
    | 
         @@ -1,14 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <?xml version="1.0" encoding="UTF-8"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <grammar ns='https://www.metanorma.org/ns/ 
     | 
| 
      
 2 
     | 
    
         
            +
            <grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
         
     | 
| 
       3 
3 
     | 
    
         
             
              <!--
         
     | 
| 
       4 
4 
     | 
    
         
             
                VERSION v1.2.1
         
     | 
| 
       5 
5 
     | 
    
         
             
                default namespace = "https://www.metanorma.com/ns/iec"
         
     | 
| 
       6 
6 
     | 
    
         
             
              -->
         
     | 
| 
       7 
7 
     | 
    
         
             
              <include href="relaton-iec.rng"/>
         
     | 
| 
       8 
8 
     | 
    
         
             
              <include href="isostandard.rng">
         
     | 
| 
       9 
     | 
    
         
            -
                <start>
         
     | 
| 
       10 
     | 
    
         
            -
                  <ref name="iec-standard"/>
         
     | 
| 
       11 
     | 
    
         
            -
                </start>
         
     | 
| 
       12 
9 
     | 
    
         
             
                <define name="term">
         
     | 
| 
       13 
10 
     | 
    
         
             
                  <element name="term">
         
     | 
| 
       14 
11 
     | 
    
         
             
                    <optional>
         
     | 
| 
         @@ -50,36 +47,36 @@ 
     | 
|
| 
       50 
47 
     | 
    
         
             
                    </zeroOrMore>
         
     | 
| 
       51 
48 
     | 
    
         
             
                  </element>
         
     | 
| 
       52 
49 
     | 
    
         
             
                </define>
         
     | 
| 
      
 50 
     | 
    
         
            +
                <!--
         
     | 
| 
      
 51 
     | 
    
         
            +
                  We display the Normative References between scope and terms; but to keep the
         
     | 
| 
      
 52 
     | 
    
         
            +
                  grammar simple, we keep the references together
         
     | 
| 
      
 53 
     | 
    
         
            +
                -->
         
     | 
| 
      
 54 
     | 
    
         
            +
                <define name="standard-document">
         
     | 
| 
      
 55 
     | 
    
         
            +
                  <element name="metanorma">
         
     | 
| 
      
 56 
     | 
    
         
            +
                    <ref name="Root-Attributes"/>
         
     | 
| 
      
 57 
     | 
    
         
            +
                    <ref name="bibdata"/>
         
     | 
| 
      
 58 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 59 
     | 
    
         
            +
                      <ref name="termdocsource"/>
         
     | 
| 
      
 60 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 61 
     | 
    
         
            +
                    <optional>
         
     | 
| 
      
 62 
     | 
    
         
            +
                      <ref name="misccontainer"/>
         
     | 
| 
      
 63 
     | 
    
         
            +
                    </optional>
         
     | 
| 
      
 64 
     | 
    
         
            +
                    <optional>
         
     | 
| 
      
 65 
     | 
    
         
            +
                      <ref name="boilerplate"/>
         
     | 
| 
      
 66 
     | 
    
         
            +
                    </optional>
         
     | 
| 
      
 67 
     | 
    
         
            +
                    <ref name="preface"/>
         
     | 
| 
      
 68 
     | 
    
         
            +
                    <oneOrMore>
         
     | 
| 
      
 69 
     | 
    
         
            +
                      <ref name="sections"/>
         
     | 
| 
      
 70 
     | 
    
         
            +
                    </oneOrMore>
         
     | 
| 
      
 71 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 72 
     | 
    
         
            +
                      <ref name="annex"/>
         
     | 
| 
      
 73 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 74 
     | 
    
         
            +
                    <ref name="bibliography"/>
         
     | 
| 
      
 75 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 76 
     | 
    
         
            +
                      <ref name="indexsect"/>
         
     | 
| 
      
 77 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 78 
     | 
    
         
            +
                  </element>
         
     | 
| 
      
 79 
     | 
    
         
            +
                </define>
         
     | 
| 
       53 
80 
     | 
    
         
             
              </include>
         
     | 
| 
       54 
     | 
    
         
            -
              <!-- end overrides -->
         
     | 
| 
       55 
     | 
    
         
            -
              <!--
         
     | 
| 
       56 
     | 
    
         
            -
                We display the Normative References between scope and terms; but to keep the
         
     | 
| 
       57 
     | 
    
         
            -
                grammar simple, we keep the references together
         
     | 
| 
       58 
     | 
    
         
            -
              -->
         
     | 
| 
       59 
     | 
    
         
            -
              <define name="iec-standard">
         
     | 
| 
       60 
     | 
    
         
            -
                <element name="iec-standard">
         
     | 
| 
       61 
     | 
    
         
            -
                  <ref name="Root-Attributes"/>
         
     | 
| 
       62 
     | 
    
         
            -
                  <ref name="bibdata"/>
         
     | 
| 
       63 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       64 
     | 
    
         
            -
                    <ref name="termdocsource"/>
         
     | 
| 
       65 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       66 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       67 
     | 
    
         
            -
                    <ref name="misccontainer"/>
         
     | 
| 
       68 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       69 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       70 
     | 
    
         
            -
                    <ref name="boilerplate"/>
         
     | 
| 
       71 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       72 
     | 
    
         
            -
                  <ref name="preface"/>
         
     | 
| 
       73 
     | 
    
         
            -
                  <oneOrMore>
         
     | 
| 
       74 
     | 
    
         
            -
                    <ref name="sections"/>
         
     | 
| 
       75 
     | 
    
         
            -
                  </oneOrMore>
         
     | 
| 
       76 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       77 
     | 
    
         
            -
                    <ref name="annex"/>
         
     | 
| 
       78 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       79 
     | 
    
         
            -
                  <ref name="bibliography"/>
         
     | 
| 
       80 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       81 
     | 
    
         
            -
                    <ref name="indexsect"/>
         
     | 
| 
       82 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       83 
     | 
    
         
            -
                </element>
         
     | 
| 
       84 
     | 
    
         
            -
              </define>
         
     | 
| 
       85 
81 
     | 
    
         
             
            </grammar>
         
     | 
| 
      
 82 
     | 
    
         
            +
            <!-- end overrides -->
         
     | 
| 
         @@ -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  
     | 
| 
      
 20 
     | 
    
         
            +
            <!-- VERSION v2.0.0 -->
         
     | 
| 
       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">
         
     | 
| 
         @@ -459,11 +459,14 @@ gives an explicit page orientation</a:documentation> 
     | 
|
| 
       459 
459 
     | 
    
         
             
                      <a:documentation>Description of location in a reference, which can be combined with other locations in a single citation</a:documentation>
         
     | 
| 
       460 
460 
     | 
    
         
             
                    </ref>
         
     | 
| 
       461 
461 
     | 
    
         
             
                  </zeroOrMore>
         
     | 
| 
       462 
     | 
    
         
            -
                  < 
     | 
| 
       463 
     | 
    
         
            -
                    < 
     | 
| 
      
 462 
     | 
    
         
            +
                  <optional>
         
     | 
| 
      
 463 
     | 
    
         
            +
                    <element name="display-text">
         
     | 
| 
       464 
464 
     | 
    
         
             
                      <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `<xx>my link text</xx>`)</a:documentation>
         
     | 
| 
       465 
     | 
    
         
            -
             
     | 
| 
       466 
     | 
    
         
            -
             
     | 
| 
      
 465 
     | 
    
         
            +
                      <oneOrMore>
         
     | 
| 
      
 466 
     | 
    
         
            +
                        <ref name="PureTextElement"/>
         
     | 
| 
      
 467 
     | 
    
         
            +
                      </oneOrMore>
         
     | 
| 
      
 468 
     | 
    
         
            +
                    </element>
         
     | 
| 
      
 469 
     | 
    
         
            +
                  </optional>
         
     | 
| 
       467 
470 
     | 
    
         
             
                </define>
         
     | 
| 
       468 
471 
     | 
    
         
             
              </include>
         
     | 
| 
       469 
472 
     | 
    
         
             
              <!-- end overrides -->
         
     | 
| 
         @@ -1205,10 +1208,13 @@ numbers</a:documentation> 
     | 
|
| 
       1205 
1208 
     | 
    
         
             
                    <value>presentation</value>
         
     | 
| 
       1206 
1209 
     | 
    
         
             
                  </choice>
         
     | 
| 
       1207 
1210 
     | 
    
         
             
                </attribute>
         
     | 
| 
      
 1211 
     | 
    
         
            +
                <attribute name="flavor">
         
     | 
| 
      
 1212 
     | 
    
         
            +
                  <a:documentation>Metanorma flavor, indicating SDO whose requiremnts the realisation aligns to</a:documentation>
         
     | 
| 
      
 1213 
     | 
    
         
            +
                </attribute>
         
     | 
| 
       1208 
1214 
     | 
    
         
             
              </define>
         
     | 
| 
       1209 
1215 
     | 
    
         
             
              <define name="standard-document">
         
     | 
| 
       1210 
1216 
     | 
    
         
             
                <a:documentation>Representation of a standardisation document</a:documentation>
         
     | 
| 
       1211 
     | 
    
         
            -
                <element name=" 
     | 
| 
      
 1217 
     | 
    
         
            +
                <element name="metanorma">
         
     | 
| 
       1212 
1218 
     | 
    
         
             
                  <ref name="Root-Attributes"/>
         
     | 
| 
       1213 
1219 
     | 
    
         
             
                  <ref name="bibdata">
         
     | 
| 
       1214 
1220 
     | 
    
         
             
                    <a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
         
     | 
| 
         @@ -5,9 +5,6 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
                default namespace isostandard = "https://www.metanorma.com/ns/iso"
         
     | 
| 
       6 
6 
     | 
    
         
             
              -->
         
     | 
| 
       7 
7 
     | 
    
         
             
              <include href="isodoc.rng">
         
     | 
| 
       8 
     | 
    
         
            -
                <start>
         
     | 
| 
       9 
     | 
    
         
            -
                  <ref name="iso-standard"/>
         
     | 
| 
       10 
     | 
    
         
            -
                </start>
         
     | 
| 
       11 
8 
     | 
    
         
             
                <define name="sections">
         
     | 
| 
       12 
9 
     | 
    
         
             
                  <element name="sections">
         
     | 
| 
       13 
10 
     | 
    
         
             
                    <zeroOrMore>
         
     | 
| 
         @@ -238,38 +235,38 @@ 
     | 
|
| 
       238 
235 
     | 
    
         
             
                    </oneOrMore>
         
     | 
| 
       239 
236 
     | 
    
         
             
                  </choice>
         
     | 
| 
       240 
237 
     | 
    
         
             
                </define>
         
     | 
| 
      
 238 
     | 
    
         
            +
                <!--
         
     | 
| 
      
 239 
     | 
    
         
            +
                  We display the Normative References between scope and terms; but to keep the
         
     | 
| 
      
 240 
     | 
    
         
            +
                  grammar simple, we keep the references together
         
     | 
| 
      
 241 
     | 
    
         
            +
                -->
         
     | 
| 
      
 242 
     | 
    
         
            +
                <define name="standard-document">
         
     | 
| 
      
 243 
     | 
    
         
            +
                  <element name="metanorma">
         
     | 
| 
      
 244 
     | 
    
         
            +
                    <ref name="Root-Attributes"/>
         
     | 
| 
      
 245 
     | 
    
         
            +
                    <ref name="bibdata"/>
         
     | 
| 
      
 246 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 247 
     | 
    
         
            +
                      <ref name="termdocsource"/>
         
     | 
| 
      
 248 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 249 
     | 
    
         
            +
                    <optional>
         
     | 
| 
      
 250 
     | 
    
         
            +
                      <ref name="misccontainer"/>
         
     | 
| 
      
 251 
     | 
    
         
            +
                    </optional>
         
     | 
| 
      
 252 
     | 
    
         
            +
                    <optional>
         
     | 
| 
      
 253 
     | 
    
         
            +
                      <ref name="boilerplate"/>
         
     | 
| 
      
 254 
     | 
    
         
            +
                    </optional>
         
     | 
| 
      
 255 
     | 
    
         
            +
                    <ref name="preface"/>
         
     | 
| 
      
 256 
     | 
    
         
            +
                    <oneOrMore>
         
     | 
| 
      
 257 
     | 
    
         
            +
                      <ref name="sections"/>
         
     | 
| 
      
 258 
     | 
    
         
            +
                    </oneOrMore>
         
     | 
| 
      
 259 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 260 
     | 
    
         
            +
                      <ref name="annex"/>
         
     | 
| 
      
 261 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 262 
     | 
    
         
            +
                    <ref name="bibliography"/>
         
     | 
| 
      
 263 
     | 
    
         
            +
                    <zeroOrMore>
         
     | 
| 
      
 264 
     | 
    
         
            +
                      <ref name="indexsect"/>
         
     | 
| 
      
 265 
     | 
    
         
            +
                    </zeroOrMore>
         
     | 
| 
      
 266 
     | 
    
         
            +
                  </element>
         
     | 
| 
      
 267 
     | 
    
         
            +
                </define>
         
     | 
| 
       241 
268 
     | 
    
         
             
              </include>
         
     | 
| 
       242 
269 
     | 
    
         
             
              <!-- end overrides -->
         
     | 
| 
       243 
     | 
    
         
            -
              <!--
         
     | 
| 
       244 
     | 
    
         
            -
                We display the Normative References between scope and terms; but to keep the
         
     | 
| 
       245 
     | 
    
         
            -
                grammar simple, we keep the references together
         
     | 
| 
       246 
     | 
    
         
            -
              -->
         
     | 
| 
       247 
     | 
    
         
            -
              <define name="iso-standard">
         
     | 
| 
       248 
     | 
    
         
            -
                <element name="iso-standard">
         
     | 
| 
       249 
     | 
    
         
            -
                  <ref name="Root-Attributes"/>
         
     | 
| 
       250 
     | 
    
         
            -
                  <ref name="bibdata"/>
         
     | 
| 
       251 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       252 
     | 
    
         
            -
                    <ref name="termdocsource"/>
         
     | 
| 
       253 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       254 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       255 
     | 
    
         
            -
                    <ref name="misccontainer"/>
         
     | 
| 
       256 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       257 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       258 
     | 
    
         
            -
                    <ref name="boilerplate"/>
         
     | 
| 
       259 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       260 
     | 
    
         
            -
                  <ref name="preface"/>
         
     | 
| 
       261 
     | 
    
         
            -
                  <oneOrMore>
         
     | 
| 
       262 
     | 
    
         
            -
                    <ref name="sections"/>
         
     | 
| 
       263 
     | 
    
         
            -
                  </oneOrMore>
         
     | 
| 
       264 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       265 
     | 
    
         
            -
                    <ref name="annex"/>
         
     | 
| 
       266 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       267 
     | 
    
         
            -
                  <ref name="bibliography"/>
         
     | 
| 
       268 
     | 
    
         
            -
                  <zeroOrMore>
         
     | 
| 
       269 
     | 
    
         
            -
                    <ref name="indexsect"/>
         
     | 
| 
       270 
     | 
    
         
            -
                  </zeroOrMore>
         
     | 
| 
       271 
     | 
    
         
            -
                </element>
         
     | 
| 
       272 
     | 
    
         
            -
              </define>
         
     | 
| 
       273 
270 
     | 
    
         
             
              <define name="clause-hanging-paragraph-with-footnote">
         
     | 
| 
       274 
271 
     | 
    
         
             
                <element name="clause">
         
     | 
| 
       275 
272 
     | 
    
         
             
                  <optional>
         
     | 
| 
         @@ -75,19 +75,13 @@ 
     | 
|
| 
       75 
75 
     | 
    
         
             
                    </choice>
         
     | 
| 
       76 
76 
     | 
    
         
             
                  </element>
         
     | 
| 
       77 
77 
     | 
    
         
             
                </define>
         
     | 
| 
       78 
     | 
    
         
            -
                <define name=" 
     | 
| 
       79 
     | 
    
         
            -
                  < 
     | 
| 
       80 
     | 
    
         
            -
                    < 
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
             
     | 
| 
       83 
     | 
    
         
            -
                     
     | 
| 
       84 
     | 
    
         
            -
                  </ 
     | 
| 
       85 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       86 
     | 
    
         
            -
                    <ref name="workgroup"/>
         
     | 
| 
       87 
     | 
    
         
            -
                  </optional>
         
     | 
| 
       88 
     | 
    
         
            -
                  <optional>
         
     | 
| 
       89 
     | 
    
         
            -
                    <ref name="secretariat"/>
         
     | 
| 
       90 
     | 
    
         
            -
                  </optional>
         
     | 
| 
      
 78 
     | 
    
         
            +
                <define name="organization">
         
     | 
| 
      
 79 
     | 
    
         
            +
                  <element name="organization">
         
     | 
| 
      
 80 
     | 
    
         
            +
                    <choice>
         
     | 
| 
      
 81 
     | 
    
         
            +
                      <ref name="OrganizationType"/>
         
     | 
| 
      
 82 
     | 
    
         
            +
                      <ref name="IsoOrganizationType"/>
         
     | 
| 
      
 83 
     | 
    
         
            +
                    </choice>
         
     | 
| 
      
 84 
     | 
    
         
            +
                  </element>
         
     | 
| 
       91 
85 
     | 
    
         
             
                </define>
         
     | 
| 
       92 
86 
     | 
    
         
             
                <define name="DocumentType">
         
     | 
| 
       93 
87 
     | 
    
         
             
                  <choice>
         
     | 
| 
         @@ -265,4 +259,18 @@ 
     | 
|
| 
       265 
259 
     | 
    
         
             
                  </zeroOrMore>
         
     | 
| 
       266 
260 
     | 
    
         
             
                </element>
         
     | 
| 
       267 
261 
     | 
    
         
             
              </define>
         
     | 
| 
      
 262 
     | 
    
         
            +
              <define name="IsoOrganizationType">
         
     | 
| 
      
 263 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 264 
     | 
    
         
            +
                  <ref name="technical-committee"/>
         
     | 
| 
      
 265 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 266 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 267 
     | 
    
         
            +
                  <ref name="subcommittee"/>
         
     | 
| 
      
 268 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 269 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 270 
     | 
    
         
            +
                  <ref name="workgroup"/>
         
     | 
| 
      
 271 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 272 
     | 
    
         
            +
                <optional>
         
     | 
| 
      
 273 
     | 
    
         
            +
                  <ref name="secretariat"/>
         
     | 
| 
      
 274 
     | 
    
         
            +
                </optional>
         
     | 
| 
      
 275 
     | 
    
         
            +
              </define>
         
     | 
| 
       268 
276 
     | 
    
         
             
            </grammar>
         
     | 
    
        data/metanorma-iec.gemspec
    CHANGED
    
    | 
         @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       30 
30 
     | 
    
         
             
              spec.test_files    = `git ls-files -- {spec}/*`.split("\n")
         
     | 
| 
       31 
31 
     | 
    
         
             
              spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
     | 
    
         
            -
              spec.add_dependency "metanorma-iso", "~>  
     | 
| 
      
 33 
     | 
    
         
            +
              spec.add_dependency "metanorma-iso", "~> 3.0.0"
         
     | 
| 
       34 
34 
     | 
    
         
             
              spec.add_dependency "pubid"
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
              spec.add_development_dependency "debug"
         
     | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.6.0
         
     | 
| 
       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-02- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-02-17 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: metanorma-iso
         
     | 
| 
         @@ -16,14 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version:  
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 3.0.0
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version:  
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 3.0.0
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: pubid
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |