You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leo Sutic <le...@inspireinfrastructure.com> on 2001/07/11 20:39:29 UTC

[Patch] WML Serialization, part 2

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


RE: [Patch] WML Serialization, part 2

Posted by Leo Sutic <le...@inspireinfrastructure.com>.
Checked.

Thanks. 

/LS

> -----Original Message-----
> From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> Sent: den 12 juli 2001 08:51
> To: cocoon-dev@xml.apache.org
> Subject: AW: [Patch] WML Serialization, part 2
> 
> 
> Thanks for your patch!
> 
> I applied it, please cross check.
> 
> Carsten


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


AW: [Patch] WML Serialization, part 2

Posted by Carsten Ziegeler <cz...@sundn.de>.
Thanks for your patch!

I applied it, please cross check.

Carsten

> -----Ursprüngliche Nachricht-----
> Von: Leo Sutic [mailto:leo.sutic@inspireinfrastructure.com]
> Gesendet: Mittwoch, 11. Juli 2001 20:39
> An: Cocoon Developer's List
> Betreff: [Patch] WML Serialization, part 2
>
>
> 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
>


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