Sha256: 3235aecd8b0e3f372c4b49dedb486ea42c6caa28582ff0d5128a112c29e881da

Contents?: true

Size: 1.85 KB

Versions: 7

Compression:

Stored size: 1.85 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<grammar ns='https://www.metanorma.org/ns/cc' xmlns="http://relaxng.org/ns/structure/1.0">
  <!--
    VERSION v1.2.1
    default namespace = "http://riboseinc.com/csd"
    Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
    we cannot have a new default namespace: we will end up with a grammar with two different
    namespaces, one for isostandard and one for csd additions. And we do not want that.
  -->
  <include href="relaton-cc.rng"/>
  <include href="isodoc.rng">
    <start>
      <ref name="cc-standard"/>
    </start>
    <define name="FigureBody">
      <zeroOrMore>
        <ref name="source"/>
      </zeroOrMore>
      <optional>
        <ref name="tname"/>
      </optional>
      <choice>
        <oneOrMore>
          <ref name="figure"/>
        </oneOrMore>
        <group>
          <choice>
            <zeroOrMore>
              <ref name="TextElement"/>
            </zeroOrMore>
            <ref name="pre"/>
          </choice>
          <zeroOrMore>
            <ref name="note"/>
          </zeroOrMore>
          <optional>
            <ref name="dl"/>
          </optional>
        </group>
      </choice>
    </define>
  </include>
  <define name="cc-standard">
    <element name="cc-standard">
      <ref name="Root-Attributes"/>
      <ref name="bibdata"/>
      <zeroOrMore>
        <ref name="termdocsource"/>
      </zeroOrMore>
      <optional>
        <ref name="misccontainer"/>
      </optional>
      <optional>
        <ref name="boilerplate"/>
      </optional>
      <ref name="preface"/>
      <oneOrMore>
        <ref name="sections"/>
      </oneOrMore>
      <zeroOrMore>
        <ref name="annex"/>
      </zeroOrMore>
      <ref name="bibliography"/>
      <zeroOrMore>
        <ref name="indexsect"/>
      </zeroOrMore>
    </element>
  </define>
</grammar>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metanorma-cc-2.5.12 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.11 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.10 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.9 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.8 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.7 lib/metanorma/cc/cc.rng
metanorma-cc-2.5.6 lib/metanorma/cc/cc.rng