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.
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:
XML document
<!DOCTYPE xsl:stylesheet [<!ENTITY ent "World">]>
<?xml-stylesheet type='text/xsl' href='xslt.xslt'?>
<doc/>
XSL xslt.xslt
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<h1>Hello: &ent;</h1>
</xsl:template>
</xsl:stylesheet>