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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Does DTD validation work with namespaces?

[ Lists Home | Date Index | Thread Index ]
  • From: Jonathan Borden <jborden@mediaone.net>
  • To: Norman Walsh <ndw@nwalsh.com>, xml-dev@lists.xml.org
  • Date: Wed, 09 Aug 2000 13:00:02 -0400

Norman Walsh wrote:

[bunch of sensible stuff deleted]

> Extending DTDs to work outside this environment, by means of a PI for
> example that mapped prefixes to URIs in the DTD, would make a parser
> that accepted documents that were not XML 1.0 valid but were XML
> 1.0+Namespaces valid. It'd be an interesting exercise.
The problem is that for the internal subset, no mapping is needed because
the prefix->URI mapping can be obtained from the content context. The
problem exists for external DTDs which could use a PE to 'substitute' the
{file://foo}aaa notation for the xxx:aaa notation, if this notation were
adopted as part of the DTD syntax.


<!ELEMENT root (xxx:aaa)* >
<root xmlns:xxx="file://foo" xmlns:yyy="file://foo" >

would be namespace valid.


<!ELEMENT root ({file://foo}aaa)*>

would allow definition of expanded names even in an external subset.

Jonathan Borden
The Open Healthcare Group


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

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