view dtds/race.dtd @ 32:6b9d37f14a14

Re #32 - Migrate to schemas * Remove unused method that was still validating by DTD * Collapse Cats schema in to one nested structure System files are failing to validate because: Problem validating against schema for WarFoundry data: XmlSchema error: Invalid start element: http://ibboard.co.uk/warfoundry/system:cat XML Line 4, Position 4. which is a <cat> tag, which should match the Cat schema definition. Removing the tags results in a different error about the end </categories> tag being unexpected because of missing content.
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2009 20:47:14 +0000
parents 163b35f875ef
children
line wrap: on
line source

<!ELEMENT race (units,categories?,equipment?, abilities?)>
<!ELEMENT categories (cat+)>
<!ELEMENT cat EMPTY>
<!ELEMENT units (unit+)>
<!ELEMENT unit (unitCats,stats,unitEquipment,requires?,exclusiveOf?,champions?,specialItems?,attachable?,additionalMembers?)>
<!ELEMENT unitCats (unitCat+)>
<!ELEMENT unitCat EMPTY>
<!ELEMENT stats (stat+)>
<!ELEMENT stat (#PCDATA)>
<!ELEMENT unitEquipment (unitEquipmentItem*)>
<!ELEMENT unitEquipmentItem EMPTY>
<!ELEMENT requires (required+)>
<!ELEMENT required EMPTY>
<!ELEMENT exclusiveOf (exclusive+)>
<!ELEMENT exclusive EMPTY>
<!ELEMENT champions (champion+)>
<!ELEMENT champion EMPTY>
<!ELEMENT specialItems (specialItem+)>
<!ELEMENT specialItem EMPTY>
<!ELEMENT attachable (attachableUnit+)>
<!ELEMENT attachableUnit EMPTY>
<!ELEMENT additionalMembers (additionalMember+)>
<!ELEMENT additionalMember EMPTY>
<!ELEMENT equipment (equipmentItem*)>
<!ELEMENT equipmentItem (stats?)>
<!ELEMENT abilities (ability?)>
<!ELEMENT ability (description,requirements)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT requirements (requirement*)>
<!ELEMENT requirement (#PCDATA)>

<!ATTLIST race id ID #REQUIRED>
<!ATTLIST race subid CDATA "">
<!ATTLIST race system CDATA #REQUIRED>
<!ATTLIST race name CDATA #REQUIRED>

<!ATTLIST cat id ID #REQUIRED>
<!ATTLIST cat name CDATA #REQUIRED>
<!ATTLIST cat minimum CDATA #REQUIRED>
<!ATTLIST cat maximum CDATA #REQUIRED>
<!ATTLIST cat baseValue CDATA #IMPLIED>
<!ATTLIST cat incValue CDATA #IMPLIED>
<!ATTLIST cat incAmount CDATA #IMPLIED>

<!ATTLIST unit id ID #REQUIRED>
<!ATTLIST unit typeName CDATA #REQUIRED>
<!ATTLIST unit cat CDATA #REQUIRED>
<!ATTLIST unit unitPoints CDATA "0">
<!ATTLIST unit points CDATA #REQUIRED>
<!ATTLIST unit race CDATA "">
<!ATTLIST unit minNum CDATA "0">
<!ATTLIST unit maxNum CDATA "-1">
<!ATTLIST unit minSize CDATA "5">
<!ATTLIST unit maxSize CDATA "-1">
<!ATTLIST unit baseSize CDATA "0">

<!ATTLIST unitCat catID CDATA #REQUIRED>
<!ATTLIST unitCat catCost CDATA "1">

<!ATTLIST stats statSet CDATA "">

<!ATTLIST stat name CDATA #REQUIRED>

<!ATTLIST unitEquipmentItem id CDATA #REQUIRED>
<!ATTLIST unitEquipmentItem required (true|false) "false">
<!ATTLIST unitEquipmentItem exclusivityGroup CDATA "">
<!ATTLIST unitEquipmentItem roundDirection (up|down) "up">

<!ATTLIST equipmentItem id ID #REQUIRED>
<!ATTLIST equipmentItem name CDATA #REQUIRED>
<!ATTLIST equipmentItem cost CDATA #REQUIRED>
<!ATTLIST equipmentItem min CDATA "-1">
<!ATTLIST equipmentItem max CDATA "-1">
<!ATTLIST equipmentItem armourType (None|Shield|LightArmour|LightArmourShield|HeavyArmour|HeavyArmourShield|Barding|BardingShield|BardingLightArmour|BardingLightArmourShield|BardingHeavyArmour|BardingHeavyArmourShield) "None">

<!ATTLIST ability id ID #REQUIRED>
<!ATTLIST ability name CDATA #REQUIRED>