I will try using xslt tags.<br>Thanks Cedric<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 9:43 PM, Cedric Staub <span dir="ltr"><<a href="mailto:cedric.staub@wyona.com">cedric.staub@wyona.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello Bilgin<br>
<div><div></div><div class="h5"><br>
On Thu, Feb 10, 2011 at 05:53:57PM +0000, Bilgin Ibryam wrote:<br>
> I'd like to display a tree structure using jelly templates, but can't find a<br>
> way to iterate over all the nodes w/o doing recursive calls.<br>
> Any ideas how can I display tree structure or do recursive calls in jelly (I<br>
> checked the jelly tutorial but couldn't find anything useful there)?<br>
<br>
</div></div>As far as I know both Jelly and XSLT are functional languages (not sure<br>
about Jelly, but XSLT is certainly purely functional). This means that<br>
you will have to use recursion to print your tree, since functional<br>
languages can't have mutable state.<br>
<br>
That said, I never actually used Jelly in this fashion (I prefer XSLT<br>
over Jelly). But if I understand the Jelly documentation correctly, you<br>
should be able to use the template/applyTemplates tags to define and<br>
recursively apply templates.<br>
<br>
See here: <a href="https://commons.apache.org/jelly/libs/jsl/tags.html" target="_blank">https://commons.apache.org/jelly/libs/jsl/tags.html</a><br>
<br>
Cheers,<br>
Cedric<br>
<font color="#888888">--<br>
Yanel-usage mailing list <a href="mailto:Yanel-usage@wyona.com">Yanel-usage@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage</a><br>
</font></blockquote></div><br>