Differentiate between unprefixed local element and global unprefixed element

Hi,

The issue has been discussed before, but without a satisfactory answer.

<doc xmlns="DOC_NAMESPACE">
  <X:fragment xmlns:X="FRAGMENT_NAMESPACE">
    <unprefixed>???</unprefixed>
  </X:fragment>
</doc>

How does an XML Schema processor attempt to validate the <unprefixed> element, as:
1) a possible local element to the <fragment> element?
2) a possible global element belonging to the default namespace?
3) both (but if so, in what order)?

If the answer is 3), then what happens if both document types include an element called <unprefixed>, and with different content types?

Neil.

Received on Monday, 19 May 2003 07:00:37 UTC