posted 15 years ago
Hi
I have a random number in a <c:set> variable. Now i want to use it in a <x:out> to output a specific node information by using position() to compare it with the number in the variable i already have. But it doesn't work.
I am trying to do this way
<x:out select="$doc//topics/topic[position()=$randomNum] />
or
<x:forEach var="ran" select="$doc//topics>
<x:if select="$ran[position()= $randomNum>
<x:out select="$ran/title"/>
</x:if>
</x:forEach>