Dear all,

I see in thw wizrd demo how the repeat tag is used like this:
<xf:repeat nodeset="favorite[position() &lt;= 3]" id="favorites">
 <xf:textbox ref="." class="info">
  <xf:caption>URL: </xf:caption>
 </xf:textbox>
</xf:repeat>

In the model bean the favorite is implemented as an array list, so you can
iterate through it using the position function and specifying how many items
to display.

Well, now I got a part of my model implmented as a DOM Node. It seems it'w
working right but I can't make the repeat tag to work with it. Let's say I
have something like this:
<product>
    <description lang="en">nice table</description>
    <description lang="es">mesa bonita</description>
</product>

I want to display as many textboxes as descriptions, ok? I have tried this,
but unfortunately it is not working. :
<xf:repeat nodeset="/productNode/product">
 <xf:textbox ref="description/@lang">
  <xf:caption>Language (code):</xf:caption>
  <xf:violations class="error"/>
 </xf:textbox>
 <xf:textbox ref="description">
  <xf:caption>Description:</xf:caption>
  <xf:violations class="error"/>
 </xf:textbox>
</xf:repeat>

If I try to access just one description node outside the repeat tag, I get
the info correctly. Any ideas?

Thanks.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to