title: How to add DOCTYPE in the target xml using xslt?
body: <p>i want to transmit exactly the source xml into target xml with only addition of DOCTYPE in the target xml . 
  My source XMl is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
   &lt;ns0:mt_socreate_ob xmlns:ns0="http://socreate"&gt;
   &lt;ZSPL00&gt;
    &lt;Empid&gt;12&lt;/Empid&gt; 
    &lt;Firstname&gt;latif&lt;/Firstname&gt; 
    &lt;Secondname&gt;rahman&lt;/Secondname&gt; 
    &lt;Dept&gt;tata&lt;/Dept&gt; 
    &lt;/ZSPL00&gt;
    &lt;/ns0:mt_socreate_ob&gt;
  </code></pre>
  
  <hr>
  
  <p>Target XML should be </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
  
  &lt;!DOCTYPE ZSPL00 SYSTEM "sap2grips.dtd"&gt;
  
     &lt;ns0:mt_socreate_ob xmlns:ns0="http://socreate"&gt;
  
      &lt;ZSPL00&gt;
  
       &lt;Empid&gt;12&lt;/Empid&gt;
  
       &lt;Firstname&gt;latif&lt;/Firstname&gt;
  
       &lt;Secondname&gt;rahman&lt;/Secondname&gt;
  
        &lt;Dept&gt;tata&lt;/Dept&gt;
  
    &lt;/ZSPL00&gt;
  
    &lt;/ns0:mt_socreate_ob&gt;
  </code></pre>
  
  <p>I am writing the following xslt code but not getting the desired result </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
  &lt;xsl:output method="xml" indent="no" doctype-system="sap2grips.dtd"/&gt;
  
  &lt;xsl:strip-space elements="*"/&gt;
  
  &lt;!-- Default: copy everything --&gt;
  &lt;xsl:template match="@*|node()"&gt;
      &lt;xsl:copy&gt;
          &lt;xsl:apply-templates select="@*|node()"/&gt;
      &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Please correct my code to get the above result</p>