- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 30 Nov 2001 16:51:30 +0000
- To: Eddie Robertsson <eddie@allette.com.au>
- Cc: "Hanumaiahgari, Srinivas" <Srinivas.Hanumaiahgari@dva.gov.au>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Eddie Robertsson <eddie@allette.com.au> writes: > > 1.I got 'dateDispatched' and 'dateDelivered' in my schema and i want to > > check wherein one of them is required but not both and the other should be > > empty. > > You can't do this with W3C XML Schema alone . . . Um, depends on exactly what was meant, but <xs:choice> <xs:element name='dateDispatched' . . ./> <xs:element name='dateDelivered' . . ./> </xs:choice> should do the job. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh W3C Fellow 1999--2001, 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/
Received on Friday, 30 November 2001 11:51:39 UTC