cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Davignon <andre.davig...@free.fr>
Subject Re: Error in flowscript with processPipelineTo
Date Wed, 11 Feb 2009 10:19:47 GMT
Hi,

Shouldn't it be :

cocoon.processPipelineTo("myurl.xml",  {a: Bis1 } , xmlFavoritsRes);

instead of

cocoon.processPipelineTo("myurl.xml",  {"a": Bis1 } , xmlFavoritsRes);

?

André


> Hi,
>
> I'm trying to use the function processPipelineTo in FlowScript. My 
> flowscript code looks like this:
> ...
> var xml                     = '<XML/>';
> var StringBuffer1     = new Packages.java.lang.StringBuffer(xml);
> var Bis1                 = new 
> Packages.java.io.ByteArrayInputStream(StringBuffer1.toString().getBytes("UTF-8")); 
>
>
> var xmlFavoritsRes = new java.io.ByteArrayOutputStream();
>   cocoon.processPipelineTo("myurl.xml",  {"a": Bis1 } , xmlFavoritsRes);
>
> In the sitemap:
>
>
> <map:match pattern="myurl.xml">              <map:generate 
> src="module:flow-attr:a"/>
>         <map:transform src="something.xsl"/>           <map:serialize 
> type="xml"/>
> </map:match>
>
> Then when i execute de flowscript code i have this error:
>
> The attribute: a is empty
>
> I don't know why is the attribute empty...
>
> Thanks. Carlos.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


Mime
View raw message