You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Juergen Hermann <j....@t-online.de> on 2000/01/27 19:06:31 UTC
Stylebook change for Xerces-current
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
+}
Re: Stylebook change for Xerces-current
Posted by Pierpaolo Fumagalli <pi...@apache.org>.
Juergen Hermann wrote:
>
> Hi!
>
> I had to add the following patch to get stylebook to compile with the current Xerces CVS.
>
Thanks... I'll place it in the main distribution... And produce a B3
Pier
--
--------------------------------------------------------------------
- P I E R -
stable structure erected over water to allow the docking of seacraft
<ma...@betaversion.org> <http://www.betaversion.org/~pier/>
--------------------------------------------------------------------
- ApacheCON Y2K: Come to the official Apache developers conference -
-------------------- <http://www.apachecon.com> --------------------