XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Corey KeithSubject: Schema Validation Errors (Duplicate ID)
Author: Corey Keith
Date: 04 Oct 2002 08:27 AM
I'm getting the following error when I try to validate against the attached schema or validate the schema itself:


Validating http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd...
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd:20,77: ID 'record.e' is not unique

The XML document http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd is NOT valid (1 errors)


There is only one element which users the ID record.e and even if I change it to some random string, validation still does not work.

I'm using framework version 4.0 build 100i and all my module dlls are the same. Also attached is a sample instance document.

Thanks,
Corey

Corey Keith / ckeith@loc.gov
Digital Project Coordinator
The Library of Congress
Phone: 202-707-7196 / Fax: 202-707-0115


DocumentMARC21slim.xsd
MARC21 Schema

Documentcollection.xml
MARC21 XML Instance

Postnext
(Deleted User) Subject: Re: Schema Validation Errors (Duplicate ID)
Author: (Deleted User)
Date: 04 Oct 2002 09:06 AM
Hi Corey,
it looks like the schema validation module of Xerces has a bug when dealing
with IDs.
First of all, here is the workaround: move the declaration of the "record"
element *before* the declaration of "collection", and your schema will be
considered valid.
For the record, the error is caused by the fact that "collection", being of
type "collectionType", includes a reference to "record", that has not yet
been found; so its declaration is retrieved and used to check if the
"collection" declaration is valid, then it's discarded.
BUT, the map holding the IDs is not cleared; so, when the declaration for
"record" is found, it looks like the "record.e" ID has already been used by
some other definition.

We will refer this bug to the Xerces-C team.

Thanks,
Alberto

Posttop
(Deleted User) Subject: Re: Schema Validation Errors (Duplicate ID)
Author: (Deleted User)
Date: 23 Oct 2002 02:18 PM
The reported problem is fixed in BL103h, now available from:
http://www.stylusstudio.com/update (4.x section)

Thanks,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.