[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to decode Base64 in XSLT?

Subject: RE: how to decode Base64 in XSLT?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 14 Apr 2010 21:19:06 +0100
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


which may or may not help you.


Michael Kay

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.