El mar, 15-02-2005 a las 14:44, Linden H van der (MI) escribi�:
> 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>
>
I tried nearly all possible syntax but
<jx:set var="staticUser" value="007"/>
<jx:set var="setAttachment"
value="../content/users/${staticUser}/kk.xml"/>
<test>
setAttachment:${setAttachment}
staticUser:${staticUser}
</test>
Returns always
<test>
setAttachment:../content/users/${staticUser}/kk.xml
staticUser:007
</test>
...even if I use #{staticUser/.} or similar combination.
All variables that I have defined by a jx:set are returning null if I
use them like #{staticUser} or #{staticUser/.}. :(
...and I cannot use something <jx:set var="setAttachment"
value="../content/users/${staticUser}/kk.xml"/> because it does not got
resolved. :(
Thanks for the tip I am still looking why that is not working.
thorsten
> 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]
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]