- From: Daplyn, Tim <Tim.Daplyn@eu.sony.com>
- Date: Thu, 14 Aug 2003 06:46:31 -0700
- To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
[The moderator apologizes for the delay; this should have gone to the list some time ago but got list in the moderator's inbox.] 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 http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction 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> <complexType name="typeR"> <complexContent> <restriction base="typeB"> <attribute name="attr" use="prohibited"/> <!-- Do we _have_ to specify 'type' again? --> </restriction> </complexContent> </complexType> Thanks, 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 Thursday, 14 August 2003 08:47:02 UTC