Escape the ampersand properly.

[SVN r47820]
This commit is contained in:
Daniel James 2008-07-25 23:52:12 +00:00
parent d458d33ae9
commit dc60960dd9

View File

@ -28,7 +28,7 @@
<xsl:choose> <xsl:choose>
<xsl:when test="not($recursive)"> <xsl:when test="not($recursive)">
<!-- translate dots into directory separators, and replace illegal file path characters with underscores --> <!-- translate dots into directory separators, and replace illegal file path characters with underscores -->
<xsl:value-of select="translate(normalize-space(translate($basename, '.&lt;&gt;\:*?&quot;|,()!+=&', '/ ' )), ' ', '_')"/> <xsl:value-of select="translate(normalize-space(translate($basename, '.&lt;&gt;\:*?&quot;|,()!+=&amp;', '/ ' )), ' ', '_')"/>
<xsl:value-of select="$html.ext"/> <xsl:value-of select="$html.ext"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>