- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 18 Sep 2007 17:58:40 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv7795
Modified Files:
XMLStyleSheetHandler.java
Log Message:
using unicode nput stream to solve the BOM issue
Index: XMLStyleSheetHandler.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/XMLStyleSheetHandler.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- XMLStyleSheetHandler.java 13 Jul 2007 13:32:19 -0000 1.25
+++ XMLStyleSheetHandler.java 18 Sep 2007 17:58:37 -0000 1.26
@@ -48,693 +48,705 @@
* @author Philippe Le Hegaret
*/
public class XMLStyleSheetHandler implements ContentHandler, LexicalHandler,
- ErrorHandler, EntityResolver {
-
- static String XHTML_NS = "http://www.w3.org/1999/xhtml";
+ ErrorHandler, EntityResolver {
- private static long autoIdCount;
+ static String XHTML_NS = "http://www.w3.org/1999/xhtml";
[...1268 lines suppressed...]
+ value.append('"');
+ } else if ("apos".equals(entity)) {
+ value.append('\'');
+ } else {
+ return table;
+ }
+ state -= 10;
+ break;
+ default:
+ return table;
+ }
+ }
+ current++;
}
+ if (name.length() != 0 && value.length() != 0) {
+ table.put(name.toString(), value.toString());
+ }
+ return table;
+ }
}
Received on Tuesday, 18 September 2007 17:58:47 UTC