title: Replace namespace prefixes with scoped default namespaces using XSLT
body: <p>Can you share an XSLT with me which achieves following please?</p>
  
  <p>Input:</p>
  
  <pre><code>&lt;alfa data="abc" xmlns="http://test1.com/"&gt;
    &lt;mus:beta xmlns:mus="http://test2.com"&gt;
      &lt;mus:a&gt;1234567897&lt;/mus:a&gt;
      &lt;mus:s&gt;777666&lt;/mus:s&gt;
    &lt;/mus:beta&gt;
  &lt;/alfa&gt;
  </code></pre>
  
  <p>Output should be:</p>
  
  <pre><code>&lt;alfa data="abc" xmlns="http://test1.com/"&gt;
    &lt;beta xmlns="http://test2.com"&gt;
      &lt;a&gt;1234567897&lt;/a&gt;
      &lt;s&gt;777666&lt;/s&gt;
    &lt;/beta&gt;
  &lt;/alfa&gt;
  </code></pre>
  
  <p>In fact; the input is generated with XmlBeans; I can not achieve the output with xmlbeans; So i will do a transform with xslt in mediation; however I need a xslt first :) XmlBeans solution is acceptable too. :)</p>
  
  <p>For xmlbeans users; following does not work, fyi:</p>
  
  <pre><code>Map map = new HashMap();
   map.put("http://test1.com/",""); 
   map.put("http://test2.com/","");
   xo.setSaveSuggestedPrefixes(map);
  </code></pre>
  
  <p>Cheers,
  Kaan</p>