Answer: Yes and no.In particular, DTDs can contain qualified names but XML namespace declarations do not apply to DTDs .This has a number of consequences. Because XML namespace declarations do not apply to DTDs:1. There is no way to determine what XML namespace a prefix in a DTD points to. Which means...2. Qualified names in a DTD cannot be mapped to universal names. Which means...3. Element type and attribute declarations in a DTD are expressed in terms of qualified names, not universal names. Which means...4. Validation cannot be redefined in terms of universal names as might be expected
Question:
Can I use XML namespaces in DTDs? Answer:
Yes and no.In particular, DTDs can contain qualified names but XML namespace declarations do not apply to DTDs .This has a number of consequences. Because XML namespace declarations do not apply to DTDs:1. There is no way to determine what XML namespace a prefix in a DTD points to. Which means...2. Qualified names in a DTD cannot be mapped to universal names. Which means...3. Element type and attribute declarations in a DTD are expressed in terms of qualified names, not universal names. Which means...4. Validation cannot be redefined in terms of universal names as might be expected Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.