View | Details | Raw Unified | Return to bug 204893
Collapse All | Expand All

(-)xml-primer/chapter.xml (-6 / +9 lines)
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>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
896
	<programlisting>&lt;!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
&lt;!ENTITY % param.some "some"&gt;
898
&lt;!ENTITY % entity "&lt;!ENTITY version '1.0'&gt;"&gt;
899
&lt;!ENTITY % param.text "text"&gt;
899
&lt;!-- use the parameter entity --&gt;
900
&lt;!ENTITY % param.new  "%param.some more %param.text"&gt;
900
%entity;
901
902
&lt;!-- %param.new now contains "some more text" --&gt;
903
]&gt;</programlisting>
901
]&gt;</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>

Return to bug 204893