cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: WoodyTemplateTransformer vs. WoodyGenerator
Date Tue, 10 Feb 2004 05:36:05 GMT
I was reading over this thread again, and...

On Feb 9, 2004, at 6:17 PM, I wrote:

> <..snip...> But to get an idea what it would be like if this worked, 
> try this:
>
> 1)
> 	<map:match pattern="hello-world-display-pipeline">
> 	  <map:generate type="woody" src="forms/view/hello-world.xml">
> 	    <map:parameter name="attribute-name" value="hello-form"
> 	  <map:serialize type="xml"/>
> 	</map:match>

My Bad!

Leave out the src="forms/view/hello-world.xml" from that 
<map:generate>.  There should be no src attribute.

> 2)  Then, add the super-secret ingredient in your flowscript, right 
> before the call to showForm():
>
> 	cocoon.request.setAttribute ('hello-form', form.form);
>
> Invoke your controller pipeline, and you'll get the XML from your view 
> pipeline.
>
> All the best,
> ~ml


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


Mime
View raw message