view dtds/system.xsd @ 159:7b98e71b8511

Re #152: Test and fix extensibility of current schemas * Add "any" elements and "anyAttributes" to schemas where appropriate Still need to handle cleansing with XSLT
author IBBoard <dev@ibboard.co.uk>
date Wed, 30 Sep 2009 19:08:08 +0000
parents 76d274df9f28
children 41b927998a41
line wrap: on
line source

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats"
targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified">
<xs:element name="system">
	<xs:complexType>
		<xs:all>
			<xs:element name="categories" type="cats:categoriestype" minOccurs="1"/>
			<xs:element name="sysStatsList" minOccurs="1">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="sysStats" minOccurs="1" maxOccurs="unbounded">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="sysStat" minOccurs="1" maxOccurs="unbounded">
										<xs:complexType>
											<xs:attribute name="name" type="xs:string" use="required"/>
											<xs:anyAttribute/>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
								<xs:attribute name="id" type="xs:ID" />
								<xs:anyAttribute/>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="defaultStats" type="xs:IDREF" />
					<xs:anyAttribute/>
				</xs:complexType>
			</xs:element>
			<xs:any minOccurs="0" />
		</xs:all>
		<xs:attribute name="id" type="xs:ID" />
		<xs:attribute name="name" type="xs:string" use="required"/>
		<xs:attribute name="warn" type="xs:boolean" default="false"/>
		<xs:attribute name="allowAllies" type="xs:boolean" default="true"/>
		<xs:anyAttribute/>
	</xs:complexType>
</xs:element>
</xs:schema>