title: JSF 2 - How To Preserve XML Entity Definitions in HTML output?
body: <p>I'm working on a JSF 2 web application. If I define a facelet that begins as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
  "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"[
      &lt;!ENTITY nbsp "&amp;#160;"&gt; 
      &lt;!ENTITY pound "&amp;#163;"&gt; 
  ]&gt;
  &lt;html 
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
  &lt;h:head&gt;
  </code></pre>
  
  <p>When rendered as HTML the entity definitions have been removed. Is there a way to preserve them if I really want them included in the output markup?</p>