XSLT String Manipulation - Remove spaces in Field Value for use in URL
XSLT function sets the value of a parameter to the value of the required field, after processing to remove spaces. The parameter is then used to set part of url in the href attribute of an <a> tag. <xsl:template name="dvt_1.groupheader0"> <xsl:param name="fieldtitle" /> <xsl:param name="fieldname" /> <xsl:param name="fieldvalue" /> ....... other template params 1. Add a parameter to store <xsl:param name="stringNoSpaces" > <xsl:call-template name="stringreplace"> <xsl:with-param name="stringvalue" select="@Field-XPath" /> <xsl:with-param name="from" select="string(' ')" /> </xsl:call-template> </xsl:param> ....... main template code <a href="/FirstURLComponent/{$stringNoSpaces}"><xsl:value-of select="$fieldvalue" /></a> ....... remaining template code </xsl:...