cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: object in a transformer
Date Tue, 11 Mar 2003 15:49:28 GMT
On 11.Mar.2003 -- 04:40 PM, Lionel Crine wrote:
> By the way, I have few more question
> 
> 1/Can I put anything in the session ?

Yes. Shouldn't be too big, though, unless you have enough memory.

> 2/In the xsp page, haow can I get attribute from the DOM object in the 
> session ?
> Like that : <xsp-session:get-attribute name="the_object_in_the DOM"/>

Retrieve the object and use e.g. jxpath or the dom java api on it.

> 3/If I want the xsp generator to retreive the DOMsessionelement from my 
> custom transfomer, should I use a resource ?

Wait - you want to generate your XSP from a session attribute? Doesn't
sound too good to me. Remember that it needs to be compiled everytime
it changes.... Apart from that, a source seems to be right.

Why don't you include the DOM from your XSP (or from a transformer). I
believe the session framework supports similar things. In addition,
the util logicsheet lets you include an object as XML (if it
implements certain interfaces, DOM should be OK).

	Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

And if you are really cool, add a page at http://wiki.cocoondev.org

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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


Mime
View raw message