Sha256: 4793f39bf50f028e8ded6c3f0f9c9945c5ce09037773ac1e56b2598dcb6c8cfc

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="https://www.metanorma.org/ns/jis" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <!-- default namespace = "https://www.metanorma.com/ns/jis" -->
  <include href="relaton-jis.rng"/>
  <include href="isostandard.rng">
    <start>
      <ref name="jis-standard"/>
    </start>
    <define name="annex">
      <element name="annex">
        <optional>
          <attribute name="commentary">
            <data type="boolean"/>
          </attribute>
        </optional>
        <ref name="Annex-Section"/>
      </element>
    </define>
  </include>
  <!-- end overrides -->
  <define name="floating-section-title">
    <element name="section-title">
      <attribute name="id">
        <data type="ID"/>
      </attribute>
      <attribute name="depth">
        <data type="int"/>
      </attribute>
      <zeroOrMore>
        <ref name="TextElement"/>
      </zeroOrMore>
    </element>
  </define>
  <!--
    We display the Normative References between scope and terms; but to keep the
    grammar simple, we keep the references together
  -->
  <define name="jis-standard">
    <element name="jis-standard">
      <attribute name="version"/>
      <attribute name="type">
        <choice>
          <value>semantic</value>
          <value>presentation</value>
        </choice>
      </attribute>
      <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>
      <optional>
        <ref name="colophon"/>
      </optional>
    </element>
  </define>
</grammar>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metanorma-jis-0.0.4 lib/metanorma/jis/jis.rng