Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

To remove character from string using xsl and having a hyperlink

$
0
0

Here my testing results so far:

Original:

Results:

But how can i make them as an hyperlink e.g 

<ahref="mailto:{@Users}"><xslvalues-ofselect=@Users/><a/>

My template below

<xsl:call-templatename="tokenize"><xsl:with-paramname="String"select="translate(@Users,'#','')"/></xsl:call-template><xsl:templatename="tokenize"><xsl:paramname="String"/><xsl:paramname="delimiter"select="';'"/><xsl:choose><xsl:whentest="contains($String, $delimiter) and contains(substring-after($String, $delimiter), $delimiter)"><token><xsl:value-ofselect="substring-before($String, $delimiter)"/><xsl:value-ofselect="$delimiter"/></token><!-- recursive call --><xsl:call-templatename="tokenize"><xsl:with-paramname="String"select="substring-after(substring-after($String, $delimiter), $delimiter)"/></xsl:call-template></xsl:when><xsl:otherwise><token><xsl:value-ofselect="$String"/></token></xsl:otherwise></xsl:choose></xsl:template>

Thanks in advance


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>