Namespaces and DTDs

james anderson James.Anderson at
Fri Mar 12 10:01:05 GMT 1999

of all things, the "context problems" would be minimal, so long as the
decoding process maps the prefixed identifiers to universal identifiers.
(which as best i can surmis all the "standard" parsers do.) the application
wouldn't care where they came from and any reserialization would be
responsible to get its own declarations in order.

[i'm not arguing for this declaration form, just noting that it doesn't make
the problem any more complex.]

Andrew McNaughton wrote:
> Documents resulting from queries run on the concatenated document would tend
> to cause problems, as query results don't generally return the context of the
> XML elements returned.  This problem also applies to queries run across
> multiple documents unless their DTD's are identical, which perhaps suggests
> that an answer to this problem has to come from the query languages.
> Andrew McNaughton
>  Marc.McDonald at wrote:
> > So make a namespace declaration a PI and add an "not using this
> > namespace anymore" PI. Then use simple occurrence scoping:
> >
> > Process result:
> > <?XMLNS prefix="foo" uri="...">
> > <A> .... </A>
> > <XMLENDNS prefix="foo">
> >

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 (un)subscribe, mailto:majordomo at the following message;
(un)subscribe 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