Skip Menu |

This queue is for tickets about the XML-Writer CPAN distribution.

Report information
The Basics
Id: 7266
Status: resolved
Priority: 0/
Queue: XML-Writer

People
Owner: Nobody in particular
Requestors: nlany [...] uibe.edu.cn
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.510
Fixed in: 0.510

Attachments


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
Download nsDeclPatch
application/octet-stream 1.2k

Message body not shown because it is not plain text.

Thanks, I can confirm this bug. I've checked a test for it into CVS. As it stands, your fix works for that case, but breaks another case, so I haven't applied it yet. I see what the problem is, and will fix it when I am able. (If you want to submit a fix that works with all cases, that would be welcome!)
Fixed in CVS. Will release soon.