<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Adding PI during parsing</title>
  <script>
   window.onload = function() {
     var pi = document.createProcessingInstruction("xml-stylesheet", "type='text/css' href='../support/yellow.css'");
     document.insertBefore(pi, document.documentElement);
   }
  </script>
 </head>
 <body>
  <p>If the background is yellow, then the PI was applied.</p>
 </body>
</html>
