title: How to replace all non-english Alphabets(Characters) to space(s) by xslt
body: <p>I have a Unicode XML file containing different languages. I need to replace all Non-English alphabets to space from the file. This is an example of the file. by XSLT 1.0 </p>
  
  <pre><code>&lt;NameValue&gt;
      &lt;EntityName&gt;Kai&lt;/EntityName&gt;
      &lt;OriginalScriptName&gt;住吉&lt;/OriginalScriptName&gt;
      &lt;OriginalScriptName&gt;すみかい&lt;/OriginalScriptName&gt;
      &lt;OriginalScriptName&gt;スシカイ&lt;/OriginalScriptName&gt;
  &lt;/NameValue&gt;
  </code></pre>
  
  <p>expect outcome</p>
  
  <pre><code>&lt;NameValue&gt;
      &lt;EntityName&gt;Kai&lt;/EntityName&gt;
      &lt;OriginalScriptName&gt;  &lt;/OriginalScriptName&gt;
      &lt;OriginalScriptName&gt;    &lt;/OriginalScriptName&gt;
      &lt;OriginalScriptName&gt;    &lt;/OriginalScriptName&gt;
  &lt;/NameValue&gt;
  </code></pre>
  
  <p>XSLT i tried.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:my-scripts="urn:my-scripts" exclude-result-prefixes="msxsl"&gt;
  
      &lt;xsl:output method="text"/&gt;
  
      &lt;msxsl:script language="C#" implements-prefix="my-scripts"&gt;&lt;![CDATA[
      public string fReplaceNonASCIICharacters(string inStr)
      {
           return Regex.Replace(inStr," ", @"[^\x20-\x7E]");
      }
      ]]&gt;&lt;/msxsl:script&gt;
  
      &lt;xsl:template match="OriginalScriptName"&gt;
          &lt;xsl:value-of select="(my-scripts:fReplaceNonASCIICharacters(.))"/&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>