Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 41464 invoked from network); 24 Feb 2004 12:07:28 -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:07:28 -0000 Received: (qmail 1755 invoked by uid 500); 24 Feb 2004 12:07:24 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 1568 invoked by uid 500); 24 Feb 2004 12:07:23 -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 1554 invoked from network); 24 Feb 2004 12:07:23 -0000 Received: from unknown (HELO kerberos) (62.116.51.59) by daedalus.apache.org with SMTP; 24 Feb 2004 12:07:23 -0000 Received: From mail.at.efp.cc ([62.116.51.60]) by kerberos (WebShield SMTP v4.5 MR1a); id 1077624441113; Tue, 24 Feb 2004 13:07:21 +0100 Received: from WRPO (wrpo.at.intra.efp.cc [194.107.80.17]) by mail.at.efp.cc (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id i1OC7J727684 for ; Tue, 24 Feb 2004 13:07:20 +0100 From: "Reinhard Poetz" To: Subject: RE: [Flow] Importing multiple scripts? (ScriptDirectoryNode) Date: Tue, 24 Feb 2004 13:06:10 +0100 Message-ID: <001401c3face$982ba530$1e01a8c0@WRPO> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: 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 > -----Original Message----- > From: news [mailto:news@sea.gmane.org] On Behalf Of Andreas Hartmann > Sent: Tuesday, February 24, 2004 11:54 AM > To: dev@cocoon.apache.org > Subject: Re: [Flow] Importing multiple scripts? (ScriptDirectoryNode) > > > Reinhard Poetz wrote: > > From: Andreas Hartmann > > > > > >>Hi Cocoon developers, > >> > >>is it currently possible to include a set of scripts > >>dynamically? I imagine something like a > >>o.a.c.c.treeprocessor.sitemap.ScriptDirectoryNode > >>that works similar to the DirectoryGenerator by > >>gathering all .js files in a certain directory tree. > >> > >>Or is there another way to achieve this functionality? > > > > > > You can dynamically add scripts using > > > > > > > > > > > > So you can use the DirectoryGenerator but be aware of possible > > conflicts by using the same function or global variable names. > > 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. -- Reinhard > > Thank you for the hint, > -- Andreas >