title: Convert XML to JSON using XSLT and remove namespaces
body: <p>I am new to XSLT.</p>
  
  <p>I have to convert XML to JSON using XSLT.</p>
  
  <p>I have the following xml:</p>
  
  <pre><code>&lt;getEndUserCriteriaListForRangeResponse xmlns="http://xxxx.xxxx.xx.com/"&gt;
    &lt;endUserCriteriaList&gt;
      &lt;ns0:endUserCriteria xmlns:ns0="http://xxxx.xxxx.xx.com"&gt;
        &lt;ns0:defaultValue&gt;
          &lt;ns0:customValue&gt;PARAMETER&lt;/ns0:customValue&gt;
          &lt;ns0:eucValue&gt;PARAMETER&lt;/ns0:eucValue&gt;
          &lt;ns0:eucValueId&gt;PARAMETER&lt;/ns0:eucValueId&gt;
        &lt;/ns0:defaultValue&gt;
        &lt;ns0:eucId&gt;PARAMETER&lt;/ns0:eucId&gt;
        &lt;ns0:label&gt;PARAMETER&lt;/ns0:label&gt;
        &lt;ns0:ranges&gt;
          &lt;ns0:id&gt;PARAMETER&lt;/ns0:id&gt;
          &lt;ns0:rangeName&gt;PARAMETER&lt;/ns0:rangeName&gt;
        &lt;/ns0:ranges&gt;
        &lt;ns0:status&gt;PARAMETER&lt;/ns0:status&gt;
        &lt;ns0:unit&gt;PARAMETER&lt;/ns0:unit&gt;
        &lt;ns0:values&gt;
          &lt;ns0:customValue&gt;PARAMETER&lt;/ns0:customValue&gt;
          &lt;ns0:eucValue&gt;PARAMETER&lt;/ns0:eucValue&gt;
          &lt;ns0:eucValueId&gt;PARAMETER&lt;/ns0:eucValueId&gt;
        &lt;/ns0:values&gt;
        &lt;ns0:weight&gt;PARAMETER&lt;/ns0:weight&gt;
      &lt;/ns0:endUserCriteria&gt;
    &lt;/endUserCriteriaList&gt;
  &lt;/getEndUserCriteriaListForRangeResponse&gt;
  </code></pre>
  
  <p>This is the XSLT:</p>
  
  <pre><code>&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
    &lt;xsl:output method="xml" /&gt;
    &lt;xsl:template match="/"&gt;
      &lt;xsl:copy-of select="/*" /&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>And the generated JSON is:</p>
  
  <pre><code>{"@xmlns":"http://xxxx.xxxx.xx.com/","endUserCriteriaList":{"ns0:endUserCriteria":         {"@xmlns:ns0":"http://xxxx.xxxx.xx.com","ns0:defaultValue":{"ns0:customValue":"PARAMETER","ns0:eucValue":"PARAMETER","ns0:eucValueId":"PARAMETER"},"ns0:eucId":"PARAMETER","ns0:label":"PARAMETER","ns0:ranges":{"ns0:id":"PARAMETER","ns0:rangeName":"PARAMETER"},"ns0:status":"PARAMETER","ns0:unit":"PARAMETER","ns0:values":{"ns0:customValue":"PARAMETER","ns0:eucValue":"PARAMETER","ns0:eucValueId":"PARAMETER"},"ns0:weight":"PARAMETER"}}}
  </code></pre>
  
  <p>In the generated JSON, I need to remove "ns0:". 
  How do I do that?</p>