Subject: | Bug and a Fix in Forced Default Namespace Declaration |
#Note attached patch is diffed against v0.510 from cpan, not from CVS
Bug Description:
===============
When I use FORCED_NS_DECLS option to force namespace declaration on document element: If a namespace is specifed as default one (mapped to '') with PREFIX_MAP option, and doucment element tag doesnt belong to this default NS, the xml writer will not declare it as default, instead will assign it an auto generated prefix like "__NS1". eg.
<?xml?>
<mm:doc xmlns:__NS1="defns_uri" xmlns:mm="mm_uri"> ...
which should be:
<?xml?>
<mm:doc xmlns="defns_uri" xmlns:mm="mm_uri"> ...
Fix
===
The provided patch works for me, but not tested.
Cheers,
Lan Yufeng
Message body not shown because it is not plain text.