If those data are just strings , return a hashtable at the end of your
action which contains the key,value pairs.
Afterwards you access them in the sitemap using <map:parameter> tags:
In your action:
Hashtable ht = new Hashtable()
ht.put("param1","something");
return ht;
In the sitemap:
<map:transform type="xslt" src="test.xslt">
<map:parameter name="par1" value="{param1}"/>
</map:transform>
-----Original Message-----
From: grofcik.lan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 11:15
To: [EMAIL PROTECTED]
Subject: How to get data from action to transformer
Hello I am new at the cocoon,
I'd like to get some data in the action (from EJB list of objects) and I
want to put them to the transformer (xslt) How could I do it and how
could I access data in the transformer?
Action
|
V
Generator (meta description of the page .xml)
|
V
Transformer ( xslt transformation of the data)
|
V
Serializer
Thank you for answer.
Martin Grofcik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]