[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Including multiple schemas - duplicate name errors

  • From: "Magick, Brian" <Brian.Magick@C...>
  • To: "'Cheryl_Gielau@c...'" <Cheryl_Gielau@c...>
  • Date: Tue, 21 Aug 2001 12:54:50 -0500

duplicate namespaces
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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