title: Allow invalid HTML characters in XSLT transformation
body: <p>I am using Saxon &amp; XSLT to transform HTML documents, over which I have no control.</p>
  
  <p>These documents may contain characters that should really be encoded, e.g. </p>
  
  <p>&#153; </p>
  
  <p>instead of the encoded </p>
  
  <pre><code>&amp;#153;
  </code></pre>
  
  <p>As it stands, Saxon is throwing the following exception during the transform, from <a href="http://www.docjar.com/html/api/net/sf/saxon/event/HTMLEmitter.java.html" rel="nofollow">HTMLEmitter</a>:</p>
  
  <pre><code>else if (c &gt;= 127 &amp;&amp; c &lt; 160) {
                         // these control characters are illegal in HTML
                         DynamicError err = new DynamicError(
                          "Illegal HTML character: decimal " + (int) c);
                          err.setErrorCode("SERE0014");
                          throw err;
  </code></pre>
  
  <p>Is there anyway to be more lenient, and tell Saxon to ignore and let through these characters as they are - or - how do I configure Saxon to use the XMLEmitter and not the HTMLEmitter?</p>