Lists Home |
Date Index |
- From: "Richard L. Goerwitz" <firstname.lastname@example.org>
- To: email@example.com
- Date: Fri, 25 Jun 1999 09:08:16 -0400
Eric Melski wrote:
> Hello --
> I am having trouble understanding the use of namespaces with respect to
> the declaration of attribute lists.
Your misunderstanding is understandable.
> <?xml version="1.0"?>
> <!DOCTYPE INVOICE [
> <!ATTLIST foo:DETAILS descr CDATA "bob">
> <INVOICE xmlns="foo">
> <ITEM>neogalactic hyperdrive</ITEM>
Note that you declare foo:DETAILS, but actually use DETAILS. You and I
both know that there's a default namespace in effect when we see DETAILS
in your document. But the DTD doesn't know this.
There's probably no point in going through the namespace rant again
except to say that they remain a bad idea, among other reasons because
they do not interact with the only official schema mechanism we have
(DTDs) and therefore lead to precisely this sort of confusion.
As I said, your misunderstanding in understandable.
PGP key fingerprint: C1 3E F4 23 7C 33 51 8D 3B 88 53 57 56 0D 38 A0
For more info (mail, phone, fax no.): finger firstname.lastname@example.org
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)