Boris Kolpackov wrote on 2010-02-16:
>  There was a test case reported on the XQilla mailing list which showed
> that qualified elements would loose their prefixes during import. As a
> result, the explicit call to setPrefix was added for elements and, just
> to be sure, I assume, for attributes. The change for attributes was a
> bad idea since it doesn't work for the xmlns="" attributes.

It would work if the setPrefix method was altered to check for NULL before
throwing the exception. I don't think there's any compelling reason why
setPrefix should fail on xmlns="" with a null input parameter, it's just a
noop.

Alternatively, call setPrefix based on whether the original node has a
prefix, not whether it has a namespace.

> There is no Jira issue. Feel free to create one, though.

Doing that now. The Debian packaging folks indicated to me informally that
it would help them justify a downstream patch to 3.1.0 if there were a patch
checked in on the branch. Do you plan to do that soon?

Thanks,
-- Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to