2006/unicorn/WebContent/tutorial test_1.xml,NONE,1.1 test_4.xml,NONE,1.1 test_3.xml,NONE,1.1 test_2.xml,NONE,1.1

Update of /sources/public/2006/unicorn/WebContent/tutorial
In directory hutz:/tmp/cvs-serv6751/WebContent/tutorial

Added Files:
	test_1.xml test_4.xml test_3.xml test_2.xml 
Log Message:
renamed folder test to tutorial

--- NEW FILE: test_2.xml ---
<?xml version="1.0" ?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2009/10/unicorn/observationresponse http://dev.w3.org/2006/unicorn/WebContent/WEB-INF/resources/schemas/observer-response2.xsd"
	xml:lang="en" ref="test/test_2.xml">
	
	<status value="failed" rating="20" />
	
	<message type="info"> 
		<title>This is an example observation that demonstrates the use of status and message elements</title> 
		<description>Source file for this validation is located <a href="test/test_2.xml">here.</a> See <a href="check?ucn_uri=localhost:8080/unicorn/test/test_1.xml&amp;ucn_task=test">previous</a> or <a href="./check?ucn_uri=localhost:8080/unicorn/test/test_3.xml&amp;ucn_task=test">next example</a>.</description> 
	</message> 
	
	<message type="info"> 
		<title>The status element</title>
		<description>
			To define whether your validation is passed or not you must use a <em>status</em> element at the beginning or the end of the <em>observationresponse</em> element.<br />
			The status element has two optional attributes. The <em>value</em> attribute can be one of <em>passed</em>, <em>failed</em>, or <em>undef</em>.<br />
			Passed, failed, and undefined observations will display respectively in green, red, or blue.<br />
			If you don't set any status element the observation will be considered failed if there are any error messages or undefined otherwise.<br />
			The <em>rating</em> attribute is used to give the document a score on 100 (set to 20 in this example).
		</description> 
	</message>
	
	<message type="info"> 
		<title>The message element</title> 
		<description>
			There are 3 message types: <em>info</em>, <em>warning</em>, and <em>error</em>. The message type is defined by the required <em>type</em> attribute. Information messages appear first, then errors and warnings, regardless in which order they are in the response file.<br />
			There are four other optional attributes:
			<ul>
				<li><em>xml:lang</em>, the language of the message. If not set it is inherited from parent elements.</li>
				<li><em>ref</em>, the URI of the document that the message relates to, inherited from parent elements.</li>
				<li><em>level</em>, the severity of the message, 0 being the most severe and the default level.</li>
				<li><em>group</em>, the group of the message (explained in another example).</li>
			</ul>
			A message is composed of (in order):
			<ul>
				<li>zero, one or more <em>context</em> elements.</li>
				<li>a required <em>title</em> element which must contain simple text.</li>
				<li>an optional <em>description</em> element.</li>
			</ul>
		</description> 
	</message> 
	
	<message type="error"> 
		<title>A simple error message</title>
	</message>
	
	<message type="warning"> 
		<title>A simple warning message</title>
		<description>Warnings are hidden by default.</description>
	</message>
	
	<message type="error" ref="http://www.w3.org"> 
		<title>An error message that overrides the ref attribute (set to http://www.w3.org)</title>
		<description>Messages are sorted by alphabetical order of their <em>ref</em> attribute.</description>
	</message>
	
</observationresponse>
--- NEW FILE: test_3.xml ---
<?xml version="1.0" ?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2009/10/unicorn/observationresponse http://dev.w3.org/2006/unicorn/WebContent/WEB-INF/resources/schemas/observer-response2.xsd"
	xml:lang="en" ref="test/test_3.xml">
	
	<message type="info"> 
		<title>This is an example observation that demonstrates the use of context and description elements</title> 
		<description>Source file for this validation is located <a href="test/test_3.xml">here.</a> See <a href="check?ucn_uri=localhost:8080/unicorn/test/test_2.xml&amp;ucn_task=test">previous</a> or <a href="./check?ucn_uri=localhost:8080/unicorn/test/test_4.xml&amp;ucn_task=test">next example</a>.</description> 
	</message> 
	
	<message type="info"> 
		<title>The context element</title>
		<description>
			A message can have zero, one or more associated contexts. Context content is simple text.<br />
			Context elements can have seven optional attributes:
			<ul>
				<li><em>ref</em>, use to override the ref attribute of the message</li>
				<li><em>line</em>, the line of the context</li>
				<li><em>column</em>, the column of the context</li>
				<li><em>line-range</em>, if you prefer to specify a range of lines instead of a single line use this attribute (type is [0-9]+-[0-9]+)</li>
				<li><em>column-range</em>, same for columns</li>
				<li><em>position</em>, you can also explain the position of the context with this simple text attribute</li>
				<li><em>offset</em>, the offset of the context in the file (used for binary files)</li>
			</ul>
			Note that for now only <em>ref</em>, <em>line</em>, and <em>column</em> attributes are implemented in Unicorn output. Precedence of attributes on one another is not yet defined.
		</description> 
	</message>
	
	<message type="info"> 
		<title>The description element</title>
		<description>
			Messages can have a <em>description</em> element that can contain a subset of XHTML (subject to changes).<br />
			The allowed tags are:
			<em>address</em>,
			<em>blockquote</em>,
			<em>pre</em>,
			<em>h1</em>,
			<em>h2</em>,
			<em>h3</em>,
			<em>h4</em>,
			<em>h5</em>,
			<em>h6</em>,
			<em>div</em>,
			<em>p</em>,
			<em>abbr</em>,
			<em>acronym</em>,
			<em>cite</em>,
			<em>code</em>,
			<em>em</em>,
			<em>br</em>,
			<em>span</em>,
			<em>a</em>,
			<em>dt</em>,
			<em>dl</em>,
			<em>dd</em>,
			<em>ol</em>,
			<em>ul</em>,
			<em>li</em>,
			<em>img</em>.<br />
			Note that your code must be valid or Unicorn won't parse your response.<br />
			No all attributes are allowed (e.g. the style attribute). You can request your descriptions to be formated a certain way when your tool is integrated into Unicorn.
		</description> 
	</message>
	
	<message type="error">
		<context>a simple context</context>
		<title>An error message with a simple context</title>
	</message>
	
	<message type="error">
		<context>a context</context>
		<context>a second context</context>
		<context line="1" column="1">a third context with line and column attributes</context>
		<title>An error message with mutiple contexts</title>
	</message>
	
	<message type="error">
		<context>context 1</context>
		<context>context 2</context>
		<context ref="http://www.w3.org">context 3 that overrides the ref attribute</context>
		<context>context 4</context>
		<context>context 5</context>
		<context>context 6</context>
		<context>context 7</context>
		<context>context 8</context>
		<context>context 9</context>
		<context>context 10</context>
		<context>context 11</context>
		<context>context 12</context>
		<context>context 13</context>
		<context>context 14</context>
		<context>context 15</context>
		<context>context 16</context>
		<context>context 17</context>
		<title>An error message with more than seven contexts and a XHTML description</title>
		<description>
			<div>After the first seven, contexts are hidden by default.</div>
			<img src="http://www.w3.org/2008/site/images/logo-w3c-mobile-lg" alt="W3C Logo" />
			<p class="class_attribute">
				The World Wide Web Consortium (W3C) is an international community where <a href="#">Member organizations</a>, 
				a full-time <a href="#">staff</a>, and the public work together to develop <a href="#">Web standards</a>. 
				Led by Web inventor <a href="#">Tim Berners-Lee</a> and <acronym title="Chief Executive Officer">CEO</acronym> <a href="#">Jeffrey Jaffe</a>, 
				W3C's mission is to lead the Web to its full potential. <a href="#">Contact W3C</a> for more information.
			</p>
		</description>
	</message>
	
	<status value="passed" /> 
	
</observationresponse>
--- NEW FILE: test_4.xml ---
<?xml version="1.0" ?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2009/10/unicorn/observationresponse http://dev.w3.org/2006/unicorn/WebContent/WEB-INF/resources/schemas/observer-response2.xsd"
	xml:lang="en" ref="test/test_4.xml">
	
	<group name="group1">
		<title>A group</title>
		<description>
			The group <acronym title="Extensible HyperText Markup Language">XHTML</acronym> description.
		</description>
	</group>
	
	<message type="info" group="group1"> 
		<title>This is an example observation that demonstrates the use of list and group elements</title> 
		<description>Source file for this validation is located <a href="test/test_4.xml">here.</a> See <a href="check?ucn_uri=localhost:8080/unicorn/test/test_3.xml&amp;ucn_task=test">previous example</a>.</description> 
	</message> 
	
	<message type="info" group="group1"> 
		<title>The group element</title>
		<description>
			You can define groups anywhere in your response. If a response contains a group, Unicorn identifies a message type (info, warning or error) by an icon next to the message title.<br />
			A group element contains a required <em>title</em> element and an optional <em>description</em> element.<br />
			It has two attributes: 
			<ul>
				<li>a required <em>name</em> attribute which is a unique identifier of the group</li>
				<li>an optional <em>parent</em> attribute which is used to nest a group inside another</li>
			</ul>
			A message is associated to a group by its <em>group</em> attribute. 
		</description>
	</message>
	
	<message type="info" group="group1"> 
		<title>The list element</title>
		<description>
			If you have a large list of messages that share the same <em>ref</em> or <em>group</em> attribute you can nest them inside a <em>list</em> element that will define these attributes for all containing messages.<br />
			Nevertheless a message contained in a list can override one of both of these attributes.
		</description> 
	</message>
	
	<message type="error"> 
		<title>This is an error message with no group attribute</title>
		<description>
			If a message does not have any <em>group</em> attribute it is associated with the first group defined in the response.
		</description> 
	</message>
	
	<group name="group2">
		<title>Another group</title>
	</group>
	
	<group name="group3" parent="group2">
		<title>A nested group</title>
		<description>Description</description>
	</group>
	
	<group name="group4" parent="group2">
		<title>Another nested group</title>
		<description>Description</description>
	</group>
	
	<list group="group3" ref="http://www.w3.org">
	
		<message type="warning">
			<title>A warning inside a list element</title>
		</message>
		
		<message type="info" ref="http://www.w3.org/standards/">
			<title>Information</title>
		</message>
		
		<message type="error" group="group4">
			<title>Error</title>
		</message>
	
	</list>
	
</observationresponse>
--- NEW FILE: test_1.xml ---
<?xml version="1.0" ?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2009/10/unicorn/observationresponse http://dev.w3.org/2006/unicorn/WebContent/WEB-INF/resources/schemas/observer-response2.xsd"
	xml:lang="en" ref="test/test_1.xml">

	<message type="info"> 
		<title>This is a simple observation.</title> 
		<description>Source file for this validation is located <a href="test/test_1.xml">here.</a> See <a href="check?ucn_uri=localhost:8080/unicorn/test/test_2.xml&amp;ucn_task=test">next example</a>.</description> 
	</message> 

	<message type="info"> 
		<title>Unicorn uses a custom XML format.</title>
		<description>You can find the XML schema file for Unicorn <a href="http://dev.w3.org/2006/unicorn/WebContent/WEB-INF/resources/schemas/observer-response2.xsd">here.</a></description> 
	</message>

	<message type="info"> 
		<title>The root element of a Unicorn response file is an observationresponse element.</title> 
		<description>
			It has two required attributes: the <em>xml:lang</em> attribute and a <em>ref</em> attribute which are respectively the default language and URI of the checked document. Both can be overridden.<br />
			It contains an optional <em>status</em> element and some <em>message</em> elements. 
		</description>
	</message> 

</observationresponse>

Received on Monday, 17 May 2010 12:37:38 UTC