In the code below, I would like the HR tag to not appear if the last record has been reached. How is this possible?
Code:
<xsl:for-each select="rss/channel/item[position() <= $ItemsPerPage]">
<xsl:sort select="pubDate" order="descending" />
<li style="display: list-item;list-style-type: disc;list-style-image: url(_images/arrow.gif);list-style-position: outside;margin-bottom: 5px;margin-left: 25px;font-weight:bold"><a href="{link}"><xsl:value-of select="title"/></a></li>
<li style="display: list-item;list-style-type: disc;list-style-image: url(_images/spacer.gif);list-style-position: outside;margin-left: 25px;"><xsl:value-of select="pubDate"/></li>
</xsl:for-each>
You can see what I'm talking about with the screenshot here:
http://www.okoboji.com/xslt.jpg. I would like that bottom 'hr' tag to not appear.
Thanks in advance,
Matt