Hi All,
I'm having trouble with an xsl:if test and the position function that I haven't been able to work out. I'm first testing to see if an element in my XML contains either 'Y' or 'N' and then want to return the first 5 records that match the first test criteria.
Code:
<xsl:if test="contains(deleted,'N') and position() < 5">
The problem is that if there are no elements in the top 5 that are 'N' it returns nothing. The result I'm trying to achieve is that the XSL will return the first 5 it finds that are 'N' regardless of their position in the XML document and not to only test the top 5 records.
Any suggestions?
Thanks in advance for any help you can offer :)