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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to