Sha256: b2d82ee65dd93606e1bc80f998c5136d6142c36fdf9e542ce58762621a553ce5

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<grammar ns='https://www.metanorma.org/ns/csa' xmlns="http://relaxng.org/ns/structure/1.0">
  <!--
    VERSION v1.2.1
    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 csand additions. And we do not want that.
  -->
  <include href="relaton-csa.rng"/>
  <include href="isodoc.rng">
    <start>
      <ref name="csand-standard"/>
    </start>
    <define name="figure">
      <element name="figure">
        <ref name="FigureAttributes"/>
        <ref name="BlockAttributes"/>
        <optional>
          <ref name="source"/>
        </optional>
        <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>
      </element>
    </define>
  </include>
  <define name="csand-standard">
    <element name="csa-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

3 entries across 3 versions & 1 rubygems

Version Path
metanorma-csa-2.4.7 lib/metanorma/csa/csa.rng
metanorma-csa-2.4.6 lib/metanorma/csa/csa.rng
metanorma-csa-2.4.5 lib/metanorma/csa/csa.rng