MAO

From Dragon Age Toolset Wiki
Revision as of 21:42, 22 September 2009 by BryanDerksen (Talk | contribs) (Created page with 'See [http://www.oasis-open.org/committees/relax-ng/spec.html] for information on the RELAX NG 1.0 XML schema format. For a free converter/verifier, see [http://code.google.com/p/...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See [1] for information on the RELAX NG 1.0 XML schema format. For a free converter/verifier, see [2].

<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <element name="MaterialObject">
      <attribute name="Name">
        <data type="NMTOKEN"/>
      </attribute>
      <oneOrMore>
        <choice>
          <text/>
          <element name="DefaultSemantic">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
          </element>
          <element name="Float">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <attribute name="value">
              <data type="decimal"/>
            </attribute>
          </element>
          <element name="Material">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
          </element>
          <element name="SoundType">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <attribute name="value">
              <data type="integer"/>
            </attribute>
          </element>
          <element name="Texture">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <optional>
              <attribute name="RequiresID">
                <data type="boolean"/>
              </attribute>
            </optional>
            <attribute name="ResName">
              <data type="NMTOKEN"/>
            </attribute>
          </element>
          <element name="Vector4f">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <attribute name="value"/>
          </element>
          <element name="Vector4fArray">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <attribute name="value"/>
          </element>
          <element name="texture">
            <attribute name="Name">
              <data type="NCName"/>
            </attribute>
            <attribute name="ResName">
              <data type="NCName"/>
            </attribute>
          </element>
        </choice>
      </oneOrMore>
    </element>
  </start>
</grammar>