1
Vote

Add FixAmpersands

description

<xsl:template name="FixAmpersands">
            <xsl:param name="StringValue"/> 
            <xsl:variable name="Ampersand" select="'&amp;amp;'" /> 
            <xsl:choose> 
                    <xsl:when test="contains($StringValue, $Ampersand)"> 
                            <xsl:value-of select="concat(substring-before($StringValue, $Ampersand), '&amp;', substring-after($StringValue, $Ampersand))"/> 
                    </xsl:when> 
                    <xsl:otherwise> 
                            <xsl:value-of select="$StringValue"/> 
                    </xsl:otherwise> 
            </xsl:choose> 
    </xsl:template>

comments