I have a very simple xsl file (see below). When I view it the encoded image is decoded and displayed correctly. The problem is when I try to display this in PDF using the xsl. The data is simply read from the xsl to convert to the pdf. The image does not get displayed. I know if I create the image to a physical location it will be displayed, which is what I am trying to avoid. Has anyone any ideas on how I can get around this?? Thanks.



<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="urn:hl7-org:v2xml" exclude-result-prefixes="n1">
<xslutput version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="no" media-type="text/html"/>

<xsl:template match="/n1:REF_I12">
<HTML>
<script type="text/javascript" src="Javascript/Utils.js"/>
<HEAD/>
<BODY>
<link rel="stylesheet" href="Outboundcss.css" type="text/css"/>
<TABLE border="0" cellspacing="0" cellpadding="0" width="100%" cols="4">
<tr>
<img src="data:image/gif;base64,R0lGODlhEwAQALMAAKm92sXa+HmHnE9ZZ83f+VBaaAAATJqtyD09x2xs1YuL3i0twzA2Pr/W9///AAAAtiH5BAAAAAAALAAAAAATABAAAARxUB1Fq7UJvZq6/572INlinuj5PAZCBE/TxLNMP4AwuLDt17PcDrFwGB2rpJLVejlkT+BNyItGbzYq8YhcKg3NnvSH0/Gw46CZ6G0zz2SycBEAPA6Hex6vfwgKA3cFBgWDhYSGgwMMDAaLBoyQjZGUjBEAOw==" />
</tr>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>