changeset 412:bd51adc20a67 trunk

Actually write xmlns declaratons for generated attribute namespace prefixes.
author cmlenz
date Mon, 26 Feb 2007 18:39:57 +0000
parents 7d158f8f48ad
children 227ae0fb0c32
files UPGRADE.txt genshi/output.py
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/UPGRADE.txt
+++ b/UPGRADE.txt
@@ -22,7 +22,6 @@
 information.
 
 
-
 Upgrading from Markup
 ---------------------
 
--- a/genshi/output.py
+++ b/genshi/output.py
@@ -443,6 +443,7 @@
                         if attrns not in namespaces:
                             prefix = _gen_prefix()
                             _push_ns(prefix, attrns)
+                            _push_ns_attr(('xmlns:%s' % prefix, attrns))
                         else:
                             prefix = namespaces[attrns][-1]
                         if prefix:
Copyright (C) 2012-2017 Edgewall Software