Interesting question. IDs must be unique in a document per http://www.w3.org/TR/REC-xml#id. The question is, are included schemas part of the same (schema) document? It looks to me like they are: http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#compound-schema says "The *XML Schema* corresponding to <schema> contains not only the components corresponding to its definition and declaration [children], but also all the components of all the *XML Schemas* corresponding to any <include>d schema documents."
Hmm...Denny just quoted some different sections to the same effect. His analysis may be more relevant than mine. > -----Original Message----- > From: Oliver, Steve [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 8:29 AM > To: Xerces Dev > Subject: Schema Error > > > I am using Xerces-C++ 2.3. When attempting to validate an XML > document I get the following error... > > Error at file OTA_Profile.xsd, line 2, char 122 > Message: ID 'OTA2003A2003A' is not unique > > The schema file that I am using has several included schema. > Each of the included schemas has an element that looks like this > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified" version="1.000" id="OTA2003A2003A"> > > I'm guessing that Xerces does not like the fact that all of > the included schemas have the same value in their id > attribute. I have tried to find anything in the XML > specifications that states that the id attribute is required > to be unique. All I have found is the following statement in > XML Schema Part 1... > > "... The other attributes (id and version) are for user > convenience, and this specification defines no semantics for them." > > Based on that it seems that the user is free to do whatever > he wants with regard to the value of the id attribute. Have I > missed something that would tell me that this attribute must > be unique? > > Steve > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
