W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2003

Same element name, different namespaces: is that possible?

From: Kirchheiner, RSys, DA <T.Kirchheiner@deutschepost.de>
Date: 27 Oct 2003 10:30:05 +0100
Message-ID: <A70299B3398BD511BC5940000ABC0745023EF819@D7168002.DeutschePost.de>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>




Hi,

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:complexType>
		<xs:sequence>
			<xs:element name="v:price"/>
			<xs:element name="g:price"/>
		</xs:sequence>
	</xs:complexType>
</xs:element>

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:01 UTC