cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linden H van der (MI)" <H.vanderLin...@MI.unimaas.nl>
Subject RE: jx variable to nodeset
Date Tue, 15 Feb 2005 13:44:49 GMT
Hi Torsten,

a guess (I'm not sure about all the details of the syntax and I haven't
tested it):

<jx:set var="user"><session:getxml context="authentication"
path="/authentication/login"/></jx:set>
<jx:set var="attachment"
value="../content/users/#{user/.}/kk.xml</jx:set>

The first one creates a node, the second a string. I'm not sure if there
is another way of getting the userid as a string using <session:getxml>.
Anyway, your jx:"user" should contain a node with the id.
jx:"attachment" is set to a string using the JXPath expression to get
the text out of the jx:"user" node.

HTH.

Bye, Helma


> -----Original Message-----
> From: Thorsten Scherler [mailto:thorsten@apache.org] 
> Sent: Tuesday, 15 February, 2005 14:16
> To: users@cocoon.apache.org
> Subject: jx variable to nodeset
> 
> 
> Hello everyone,
> 
> I am looking for a way, to transform a jx variable into a nodeset?
> 
> Imagine I have following code:
> <jx:set var="attachment">../content/users/<session:getxml
> context="authentication" 
> path="/authentication/login"/>/kk.xml</jx:set>
> 
> <zip:entry name="userdata.html" src="${attachment}"/>
> 
> That will return (after jx generator):
> <zip:entry name="userdata.html" src="[Lorg.w3c.dom.Node;@710087"/>
> 
> ...but I would like e.g.
> <zip:entry name="userdata.html" src="../content/users/1736/kk.xml"/>
> 
> Any tips or hint on documentation how to archive it would be 
> very nice.
> :)
> 
> TIA!
> -- 
> thorsten
> 
> "Together we stand, divided we fall!" 
> Hey you (Pink Floyd)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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


Mime
View raw message