I get it. A lot of code and functions already existed, I just had to know what I was looking for and massage the results a bit.
Return the document file name:
<span class="l">
<xsl:variable name="document_title">
<xsl:call-template name="last_substring_after">
<xsl:with-param name="string" select="substring-after(
$temp_url,
'/')"/>
<xsl:with-param name="separator" select="'/'"/>
<xsl:with-param name="fallback" select="'UNKNOWN'"/>
</xsl:call-template>
</xsl:variable>
Replace% 20 with spaces:
<xsl:call-template name="replace_string">
<xsl:with-param name="find" select="'%20'"/>
<xsl:with-param name="replace" select="' '"/>
<xsl:with-param name="string" select="$document_title"/>
</xsl:call-template>
</span>
source
share