W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2002

xsd:anyType, xsd:anySimpleType

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Wed, 4 Dec 2002 18:59:48 -0500
To: xmlschema-dev@w3.org
Message-ID: <OFA31C0412.BDF15810-ON85256C85.0081DF19@pok.ibm.com>

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" />

            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
Received on Wednesday, 4 December 2002 19:02:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC