November 2002
Intermediate to advanced
1120 pages
21h 2m
English
Validating parsers resolve all general entity references that occur in both element content and attribute values. However, nonvalidating parsers are allowed not to read the external DTD subset. Consider the simple XHTML document in Example 6.14.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h1>My resumé</h1>
</body>
</html>
|
If a parser does not read the DTD, then it has no way of knowing what the entity reference é stands for, or indeed whether that entity reference is even properly defined. However, such a ...
Read now
Unlock full access