W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Differentiate between unprefixed local element and global unprefixed element

From: Neil Bradley <Neil.Bradley@rubus.com>
Date: Mon, 19 May 2003 12:00:31 +0100
Message-ID: <7C978F5EDA227E478ABADE03D23599731DA517@brkmail.rubus.com>
To: <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT