[thelist] binary data in XML + XSL
Mark Kennedy
mark at eurogamer.net
Thu Apr 3 03:40:04 CST 2003
Well getting this working in HTML sounds hard enough. There's this:
<object type="image/jpeg"
data="data:image/jpeg;3300,FF00,2756,E5A0,E3A0,22F6, ...etc... ">
</object>
If you can't get that working then you might have more luck embedding the image
data in some SVG and embedding the SVG in the html.
looks at this
http://lists.xml.org/archives/xml-dev/200210/msg01025.html
and this code I found for MSIE:
<?xml version="1.0"?>
<html xmlns:iSvg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2">
</object>
<?import namespace="iSvg" implementation="#AdobeSVG"?>
</head>
<iSvg:svg
id="xxx2" width="380" height="100" xmlns:svg="http://www.w3.org/2000/svg">
... svg code here ...
</iSvg:svg>
</body>
</html>
Mark
On Thu, 3 Apr 2003, David Travis wrote:
>Hi All,
>
>XSL can generate an HTML output from an XML document, so far so good...
>
>If I want to add an image to this output a reasonable way to do it is to
>have a node in the XML which will contain a reference to the image location
>on some server, the XSL will generate the <IMG> tag with the appropriate
>value for the SRC attribute from the XML.
>
>Now comes the question...
>
>I know it is possible to store binary data in an XML node (base64). Would it
>be possible to store the whole image in an XML node (binary data) and
>somehow to add it to the HTML output generated by the XSL???
>
>
>Thanks,
>David.
>
>--
>* * Please support the community that supports you. * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester
>and archives of thelist go to: http://lists.evolt.org
>Workers of the Web, evolt !
>
More information about the thelist
mailing list