W3C home > Mailing lists > Public > www-math@w3.org > May 2003

Re: Unique Particle Attribution contraint violation (jaxb)

From: David Carlisle <davidc@nag.co.uk>
Date: Thu, 8 May 2003 17:28:48 +0100
Message-Id: <200305081628.RAA07795@penguin.nag.co.uk>
To: campagne@physbio.mssm.edu
CC: www-math@w3.org


> After reading the relevant portion of the XML schema spec, I still
> have no idea what the constrain mean, but I report this here hoping
> that it can be useful.

Thanks for the report. The error means that (in DTD/regexp syntax)
we have some content model like

(a,b)|(a,c)

so when the validator comes to an "a" element it doesn't know which
branch to take (looking ahead to see if the next element is b or c is not
allowed). Such a content model has to be written as 
a,(b|c)
so a only appears once then you get the choice of b or c.
this is the "Unique Particle Attribution" constraint.

We'll determine whether this is a problem with the schema (which we
checked using a different validator) or with the schema processor
getting confused and incorrectly reporting an error and get back to you
on this.... 

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Thursday, 8 May 2003 12:29:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:54 GMT