Friday, 12 September 2014

Need to remove multiple words from a string using XSLT 1.0



I would like to remove few words like 'and','the','for' from a single string using the translate function rather than using a replace as am using XSLT1.0 .


for instance:



<xsl:variable name="nme" select="translate(./Name/text(), ',:, '')" />


in addition to ",:" i would like to remove the above mentioned words as well. Please suggest.


No comments:

Post a Comment