Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 61333 invoked from network); 7 Dec 2000 14:14:45 -0000 Received: from www.saic.com (HELO cp-its-www) (198.151.15.15) by locus.apache.org with SMTP; 7 Dec 2000 14:14:45 -0000 Received: from johnnybravo (fw.infoplanning.net [209.8.58.131]) by cp-its-www (2.5 Build 2639 (Berkeley 8.8.6)/8.8.4) with SMTP id GAA00004; Thu, 07 Dec 2000 06:13:43 -0800 Message-ID: <006201c06057$cb6a81b0$bd00a8c0@infoplanning.com> From: "Berin Loritsch" To: , References: <00120714000200.00815@acido> Subject: Re: cocoon Date: Thu, 7 Dec 2000 09:12:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "David" To: Sent: Thursday, December 07, 2000 7:41 AM Subject: cocoon > Hi Cocoonians > > Can Cocoon work with xml/xsp out of its directory? > We have an xml file in the tomcat/webapps/cocoon/ and it works. > Now we want to move to other folder like /usr/home/intranet. > When apache-tomcat serves the xml file, we only obtain the xml source, not > interpreted by cocoon. > What changes (to cocoon probably) we need to make? There are two questions to help answer your question: What version of Cocoon? Do you mind violating the spirit of the Servlet Engine? Basically the answer goes like this: What you are proposing can only work in a trusted environment-- the security issues surrounding it make me shudder. That being said, in Cocoon 2 you would create a Generator and in Cocoon 1.x you would create a Producer (same role) that reads from the files OUTSIDE of the servlet environment. The Producer must make sure that the proper processing instructions are added, the Generator does not have to do anything special. In Cocoon 2, you also have the sitemap involved, so I am not sure how you would address files outside the Sevlet environment. In Cocoon 1, it is totally up to you.