cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject RE: JXTemplate jx:set ???
Date Fri, 19 Nov 2004 09:54:56 GMT
Hi Robby 
That's what I do in the first example and that works fine as long as the
content is in the value attribute. The problem is that I'll have tags to
put  into my variable so I need to be able to them into the body of the
jx:set variable but in this case it only return the NOde Object , but how
to extract it's content???
Thanks for the help
Tibor

> i would try
> 
> <jx:set var="keywords" value="fssgffdgfdg sdfqfqs qfsdqq"/> and see if
> this works
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of oceatoon
> Sent: 18 November, 2004 23:58
> To: users@cocoon.apache.org
> Subject: JXTemplate jx:set ???
> 
> 
> Hi everyone
> I have an odd behavior or I just can't see what I'm doing wrong, maybe
> someone will have an inlightened eye tot is:
> 
> *******************************
> if I do this in my html.jx file:
> <jx:set var="keywords"><meta name="keywords" content="klgjgjkh"/></jx:set>
> ${keywords}
> 
> This works fine. the result is correctly :
> <meta name="keywords" content="klgjgjkh"/>
> ********************************
> 
> but now I need to do this:
> <jx:set var="keywords">fssgffdgfdg sdfqfqs qfsdqq</jx:set>
> <meta name="keywords" content="${keywords}"/>
> 
> 
> and I get :
> <meta content="[Lorg.w3c.dom.Node;@d4c191" name="keywords" />
> 
> [Lorg.w3c.dom.Node;@d4c191 seems to be my object, so I tried to
> getValueNode() on this but it gets worse
> i get:
> <meta content="" name="keywords" />
> 
> the same happens with XPath calls
> I don't really understand
> 
> all thoughts are greatly appreciated
> Thanks
> Tibor
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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