Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 94327 invoked by uid 500); 17 Jan 2003 06:18:10 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 94314 invoked from network); 17 Jan 2003 06:18:10 -0000 Message-ID: <3E27A003.1060909@verizon.net> Date: Thu, 16 Jan 2003 22:17:39 -0800 From: Christopher Oliver User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [vote] finilizing the pending votes on flow [was Re: [RT] Flow/SitemapIntegration] References: <000001c2bdb4$e4a5f6c0$2301a8c0@wrpo> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at out006.verizon.net from [4.46.80.164] at Fri, 17 Jan 2003 00:18:20 -0600 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Reinhard, Just a warning, you should always use the "var" keyword with local variables in JavaScript. Your function should probably read: function callPipeline(src) { var xc = cocoon.componentManager.lookup( myXMLConsumer.ROLE ); var resolver = cocoon.environment.getObjectModel().get("source-resolver"); var srce = resolver.resolveURI(src); resolver.toSAX( srce, xc ); return xc; } Without "var" you are creating global variables named "xc", "resolver", "srce". . Regards, Chris Reinhard Poetz wrote: >For my flows I use a self-defined function which makes this for me: > >function callPipeline(src) { > xc = cocoon.componentManager.lookup( myXMLConsumer.ROLE ); > resolver = cocoon.environment.getObjectModel().get("source-resolver"); > srce = resolver.resolveURI(src); > resolver.toSAX( srce, xc ); > return xc; >} > > > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org