You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@locus.apache.org on 2000/01/17 20:00:14 UTC
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 <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @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);