|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Attribute question
From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Fri, 19 Dec 2003 14:55:40 +0000 To: "Jonny Pony" <jonnypony666@hotmail.com> Cc: xmlschema-dev@w3.org Message-ID: <f5bwu8szwk3.fsf@erasmus.inf.ed.ac.uk> I don't understand Spy's error message, but your schema is certainly broken in various ways. Here's something which is valid, and does what I think you want: <xs:element name="Entrie"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="type" type="xs:string" use="required"/> <xs:attribute name="digits" type="xs:integer" use="optional"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-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 Friday, 19 December 2003 09:55:42 GMT |
Subscribe in XML format
|






