<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "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>
