Stan
3872ee43b5
Patch by: @bb Small fixes by: @Stan Reviewed by: @vladislavbelov Differential Revision: https://code.wildfiregames.com/D3103 This was SVN commit r24665.
58 lines
1.4 KiB
XML
Executable File
58 lines
1.4 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<start>
|
|
<a:documentation/>
|
|
<!--
|
|
NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
|
|
and use a converter tool like trang to generate the Relax NG XML (.rng) file
|
|
-->
|
|
<a:documentation/>
|
|
<choice>
|
|
<ref name="objects"/>
|
|
<ref name="styles"/>
|
|
</choice>
|
|
</start>
|
|
<define name="objects">
|
|
<element name="objects">
|
|
<zeroOrMore>
|
|
<choice>
|
|
<ref name="script"/>
|
|
<ref name="object"/>
|
|
</choice>
|
|
</zeroOrMore>
|
|
</element>
|
|
</define>
|
|
<define name="script">
|
|
<element name="script">
|
|
<interleave>
|
|
<text/>
|
|
<optional>
|
|
<attribute name="file"/>
|
|
</optional>
|
|
<optional>
|
|
<attribute name="directory"/>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
<define name="object">
|
|
<element name="object">
|
|
<optional>
|
|
<attribute name="name"/>
|
|
</optional>
|
|
</element>
|
|
</define>
|
|
<define name="styles">
|
|
<element name="styles">
|
|
<zeroOrMore>
|
|
<ref name="style"/>
|
|
</zeroOrMore>
|
|
</element>
|
|
</define>
|
|
<define name="style">
|
|
<element name="style">
|
|
<attribute name="name"/>
|
|
</element>
|
|
</define>
|
|
</grammar>
|