cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <m...@digikartta.net>
Subject RE: JXTemplate question
Date Fri, 16 Nov 2012 13:58:49 GMT

 Yes!
 This one works.

 #{$inneritem/text()}

 Thanks Robby!
 - mika -


 On Fri, 16 Nov 2012 13:48:27 +0000, Robby Pelssers 
 <Robby.Pelssers@nxp.com> wrote:
> What is the actual value of inneritem?  A tag? And yes... using XSLT
> this would have been a breeze ;-)
>
> But maybe you use the wrong xpath expression?  I'm not sure what the
> binding returns.
>
> Suppose your current xpath looks like
>
> /root/tagname
>
> Give following a try
> /root/tagname/text()
> /root/tagname/node()
>
> Robby
>
>
>
>
> -----Original Message-----
> From: mika@digikartta.net [mailto:mika@digikartta.net]
> Sent: Friday, November 16, 2012 2:33 PM
> To: users@cocoon.apache.org
> Subject: JXTemplate question
>
>
>  Can you help me out with this.
>
>  This works:
>  <input type="text" value="#{$inneritem}"></input>
>
>  This doesn't
>  <textarea>#{$inneritem}</textarea>
>
>  Or it does actually work, but the result in a) is "xxx" and in b)
> <tagname>xxx</tagname>
>
>  What I am doing this template is to create an html page out of xml
> derived from CForms binding. Guess this would have been easier with
> XSL..
>  So the idea is to initialize form controls with values from XML
> elements, not with the whole XML elements.
>
>  - mika -
>
> ---------------------------------------------------------------------
> 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


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


Mime
View raw message