Lists Home |
Date 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);
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.
Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA. email@example.com