Search code examples
xmlxsltxpathreplacecase-insensitive

xsl: case insensitive replace substring


I need to replace a word (part of a word) in an unknown text. "replace" works fine, but it is case sensitive. How do I replace in a case insensitive way?

Thanks alot!


Solution

  • You can set flag i - ignore case option. Reference: http://www.w3.org/TR/xpath-functions/#flags