I am new to xsl and have a project I am working on. I have overcome a lot of impediments with the help of many but there is always another waiting at the doorway. Currently my problem is that I have an xml document that I am generating an html form from . I want to remove the namespaces from the xml before transformin it into the html I have tried several things only to fail. Below is my test to figure out how to accomplish this. What I am trying here is to create a variable that will contain the xml without name spaces. I will then use that variable throughout the remainder of the xsl style sheet to create the html. Any help will be greatly appreciated.

MyXML sample doc
Code:
<?xml version="1.0" encoding="utf-8"?>
<n1:treasure xmlns:n1="myNamespace">
<piles>
<moreStuff>
  <theStuff>gary</theStuff>
  <theStuff>troy</theStuff>
</moreStuff>
<n1:otherStuff>
  <junk>aaa</junk>
  <junk>bbb</junk>
</n1:otherStuff>
</piles>
<misc>
  <item1>item one</item1>
  <item2>item two</item2>
</misc>
</n1:treasure>
My xslt document

Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="myNamespace">
<xsl:output method="html"/>

  <xsl:variable name="jnker">
    <xsl:copy-of select="node()"/>
  </xsl:variable>
  
<xsl:template match="n1:treasure">
  <html>
  <head>
               
<script language="javascript">
      $(document).ready(function(){
        var vjunder = "<xsl:value-of select="$jnker"/>";
});
     </script>
  </head>
  <body>
    <div id="here">Here I am</div>
  </body>
</html>
</xsl:template>
</xsl:stylesheet>
My incorrect output
Code:
<html xmlns:n1="myNamespace">
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-16"><script language="javascript">
      $(document).ready(function(){
        var vjunder = "gary  troy  aaa  bbb  item one  item two";
});
     </script></head>
  <body>
    <div id="here">Here I am</div>
  </body>
</html>