blob: 1d473d479fd5e5c8e82e56717341acf3a36e640f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "dtd/document-v10.dtd"
[
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"ISOnum.pen">
%ISOnum;
]>
<document>
<header>
<title>Testing: Catalog Entity Resolver</title>
<subtitle>Test document to ensure external entity resolution</subtitle>
<version>1.0</version>
<type>Technical document</type>
<authors>
<person name="David Crossley" email="crossley@apache.org"/>
</authors>
</header>
<body>
<s1 title="Introduction">
<p>
This document <code>catalog-test.xml</code> facilitates the testing of
the entity catalogs and the resolution of entities.
</p>
<p>
For further information see Cocoon documentation:
<link href="userdocs/concepts/catalog.html">Entity resolution with
catalogs</link>
</p>
<p>
The following external entities have been declared in the head of this
XML instance <code>catalog-test.xml</code> ...
</p>
<ul>
<li>document-v10.dtd (and hence characters.ent)</li>
<li>ISOnum.pen</li>
</ul>
<p>Here is the actual declaration ...</p>
<source><![CDATA[
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN"
"dtd/document-v10.dtd"
[
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"ISOnum.pen">
%ISOnum;
]>
]]></source>
</s1>
<s1 title="Tests">
<p>
The following entity references should be properly resolved.
Watch the build messages from &quot;<code>build docs</code>&quot; and see
the result presented below.
</p>
<note>Beware: Even though Cocoon will deliver reliable ouput, your web
browser may not render the document properly. Some browsers do not know
what to do with the character entity.
</note>
<table>
<tr>
<th>Entity set</th>
<th>Character entity</th>
<th>Representation</th>
</tr>
<tr>
<td>ISOnum.pen</td>
<td>&amp;half;</td>
<td>&half;</td>
</tr>
<tr>
<td>characters.ent</td>
<td>&amp;ouml;</td>
<td>J&ouml;rg</td>
</tr>
</table>
</s1>
</body>
</document>