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