Changeset 784:67c4056bdcba
- Timestamp:
- 10/15/09 11:33:34 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@785
- Message:
-
docUri and date are now attributes of observationresponse
+ changed namespace
- Location:
- WebContent/WEB-INF/resources/schemas
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r780
|
r784
|
|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | 2 | <xs:schema |
| | 3 | xmlns="http://www.w3.org/unicorn/2009/10/observationresponse" |
| 3 | 4 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 | | elementFormDefault="qualified" |
| 5 | | targetNamespace="http://www.w3.org/unicorn/observationresponse" |
| 6 | | xmlns="http://www.w3.org/unicorn/observationresponse"> |
| | 5 | targetNamespace="http://www.w3.org/unicorn/2009/10/observationresponse" |
| | 6 | elementFormDefault="qualified"> |
| 7 | 7 | <xs:import |
| 8 | 8 | namespace="http://www.w3.org/XML/1998/namespace" |
| … |
… |
|
| 33 | 33 | </xs:restriction> |
| 34 | 34 | </xs:simpleType> |
| 35 | | <xs:simpleType name="status.type"> |
| 36 | | <xs:restriction base="xs:token"> |
| 37 | | <xs:pattern value="passed|failed|undef"/> |
| 38 | | </xs:restriction> |
| 39 | | </xs:simpleType> |
| 40 | 35 | |
| 41 | 36 | <!-- Complex Types --> |
| | 37 | <xs:complexType name="status.type"> |
| | 38 | <xs:attribute name="value"> |
| | 39 | <xs:simpleType> |
| | 40 | <xs:restriction base="xs:token"> |
| | 41 | <xs:pattern value="passed|failed|undef"/> |
| | 42 | </xs:restriction> |
| | 43 | </xs:simpleType> |
| | 44 | </xs:attribute> |
| | 45 | <xs:attribute name="rating" type="percent.type"/> |
| | 46 | </xs:complexType> |
| | 47 | |
| 42 | 48 | <xs:complexType mixed="true" name="description.type"> |
| 43 | 49 | <xs:sequence> |
| … |
… |
|
| 89 | 95 | <xs:complexType> |
| 90 | 96 | <xs:sequence> |
| 91 | | <xs:group ref="meta"/> |
| | 97 | <xs:element name="status" type="status.type" minOccurs="0"/> |
| 92 | 98 | <xs:group ref="messages" maxOccurs="unbounded"/> |
| 93 | 99 | </xs:sequence> |
| | 100 | <xs:attribute name="ref" use="required"/> |
| | 101 | <xs:attribute name="date"/> |
| 94 | 102 | </xs:complexType> |
| 95 | 103 | </xs:element> |
| 96 | 104 | |
| 97 | 105 | <!-- Groups --> |
| 98 | | <xs:group name="meta"> |
| 99 | | <xs:sequence> |
| 100 | | <xs:element name="docURI" type="xs:anyURI"/> |
| 101 | | <xs:element name="date" type="xs:date" minOccurs="0"/> |
| 102 | | <xs:element name="status" type="status.type"/> |
| 103 | | <xs:element name="rating" type="percent.type" minOccurs="0"/> |
| 104 | | </xs:sequence> |
| 105 | | </xs:group> |
| 106 | | |
| 107 | 106 | <xs:group name="messages"> |
| 108 | 107 | <xs:choice> |
-
|
r781
|
r784
|
|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | | <observationresponse xmlns="http://www.w3.org/unicorn/observationresponse" |
| | 2 | <observationresponse xmlns="http://www.w3.org/unicorn/2009/10/observationresponse" |
| 3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | | xsi:schemaLocation="http://www.w3.org/unicorn/observationresponse ./observer-response2.xsd"> |
| | 4 | xsi:schemaLocation="http://www.w3.org/unicorn/2009/10/observationresponse ./observer-response2.xsd" |
| | 5 | ref="http://doc.uri" date="2009-10-14"> |
| 5 | 6 | |
| 6 | | <docURI>http://doc.uri</docURI> |
| 7 | | <date>2009-10-14</date> <!-- Valeurs: YYYY-MM-DD --> |
| 8 | | |
| 9 | | <status>failed</status> <!-- Valeurs: failed|passed|undef --> |
| 10 | | <rating>50</rating> <!-- Optional - Valeurs: int 0-100 --> |
| | 7 | <status value="failed" rating="50"/> |
| 11 | 8 | |
| 12 | 9 | <group name="group1"> |
| … |
… |
|
| 17 | 14 | <title>child group</title> |
| 18 | 15 | <description> |
| | 16 | sdf |
| 19 | 17 | <h1 id="id" class="class">title</h1> |
| | 18 | dd |
| 20 | 19 | <h2></h2> |
| 21 | 20 | <h3></h3> |