- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 29 May 2002 23:04:19 +0100
- To: megya@sztaki.hu
- Cc: xmlschema-dev@w3.org
Megyaszai Sandor <megya@sztaki.hu> writes: > On Wed, 29 May 2002, Henry S. Thompson wrote: > > a quick inspection by eye doesn't > > suggest anything wrong -- where are the errors you are suggesting > > should be caught? > > >From instance document pelda.xml: > > [..] > > <Group name="organizers" role="organize"> > > <User type="registered" name="megya"/> > > <User type="registered" name="megya"/> > > <User type="e-mail" address="WineMerchant@isp.com"/> > > </Group> > > [..] > > The duplicated User element should not be allowed by a uniqueness > constraint (from Voting.xsd): > > <element name="Group" minOccurs="1" maxOccurs="unbounded"> > > [..] > > <unique name="userName"> > > [..] > > <selector xpath="v:User"/> > > <field xpath="name"/> > > </unique> > > </element> Um, that field path looks for a 'name' _daughter_, you want <field xpath="@name"/> to look for a name attribute. With that change, XSV finds the error. 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 Wednesday, 29 May 2002 18:04:58 UTC