equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <xs:schema attributeFormDefault="unqualified" |
|
3 elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|
4 <xs:element name="values"> |
|
5 <xs:complexType> |
|
6 <xs:sequence> |
|
7 <xs:element name="item" maxOccurs="unbounded" minOccurs="0"> |
|
8 <xs:complexType> |
|
9 <xs:sequence> |
|
10 <xs:element name="component" maxOccurs="unbounded" |
|
11 minOccurs="0"> |
|
12 <xs:complexType> |
|
13 <xs:simpleContent> |
|
14 <xs:extension base="xs:string"> |
|
15 <xs:attribute type="xs:string" name="name" use="required" /> |
|
16 </xs:extension> |
|
17 </xs:simpleContent> |
|
18 </xs:complexType> |
|
19 </xs:element> |
|
20 </xs:sequence> |
|
21 <xs:attribute type="xs:string" name="label" use="optional" /> |
|
22 <xs:attribute name="value" use="required"> |
|
23 <xs:annotation> |
|
24 <xs:documentation>The regular expression in the constraint of |
|
25 the "value" attribute is: 1) a valid rgb() expression or 2) a |
|
26 valid hex number or 3) a valid alpha expression or 4) a three |
|
27 digit hex triple or 5) a valid %rgb() expression.</xs:documentation> |
|
28 </xs:annotation> |
|
29 <xs:simpleType> |
|
30 <!-- TODO: Need to modify the last pattern below (%rgb() to accept digits from 0 to 100 instead of from 1 to 99 --> |
|
31 <xs:restriction base="xs:string"> |
|
32 <xs:pattern |
|
33 value="rgb\((((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5])),\s?){2}(((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))){1}\)|#(([0-9a-fA-F]){6})|([A-Z,a-z]+)|#([0-9a-fA-F]){3}|rgb\(([1-9][0-9]{0,1}%,\s?){2}([1-9][0-9]{0,1}%)\)"> |
|
34 </xs:pattern> |
|
35 </xs:restriction> |
|
36 </xs:simpleType> |
|
37 </xs:attribute> |
|
38 </xs:complexType> |
|
39 </xs:element> |
|
40 </xs:sequence> |
|
41 <xs:attribute type="xs:string" name="default" use="optional" /> |
|
42 <xs:attribute type="xs:string" name="label" use="optional" /> |
|
43 </xs:complexType> |
|
44 </xs:element> |
|
45 </xs:schema> |