[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Schema issue with enumerated element content
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry, I slipped up by replying in haste. Here's what you want: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:simpleType name="vals"> <xs:list> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Value1"></xs:enumeration> <xs:enumeration value="Value2"></xs:enumeration> <xs:enumeration value="Value3"></xs:enumeration> <xs:enumeration value="Value4"></xs:enumeration> </xs:restriction> </xs:simpleType> </xs:list> </xs:simpleType> <xs:element name="ElemName"> <xs:complexType> <xs:simpleContent> <xs:extension base="vals"> <xs:attribute name="attr" type="xs:string"></xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:schema> - -- 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@i... URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDfjaMkjnJixAXWBoRAm0hAJ0aB7BEtQL9IkCbVaKg8ubXIEIswQCcCUD7 i9hKnkpaeMYXzQ3gBtsaZwE= =5HYG -----END PGP SIGNATURE-----
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|