[Xsltforms-support] Output image/svg+xml
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2011-01-16 13:48:21
|
Hi Alain, I want to call a web-service that returns an SVG image. So I use : <xf:output mediatype="image/svg+xml" ref="concat('/services/charts/' , instance('test')/value)" model="some-model" /> XSLTForms generates something like this : data:image/svg+xml,/services/charts/310 and the browser complains about an empty document where the image should appear : « This page contains the following errors: error on line 1 at column 1: Document is empty Below is a rendering of the page up to the first error. » When I use the same URL directly with a <img> tag, the image is ok (obviously I test with a browser that accepts an SVG image in a <img> tag, e.g. Firefox 4 or Chrome, but not Firefox 3). Is there an issue with the way XSLTForms displays SVG pictures? Or is this a misunderstanding an my side? Thank you for your help! Grégoire |