W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Re: including external xml files in an instance and validating ac ross the files

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 6 Feb 2002 09:39:04 +0000
Message-ID: <139772716697.20020206093904@jenitennison.com>
To: Rolf Russell <rolf@powermarket.com>
CC: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi Rolf,

> I took your wrapper file DTD idea and was able to add a DTD to my
> invoice.xml file that references the partlist.xml file, but
> unfortunately I cannot validate the invoice.xml document if I add
> the KEY-KEYREF relationship that I described. I get the following
> error: "Undefined key values for keyref identity constraint
> 'Item-PartNumber-KeyRef' - the values refered to by the field
> selector must match existing unique/key values." This seems to
> indicate that my XML validation engine (XML Spy 4.2) does not
> dereference external entity references before validation. I checked
> this by pasting in the actual xml instead of referencing it and the
> error went away. Is it standard for all validation engines to not
> dereference, or dependent on the engine?

I'm pretty sure that schema processors should dereference any entities
prior to validation, since they're working on the infoset rather than
the physical document.

Do you think you could post small examples of the relevant files -
there might be something funny in your identity constraints...

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Wednesday, 6 February 2002 04:39:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT