The problem is the string "PARENTS[0].xpto.xpto2"
<dtml-with "PARENTS[0]">
<dtml-with xpto>
<dtml-with xpto2>
... do stuf here ...
</dtml-with>
</dtml-with>
</dtml-with>
Isn't that exactly the same as
<dtml-with "PARENTS[0].xpto.xpt02">
</dtml-with>
??