Same element name, different namespaces: is that possible?


in DTDs it was allowed (even necessary) to name an element with the
namespace prefix: <!ELEMENT v:price (#PCDATA)>.
If I try this in a schema (<xs:element name="v:price"/>) the validation
fails. Normally that's no problem but if we want to define two namespaces in
one schema and connect these with the same element string, then there seems
to be no way for doing this:
<xs:element shop>
			<xs:element name="v:price"/>
			<xs:element name="g:price"/>

If this is correct, will there be a solution in later versions of schema?

Thilo Kirchheiner

Received on Monday, 27 October 2003 04:36:47 UTC