W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2012

Re: Example of an identity constraint that is not applied to substitution elements?

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Mon, 18 Jun 2012 07:11:27 +0100
Message-ID: <CABuuzNPbX_G9nywLo-8fPuPkTsHo2gpf4ba_-mV3pxTqDyyY6w@mail.gmail.com>
To: "Costello, Roger L." <costello@mitre.org>
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Hi Roger,

On Fri, Jun 15, 2012 at 6:48 PM, Costello, Roger L. <costello@mitre.org> wrote:

> That generates this error,
>
>           The field in constraint {PK} has no value.
[1]

I believe, this error message is correct. In your example, the IDC
constraint "PK" is defined for element "BookStore" (and not at level
of ISBN, as it might be confusing some of us).

> I seek a way to use an ISBN-10 element, containing a value that duplicates one of the ISBN element values, and does NOT
> generate an error.

I think, this may not be possible the way, the schema you've provided
is written and we would get an error message as above [1].




-- 
Regards,
Mukul Gandhi
Received on Monday, 18 June 2012 06:12:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:20 UTC