| <?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 "<code>build docs</code>" 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>&half;</td> |
| <td>½</td> |
| </tr> |
| |
| <tr> |
| <td>characters.ent</td> |
| <td>&ouml;</td> |
| <td>Jörg</td> |
| </tr> |
| </table> |
| |
| </s1> |
| |
| </body> |
| </document> |