Hello,
I have a foreach tag where I want to use the index of the loop in a xpath:
<c:forEach begin="1" end="3" varStatus="status">
<c:set var="index" value="{status.index}" />
<c:set var="xpath" >
/content/${doc.content.xpath['/root/list/article[index]/@id']}.xml</c:set>
</c:forEach>
The xpath takes the index variable as a string.
Does anybody knows how I can use this index in the xpath?
Thank you!
Wilson de Paula Pedro Junior
********************************************
Hippocms-dev: Hippo CMS development public mailinglist