[XML-SIG] [ pyxml-Bugs-825115 ] c14n: 'xmlns=""' attrib ordering problem on subelements

SourceForge.net noreply at sourceforge.net
Thu Oct 16 17:28:35 EDT 2003


Bugs item #825115, was opened at 2003-10-16 14:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=825115&group_id=6473

Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Keith Beattie (ksbeattie)
Assigned to: Nobody/Anonymous (nobody)
Summary: c14n: 'xmlns=""' attrib ordering problem on subelements

Initial Comment:
When c14n'ing a sub element of a document which set the
default xmlns, that xmlns attribute is not ordered
first.  For exmaple the program:

---
from xml.dom import minidom
from xml.dom.ext import c14n

str = """<a:A xmlns:a="a" xmlns="b">
  <B/>
</a:A>"""
dom = minidom.parseString(str)
B_el = dom.getElementsByTagNameNS("b", "B")[0]
print c14n.Canonicalize(B_el)
---

prints:
<B xmlns:a="a" xmlns="b"></B>

When it should place the 'xmlns="b"' first:
<B xmlns="b" xmlns:a="a"></B>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=825115&group_id=6473



More information about the XML-SIG mailing list