A Proposal for a Shadowrun XML Standard

geardef

root/geardeflist/geardef
Back

Namespace:
Filename:

Content: id (Type: string) , name (Type: string) , concealability (Type: byte) ?, rating (Type: byte) ?, mass (Type: float) ?, price (Type: int) , legality (Type: string) , availability (Type: string) , index (Type: float) , page (Type: srsref) , category (Type: gearcategory) , ecu (Type: float) ?, grouping (Type: string) ?, plural (Type: string) ?, units (Type: string) ?, customization (Type: datatype) ? notes (Type: string) ?

Description: The geardef tag defines a standard peice of gear from a rulebook. This schema does not describe a specific useage of a peice of gear, merely the generic attributes of the item. Note that several other schema (e.g. cyberdef) extend this schema.

As mentioned above, the geardef is extended by a number of specialized tags. Many types of equipment, however, are described using the generic geardef tag. The geardef is used directly with the following category settings:


Code Fragment

<xs:elementtype name="geardef">
  <xs:model>
    <xs:sequence>
      <xs:element type="xs:string" name="id"/>
      <xs:element type="xs:string" name="name"/>
      <xs:element type="xs:byte" name="concealability" occurs="?"/>
      <xs:element type="xs:float" name="mass" occurs="?"/>
      <xs:element type="xs:int" name="price"/>
      <xs:element type="xs:string" name="legality"/>
      <xs:element type="xs:string" name="availability"/>
      <xs:element type="xs:float" name="index"/>
      <xs:element type="srsref" name="page"/>
      <xs:element type="gearcategory" name="category"/>
      <xs:element type="xs:float" name="ecu" occurs="?"/>
      <xs:element type="xs:string" name="grouping" occurs="?"/>
      <xs:element type="xs:string" name="plural" occurs="?"/>
      <xs:element type="xs:string" name="units" occurs="?"/>
      <xs:element type="datatype" name="customization" occurs="?"/>
      <xs:element type="xs:string" name="notes"/>
    </xs:sequence>
  </xs:model>
</xs:elementtype>