>From the supplied XSLT: <xsl:apply-templates select="EscapeQuotes"/> ... <xsl:template name="EscapeQuotes"> <xsl:param name="string" />
Those statements don't match up. BTW, this (at least so far) is a generic XSLT question that could be answered from the FAQ or books on XSLT.