What you need to do is set your content header, with Webkit this is done
with a
self.response().setHeader('Content-type','application/xhtml+xml') command.
Also since I know that Cheetah browsers a lot from Webare, all you have to
is add that to the respond function prior to the first write statement of
your compiled cheetah template.
Hope this helps
Jose
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Pierre-Yves Delens
> Sent: Tuesday, March 22, 2005 12:17 AM
> To: [EMAIL PROTECTED]; webware-discuss
> Subject: [Webware-discuss] Webware-Cheetah for XUL
>
>
> Bonjour,
>
> we are building an app on XUL (Mozilla) for Firefox browser.
>
> The simple static code (see below) tested in XUL is working
> well, but not when processed via Cheetah compiling.
>
> What should we do ?
>
> Prior to test via Cheetah, we tested that a .xul template
> renamed in .XHTML was opening correctly in firefox : no
> problem. We noted also that our .tmpl template with plain xul
> code inside was opening correctly also.
>
> The bug comes out whren trying to call the .py generated
> script: displaying does happen, but the XUL button is ill
> displaied, which leads to suspect that the browser received
> the file as HTML.
>
> We observed that the generated code in .py is EXACTLY the
> same as int the original XUL or tmpl file.
>
> So I guess there is a problem of MIME type, or something like that.
>
> Can someone help ?
>
> Thanks on forward
>
> ___________________________________________________
> P-Y Delens, ing-arch. manager
> LIENTERFACES - PY Delens, sprl
> mail : [EMAIL PROTECTED]
> web : www.lienterfaces.be
> ___________________________________________________
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
>
> <window xmlns:html="http://www.w3.org/1999/xhtml"
> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> id="xfly-main" onload="startUp()" onunload="shutdown()"
> onclose="onClose()"> <description> des accentu�s
> </description> <box align="center"> <button label="hello
> xFly" onclick="alert('Hello World');"/>
>
> </box>
> </window>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real users. Discover which products truly live up to the
> hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
> _______________________________________________
> Webware-discuss mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/webware-discuss