Following my post earlier today about this, I'd like to add my vote for
a processor that will convert to base64 as well!
From: Erik Bruchez [mailto:[hidden email]]
Sent: 22 September 2005 03:15
To: [hidden email] Subject: Re: [ops-users] Updating instance data in XPL
Boon Low wrote:
> Solved this by using the following parameters at the beginning of the
> <p:param name="instance" type="input"/>
> <p:param name="instance" type="output"/>
> and used a XUpdate processor with the following output.
> <p:output name="data" ref="instance"/>
> Hope this is may be useful to you..
Thanks for the tip to the list. You got it, this is exactly the way to
do it. Of course you do not have to use oxf:xupdate, but you can also
use oxf:xslt, or in fact anything you want to produce the resulting XML
> Side question: is there any processor in OPS for encoding XML (say
> a XSLT processor) as Base64 binary? I need to send the data to a
> SOAP-based web service which accepts base64Binary in one of the
> parameter (the rest are strings) . Does the delegation processor
> any encoding at all? As far as I can gauge from the documentation,
> only deals with decoding binary into XML not the other way around..
That's correct. The XML converter produces a text document, and the
To-XML converter converts from Base64, not to Base64.
There is org.orbeon.oxf.util.Base64.encode(byte binaryData) which you
may be able to call from XSLT, but we have not tried that.