Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 49093 invoked from network); 24 Feb 2004 12:23:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Feb 2004 12:23:03 -0000 Received: (qmail 22816 invoked by uid 500); 24 Feb 2004 12:23:00 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 22568 invoked by uid 500); 24 Feb 2004 12:22:58 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 22550 invoked from network); 24 Feb 2004 12:22:58 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 24 Feb 2004 12:22:58 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AvbaU-00060i-00 for ; Tue, 24 Feb 2004 13:22:58 +0100 Received: from mail.ewerk.com ([217.69.240.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 24 12:22:58 2004 Received: from j.heinicke by mail.ewerk.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 24 12:22:58 2004 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Joerg Heinicke Subject: Re: [Flow] Importing multiple scripts? (ScriptDirectoryNode) Date: Tue, 24 Feb 2004 12:22:56 +0000 (UTC) Lines: 22 Message-ID: References: <001401c3face$982ba530$1e01a8c0@WRPO> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 217.69.240.162 (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113) Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Andreas Hartmann apache.org> writes: > >>OK. So I have to write scripts included in XML, aggregate > >>them using the DirectoryGenerator, strip the XML tags and > >>serialize as text? > > > > > > embedding Javascript in XML is IMHO ugly but it would work this way. > > Does the directory generator read a all files including their content or > > do you use the cinclude transformer? If so and it doesn't accept non-xml > > content it should be patched. > > I would use CInclude. I'll try if it includes text files > and complain if it doesn't work :) I'm nearly sure it won't work. The DirectoryGenerator itself does not include any file, the XPathDirectoryGenerator expects XML files: source = resolver.resolveURI(xmlFile.toURL().toExternalForm()); this.doc = this.parser.parseDocument(SourceUtil.getInputSource(source)); Joerg