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


From: Daplyn, Tim <Tim.Daplyn@eu.sony.com>
Date: Mon, 07 Jul 2003 14:49:56 -0600
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

The recommendation includes a number of attribute declarations within
<restriction>s which have only 'name' and 'use' defined e.g.

	<xs:attribute name="form" use="prohibited"/>
	(in definition of topLevelAttribute)

Xerces seems to fail this type of redefinition with the following error:

   Message: Type of attribute {0} must be validly derived from type of
attribute in base

This seems to be based on the constraints section

Please does anyone have a definitive answer as to whether the following xml
is valid or not?

	<complexType name="typeB">
		<attribute name="attr" type="string" use="optional"/>
	<complexType name="typeR">
			<restriction base="typeB">
				<attribute name="attr" use="prohibited"/>
				<!-- Do we _have_ to specify 'type' again?

Tim Daplyn...

The information contained in this message or any of its
attachments may be privileged and confidential and intended
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
Received on Monday, 7 July 2003 22:09:31 UTC

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