• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD and Namespace

 
Kartik Shah
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DTDs provide limited support of Namespace


Can somebody pls eloborate what support DTD provide with regards to namespace and what are the limitiations.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, DTD doesn't have any namespace support. Unless you count the DOCTYPE definition's PUBLIC ID a sort of poor man's namespace.
 
Kartik Shah
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply, Lasse.

Let me list couple of sources...
1. Limited Support as per Book Proffessional XML Chapter 5 in section Limitations of DTD.

2. Also explaination of Question 22 of Shashank Tanksali's IBM 141 Mock Exam.
The Explanation says...
DTDs support namespaces in a limited way. It is not possible to change the prefix and keep the same in namespace URI.


However, correct answer to same question is option d which says
DTDs for a document with namespace qualitified elements cannot be written since DTDs do not support namespaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic