Re: Process non-xml files from a zip into another zip

I believe this is possible:

 *  pxp:unzip extracts non-XML content as  base64-encoded data in a c:data element [1]
 * you can then store it in the file system using the cx:decode extension attribute for p:store, introduced in Calabash 0.9.15 [2]
 * pxp:zip will load a file from its @href URI if a document with the this base URI doesn’t appear on the source port.

Romain.

[1] http://xmlcalabash.com/docs/reference/pxp-zip.html
[2] http://xmlcalabash.com/download/#c0.9.15
[3] http://xmlcalabash.com/docs/reference/pxp-unzip.html


On 29 oct. 2013, at 13:59, Erik Siegel <mailing@xatapult.nl> wrote:

> Hi all,
>  
> I have a problem where I need to process data in a zip file. Fine as long as its XML.
>  
> However, i also need to extract non-xml files from the source zip (e.g. jpg files) and add them to the destination zip file. I'm trying to figure out if I can do this using Calabash only. Anyone that can help me out on this?
>  
> Thanks,
> Erik Siegel

Received on Tuesday, 29 October 2013 14:32:18 UTC