2002/css-validator/org/w3c/css/css StyleReportSOAP12.java,1.10,1.11 soap12.properties.en,1.8,1.9

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

Modified Files:
	StyleReportSOAP12.java soap12.properties.en 
Log Message:
xml:lang added to the error and warning list

Index: soap12.properties.en
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/soap12.properties.en,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- soap12.properties.en	8 Aug 2005 13:37:40 -0000	1.8
+++ soap12.properties.en	14 Sep 2005 16:29:15 -0000	1.9
@@ -37,11 +37,11 @@
 \ \ \ \ \ \ <m:date><!-- #currentdate --></m:date>\n\
 \ \ \ \ \ \ <m:validity><!-- #isvalid --></m:validity>\n\
 \ \ \ \ \ \ <m:result>\n\
-\ \ \ \ \ \ \ \ <m:errors>\n\
+\ \ \ \ \ \ \ \ <m:errors xml:lang="<!-- #lang -->">\n\
 \ \ \ \ \ \ \ \ \ \ <m:errorcount><!-- #errors-count --></m:errorcount>\n\
 <!-- #error -->\n\
 \ \ \ \ \ \ \ \ </m:errors>\n\
-\ \ \ \ \ \ \ \ <m:warnings>\n\
+\ \ \ \ \ \ \ \ <m:warnings xml:lang="<!-- #lang -->">\n\
 \ \ \ \ \ \ \ \ \ \ <m:warningcount><!-- #warnings-count --></m:warningcount>\n\
 <!-- #warning -->\n\
 \ \ \ \ \ \ \ \ </m:warnings>\n\

Index: StyleReportSOAP12.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleReportSOAP12.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- StyleReportSOAP12.java	14 Sep 2005 15:14:17 -0000	1.10
+++ StyleReportSOAP12.java	14 Sep 2005 16:29:15 -0000	1.11
@@ -499,7 +499,16 @@
 		    } else {
 			out.println(ac.getMsg().getGeneratorString("doc"));
 		    }
-		} else {
+		} else if(entity.equals("lang")) {		    
+		    out.print(str.substring(0, i));
+		    str = str.substring(lastIndexOfEntity + 3);
+		    i = 0;
+		    String lang = ac.getContentLanguage();
+		    if(lang == null || lang.equals("")) {
+			lang = "en";
+		    }
+		    out.print(lang);
+		} else {		    
 		    String value = prop.getProperty(entity);
 		    if (value != null) {
 			str = str.substring(0, i) + value

Received on Wednesday, 14 September 2005 16:30:36 UTC