Hi,

Sorry for not reporting back, but I finally managed to do something similar
with the session transformer. I'll save this for future reference, because
my solution might not be the best one.

Thanks and bye, Helma

> -----Original Message-----
> From: Sebastian Klamar 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 30 December 2003 13:23
> To: [EMAIL PROTECTED]
> Subject: Re: How to get XML into session?
> 
> 
> * [EMAIL PROTECTED] [2003-12-29 17:06 +0100] wrote:
> > <map:match pattern="setSessionAttribute">
> >     <map:generate src="system/getData.xsp" type="serverpages"
> > label="debug1">
> >             <map:parameter name="someParameter" value="someValue"/>
> >     </map:generate>
> >     <map:transform src="system/cleanup.xslt" label="debug2"/>
> >     <map:serialize type="xml"/>
> > </map:match>
> > 
> > I want to put the resulting XML into a session attribute.
> 
> I'm currently using the WriteDOMSessionTransformer for this purpose.
> All you need is a valid session (the transformer doesn't create one).
> In your pipeline you place the following (>continue< is the session
> attribute).
> 
> <map:transform type="writeDOMsession">
>     <map:parameter name="dom-name" value="continue"/>
>     <!-- extract everything under <ddl> root node -->
>     <map:parameter name="dom-root-element" value="ddl"/>
> </map:transform>
> 
> If you have problems with this drop me a line.
> 
> The solution Nicolas suggests (contexts) is new to me.  As a third
> possible way to store your output I see the xmodule concept 
> -- which is
> new to me too.  As an example I saw today the thread on the dev list
> <http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107256239108085&w=2>
> 
> 
> HTH -- Sebastian
> 
> -- 
> Die letzten Worte...
>                        des Vertreters: "Brauchen sie einen 
> Staubsauger?"
> **************************************************************
> **********
> PGP Key: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C  A6CF D162 
> 20BB 1E72 7CE6
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to