On Dec 29, 2005, at 2:35 PM, Jeff Watkins wrote:
Maybe I'm just being grumpy because I haven't had any sleep, but I really hate template processors that modify anything I didn't ask them to modify. In addition to fiddling with my tags when I didn't ask it to, it uppercases everything. Ick.
The thing is that it's not a tool for handing text, it only understands XML. By the time it parses the document, all of your entities will be translated to unicode, attribute order is made irrelevant, and empty tags are empty tags. It's *not* changing your document with regard to the XML format.
If this was Python, you'd be asking for print {"c": 'd', """a""": r'b'} to look the same as the input expression, where Python's dict hashing algorithm and string repr rules happen to print out something quite different but absolutely equivalent.
-bob

