<?xml version='1.0'?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html"/><xsl:template match="rss/channel"> <xsl:call-template name="title" /> <xsl:text> </xsl:text> <ul> <xsl:for-each select="item"> <xsl:if test="position() < <MAX_HEADLINES>"><xsl:call-template name="news_item"/></xsl:if> </xsl:for-each> <xsl:text> </xsl:text> </ul> </xsl:template> <xsl:template name="title"> <xsl:variable name="link"><xsl:value-of select="link" /></xsl:variable> <a href="{$link}" class="contentBlockTitle"><xsl:value-of select="substring(title, 16)"/></a> </xsl:template> <xsl:template name="news_item"> <xsl:variable name="title_length"><xsl:value-of select="string-length(0)"/></xsl:variable> <xsl:variable name="link"><xsl:value-of select="concat('http://www.',substring(link, 12))"/></xsl:variable> <xsl:text> </xsl:text> <li><a href="{$link}" class="titleLink4"><xsl:value-of select="substring(title,$title_length+3)" /></a></li> </xsl:template></xsl:stylesheet>I have a perl script that uses this XSLT to output an HTML file with some headlines of stories with links in a <ul> tag. Below is what the HTML output looks like:NOTE: if you look at the text of the headline you will see that substr has gone crazy with it for some reason. I have played around with the number. But what I really want to do is make the number of chars in the headline be unlimated. Understand? <a href="/news/breaking_news/index.rss" class="contentBlockTitle">.com: Breaking News</a> <ul> <li><a href="http://www.ledger-enquirer.com/news/breaking_news/story/80588.html" class="titleLink4">umbus man shot in neck Monday evening</a></li> <li><a href="http://www.ledger-enquirer.com/news/breaking_news/story/80561.html" class="titleLink4">rgia seeks special designation for Conasauga River</a></li> <li><a href="http://www.ledger-enquirer.com/news/breaking_news/story/80560.html" class="titleLink4">er Road Elementary program offers opportunity to explore Columbus</a></li> </ul>