I would like to target all but the last iterations/nodes to give them a bottom border. Only the last iteration should not have a bottom border.
This is my XSLT now:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:decimal-format name="european" decimal-separator=',' grouping-separator='.'/>
  <xsl:template match="items">
  {$fallback = 0}
    <xsl:for-each select="item">
      <table align="center" cellpadding="0" class="resize" cellspacing="0" border="0" style="width:600px; background-color:#ffffff">
        <tr>
          <td align="center" style="border-bottom: 1px solid #000000;">
           <table cellpadding="0" cellspacing="0" style="width:190px" class="resize" align="left" bgcolor="#ffffff">
           {$fallback = 1}
             <tr>
               <td align="center" class="no_padding" style="padding:20px;">Do some code here
               </td>
             </tr>
           </table>
         </td>
       </tr>
     </table>
   </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
Now I tried doing something like <xsl:if test="position() = last()"><td align="center" style="border-bottom: 1px solid #000000;"></xsl:if><xsl:if test="position() != last()"><td align="center"></xsl:if>
However I see nothing happening in my output HTML. Also if I just add <xsl:if test="position() = last()">asdjasdkkasdjasd</xsl:if> I do not see any text in the output.
Does anyone know how to fix this? Thanks in advance!
 
    