change
<xsl:call-template name="$templateName"/>
to <apply-templates select="$templateName"/>
and change
<xsl:template name="foo">
to
<xsl:template match="templatename[.='foo']">
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________