cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j....@t-online.de (Juergen Hermann)
Subject Stylebook change for Xerces-current
Date Thu, 27 Jan 2000 18:06:31 GMT
Hi!

I had to add the following patch to get stylebook to compile with the current Xerces CVS.

Index: HTMLSerializer.java
===================================================================
RCS file: /home/cvspublic/xml-stylebook/src/org/apache/stylebook/printers/HTMLSerializer.java,v
retrieving revision 1.1
diff -u -r1.1 HTMLSerializer.java
--- HTMLSerializer.java	2000/01/03 16:56:48	1.1
+++ HTMLSerializer.java	2000/01/27 18:03:38
@@ -35,9 +35,15 @@
      */
     public void print(Document doc, CreationContext c, OutputStream out)
     throws CreationException, IOException {
+    /*
         OutputFormat f=new OutputFormat(OutputFormat.METHOD_XHTML,
                                         "US-ASCII",true);
         Serializer s=Serializer.makeSerializer(out,f);
         s.serialize(doc);
+    */
+        OutputFormat f=new OutputFormat(Method.XHTML,
+                                        "US-ASCII",true);
+        Serializer s=SerializerFactory.getSerializerFactory(Method.XHTML).makeSerializer(out,f);
+        s.asDOMSerializer().serialize(doc);
     }
-}
\ No newline at end of file
+}



Mime
View raw message