[ZCM] [ZC] 1144/ 8 Resolve "Mixedcase attributes converted to Lowercase in ZPT"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #1144 Update (Resolve) "Mixedcase attributes converted to Lowercase in ZPT"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1144

==============================================================
= Resolve - Entry #8 by ajung on Jan 13, 2007 10:45 am

 Status: Pending => Resolved

Can not longer be reproduced with Zope 2.10.2
________________________________________
= Assign - Entry #7 by ajung on Feb 2, 2004 11:19 am

 Status: Accepted => Pending

 Supporters removed: ajung

removing my assignment (was a mistake :-))
________________________________________
= Comment - Entry #6 by chrisw on Feb 2, 2004 11:16 am

Why is HTMLParser.py being used for XML?

Setting the content type or the ZPT to text/xml might just solve this...
________________________________________
= Accept - Entry #5 by ajung on Jan 31, 2004 11:31 am

 Status: Pending => Accepted

 Supporters added: ajung

I can confirm the problem. There is some code in HTMLParser.py
that converts all tags and attributes unconditionally to lowercase.
This is acceptable for HTML but not for XML since tag and attribute names are case sensitive. Other code in TAL makes a distinguishes between XML mode and HTML and converts only to lower-case
if the mode is not XML. 
________________________________________
= Comment - Entry #4 by brazbayu on Jan 31, 2004 10:56 am

Note:  I'm currently using V2.7.0-rc1 and CMF V1.4.2
________________________________________
= Comment - Entry #3 by brazbayu on Jan 31, 2004 10:52 am


Uploaded:  "small_example.txt"
 - http://www.zope.org/Collectors/Zope/1144/small_example.txt/view
I've attached a *small* example.
________________________________________
= Comment - Entry #2 by ajung on Dec 6, 2003 3:10 am

Can you please reduce the example to a *small* testcase.
________________________________________
= Request - Entry #1 by brazbayu on Dec 5, 2003 5:09 pm


Uploaded:  "TAL_Bug.txt"
 - http://www.zope.org/Collectors/Zope/1144/TAL_Bug.txt/view
  In the process of using ZPT's as XML templates I discovered that it converts all the attributes for an element to lowercase.  For example, an attribute called 'spaceBefore' would be converted to 'spacebefore'.

  See attached file for example.
==============================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.