[ZCM] [ZC] 2297/ 2 Reject "Five.browser.pagetemplatefile should special-case XML"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Thu, 12 Apr 2007 12:16:23 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2297 Update (Reject) "Five.browser.pagetemplatefile should special-case XML"
Status Rejected, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2297
==============================================================
= Reject - Entry #2 by mj on Apr 12, 2007 12:16 pm
Status: Pending => Rejected
On closer inspection, I was wrong, and XML is already special-cased.
________________________________________
= Request - Entry #1 by mj on Mar 23, 2007 9:14 am
When creating a pagetemplate from a file, in Zope2, CMFCore and Zope3 the loading code detects XML templates by looking for a XML prolog ("<?xml..."), after which the content type is set to text/xml. This is important because PageTemplate rendering differs between XML and HTML content types.
Five's implementation doesn't do this, causing XML templates to be treated as HTML, including serving them as text/html and lowercasing all element names. As a result one cannot create a XML view in Zope 2 using Z3 views.
==============================================================