cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <leo.su...@inspireinfrastructure.com>
Subject [Patch] WML Serialization, part 2
Date Wed, 11 Jul 2001 18:39:29 GMT
It appears that while Nokia phones require ASCII encoding of the WML data,
the phones do not like the <?xml encoding="ASCII"?> header, complaining
about an unsupported encoding. The short-term solution that I've come up
with is to simply omit the XML declaration.

The patch below fixes this problem. I've tested with the 7110 (both) and
6210 emulators.

/LS

--- sitemap_orig_1.xmap       Wed Jul 11 20:36:51 2001

+++ sitemap.xmap Wed Jul 11 20:36
:32 2001
@@ -50,6 +50,7 @@
     <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>

<doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
     <encoding>ASCII</encoding>
+    <omit-xml-declaration>yes</omit-xml-declaration>
    </map:serializer>
    <map:serializer name="svgxml" mime-type="image/svg-xml"
src="org.apache.cocoon.serialization.XMLSerializer">
     <doctype-public>-//W3C//DTD SVG 20000303 Stylable//EN</doctype-public>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message