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:[EMAIL PROTECTED] 
> Sent: Tuesday, 15 February, 2005 14:16
> To: [email protected]
> 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: [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