This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hfischer
Recipients hfischer
Date 2011-05-30.21:06:13
SpamBayes Score 0.0026329197
Marked as misclassified No
Message-id <1306789573.92.0.875996944294.issue12220@psf.upfronthosting.co.za>
In-reply-to
Content
Minidom raises an exception if there's a space anywhere in the URI of an xmlns, but it is legal (but terrible practice) to have spaces in URIs.  I think this should work or politely raise a syntax error.  E.g., this fails:  xmlns:abc="http:abc.com/de f g/hi/j k".

The attachment xml file from an end user has this xmlns:

  xmlns:verrels=" http://xbrl.org/2010/versioning-relationship-sets"

which causes minidom to raise a ValueError exception, instead of a sensible syntax error message.  

The relevant python code is expabuilder.py, method _parse_ns_name, which does not have an elif for len(parts) != 2 (to raise a syntax error which identifies the bad construct).
History
Date User Action Args
2011-05-30 21:06:13hfischersetrecipients: + hfischer
2011-05-30 21:06:13hfischersetmessageid: <1306789573.92.0.875996944294.issue12220@psf.upfronthosting.co.za>
2011-05-30 21:06:13hfischerlinkissue12220 messages
2011-05-30 21:06:13hfischercreate