title: How to fix error: The markup in the document following the root element must be well-formed
body: <p>I put my code in the XML validation website and it gives me this error: </p>
  
  <blockquote>
    <p>Line 8: 4   The markup in the document following the root element must be well-formed.</p>
  </blockquote>
  
  <p>The line that is having an issue is the <code>&lt;xsl:output method = "html" doctype-system = "about:legacy-compat"/&gt;</code>, line.</p>
  
  <h2>XML</h2>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;!-- Fig. 15.21: sorting.xsl --&gt;
  &lt;xsl:stylesheet version = "1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/&gt;
  
  &lt;!-- write XML declaration and DOCTYPE DTD information --&gt;
  *&lt;xsl:output method = "html" doctype-system = "about:legacy-compat" /&gt;*
  
   &lt;!-- match document root --&gt;
   &lt;xsl:template match="/"&gt; -&lt;html&gt; &lt;xsl:apply-templates/&gt; &lt;/html&gt; 
   &lt;/xsl:template&gt;
  </code></pre>