Example snippet uses invalid syntax which creates errors when used in a doc.

Fix spelling mistake while here.

PR:		204893
Submitted by:	Andreas Perstinger <andipersti at gmail>
Approved by:	bcr (mentor) rene
Differential Revision:	https://reviews.freebsd.org/D16680
This commit is contained in:
Sevan Janiyan 2018-08-11 15:52:26 +00:00
parent def10dc41e
commit bd40e0f956
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52103

View file

@ -861,7 +861,7 @@ example.xml:5: element head: validity error : Element head content does not foll
context</link>.</para>
<para>Parameter entity definitions are similar to those for
general entities. However, parameter entries are included
general entities. However, parameter entities are included
with
<literal>%<replaceable>entity-name</replaceable>;</literal>.
The definition also includes the <literal>%</literal> between
@ -877,13 +877,16 @@ example.xml:5: element head: validity error : Element head content does not foll
<programlisting>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
&lt;!ENTITY % param.some "some"&gt;
&lt;!ENTITY % param.text "text"&gt;
&lt;!ENTITY % param.new "%param.some more %param.text"&gt;
&lt;!-- %param.new now contains "some more text" --&gt;
&lt;!ENTITY % entity "&lt;!ENTITY version '1.0'&gt;"&gt;
&lt;!-- use the parameter entity --&gt;
%entity;
]&gt;</programlisting>
</example>
<para>At first sight, parameter entities do not look very
useful, but they make it possible to <link
linkend="xml-primer-include">include other files</link> into
an XML document.</para>
</sect2>
<sect2 xml:id="xml-primer-to-do">