SAX2: Namespace proposal

Hill, Les lhill at
Mon Dec 20 21:38:41 GMT 1999

David Megginson writes:
> Hill, Les writes:
>  > 	startNamespace("foo")
>  > 	startNamespace("baz")
>  > 	startElement("bar", atts)
>  > 
>  > which namespace is "bar" in?
> That's a separate question -- the idea of the original suggestion is
> that NamespaceContext would not be nested -- in the worst case, there
> would have to be start/endNamespaceContext events for every element.
> This is separate from the question of reporting the scope of 
> Namespace 
> declarations.

I must have missed that nuance.  In fact I am still missing it :)

If the element name has its own contextual information (i.e. using compound
names+), then yes, the namespace scoping is orthogonal.  If the element name
does not have the contextual information, then namespace scoping is crucial.
Unfortunately, startNamespace()/endNamespace() isn't good enough (see above

What am I missing?

+The original event sequence read as using simple Strings and NOT using
compound names mostly due to the second sequence in the message explicitly
identifying the namespace.


Les Hill
Senior Architect

Excelergy is hiring Java/C++ XML developers, all levels
   send resume (and mention me :) to jobs at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list