What about entities?
The concept of entity is valid in writing either XML, DTD, or
XSL. There are two possible entities:
Internal: The piece of code referred is directly written in the entity
declaration.
External: allows the definition of a variable referencing an external
piece of code. This entity will be used later and replace by the
referred piece of code when the document is processed.
<!ENTITY mdk-co "<company>MandrakeSoft</company>">
<!ENTITY LM "<application>Linux-Mandrake</application>">
<para>
&LM; is made by &mdk-co;.
</para>
|
|
<!ENTITY entity-example SYSTEM "xml-entity-example.xml">
<para>
We already saw an example of entity in the previous DTD,
this is an example in XML:
</para>
<listing>
&entity-example;
</listing>
|
|
|