Re: [xsl] Base 64 decoder

Subject: Re: [xsl] Base 64 decoder
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Feb 2003 10:29:25 GMT

> Does anyone know if exists an implementation of a base64 decoder in
> Standard XSLT 1.0?

XSLT can't decode base 64, even with extension functions, in any general
way as it can only generate characters in the result that are legal
in XML. The whole point of using base64 is to encode xml-illegal
characters.

xt has a non standard output method that allows you to put elements in
teh result tree that serialise as specific bytes in the output so
you could use this or a similar extension in other systems. But in any
case it will require a non standard serialiser.
It is probably easier to leave it as base64 in the result then post
process with perl or some specific base64 unpacker.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread