ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Looking for an example of a name colliision
by Arjun Ray other posts by this author
Jun 1 2003 2:45AM 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
"Chiusano Joseph" <chiusano_joseph@[...].com>  wrote:

| <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.

Name collision at the *schema definition* level!?  This kind of thing was
solved by ArchForms years ago.  You might even say that this was exactly
why ArchForms were invented!  See, eg,   

  http://www.isogen.com/papers/archintro.htm

| <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> 

Or, for people who can sleep at night without a steady diet of pointy
brackets:

 <!ELEMENT  Address (Street, City, StateCode, ZipCode, Country) > 
 
|    <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> 


  <?IS10744:arch name="http://www.agency2.gov"
                 form-att="a2" ?> 

  <!ELEMENT ElementInformation (Foo, Bar) > 
  <!ATTLIST Foo  a2   NAME  #FIXED  "Name" > 
  <!ATTLIST Bar  a2   NAME  #FIXED  "StateCode" > 

For a demonstration of how this particular usecase was a non-problem even
before the colonification bogosity was invented:

 http://www.nyct.net/~aray/sgml/demo/dept/

But that's using old-fashioned tools.  As I understand this example, the
point seems to be: in any document using the a1 vocabulary, how can
"StateCode" in the sense of the a2 vocabulary be used?  Well, just use it!
Simply annotate the use with an attribute saying "Oh by the way, this is
in the a2 sense".  

Perhaps you mean that your *tools* have been coded to robotically examine
GIs only?

Well, that's a problem with the tools, not the formalism, no?


-----------------------------------------------------------------
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> 
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved