You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rui Alberto <ru...@ptinovacao.pt> on 2005/05/16 11:56:58 UTC

Accessing session attribute using JXTransformer

Hi all,
I've stored an attribute in session using writeDOMSession transformer.
Is that possible using JX transformer?
Something like ${session.getAttribute("xmlData")/some/xpath} ?

Thanks for any help,
Rui




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


Re: Accessing session attribute using JXTransformer

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Rui Alberto wrote:
> Hi all,
> I've stored an attribute in session using writeDOMSession transformer.
> Is that possible using JX transformer?
> Something like ${session.getAttribute("xmlData")/some/xpath} ?
first you should use JXPath instead of JEXL
try this:

#{$cocoon/session/xmlData/some/xPath}

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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