Altova Mailing List Archives


RE: [xml-dev] Motivations for namespaces (sorry)

From: Joseph Mayer <jmayer@--------.--->
To: <xml-dev@-----.---.--->
Date: 7/9/2003 5:11:00 PM
David Megginson writes:

>Gustaf Liljegren writes:
>
> > Got some inspiration from the "Looking for an example of a name
> > collission" thread. It's funny that no one seem to be able to
> > present a *good* working example of how namespaces solves name
> > conflicts. I'm not opposing namespaces myself, but I still try to
> > find the right place for them.
>
>Do you want a hypothetical example or a real-world example?
>Unfortunately, real-world XML is still a bit hard to come by even
>without vocabulary mixing, but it's easy enough to make up credible
>examples.  Take something as simply as "vendor-id"; you might have
>something like...

Something that I have found in processing data from our ERP system is
that certain terms *do* have real-world namespace collisions that need
to be resolved by either messing with names, using namespaces or using
some other method of determining usage.  For example, there are 
"SalesOrder" and "PurchaseOrder" fields in a number of tables in the
database, and some of them are "our" numbers and some are the numbers
provided by the customer.  Now, admittedly, in this case all of the
data is basically under my control for in-house usage, but if I'm
playing with data either from outside the company or mixed internally
and externally-generated, it is sort of handy to have some kind of
notification that "PurchaseOrder" is *our* purchase order or *their*
purchase order without having to parse the whole document and find out.

I'm certainly not up to speed enough on any of the debates to say one
method is better than another, as I'm just getting seriously involved
in using XML around the business, but I do know that there's certainly
a possibility of a real collision happening here.  There are a number of
other fields with the same kind of issues in our ERP system, and I can
imagine that other systems would have similar "inbound vs. outbound"
problems with similar names.

Joe Mayer
Information Systems
Kathrein Inc, Scala Division
Medford  OR

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.