FreeBSD Bugzilla – Attachment 163647 Details for
Bug 204893
[patch] FDP, section 7.6.2: Wrong example for defining parameter entities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace example for defining parameter entities
replace_example.txt (text/plain), 1.27 KB, created by
Andreas Perstinger
on 2015-11-29 09:42:37 UTC
(
hide
)
Description:
Replace example for defining parameter entities
Filename:
MIME Type:
Creator:
Andreas Perstinger
Created:
2015-11-29 09:42:37 UTC
Size:
1.27 KB
patch
obsolete
>Index: xml-primer/chapter.xml >=================================================================== >--- xml-primer/chapter.xml (revision 47807) >+++ xml-primer/chapter.xml (working copy) >@@ -879,7 +879,7 @@ > 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 >@@ -895,13 +895,16 @@ > > <programlisting><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ >-<!ENTITY % param.some "some"> >-<!ENTITY % param.text "text"> >-<!ENTITY % param.new "%param.some more %param.text"> >- >-<!-- %param.new now contains "some more text" --> >+<!ENTITY % entity "<!ENTITY version '1.0'>"> >+<!-- use the parameter entity --> >+%entity; > ]></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>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204893
: 163647