RE: Updating instance data in XPL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Updating instance data in XPL

Stephen Bayliss
Following my post earlier today about this, I'd like to add my vote for
a processor that will convert to base64 as well!

-----Original Message-----
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:
> Hi,
>
> Solved this by using the following parameters at the beginning of the
XPL.
>
>     <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
instance.

> Side question: is there any processor in OPS for encoding XML (say
from
> 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
allow
> any encoding at all? As far as I can gauge from the  documentation,
OPS
> 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.

I entered an RFE for this:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=304098&grou
p_id=168&atid=350210

Not sure what the best way to go is!

-Erik





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Updating instance data in XPL

Erik Bruchez
Administrator
Stephen Bayliss wrote:
> Following my post earlier today about this, I'd like to add my vote for
> a processor that will convert to base64 as well!

Even better than vote would be to implement it and contribute it ;-)

A good start would be the ToXMLConverter class, which is quite simple,
and does something similar.

-Erik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Updating instance data in XPL

Stephen Bayliss
In reply to this post by Stephen Bayliss
May well have a look at this -- not for a few weeks though due to time
pressures!  We definitely need it.

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 12 October 2005 15:27
To: [hidden email]
Subject: Re: [ops-users] Updating instance data in XPL

Stephen Bayliss wrote:
> Following my post earlier today about this, I'd like to add my vote
for
> a processor that will convert to base64 as well!

Even better than vote would be to implement it and contribute it ;-)

A good start would be the ToXMLConverter class, which is quite simple,
and does something similar.

-Erik





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws