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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Revised Internet-Draft: Media Feature - xmlns

[ Lists Home | Date Index | Thread Index ]

> It seems to me that "best practise" XML should include
> having xmlns:* declarations for all namespaces used
> in the document at the top level element, even if 
> the namespaces are used by default declarations
> within the document rather than the dummy prefixes
> at the top-level.
> 
> Would it make processing and dispatching easier if
> XML tools did this?

I don't think so, no.

Dan Connolly and TimBL wrote up an *excellent* note about this topic
(and some other related ones);

http://www.w3.org/TR/NOTE-webarch-extlang
http://www.w3.org/TR/NOTE-webarch-extlang#Local

Streaming XML is a good example of where this would be a bad idea.
If a processor hit the stream mid stride, it would have missed the
namespace declarations.  The same issue applies to processing on small
devices, where the beginning of larger documents may be discarded from
memory before the document is finished processing.

MB
-- 
Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA.      mbaker@planetfred.com
http://www.markbaker.ca   http://www.planetfred.com




 

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

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