what would be the XSL function to replace the string. For example i have a string 'Dallas County' and i want to replace 'County' with '' (i.e. empty string)
Note that im using XSL 1.0
what would be the XSL function to replace the string. For example i have a string 'Dallas County' and i want to replace 'County' with '' (i.e. empty string)
Note that im using XSL 1.0
In this particular case, if you know that the string ends with the unwanted sequence of characters, you could use substring, or substring-before, to chop off the unwanted suffix. See http://www.w3.org/TR/xpath/#section-String-Functions