xsl-list
[Top] [All Lists]

Re: [xsl] Decode Base64 data and namespaces

2010-06-28 08:32:21

2) I have a Base64 string that belongs to an image and what I want to do
is to convert that base64 string into an image and display that image in
html.

I forgot that there's a solution to this in Saxon 9.2:

<xsl:result-document method="text" encoding="iso-8859-1" href="image.png" saxon:recognize-binary="yes">
<xsl:processing-instruction name="b64" select="$base64image"/>
</xsl:result-document>

where $base64image is a character string containing the base64 encoding of a binary value.

http://www.saxonica.com/documentation/extensions/output-extras/recognize-binary.html

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>