Parameter entities allow you to place multiple entity declarations within an external file and refer to them within a source file. To embed the entities into the source file, you must declare the external file as a parameter entity. A parameter entity is identified by a percent symbol (%) following the term "entity" and followed by a space and the entity name. See Entity declarations for the syntax description. You refer to a parameter entity within the DOCTYPE statement by preceding the entity name with a percent symbol (%) and following it with a semicolon (;). This embeds the parameter entity file and allows its entities to be referred to in the source file.
<!ENTITY sb "ShelfBrowse">
<!ENTITY cotime "ten days">
<!ENTITY xcotime "five days">
<!ENTITY nttime "three days">
<!ENTITY nitem "red checkout card">
<!ENTITY lfine "ten cents">
<!ENTITY cophone "555-1234">
The conversion utility locates the parameter entity using these rules
for entity external files.<!doctype dm system
[<!entity % SYMBOLS system> %SYMBOLS;]>
<panel name=chkout width=40 depth=22>Library Checkout Periods
<area>
<info width=38>
<p>&sb; allows you to check out an inventory
item for a maximum of &cotime;.
However, you can renew the item for an additional
&xcotime; by calling in your card number to our
checkout phone line (&cophone;) any time of day.
<p>If an inventory item is a new shelf item
(indicated by the &nitem;), you may only reserve it for
a maximum of &nttime;.
You may not renew a new shelf item.
<p>There is a fine of &lfine; per day for all
items returned late.
</info>
</area>
</panel>
Figure 1 shows the formatted result. Library Checkout Periods
ShelfBrowse allows you to check out an
inventory item for a maximum of ten
days. However, you can renew the item
for an additional five days by calling
in your card number to our checkout
phone line (555-1234) any time of day.
If an inventory item is a new shelf
item (indicated by the red checkout
card), you may only reserve it for a
maximum of three days. You may not
renew a new shelf item.
There is a fine of ten cents per day
for all items returned late.