RE: JXTemplate question
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <[email protected]> |
Yes!
This one works.
#{$inneritem/text()}
Thanks Robby!
- mika -
On Fri, 16 Nov 2012 13:48:27 +0000, Robby Pelssers
<[email protected]> 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: [email protected] [mailto:[email protected]]
> Sent: Friday, November 16, 2012 2:33 PM
> To: [email protected]
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]