Re: [xml-dev] Looking for an example of a name colliision
by Chiusano Joseph other posts by this author
Jun 1 2003 2:31AM messages near this date
Re: [xml-dev] Looking for an example of a name colliision
|
Re: [xml-dev] Looking for an example of a name colliision
<Quote>
could you then provide us an instance illustration?
</Quote>
Sure - here it is. This is an agency's schema (agency 1) that includes
the vocabulary of agency 2. The element "StateCode" is used in 2
different contexts for each vocabulary:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a1="http://www.agency1.gov"
xmlns:a2="http://www.agency2.gov"
targetNamespace="http://www.agency1.gov"
elementFormDefault="qualified">
...[import of agency 2's schema goes here]...
<xsd:element name="Address">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="a1:Street"/>
<xsd:element ref="a1:City"/>
<xsd:element ref="a1:StateCode"/>
<xsd:element ref="a1:ZipCode"/>
<xsd:element ref="a1:Country"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ElementInformation">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="a2:Name"/>
<xsd:element ref="a2:StateCode"/>
...[more stuff here]...
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Kind Regards,
Joe Chiusano
Booz | Allen | Hamilton
"W. E. Perry" wrote:
>
> Chiusano Joseph wrote:
>
> > Absolutely. However, my references were to the use of namespaces to between vocabularies
,
> > not within the same vocabulary. So I was referencing cases where one may want/need to
> > combine multiple vocabularies in the same document.
>
> Again, it's still not clear what you are offering in response to Bill de hÓra's original
> request, viz.:
>
> > Does anyone have an example of a collision that can only be solved, or even best be solv
ed
> > with XML Namespaces?
>
> So far I have not seen even an example (i.e., within document scope) of a collision, let
> alone a collision which might impel us to XML Namespaces as a solution. In framing his
> original question, Bill de hÓra illustrated that the apparent example of collision used fo
r
> illustration in the Namespaces Rec does not in fact evidence any such thing. Grant for the
> sake of this discussion that somewhere in the combination of 'multiple vocabularies in the
> same document' such an example is imaginable; could you then provide us an instance
> illustration?
>
> > By 2 different federal agencies using the element name "StateCode" in 2 different ways.
> > The 2 agencies do not collaborate on their element names, so they cannot agree to use 2
> > different names. Or, even if they did collaborate, there may be a very good reason to us
e
> > the same element name for these 2 different contexts.
>
> As you have framed this, the hypothetical collision will be found, if at all, on the plane
> of universal names, which is by definition not the scope of names in XML. Is there to your
> knowledge an example which can be framed as XML?
>
> Respectfully,
>
> Walter Perry
>
> -----------------------------------------------------------------
> 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 list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
Attachments:
Chiusano_Joseph.vcf
unknown2
Thread:
Arjun Ray
Rick Jelliffe
james anderson
james anderson
K. Ari Krupnikov
Bob Foster
Arjun Ray
Thomas B. Passin
Thomas B. Passin
Bob Foster
Arjun Ray
K. Ari Krupnikov
Arjun Ray
K. Ari Krupnikov
Thomas B. Passin
Simon St.Laurent
Jonathan Borden
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
Simon St.Laurent
Chiusano Joseph
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Arjun Ray
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
John Cowan
Arjun Ray
Bob Foster
W. E. Perry
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Chiusano Joseph
W. E. Perry
Chiusano Joseph
Thomas B. Passin
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
K. Ari Krupnikov
james anderson
Arjun Ray
james anderson
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Rick Jelliffe
Arjun Ray
Rick Jelliffe
Arjun Ray
james anderson
Simon St.Laurent
james anderson
Rich Salz
Jaywanth
Seairth Jacobs
Joe Gregorio
Arjun Ray
Arjun Ray
John Cowan
Simon St.Laurent
Arjun Ray
Paul Prescod
Arjun Ray
Paul Prescod
Arjun Ray
Tim Bray
MURATA Makoto
Arjun Ray
J.Pietschmann
Arjun Ray
Jason Diamond
Tim Bray
Tim Bray
Simon St.Laurent
Joe Gregorio
Paul Prescod
W. E. Perry
james anderson
james anderson
james anderson
Jonathan Borden
Miles Sabin
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
Simon St.Laurent
Thomas B. Passin
Jonathan Borden
Miles Sabin
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Jonathan Borden
Miles Sabin
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Tim Bray
james anderson
John Cowan
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Joe Gregorio
Joe English
Paul Prescod
Joe English
Arjun Ray
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Arjun Ray
Joe English
Simon St.Laurent
Simon St.Laurent
Arjun Ray
|