[XML-SIG] Attribute value normalization
Rich Salz
rsalz@zolera.com
Wed, 01 Aug 2001 12:47:58 -0400
This is a multi-part message in MIME format.
--------------BBADBC984C75C67D206A3405
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I'm using PyExpat.Reader, but it's not clear to me who should be doing
this -- pyexpat or the lower layers or xml.dom ?
Attribute-value normalization ( http://www.w3.org/TR/REC-xml#AVNormalize
) isn't being done.
Here's a test case. For more egregious problems, change the "which"
assignment to eg3.
Any ideas where to start looking?
/r$
--
Zolera Systems, Your Key to Online Integrity
Securing Web services: XML, SOAP, Dig-sig, Encryption
http://www.zolera.com
--------------BBADBC984C75C67D206A3405
Content-Type: text/plain; charset=us-ascii;
name="avn-bug.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="avn-bug.py"
#! /usr/bin/env python
eg3 = """<doc>
<norm attr=' '   
	 ' '/>
<normNames attr=' A   
	 B '/>
<normId id=' '   
	 ' '/>
</doc>"""
eg4 = """<doc>
<norm attr=' '  	 ' '/>
<normNames attr=' A  	 B '/>
<normId id=' '  	 ' '/>
</doc>"""
from xml.dom.ext import PrettyPrint, reader
from xml.dom.ext.reader import PyExpat
which = eg4
r = PyExpat.Reader()
dom = r.fromString(which)
PrettyPrint(dom)
--------------BBADBC984C75C67D206A3405--