next up previous contents
Next: External entity specifications Up: Entities Previous: Entities

Parameter literals

In the DTD:
<!ENTITY tei "Text Encoding Initiative">

In the document:
The work of the &tei; has only just begun.

After processing:
The work of the Text Encoding Initiative has only just begun.

Parameter literals (data text) are very important for system independent character set representations:

In the DTD:

<!ENTITY abreve SDATA "[abreve]"--=small a, breve-->
<!ENTITY Abreve SDATA "[Abreve]"--=capital A, breve-->
<!ENTITY amacr  SDATA "[amacr ]"--=small a, macron-->
<!ENTITY Amacr  SDATA "[Amacr ]"--=capital A, macron-->
<!ENTITY aogon  SDATA "[aogon ]"--=small a, ogonek-->
<!ENTITY Aogon  SDATA "[Aogon ]"--=capital A, ogonek-->
...

In the document:

<s>&Icirc;ntr-o zi senin&abreve; &scedil;i 
friguroas&abreve; de aprilie, pe c&acirc;nd ceasurile
...

If the system does not support the character, it can be displayed sloppily:

<!ENTITY abreve SDATA "a"--=small a, breve-->

If the system does support the character, but it cannot be entered directly, the replacement text is a character entity, e.g.:

<!ENTITY abreve SDATA "&#123;"--=small a, breve-->



Tomaz Erjavec
1/9/2000