RE: [xsl] how to decode Base64 in XSLT?

Subject: RE: [xsl] how to decode Base64 in XSLT?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 14 Apr 2010 21:19:06 +0100
> 	Now, how do I convert these Base64 strings into the respective
> 	binary strings?

It rather depends on what you want the output to be. There's no such thing
as a "binary string" recognized by the XDM type system. Perhaps you want a
string in which the one and zero bits are represented by Unicode characters
"0" and "1"? Or in which the octets are represented as a space-separated
sequence of decimal integers (0-255)?

Whatever the output you want, there isn't very much in the standard function
library to help you. Saxon has saxon:base64Binary-to-octets

which may or may not help you.


Michael Kay 

Current Thread