Re: xsd:anyType, xsd:anySimpleType

"Morris Matsa" <mmatsa@us.ibm.com> writes:

> 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]

Forthcoming errata will clarify this -- XSV is (will be) correct.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

Received on Thursday, 5 December 2002 03:30:35 UTC