title: JSF Facelets how to include external html?
body: <p>I have an app that i'm developing and my company has a header banner that is required to be on all pages. We have about 6 different versions floating around my team of that header banner and I now want to make it so that I just include the banner from the source into my app so that if they update the source of the banner, my app's version of the banner is automatically updated as well.</p>
  
  <p>using <code>&lt;ui:include src="http://mycompany.com/banner.html" /&gt;</code> causes the error <code>The markup in the document following the root element must be well-formed.</code>.</p>
  
  <p>How can i include this banner even if it's not well formed xml?</p>
  
  <p>My current template:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  
  &lt;ui:composition&gt;
  
  &lt;h:body&gt;
      &lt;div&gt;
        &lt;ui:include src="http://mycompany.com/banner.html" /&gt;
      &lt;/div&gt;
  
      &lt;ui:insert name="content" /&gt;
  &lt;/h:body&gt;
  &lt;/ui:composition&gt;
  &lt;/html&gt;
  </code></pre>