W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2007

2002/css-validator/org/w3c/css/css soap12.properties,1.3,1.4

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 06 Aug 2007 13:51:13 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1II2zJ-0002YK-Lx@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv9778/org/w3c/css/css

Modified Files:
	soap12.properties 
Log Message:
Changing the soap12 output so there are more information about the errors

Index: soap12.properties
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/soap12.properties,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- soap12.properties	31 Jul 2007 09:50:55 -0000	1.3
+++ soap12.properties	6 Aug 2007 13:51:11 -0000	1.4
@@ -12,11 +12,24 @@
             <m:result>
                 <m:errors xml:lang="$lang">
                     <m:errorcount>$errors_count</m:errorcount>
+#set ( $sf = "" )
 #if ( $errors_count > 0 )
     #foreach ( $error_content in $errors_content )
         #set ( $err = $error_content.get("Error") )
         #set ( $error_msg = $error_content.get("ErrorMsg") )
         #set ( $class_name = $error_content.get("ClassName") )
+        #set ( $context_msg = $error_content.get("CtxMsg") )
+        #if ( $error_content.get("link_value_parse_error") )
+            #set ( $before_link = $error_content.get("link_before_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
         #if ( $sf != $err.SourceFile )
             #if ( $open )
                     
@@ -32,7 +45,27 @@
                         <m:error>
                             <m:line>$err.Line</m:line>
                             <m:errortype>$class_name</m:errortype>
-                            <m:message>$error_msg</m:message>
+                            #if ( $context_msg )<m:context> $context_msg </m:context>#end
+        #if ( $span_value )
+            #set ( $span_class = $error_content.get("span_class_parse_error") )
+
+                            <m:errorsubtype>
+                                $span_class
+                            </m:errorsubtype>
+                            <m:skippedstring>
+                                $span_value
+                            </m:skippedstring>
+        #end
+
+                            <m:message>
+        #if ( $link_value )
+            #set ( $link_name = $error_content.get("link_name_parse_error") )
+
+                                $before_link :  $link_name ($link_value)
+        #end
+
+                                $error_msg
+                            </m:message>
                         </m:error>
     #end
     #if ( $open )
Received on Monday, 6 August 2007 13:51:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:24 UTC