W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2013

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

From: Romain Deltour <rdeltour@gmail.com>
Date: Tue, 29 Oct 2013 15:31:45 +0100
Cc: "<xproc-dev@w3.org> Dev" <xproc-dev@w3.org>
Message-Id: <8F56A7EA-858F-4D56-A4A1-4ECF9DED141E@gmail.com>
To: Erik Siegel <mailing@xatapult.nl>
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.


[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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:11 UTC