Even though DTDs are not namespace aware, you can define namespaces in the DTD as regular attributes. For example (XML in a Nutshell #66), this ATTLIST declaration fixes the default namespace of all svg elements as http://www.w3.org/2000: <!ATTLIST svg xmlns CDATA #FIXED "http://www.w3.org/2000"> This allows you to omit xmlns attributes from all your svg elements. A document does not need to be valid to take advantage of this omission. All that's required is that the parser read the DTD. All parsers read the internal DTD subset and process any ATTLIST declarations they find there. Cheers, Dan
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Joined: Aug 04, 2001
if i declare this, how to use the namespace prefix? if that book contains, i will go through it soon as i don't have the book right now. if not please some one could tell me how to refer prefix. Thanks in Advance