cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marten van der Honing <mvdhon...@noeska.com>
Subject generate pdf from xml with embedded image?
Date Wed, 17 Dec 2008 18:39:37 GMT
Hello,

I am puzzled on generating an pdf from the following xml:
<?xml version="1.0" encoding="UTF-8"?>
<ROWSET>
   <ROW>
      <ID>2</ID>
      <FILE_NAME>Image1</FILE_NAME>
      <MIME_TYPE>image/gif</MIME_TYPE>
      <DESCRIPTION></DESCRIPTION>
 
<IMAGE>R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDvje
nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAAAAAwADMAAAT/8ElJqr0z63072VRxCCR5
FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
/wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
/j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
WYGqtS7qQQ+5hsrrBhEAADs=</IMAGE>
   </ROW>
</ROWSET>

I assumed it should be done like in the xsl file:
<fo:block>
	<fo:instream-foreign-object content-type="image/gif">
		<xsl:value-of select=".//IMAGE"/>
	</fo:instream-foreign-object>
</fo:block>

But that does not show the image in the pdf. 
The pdf is generated though but with no image visible.

How should i do this if it can be done?

Thanks for your help in advance.

Greetings,
M van der Honing





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message