- From: Daplyn, Tim <Tim.Daplyn@eu.sony.com>
- Date: Mon, 07 Jul 2003 14:49:56 -0600
- 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 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 Monday, 7 July 2003 22:09:31 UTC