[EMAIL PROTECTED] wrote:

Your stylesheet has
<xsl:value-of select="../../@user"/>","<xsl:call-template
name="replaceDotUnderscore"><xsl:with-param name="string"
select="../[EMAIL PROTECTED]"/></xsl:call-template>

Can you show us what's in that replaceDotUnderscore routine?


Ignore the \ before the @ in the last select of the above, it's
not really there and I don't know how it managed to get into
my 'paste'. The replaceDotUnderscore is below


<!--
This template performs search/replace of the . and _ characters
-->
<xsl:template name="replaceDotUnderscore">
<xsl:param name="string" />
<xsl:choose>
<xsl:when test="contains($string, '.')">
<xsl:value-of select="substring-before($string, '.')"/><xsl:text>_</xsl:text>
<xsl:call-template name="replaceDotUnderscore">
<xsl:with-param name="string" select="substring(substring-after($string, '.'), 1)" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>





Reply via email to