title: XSLT: Remove certain text within XML tags
body: <p>I have xml document as follows,</p>
  
  <pre><code>&lt;footnote&gt;
     &lt;p type="Footnote Text"&gt;
        &lt;link ref="http://www.apple.com/accessibility/iphone/hearing.html"&gt;
           &lt;c type="Hyperlink"&gt;http:.apple.com/accessibility/iphone/hearing.html
           &lt;/c&gt;
         &lt;/link&gt;
       &lt;/s&gt;
      &lt;/p&gt;
  &lt;/footnote&gt;
  </code></pre>
  
  <p>what I need to do is from xslt I need to remove sub-strings of the url within  tag.</p>
  
  <p>Example :</p>
  
  <p>original xml document like this,</p>
  
  <pre><code>&lt;c type="Hyperlink"&gt;http:www.apple.com/accessibility/iphone/hearing.html
   &lt;/c&gt;
  </code></pre>
  
  <p>and I need to convert as follows :</p>
  
  <pre><code>&lt;c type="Hyperlink"&gt;www.apple.com &lt;/c&gt;
  </code></pre>
  
  <p>I searched for XSLT inbuild functions for remove certain substrings in a string but I could not find such a function.</p>
  
  <p>can u give any suggestion how I can do it?</p>