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 22075 invoked from network); 17 Jan 2000 19:00:19 -0000 Received: from taz.hyperreal.org (HELO hyperreal.org) (209.133.83.16) by 63.211.145.10 with SMTP; 17 Jan 2000 19:00:19 -0000 Received: (qmail 21572 invoked by uid 2016); 17 Jan 2000 19:00:19 -0000 Delivered-To: apcore-xml-cocoon-cvs@apache.org Received: (qmail 21564 invoked from network); 17 Jan 2000 19:00:15 -0000 Received: from unknown (HELO locus.apache.org) (63.211.145.10) by taz.hyperreal.org with SMTP; 17 Jan 2000 19:00:15 -0000 Received: (qmail 22061 invoked by uid 1010); 17 Jan 2000 19:00:14 -0000 Date: 17 Jan 2000 19:00:14 -0000 Message-ID: <20000117190014.22060.qmail@locus.apache.org> From: stefano@locus.apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/src/org/apache/cocoon/formatter WMLFormatter.java stefano 00/01/17 11:00:14 Modified: src/org/apache/cocoon/formatter WMLFormatter.java Log: Most WAP clients don't like the encoding specified... note that the sitemap will allow better control over this without recompilation. Revision Changes Path 1.5 +3 -2 xml-cocoon/src/org/apache/cocoon/formatter/WMLFormatter.java Index: WMLFormatter.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/formatter/WMLFormatter.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- WMLFormatter.java 2000/01/06 17:57:50 1.4 +++ WMLFormatter.java 2000/01/17 19:00:14 1.5 @@ -1,4 +1,4 @@ -/*-- $Id: WMLFormatter.java,v 1.4 2000/01/06 17:57:50 stefano Exp $ -- +/*-- $Id: WMLFormatter.java,v 1.5 2000/01/17 19:00:14 stefano Exp $ -- ============================================================================ The Apache Software License, Version 1.1 @@ -59,7 +59,7 @@ /** * @author Stefano Mazzocchi - * @version $Revision: 1.4 $ $Date: 2000/01/06 17:57:50 $ + * @version $Revision: 1.5 $ $Date: 2000/01/17 19:00:14 $ */ public class WMLFormatter extends AbstractFormatter implements Status { @@ -75,6 +75,7 @@ format.setMethod(Method.XML); format.setOmitXMLDeclaration(false); format.setPreserveSpace(false); + format.setEncoding(null); format.setDoctype("-//WAPFORUM//DTD WML 1.1//EN", "http://www.wapforum.org/DTD/wml_1.1.xml"); Serializer serializer = this.factory.makeSerializer(writer, format); serializer.asDOMSerializer().serialize(document);