W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2010

unicorn commit: + xml.error template

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 23 Sep 2010 18:46:24 +0000
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1OyqoK-0001mU-3c@blinky.w3.org>
changeset:   1515:1ddf77713a91
tag:         tip
user:        Thomas Gambet <tgambet@w3.org>
date:        Thu Sep 23 14:46:13 2010 -0400
files:       WebContent/WEB-INF/resources/templates/xml.error.vm
description:
+ xml.error template


diff -r b2a98fb633d4 -r 1ddf77713a91 WebContent/WEB-INF/resources/templates/xml.error.vm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebContent/WEB-INF/resources/templates/xml.error.vm	Thu Sep 23 14:46:13 2010 -0400
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<observationresponse xmlns="http://www.w3.org/2009/10/unicorn/observationresponse"
+					 ref="$unicorncall.getDocumentName()"
+					 date="$unicorncall.getDate()"
+					 xml:lang="$unicorncall.getLang()">
+
+<status value="undef"/>
+
+#set($lang = $unicorncall.getLang())
+#set($uri = $unicorncall.getDocumentName())
+
+#foreach ($message in $messages)
+#if ($message.Level == 0)
+#set ($level = "info")
+#elseif ($message.Level == 1)
+#set ($level = "warning") 
+#elseif ($message.Level == 2)
+#set ($level = "error") 
+#end
+<message type="$level">
+	<title>$message.getMessage($lang)</title>
+	#if ($message.Content)
+	<description><pre>#if($message.doEvaluateContent())#evaluate($message.Content)#else$!esc.html($message.Content)#end</pre></description>
+	#end
+</message>
+#end
+
+</observationresponse>
\ No newline at end of file
Received on Thursday, 23 September 2010 18:46:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC