title: Can I pass entity from xml data to xslt stylesheet?
body: <p>I have a dozen of xslt templates and most of them using one specific entity ('ent' in my example). I'm not able to change these templates but I can change outputed xml data. </p>
  
  <p>The question is - is it possible to pass entity declared in xml data to xslt stylesheets? 
  I am trying to make it like this, but fail:</p>
  
  <p>XML document </p>
  
  <p><code>&lt;!DOCTYPE xsl:stylesheet [&lt;!ENTITY ent "World"&gt;]&gt;</code></p>
  
  <p><code>&lt;?xml-stylesheet type='text/xsl' href='xslt.xslt'?&gt;</code></p>
  
  <p><code>&lt;doc/&gt;</code></p>
  
  <p>XSL xslt.xslt</p>
  
  <p><code>&lt;xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;</code></p>
  
  <p><code>&lt;xsl:template match="/"&gt;</code></p>
  
  <p><code>&lt;h1&gt;Hello: &amp;ent;&lt;/h1&gt;</code></p>
  
  <p><code>&lt;/xsl:template&gt;</code></p>
  
  <p><code>&lt;/xsl:stylesheet&gt;</code></p>