On Fri, 2002-08-09 at 13:16, Ross Gardler wrote:
> I am trying to bring multiple documents together into a single document 
> in order to create a book in which each document is a separate chapter. 
> However, I do not want the structure of the book to be stored in the 
> sitemap, I want this in a separate XML file.

<snip/>

> However, the xslt transformer fails becasue it is looking for, and can;t 
> find, the DTD for the included chapters, in the same directory as the 
> XML file. The doctype line in each of the chapter documents is:
> 
> <!DOCTYPE document PUBLIC "-//APACHE/DTD Documentation V1.1//EN"
> "document-v11.dtd">
> 
> Replacing "document-v11.dtd" with the path to the dtd does not work as 
> it then looks for the entity files in the wrong place. Besides, doing 
> this would mean I couldn't move any files without breaking the doctype 
> so I'm not keen on this.
> 
> I don't know much about catalogs but I suspect what is happening is that
> cocoon works fine as it is aware of my DTD catalog, but the XSL
> transformer fails on the as it is not aware of the catalog. Any ideas 
> how to solve this? (if indeed this is the problem).

Hi Ross,

I suspect the best way to handle this would be through the use of the
catalogs.  There's a couple of ways of handling this.  The quickest, but
not necessarily the best, would be to do the following:

        1. In the webapp/cocoon directory, there is a sub-directory
           called resources/entities.  Will will want to create a new
           sub-directory here and edit the "catalog" file found here to
           reference a new catalog file.
        2. Create a directory under resources/entities called
           "document-v11".
        3. Copy the document-v11.dtd and any other files it references
           (such as possibly characters.ent any others?) to this new
           directory.
        4. Edit the "resources/entities/catalog" file and add a line to
           the bottom that reads

        CATALOG document-v11/catalog

Finally, create this new file "resources/entities/document-v11/catalog"
with the single line

        PUBLIC "-//APACHE/DTD Documentation V1.1//EN" document-v11.dtd

You shouldn't have to make any changes to your documentation.  Although,
you may have to restart your engine for cocoon to re-read the
resources/entities/catalog file to find the new stuff.
 
-- 
Rick Tessner
[EMAIL PROTECTED]

"Breathe.  Breathe again.  Keep doing that."

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to