Thank you very much! I thought that it would work the other way! Regards, Reinhard
> -----Original Message----- > From: Christopher Oliver [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 7:18 AM > To: [EMAIL PROTECTED] > Subject: Re: [vote] finilizing the pending votes on flow [was Re: [RT] > Flow/SitemapIntegration] > > > 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: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]