2002/css-validator/org/w3c/css/css CssValidator.java,1.7,1.8

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

Modified Files:
	CssValidator.java 
Log Message:
Getting the default css version through config file

Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssValidator.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CssValidator.java	7 Aug 2007 09:48:44 -0000	1.7
+++ CssValidator.java	13 Sep 2007 09:44:01 -0000	1.8
@@ -21,6 +21,7 @@
 import org.w3c.css.error.ErrorReport;
 import org.w3c.css.error.ErrorReportFactory;
 import org.w3c.css.parser.CssSelectors;
+import org.w3c.css.properties.PropertiesLoader;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.HTTPURL;
 import org.w3c.css.util.Utf8Properties;
@@ -57,7 +58,7 @@
 	 */
     public CssValidator() {	
 	params = new Hashtable();
-	params.put("profile", "css21");
+	params.put("profile", PropertiesLoader.config.getProperty("defaultProfile"));
 	params.put("medium", "all");
 	params.put("output", "text");
 	params.put("lang", "en");
@@ -121,10 +122,11 @@
 		style.ac.setCssVersion(profile);
 	    } else {
 		style.ac.setProfile(profile);
-		style.ac.setCssVersion("css21");
+		style.ac.setCssVersion(PropertiesLoader.config.getProperty("defaultProfile"));
 	    }
 	} else {
-	    style.ac.setCssVersion("css21");
+		style.ac.setProfile(profile);
+	    style.ac.setCssVersion(PropertiesLoader.config.getProperty("defaultProfile"));
 	}
 	
 	// medium to use

Received on Thursday, 13 September 2007 09:44:06 UTC