Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 37379 invoked from network); 27 Jan 2000 18:06:56 -0000 Received: from mailout02.sul.t-online.de (194.25.134.17) by 63.211.145.10 with SMTP; 27 Jan 2000 18:06:56 -0000 Received: from fwd03.sul.t-online.de by mailout02.sul.t-online.de with smtp id 12DtJ9-0004P4-07; Thu, 27 Jan 2000 19:06:15 +0100 Received: from owlglass (07219553084-0001@[62.156.37.221]) by fwd03.sul.t-online.de with smtp id 12DtIz-0IxY4uC; Thu, 27 Jan 2000 19:06:05 +0100 From: j.her@t-online.de (Juergen Hermann) To: "Cocoon Developers" Date: Thu, 27 Jan 2000 19:06:31 +0100 Reply-To: "Juergen Hermann" Priority: Normal X-Mailer: PMMail 98 Standard (2.00.1500) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Stylebook change for Xerces-current Message-ID: <12DtIz-0IxY4uC@fwd03.sul.t-online.de> X-Sender: 07219553084-0001@t-dialin.net 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 +}