[ZPT] including text/xml templates inside a text/html template changes Content-Type

Casey Duncan casey@zope.com
Wed, 29 Jan 2003 13:13:33 -0500


What version of Zope is this? This behavior was changed somewhere around =
when=20
2.6 came out. I don't remember if it made it into 2.6.0 though.

-Casey

On Wednesday 29 January 2003 11:37 am, Troy Farrell wrote:
> Hi guys (and ladies.)
> I've observed a most unusual occurance (or perhaps not.)
>=20
> http://www.studyshare.net/dailyverse/
>=20
> I have a pt (index_html) that is text/html.  Inside this template, I=20
> have something like this, twice:
>=20
> <pre tal:content=3D"here/complex_dv_doc"></pre>
>=20
> This basically includes another template from the same folder.  In this=
=20
> case, complex_dv_doc is a text/xml document which is html quoted=20
> automatically (because I didn't use structure).  As those of you using=20
> IE will notice, this results in the Apache <- PCGI <- Zope monster=20
> returning my html document as Content-Type: text/xml.  Since I use=20
> Mozilla/Linux all the time, I never noticed until a user told me my sit=
e=20
> had problems :(
>=20
> My question is this:  Is that normal?  If so, what should I do to fix i=
t?
>=20
> Troy
>=20
>=20
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>=20