2006/unicorn/WebContent/WEB-INF/resources/schemas test.xml,NONE,1.1 observer-response2.xsd,NONE,1.1

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/schemas
In directory hutz:/tmp/cvs-serv31250/WebContent/WEB-INF/resources/schemas

Added Files:
	test.xml observer-response2.xsd 
Log Message:
a very first version of the new output schema 

--- NEW FILE: test.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<observationresponse xmlns="http://www.w3.org/unicorn/observationresponse"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://www.w3.org/unicorn/observationresponse ./observer-response2.xsd">

	<passed>true</passed>
	  
	<rating>37</rating>
	  
	<list uri="http://www.w3.org/style.css">
		<message type="error">
			<context line="2" column="5">color: green</context>
			<context line="26" column="5">background-color: green</context>
			<context line="26" column="5">color: orange</context>
			<text>Color not supported</text>
			<description>
				blahqsd
			</description>
		</message>
		
		<message type="info">
			<context line="2" column="5">color: green</context>
			<context line="26" column="5">background-color: green</context>
			<context line="26" column="5">color: orange</context>
			<text>Color not supported</text>
			<description>
				blahqsd
			</description>
		</message>
		
		<message type="warning">
			<context line="2" column="5">color: green</context>
			<context line="26" column="5">background-color: green</context>
			<context line="26" column="5">color: orange</context>
			<text>Color not supported</text>
			<description>
				blahqsd
			</description>
		</message>
	</list>

</observationresponse>
--- NEW FILE: observer-response2.xsd ---
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified"
	targetNamespace="http://www.w3.org/unicorn/observationresponse"
	xmlns:m="http://www.w3.org/unicorn/observationresponse">
	<xs:import
		namespace="http://www.w3.org/XML/1998/namespace"
		schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	
	<xs:element name="observationresponse">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="passed" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
				<xs:element name="rating" type="m:ratingType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="list" type="m:listType" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:complexType name="listType">
		<xs:sequence>
			<xs:element name="message" type="m:messageType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="uri" type="xs:anyURI"/>
	</xs:complexType>
	
	<xs:complexType name="messageType">
        <xs:sequence>
			<xs:element name="context" type="m:contextType" minOccurs="0" maxOccurs="unbounded" />
			<xs:element name="text" type="xs:string" />
			<xs:element name="description" type="xs:string" />
		</xs:sequence>
		<xs:attribute name="type" type="m:messageTypeEnum"/>
	</xs:complexType>


	<xs:simpleType name="ratingType">
		<xs:restriction base="xs:int">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="100"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="messageTypeEnum">
		<xs:restriction base="xs:string">
			<xs:enumeration value="info"/>
			<xs:enumeration value="error"/>
			<xs:enumeration value="warning"/>
		</xs:restriction>
	</xs:simpleType>

    <xs:complexType name="descriptionType"/>


    <xs:complexType name="contextType">
    	<xs:simpleContent>
    		<xs:extension base="xs:string">

    			<xs:attribute name="line" type="xs:string"></xs:attribute>
    			<xs:attribute name="column" type="xs:string"></xs:attribute>
    		</xs:extension>
    	</xs:simpleContent>

    </xs:complexType>
</xs:schema>

Received on Thursday, 1 October 2009 17:59:00 UTC