W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/css StyleSheetGenerator.java,1.22,1.23 xhtml.properties,1.28,1.29

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 13 Feb 2009 14:03:38 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LXydm-0001XB-Er@lionel-hutz.w3.org>

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

Modified Files:
	StyleSheetGenerator.java xhtml.properties 
Log Message:
Imports are now printed in the output
Namespace handling, they are now printed in the output, next step
is to add them to the context to be checked when a definition using them
matches.



Index: xhtml.properties
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/xhtml.properties,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- xhtml.properties	5 Feb 2009 14:49:21 -0000	1.28
+++ xhtml.properties	13 Feb 2009 14:03:36 -0000	1.29
@@ -239,12 +239,13 @@
     #foreach ( $rules in $at_rules_list )
         #if ( $rules.AtRule != "" )
 
+	    #if ( $rules.Empty )
+                <div class='vEmptyAtRule'>$rules.AtRule
+	    #else   
                 <div class='atRule'>
                     <span class='atSelector'>
                         $rules.AtRule
                     </span>
-            #if ( !$rules.Empty )
-
                     {
             #end
         #end

Index: StyleSheetGenerator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGenerator.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- StyleSheetGenerator.java	21 Jan 2009 18:16:37 -0000	1.22
+++ StyleSheetGenerator.java	13 Feb 2009 14:03:36 -0000	1.23
@@ -5,6 +5,7 @@
 import java.io.PrintWriter;
 import java.net.URL;
 import java.text.SimpleDateFormat;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.Enumeration;
 import java.util.HashMap;
@@ -130,16 +131,18 @@
         }
 		
         if (ac.getLink() != null) {
-            HashMap[] languages = new HashMap[Messages.languages_name.size()];
+	    int arraysize = Messages.languages_name.size();
+	    ArrayList<HashMap<String,String>> languages;
+	    languages = new ArrayList<HashMap<String,String>>(arraysize);
             String name;
-            for (int i = 0; i < Messages.languages_name.size(); ++i) {
+            for (int i = 0; i < arraysize; ++i) {
                 name = String.valueOf(Messages.languages_name.get(i));
                 HashMap<String,String> l = new HashMap<String,String>();
                 l.put("name", name);
                 l.put("real", ((Utf8Properties) Messages.languages.get(name)).getProperty("language_name"));
-                languages[i] = l;
+		languages.add(i, l);
             }
-            context.put("languages", languages);
+            context.put("languages", languages.toArray());
             String link = ac.getLink().replaceAll("&lang=.*&", "&");
             link = link.replaceAll("&lang=.*$", "");
             context.put("link", "?" + link.replaceAll("&", "&amp;"));
Received on Friday, 13 February 2009 14:03:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT