Lines 879-885
Link Here
|
879 |
context</link>.</para> |
879 |
context</link>.</para> |
880 |
|
880 |
|
881 |
<para>Parameter entity definitions are similar to those for |
881 |
<para>Parameter entity definitions are similar to those for |
882 |
general entities. However, parameter entries are included |
882 |
general entities. However, parameter entities are included |
883 |
with |
883 |
with |
884 |
<literal>%<replaceable>entity-name</replaceable>;</literal>. |
884 |
<literal>%<replaceable>entity-name</replaceable>;</literal>. |
885 |
The definition also includes the <literal>%</literal> between |
885 |
The definition also includes the <literal>%</literal> between |
Lines 895-907
Link Here
|
895 |
|
895 |
|
896 |
<programlisting><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
896 |
<programlisting><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
897 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ |
897 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ |
898 |
<!ENTITY % param.some "some"> |
898 |
<!ENTITY % entity "<!ENTITY version '1.0'>"> |
899 |
<!ENTITY % param.text "text"> |
899 |
<!-- use the parameter entity --> |
900 |
<!ENTITY % param.new "%param.some more %param.text"> |
900 |
%entity; |
901 |
|
|
|
902 |
<!-- %param.new now contains "some more text" --> |
903 |
]></programlisting> |
901 |
]></programlisting> |
904 |
</example> |
902 |
</example> |
|
|
903 |
|
904 |
<para>At first sight, parameter entities do not look very |
905 |
useful, but they make it possible to <link |
906 |
linkend="xml-primer-include">include other files</link> into |
907 |
an XML document.</para> |
905 |
</sect2> |
908 |
</sect2> |
906 |
|
909 |
|
907 |
<sect2> |
910 |
<sect2> |