- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 25 Apr 2002 21:36:30 +0100
- To: "Tianzhi Yang" <tyang@firstrain.com>
- Cc: <xmlschema-dev@w3.org>
"Tianzhi Yang" <tyang@firstrain.com> writes: > Hi, > Can anybody help? > 1. > Suppose there is a list of union. The only member of union is "string". > ..... > <list> > <simpleType> > <union memberTypes="string"/> > </simpleType> > </list> > ..... > No I get the following value: > abc def > Now should I look on it as a list consists of one string in which there > is a space character or a list consists of two strings? My reading is that lists _always_ break at whitespace, regardless of their itemType. > 2. > What make it more complex is the following case: > <list> > <union memberTypes="int"> > <simpleType> > <list itemType="string"/> > </simpleType> > </union> > </list> > > and the value: > 11 ab 22 33 > No doubt I match 11 against int, ab against string. Now should I regard > "22" as part of the string started with "ab" or a seperate "int"? See above, so 'no', that's a 4 item list. 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, 25 April 2002 16:36:33 UTC