SAX2: Namespace Processing and NSUtils helper class
ray at xmission.com
Thu Dec 16 16:58:55 GMT 1999
On 16 Dec 1999, Steinar Bang wrote:
> >>>>> "Didier PH Martin" <martind at netfolder.com>:
> > HI Steinar,
> > Steinar said:
> > But what if the handling of stuff from different namespaces is
> > intermingled...? Hm...
> > Didier reply:
> > Can you be more explicit? Where precisely do you see the problem?
> My problem is that I don't see clearly how people are going to use
> namespaces. That's why I put a "Hm..." there.
I think of it as borrowing a few words of German into my English
vocabulary to describe things that are already well-said. American
English is already a great mixture of things from other languages.
If I see that some credible company has a good definition people
are using, I will use their definition.
>From a programming perspective, as with Java classes, I think of
the namespace together with the local name as the only good identifier
of the element. Separately, either the namespace or the name are
not very useful to me once I live in a mixed environment. I always
want to be certain, which is the way I program Java, as well. In
Java, I frequently get multiple classes in the same environment with
the same name, but with the namespaces, I always know exactly which
one I am using.
The DOM spec chose to represent them as separate strings rather than
joining them in a single universal name, which for my use cases would
have been simpler to use. So I am about 50-50 whether to choose
to do it the same way as DOM did, or whether to do it the more-
convenient way for my applications. But others obviously don't
find this more convenient.
> I suspect that people are going to intermingle stuff from different
> namespaces, in a way that'll make processing hard.
> Will stuff from different namespaces always have the same semantics?
> Or should I expect seperate processesing depending on the context?
Remember, you still have a DTD or some kind of content model telling
how the objects go together, which might be unique for your use,
even if some of the elements are standardized elsewhere. Any particular
application or DTD still chooses what is legal (or if there are sections
where anything is allowed as some sort of blind inclusion, it is passed
to another processor that presumably will understand it).
That's how I think they will be used, anyway.
ray at xmission.com
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev