OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: SAX2: Namespace Processing and NSUtils helper class

[ Lists Home | Date Index | Thread Index ]
  • From: Ray Whitmer <ray@xmission.com>
  • To: Steinar Bang <sb@metis.no>
  • Date: Thu, 16 Dec 1999 09:58:39 -0700 (MST)

On 16 Dec 1999, Steinar Bang wrote:

> >>>>> "Didier PH Martin" <martind@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 Whitmer
ray@xmission.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS