- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 04 Aug 2009 23:55:38 +0000
- To: www-xml-schema-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7198 --- Comment #5 from Mukul Gandhi <gandhi.mukul@gmail.com> 2009-08-04 23:55:38 --- (In reply to comment #1) > [Speaking for myself] > > It may depend on what you mean by the question "Then, can X have > this attribute present (an inheritable attribute) in the instance > document, and will this instance be considered valid?" I have another question. If we have an element declaration like following: <xs:element name="X"> <xs:complexType> <xs:sequence> <xs:element name="Y"> <xs:complexType> <xs:sequence> <xs:element name="Z" type="xs:string"> <xs:alternative test="@a='test'" type="xs:anyType" /> <xs:element> </xs:sequence> <xs:attribute name="a" type="xs:integer" inheritable="true" /> <xs:complexType> <xs:element> </xs:sequence> <xs:attribute name="a" type="xs:string" inheritable="true" /> </xs:complexType> </xs:element> This corresponds to element hierarchy like following: <X a="test"> <Y a="1"> <Z ...> <Y> </X> The attribute "a" on X, and also "a" on Y are both inheritable. In this case, would the element Z inherit attribute "a" of element Y or of element X? Does the XML Schema 1.1 spec defines a policy, to inherit attributes from the nearest ancestor (i.e, in this case Z inherits attribute "a" from Y and not from X)? Or, is the usage of inheritable attributes, as in this example, an error? I would appreciate, if you could pls answer my earlier question as well: "are inheritable attributes designed only for conditional type alternatives and assertions? or they have other usage as well?" I would appreciate, if you could please point me to relevant sections of the spec, explaining these points. 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 Tuesday, 4 August 2009 23:55:46 UTC