|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Including multiple schemas - duplicate name errors
This is a good question...I assumed that they were different definitions, same terms. I would suppose that if they are the SAME term/definition they SHOULD be in the same namespace. I would GUESS that if they are in the SAME namespace you wouldn't have this conflict. Are the common terms in schema B & schema C in different namespaces (even different default namespaces?). Can anyone else answer this question better (without speculation....which I admittedly am guilty of?) Brian Magick -----Original Message----- From: Cheryl_Gielau@c... [mailto:Cheryl_Gielau@c...] Sent: Tuesday, August 21, 2001 12:45 PM To: Magick, Brian Cc: xml-dev@l... Subject: RE: Including multiple schemas - duplicate name errors My understanding of the purpose of namespaces was to address same term - different meaning kinds of situations. Like if the term address was used to in one schema for a postal address and in another for an ip address. The common elements in schemas b and c are the same term because they have the same meaning. For example, element TransportationMode appears in both schema b and c. b & c are packaged together into one schema for particular shipment scenarios. Cheryl -----Original Message----- From: Brian.Magick@c... [mailto:Brian.Magick@c...] Sent: Tuesday, August 21, 2001 12:32 PM To: Gielau, Cheryl /mtka Subject: RE: Including multiple schemas - duplicate name errors Sounds like you need to use Namespaces in schemas b and c.....schema a can then reference these namespaces and then prevent any naming conflicts. Brian -----Original Message----- From: Cheryl_Gielau@c... [mailto:Cheryl_Gielau@c...] Sent: Tuesday, August 21, 2001 12:09 PM To: xml-dev@l... Subject: Including multiple schemas - duplicate name errors Hello, I have a schema (A) that logically contains 2 other schemas (B & C). I used the include feature to bring B & C into the A schema. Some of the elements between the B & C schemas have the same name (and logically have the same definition) and the parser tells me that the element type has been defined more than once in the A schema. What are some ways I could resolve this? Cheryl ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this elist use the subscription manager: <http://lists.xml.org/ob/adm.pl>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








