Mercurial > repos > snowblizz-super-API-ideas
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 wrap: on
line diff
--- a/schemas/race.xsd Sat May 28 15:51:54 2011 +0000 +++ b/schemas/race.xsd Sat May 28 15:57:10 2011 +0000 @@ -173,12 +173,20 @@ <xs:sequence> <xs:element name="requirement"> <xs:complexType> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute name="requirementName" type="xs:string" use="required"/> - <xs:anyAttribute processContents="lax"/> - </xs:extension> - </xs:simpleContent> + <xs:sequence> + <xs:element name="data" maxOccurs="1"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:anyAttribute processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="requirementName" type="xs:string" use="required"/> + <xs:anyAttribute processContents="lax"/> </xs:complexType> </xs:element> </xs:sequence>