changeset 368:8cfb1818823d

Re #346: Add core schema support for requirements * Keep basis of existing schema, but allow for more extensibility
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 May 2011 15:57:10 +0000
parents 1a70ca80ef41
children c2bc207a1571
files schemas/race.xsd
diffstat 1 files changed, 14 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/schemas/race.xsd	Sat May 28 15:51:54 2011 +0000
     1.2 +++ b/schemas/race.xsd	Sat May 28 15:57:10 2011 +0000
     1.3 @@ -173,12 +173,20 @@
     1.4  				<xs:sequence>
     1.5  					<xs:element name="requirement">
     1.6  						<xs:complexType>
     1.7 -							<xs:simpleContent>
     1.8 -								<xs:extension base="xs:string">
     1.9 -									<xs:attribute name="requirementName" type="xs:string" use="required"/>
    1.10 -									<xs:anyAttribute processContents="lax"/>
    1.11 -								</xs:extension>
    1.12 -							</xs:simpleContent>
    1.13 +							<xs:sequence>
    1.14 +								<xs:element name="data" maxOccurs="1">
    1.15 +									<xs:complexType>
    1.16 +										<xs:simpleContent>
    1.17 +											<xs:extension base="xs:string">
    1.18 +												<xs:attribute name="id" type="xs:string" use="required"/>
    1.19 +												<xs:anyAttribute processContents="lax"/>
    1.20 +											</xs:extension>
    1.21 +										</xs:simpleContent>
    1.22 +									</xs:complexType>
    1.23 +								</xs:element>
    1.24 +							</xs:sequence>
    1.25 +							<xs:attribute name="requirementName" type="xs:string" use="required"/>
    1.26 +							<xs:anyAttribute processContents="lax"/>
    1.27  						</xs:complexType>
    1.28  					</xs:element>
    1.29  				</xs:sequence>