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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.