cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: JX node not showing
Date Sun, 28 Dec 2003 22:59:00 GMT
I tried this and it seems to work fine - except for 
#{query/music/title/text()} which caused a NullPointerException. I just 
checked in a fix for that. What version are you using? Here's what I got:

#{query/music/title} => Song

<jx:forEach select="#{query/music/arrangements/arrangement}">
title: #{./title},
</jx:forEach>           => title: Arr1, title: Arr2

Regards,

Chris


Upayavira wrote:

> I've got two problems with JXTemplateGenerator. To start with, here's 
> an XML:
>
> <music>
>  <title>Song</title>
>  <arrangements>
>    <arrangement>
>      <title>Arr1</title>
>    </arrangement>
>    <arrangement>
>      <title>Arr2</title>
>    </arrangement>
>  </arrangements>
> </music>
>
> 1) If I call the page with this in a DOM, with the name 'query', if I 
> do #{query/music/title}, it returns <title>Song</title>, not 'Song'. 
> #{query/music/title/text()} doesn't return anything, neither does 
> string() or node().
>
> 2) If I use
> <jx:forEach select="#{query/music/arrangements/arrangement">
>       <tr><td>title: :#{./title}</td></tr>
> </jx:forEach>
>
> It shows one 'title:' heading, not two. But #{./title} returns 
> nothing. Everything I've tried still returns nothing.
>
> Any pointers?
>
> Thanks, Upayavira
>
>
>
> ---------------------------------------------------------------------
> 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