<html>
<head>
<title>Entity Declared</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Entity Declared</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">&nbsp;
</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">Text from specification</td>
</tr>
<tr>
<td colspan="2" class="description">


<p>In a document
with an external subset or external parameter entities with
<span class="LITERAL">standalone='no</span>', the <span class="LITERAL">Name</span> given
in the entity reference must match that in an entity declaration. For
interoperability, valid documents should declare the entities
<span class="LITERAL">amp</span>, <span class="LITERAL">lt</span>, <span class="LITERAL">gt</span>,
<span class="LITERAL">apos</span>, <span class="LITERAL">quot</span>. The declaration of
a parameter entity must precede any reference to it. Similarly, the
declaration of a general entity must precede any attribute-list
declaration containing a default value with a direct or indirect
reference to that general entity.</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">Explanation</td>
</tr>
<tr>
<td colspan="2" class="description">


<p>Parameter and general entity declarations must precede any references
to these entities. All entity references must refer to previously
declared entities. The specification also states that declaring the
five predefined general entities (<span class="LITERAL">amp</span>,
<span class="LITERAL">lt</span>, <span class="LITERAL">gt</span>,
<span class="LITERAL">apos</span>, and <span class="LITERAL">quot</span>) is a good idea.
In reality, declaring the predefined general entities adds
unnecessary complexity to most applications.</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>