cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinhard_po...@gmx.net>
Subject RE: [vote] finilizing the pending votes on flow [was Re: [RT] Flow/SitemapIntegration]
Date Fri, 17 Jan 2003 12:49:16 GMT
Thank you very much! I thought that it would work the other way!

Regards,
Reinhard

> -----Original Message-----
> From: Christopher Oliver [mailto:res1cf5x@verizon.net]
> Sent: Friday, January 17, 2003 7:18 AM
> To: cocoon-dev@xml.apache.org
> 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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message