On 11.02.2020 12:17, Konrad Windszus wrote:
What should be the expanded name for the qualified name "foo" (without URI 
prefix) then?

One could either say that there is none (and you don't need one), or
that it is "foo" (and raise a bug against the spec to say that missing
leading "{..." in an expanded name implies the empty namespace.

What namespace URI should be used then?

If "foo" is in no namespace, and you need a namespace name, it would be
the empty string.

I am now totally lost to be honest.

Yes, it's confusing.

It's because in JCR 2.0, expanded names were introduced as an alternate
name notation, and we had to find a way not to let expanded names to
conflict with qualified names.

The only way to make this work was to require the namespace name not to
be empty and to be a valid URI (which implies there's at least one ":"
in the namespace name).

Best regards, Julian

Reply via email to