- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 03 Aug 2009 05:12:00 +0000
- To: www-xml-schema-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7198 Summary: can inheritable attributes appear, on elements with simple types Product: XML Schema Version: 1.1 only Platform: All URL: http://www.w3.org/TR/2009/CR-xmlschema11-1-20090430/ OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Structures: XSD Part 1 AssignedTo: David_E3@VERIFONE.com ReportedBy: gandhi.mukul@gmail.com QAContact: www-xml-schema-comments@w3.org CC: cmsmcq@blackmesatech.com If we have an element declaration, like following: <xs:element name="X" type="xs:string" /> Let's say, that an "ancestor element" of element "X" has a complex type, which declares a particular attribute as "inheritable". Then, can X have this attribute present (an inheritable attribute) in the instance document, and will this instance be considered valid? The reason for my doubt is, that for this example, the declared type of "X" is a simple type (xs:string). As per the XML Schema 1.1 spec, elements with simple types, cannot have attributes. If in this case, if element "X" can have an attribute (because, it inherits one from the ancestor elements), then it violates the XML Schema 1.1 simple type description. If, in XML Schema 1.1, as in this example, element "X" can have an inheritable attribute (despite it being declared as a simple type, say xs:string), I think, it would be helpul, if the XML Schema 1.1 spec, can have an explanation for this. Regards, Mukul -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Monday, 3 August 2009 05:12:10 UTC