xsl-list
[Top] [All Lists]

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

2010-04-14 15:19:24

      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

http://www.saxonica.com/documentation/extensions/functions/base64binarytooct
ets.html

which may or may not help you.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
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>
--~--