[Checkins] SVN: Sandbox/malthe/chameleon.core/ Added namespace prefix 'xml' to default namespace mapping.

Malthe Borch mborch at gmail.com
Tue Dec 2 09:12:22 EST 2008


Log message for revision 93544:
  Added namespace prefix 'xml' to default namespace mapping.

Changed:
  U   Sandbox/malthe/chameleon.core/CHANGES.txt
  U   Sandbox/malthe/chameleon.core/src/chameleon/core/config.py

-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt	2008-12-02 14:02:04 UTC (rev 93543)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt	2008-12-02 14:12:21 UTC (rev 93544)
@@ -4,6 +4,8 @@
 HEAD
 ~~~~
 
+- Added namespace prefix 'xml' to default namespace mapping. [malthe]
+
 - Fixed root cause of issue with self-closing tags; an empty element
   text is now correctly differentiated from a self-closed
   tag (which does not have this attribute set). [malthe]

Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/config.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/config.py	2008-12-02 14:02:04 UTC (rev 93543)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/config.py	2008-12-02 14:12:21 UTC (rev 93544)
@@ -21,6 +21,7 @@
 VALIDATION = VALIDATION.lower() in TRUEVALS
 
 # these definitions are standard---change at your own risk!
+XML_NS = "http://www.w3.org/XML/1998/namespace"
 XHTML_NS = "http://www.w3.org/1999/xhtml"
 TAL_NS = "http://xml.zope.org/namespaces/tal"
 META_NS = "http://xml.zope.org/namespaces/meta"
@@ -32,6 +33,7 @@
 # default prefix namespace mapping
 DEFAULT_NS_MAP = {
     None: XHTML_NS,
+    'xml': XML_NS,
     'meta': META_NS,
     'py': PY_NS,
     'tal': TAL_NS,



More information about the Checkins mailing list