[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Including multiple schemas - duplicate name errors
- From: "Magick, Brian" <Brian.Magick@COMPAQ.com>
- To: "'Cheryl_Gielau@cargill.com'" <Cheryl_Gielau@cargill.com>
- Date: Tue, 21 Aug 2001 12:54:50 -0500
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@cargill.com [mailto:Cheryl_Gielau@cargill.com]
Sent: Tuesday, August 21, 2001 12:45 PM
To: Magick, Brian
Cc: xml-dev@lists.xml.org
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@compaq.com [mailto:Brian.Magick@compaq.com]
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@cargill.com [mailto:Cheryl_Gielau@cargill.com]
Sent: Tuesday, August 21, 2001 12:09 PM
To: xml-dev@lists.xml.org
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>