No, there are reasons you'd want both. In many cases, the DTD is designed
with the prefixes already on the elements, and the document just makes sure
to use those prefixes. But they still want to have those translated to URLs
and that namespace aware data to be spit out.
--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-----Original Message-----
From: Boris Tarasyuk [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Re: namespaces and Valid XML
Same way I can say that not everything clear with Xerces.
When validating parser meets attribute, which is not declared in DTD,
it has to report error. And Xerces does report. But if attribute starts
from 'xmlns:' Xerces does not report error. So, if we agree that namespaces
and DTDs are not really like each other, may be make sense to prohibit
use SAXparser.setDoValidation(true) and SAXparser.setDoNamespaces(true);
for the same parsing?.
Boris Tarasyuk
Infrastructures for Information
[EMAIL PROTECTED]
>
> I dunno. That's kind of like saying that guns work even when you point
them
> at yourself is a feature :-) That's just an accident waiting to happen,
and
> it really *does* contradict the XML spec, which says that the names
defined
> in the DTD must be matched excactly in the document or its not valid.
>
> -------------------------
> Dean Roddey
> The CIDLib C++ Frameworks
> Charmed Quark Software
> [EMAIL PROTECTED]
> http://www.charmedquark.com
>
> "Why put off until tomorrow what you can
> put off until the day after tomorrow?"
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]