A Proposal for a Shadowrun XML Standard

spelldef

root/spelldeflist/spelldef
Back

Namespace:
Filename:

Content: id (Type: string) , name (Type: string) , category (Type: spellcategory) , type (Type: string) , spelltarget , duration (Type: string) , draincode , range (Type: string) ?, page (Type: srsref) , customization (Type: datatype) ? notes (Type: string) ?

Description: The spelldef tag defines a standard spell from a rulebook. This schema does not describe a specific useage of the spell, merely the generic attributes of it.


Code Fragment

<xs:elementtype name="spelldef">
  <xs:model>
    <xs:sequence>
      <xs:element type="xs:string" name="id"/>
      <xs:element type="xs:string" name="name"/>
      <xs:element type="spellcategory" name="category"/>
      <xs:element name="type">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="[MP]"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <element type="spelltarget"/>
      <xs:element name="duration">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="[IPS]"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element type="draincode"/>
      <xs:element type="xs:string" name="range" occurs="?"/>
      <xs:element type="srsref" name="page"/>
      <xs:element type="datatype" name="customization" occurs="?"/>
      <xs:element type="xs:string" name="notes"/>
    </xs:sequence>
  </xs:model>
</xs:elementtype>