<?xml version='1.0' encoding="$charset"?>
<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse" ref="$esc.xml($file_title)" date="$currentdate" xml:lang="$lang">

#if ($is_valid == "true")
<status value="passed"/>
#end

#if ($errors_count == 0)
<message type="info">
	<title>$doc_validates_before_link <a href="$css_link">$css</a>$doc_validates_after_link</title>
	<description>
		<p>$no_errors_interoperable_msg</p>
		<img class="inline-badge" height="31" width="88" src="//jigsaw.w3.org/css-validator/images/vcss" alt="$valid_CSS" />
		<pre><code>&lt;p&gt;
	&lt;a href="http://jigsaw.w3.org/css-validator/check/referer"&gt;
		&lt;img style="border:0;width:88px;height:31px"
			src="//jigsaw.w3.org/css-validator/images/vcss"
			alt="$valid_CSS" /&gt;
	&lt;/a&gt;
&lt;/p&gt;</code></pre>
		<img class="inline-badge" height="31" width="88" src="//jigsaw.w3.org/css-validator/images/vcss-blue" alt="$valid_CSS" />
		<pre><code>&lt;p&gt;
	&lt;a href="http://jigsaw.w3.org/css-validator/check/referer"&gt;
		&lt;img style="border:0;width:88px;height:31px"
			src="//jigsaw.w3.org/css-validator/images/vcss-blue"
			alt="$valid_CSS" /&gt;
	&lt;/a&gt;
&lt;/p&gt;</code></pre>
		<p>($no_errors_close_tags_msg)<br/>
		$no_errors_dl_local_msg</p>
	</description>
</message>
#end

#foreach ($error_content in $errors_content)
#set ($err = $error_content.get("Error"))
#if ($error_content.get("link_value_parse_error"))
#set ($link_value = $error_content.get("link_value_parse_error"))
#else #set ($link_value = false ) #end
#if ($error_content.get("span_value_parse_error"))
#set ($span_value = $error_content.get("span_value_parse_error"))
#else #set ($span_value = false) #end

#set ($errSource = $esc.xml($err.SourceFile))

<message type="error" #if ($errSource != $file_title)ref="$errSource"#end>
	<context #if ($err.Line && $err.line > 0)line="$err.Line"#end>$esc.xml($!error_content.get("CtxMsg"))</context>
	<title>
#if ( $link_value )
		$error_content.get("link_before_parse_error") :  $error_content.get("link_name_parse_error") ($link_value)
#end
		$esc.xml($error_content.get("ErrorMsg"))
#if ( $span_value )
		$esc.xml($span_value)
#end
	</title>
        <typeid>
                $esc.xml($error_content.get("Type"))
        </typeid>
</message>
#end

#foreach ($warning in $warnings_list)
#if ($warning.Level <= $warning_level)
#set ($warningSource = $esc.xml($warning.SourceFile))
<message type="warning" level="$warning.Level" #if ($warningSource != $file_title)ref="$esc.xml($warningSource)"#end>
	<context line="$!warning.Line" >#if ( $warning.Context ) $esc.xml($!warning.Context) #end</context>
	<title>$esc.xml($warning.WarningMessage)</title>
        <typeid>$esc.xml($warning.Type)</typeid>
</message>
#end
#end

</observationresponse>
