OK, well, I'm 50% of an idiot.

What is really happening to me is the following:

For some insane reason, JAXB is creating a schema document like:

<schema xmlns:xs='....'>
 ...

</schema>

but not actually putting the schema namespace onto the doc element. Or
something of ours is somehow removing it. This led me into a classic nest of
twisty passages.

I'm still not too fond of the code in DOMUtils, but, nothing is in fact
self-evidently completely busted.

On Sat, Sep 4, 2010 at 8:10 AM, Benson Margulies <[email protected]>wrote:

> I've just noticed two traps waiting to bite CXF developers.
>
> 1. The MapNamespaceContext does not implement the rules for 'xml' and
> 'xmlns'.
>
> 2. The DOMUtils seems to me to be rather confused between the effective
> namespace of an element and the declared namespace of an element.
>
> In a document like:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><doc
> xmlns="urn:some-namespace"><ele xmlns=""/></doc>
>
> Node.getNamespaceURI() can return null for that inner element.
>
> I don't think we're calling most of the stranger functions in here. Absent
> objections, I will remove questionable functions which are never called.
>
>

Reply via email to