|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|
3 targetNamespace="http://harmonies.tzone.org/CdA/2008/CdA" |
|
4 default="http://harmonies.tzone.org/CdA/2008/CdA" |
|
5 elementFormDefault="qualified"> |
|
6 <xs:complexType name="playerType"> |
|
7 <xs:all> |
|
8 <xs:element name="name" type="xs:string"/> |
|
9 <xs:element name="email" type="xs:string" minOccurs="0"/> |
|
10 </xs:all> |
|
11 <xs:any/> |
|
12 </xs:complexType> |
|
13 <xs:simpleType name="genderType"> |
|
14 <xs:restriction base="xs:string"/> |
|
15 <xs:enumeration value="male"/> |
|
16 <xs:enumeration value="female"/> |
|
17 <xs:enumeration value="other"/> |
|
18 </xs:simpleType> |
|
19 <xs:complexType name="descriptionType"> |
|
20 <xs:all> |
|
21 <xs:element name="name" type="xs:string"/> |
|
22 <xs:element name="gender" type="genderType" minOccurs="0"/> |
|
23 <xs:element name="age" type="xs:unsignedInteger" minOccurs="0"/> |
|
24 <xs:element name="height" type="xs:decimal" minOccurs="0"/> |
|
25 <xs:element name="weight" type="xs:decimal" minOccurs="0"/> |
|
26 </xs:all> |
|
27 <xs:any/> |
|
28 </xs:complexType> |
|
29 <xs:simpleType name="qualityType"> |
|
30 <xs:restriction base="xs:integer"> |
|
31 <xs:minInclusive value="-10"/> |
|
32 <xs:maxInclusive value="+10"/> |
|
33 </xs:restriction> |
|
34 </xs:simpleType> |
|
35 <xs:complexType name="profileType"> |
|
36 <xs:all> |
|
37 <xs:element name="pu" type="qualityType" minOccurs="0"/> |
|
38 <xs:element name="re" type="qualityType" minOccurs="0"/> |
|
39 <xs:element name="ma" type="qualityType" minOccurs="0"/> |
|
40 <xs:element name="pr" type="qualityType" minOccurs="0"/> |
|
41 <xs:element name="ex" type="qualityType" minOccurs="0"/> |
|
42 <xs:element name="pe" type="qualityType" minOccurs="0"/> |
|
43 </xs:all> |
|
44 </xs:complexType> |
|
45 <xs:complexType name="competenceBasicType"> |
|
46 <xs:simpleContent> |
|
47 <xs:extension base="xs:string"> |
|
48 <xs:attribute name="nc" type="xs:unsignedInteger"/> |
|
49 <xs:attribute name="xp" type="xs:unsignedInteger"/> |
|
50 </xs:extension> |
|
51 </xs:simpleContent> |
|
52 </xs:complexType> |
|
53 <xs:complexType name="competenceType"> |
|
54 <xs:complexContent> |
|
55 <xs:extension base="competenceBasicType"> |
|
56 <xs:attribute name="aspect" type="xs:string"/> |
|
57 </xs:extension> |
|
58 </xs:complexContent> |
|
59 </xs:complexType> |
|
60 <xs:complexType name="aspectType"> |
|
61 <xs:attribute name="type" type="xs:string" use="required"/> |
|
62 <xs:attribute name="bonus" type="xs:integer"/> |
|
63 <xs:element name="competence" type="competenceBasicType" |
|
64 maxOccurs="unbounded"/> |
|
65 </xs:complexType> |
|
66 <xs:element name="player" type="playerType"/> |
|
67 <xs:complexType name="characterType"> |
|
68 <xs:element ref="player"/> |
|
69 <xs:element name="description" type="descriptionType"/> |
|
70 <xs:element name="profile" type="profileType"/> |
|
71 <xs:element name="physique" type="aspectType"/> |
|
72 <xs:element name="mental" type="aspectType"/> |
|
73 <xs:element name="mystic" type="aspectType"/> |
|
74 </xs:complexType> |
|
75 <xs:element name="character" type="characterType"/> |
|
76 </xs:schema> |