[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to decode Base64 in XSLT?
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|