2002/css-validator/org/w3c/css/css StyleReportSOAP12.java,1.13,1.14 StyleSheetGeneratorHTML.java,1.6,1.7 StyleSheetGeneratorHTML2.java,1.17,1.18

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

Modified Files:
	StyleReportSOAP12.java StyleSheetGeneratorHTML.java 
	StyleSheetGeneratorHTML2.java 
Log Message:
Jean-Gui strikes back!
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2560 -> @media case insensitive
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3037 -> grammar correction
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2920
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2800
http://www.w3.org/Bugs/Public/show_bug.cgi?id=233
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2919
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2446
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3099

output parameter bug fixed:
        accepted values :
            * text/html and html
            * application/xhtml+xml and xhtml
            * application/soap+xml and soap12
            * everything else: text/plain

fixed a bug with SOAP output



Index: StyleSheetGeneratorHTML.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- StyleSheetGeneratorHTML.java	14 Sep 2005 15:14:17 -0000	1.6
+++ StyleSheetGeneratorHTML.java	19 Apr 2006 11:28:05 -0000	1.7
@@ -80,7 +80,7 @@
 			StyleSheet style, String document, int warningLevel) {
 	this.ac = ac;
 	this.style = style;
-		general = new Utf8Properties(setDocumentBase(getDocumentName(ac, document)));
+		general = new Utf8Properties(setDocumentBase(getDocumentName(ac, document)));	 
 	general.put("file-title", title);
 	warnings = style.getWarnings();
 	errors = style.getErrors();
@@ -483,8 +483,8 @@
 	out.flush();
     }
 
-	private Utf8Properties setDocumentBase(String document) {
-		Utf8Properties properties = (Utf8Properties) formats.get(document);
+    private Utf8Properties setDocumentBase(String document) {
+	Utf8Properties properties = (Utf8Properties) formats.get(document);
 	if (properties == null) {
 	    URL url;
 			properties = new Utf8Properties();

Index: StyleSheetGeneratorHTML2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- StyleSheetGeneratorHTML2.java	14 Sep 2005 15:14:17 -0000	1.17
+++ StyleSheetGeneratorHTML2.java	19 Apr 2006 11:28:05 -0000	1.18
@@ -90,8 +90,8 @@
 	}
 	this.ac = ac;
 	this.style = style;
-	general = new Utf8Properties(setDocumentBase(getDocumentName(ac, document)));
-	general.put("file-title", title);
+	general = new Utf8Properties(setDocumentBase(getDocumentName(ac, document))); 	 
+	general.put("file-title", title);	
 	warnings = style.getWarnings();
 	errors = style.getErrors();
 	items =  style.newGetRules();
@@ -244,7 +244,7 @@
 		ret.append(queryReplace(error.getExp().toString()));
 		ret.append("</span>\n");
 	    }
-	} else {
+	} else {            
 	    ret.append(ac.getMsg().getGeneratorString("unrecognize"));
 	    ret.append(" - <span class='error'>");
 	    ret.append(queryReplace(error.getSkippedString()));
@@ -518,8 +518,7 @@
 		printAvailableFormat(new PrintWriter(System.err));
 	    }
 	    formats.put(document, properties);
-	}
-
+	}	
 	return new Utf8Properties(properties);
     }
 
@@ -555,7 +554,7 @@
 	    System.err.println("Unable to find " + documentName
 		    + " output format");
 	    return documentName;
-	} else {
+	} else {    
 	    return document;
 	}
     }

Index: StyleReportSOAP12.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleReportSOAP12.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- StyleReportSOAP12.java	17 Oct 2005 08:47:52 -0000	1.13
+++ StyleReportSOAP12.java	19 Apr 2006 11:28:04 -0000	1.14
@@ -394,7 +394,9 @@
 //			}
 		    }
 		}
-		out.print("          </m:warninglist>");
+		if(open) {
+		    out.print("          </m:warninglist>");
+		}
 	    }
 	} catch (Exception e) {
 	    out.print("<m:processingerror>");

Received on Wednesday, 19 April 2006 11:28:17 UTC