For a variety of reasons, I'd really like to be able to show the file name as the result title in our Google Mini's search results, rather than what the default is. I'm able to almost do this by replacing
<!-- *** Result Title (including PDF tag and hyperlink) *** -->
...
<span class="l">
<xsl:choose>
<xsl:when test="T">
<xsl:call-template name="reformat_keyword">
<xsl:with-param name="orig_string" select="T"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise><xsl:value-of select="$stripped_url"/></xsl:otherwise>
</xsl:choose>
</span>
with
<span class="l">
<xsl:value-of select="$stripped_url"/>
</span>
What's left required is to:
- Replace the %20's with spaces
- Trim the url so only the end file name is left
- Trim the file extension from the end
How can I accomplish this?