Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163255269
D16680.id46566.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16680.id46566.diff
View Options
Index: head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml
+++ head/en_US.ISO8859-1/books/fdp-primer/xml-primer/chapter.xml
@@ -861,7 +861,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
@@ -877,13 +877,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 xml:id="xml-primer-to-do">
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 11:38 AM (18 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35362860
Default Alt Text
D16680.id46566.diff (1 KB)
Attached To
Mode
D16680: Fix example for defining parameter entities
Attached
Detach File
Event Timeline
Log In to Comment