logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

xsd:anyType, xsd:anySimpleType: msg#00009

Subject: xsd:anyType, xsd:anySimpleType


We've been having discussions about which of these are legal in a schema,
based on inferences in various parts of the spec which might contradict
each other.

Which of the four are legal?

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
 <xsd:element name="one" type="xsd:anySimpleType" />
 <xsd:element name="two" type="xsd:anyType" />
 <xsd:attribute name="three" type="xsd:anySimpleType" />
 <xsd:attribute name="four" type="xsd:anyType" />
</xsd:schema>

            SQC           XSV
one         ok            ok
two         ok            ok
three       ok            ok
four        ok            bad [1]

[1] type definition for an attribute ({None}four) must not be complex






<Prev in Thread] Current Thread [Next in Thread>