W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Re: anyType question again

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 16 Jan 2003 09:37:34 +0000
To: "Horti, Andras" <andras.horti@joanneum.at>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bk7h577vl.fsf@erasmus.inf.ed.ac.uk>

"Horti, Andras" <andras.horti@joanneum.at> writes:

> I was looking for the alternative of DTD type:
> <!ENTITY % GeneralType "ANY">
> 
> for XML-Schema. I made the following type:
> 
> 	<xs:complexType name="GeneralType" mixed="true">
> 		<xs:complexContent>
> 			<xs:restriction base="xs:anyType"/>
> 		</xs:complexContent>
> 	</xs:complexType>
> 
> Is it really an alternative or do I miss something ?

That produces something which requires empty content and allows no
attributes.  Why not just use xs:anyType itself?  If you need a
private name, use vacuous extension instead of restriction.

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, 16 January 2003 04:37:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:35 GMT