[Patches] [ python-Patches-423394 ] Fix pulldom to preserve ns attributes
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 12 Jun 2001 10:08:58 -0700
Patches item #423394, was updated on 2001-05-11 11:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=423394&group_id=5470
Category: XML
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Martin v. Löwis (loewis)
Summary: Fix pulldom to preserve ns attributes
Initial Comment:
Here is a fix for pulldom.py that preserves
xmlns attributes that declare namespaces.
The current pulldom / minidom captures xml namespace
information in elements and attributes, but the
actual namespace declaration attributes
(xmlns:foo="...") are not preserved on the element
where they appear.
This makes it impossible for
certain applications that do more complex name
dereferencing (XMLSchema is an example) that
requires not only namespace uris but
also the prefixes used and the original scope
information.
The current patch preserves xmlns="" and
xmlns:foo="" as *non-namespace qualified*
attributes, which appears to be the norm in other
DOM implementations.
Pls let me know if you have any questions.
-Brian (brian@digicool.com)
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-12 10:08
Message:
Logged In: YES
user_id=21627
Superceded by #432117
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-06-03 06:55
Message:
Logged In: YES
user_id=21627
The patch is a good idea, but I think it does not conform
to the DOM recommendation. In the DOM, the namespace URI
"http://www.w3.org/2000/xmlns/" is used for attributes
whose namespace prefix or qualified name is xmlns.
In addition, the patch contains a typo, it hould not say
atetr_items.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=423394&group_id=5470