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

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

From: Lawrenz, Keith <Keith.Lawrenz@sagepub.com>
Date: Tue, 29 Oct 2013 14:46:56 +0000
To: Erik Siegel <mailing@xatapult.nl>, "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <906EFDE5E2B51A4480C077F8CADEB1F631C90C46@sagesavexchmb01.us.sagepub.org>
Hi Erik,

The key piece of information that hung me up trying to do this was adding the cx:decode="true" attribute to the store step. By the way, the cx namespace declaration is xmlns:cx=http://xmlcalabash.com/ns/extensions.

<p:store name="save-zip" cx:decode="true">
                    <p:input port="source" select="//c:body"/>
                    <p:with-option name="href" select="$zip-name"/>
                    <p:with-option name="media-type" select="binary"/>
                    <p:with-option name="omit-xml-declaration" select="'true'"/>
                    <p:with-option name="standalone" select="'omit'"/>


Keith Lawrenz
Sr Business Analyst and Content Systems Supervisor

SAGE Publications Inc
2455 Teller Road
Thousand Oaks, CA 91320

T: 805.410.7508
C: 805.701.3966

Los Angeles | London | New Delhi
Singapore | Washington DC

The natural home for authors, editors and societies
Thank you for considering the environment before
printing this email.

Are you a fan of SAGE? Show us at www.facebook.com/SAGEPublications<http://www.facebook.com/SAGEPublications>.

From: Erik Siegel [mailto:mailing@xatapult.nl]
Sent: Tuesday, October 29, 2013 5:59 AM
To: xproc-dev@w3.org
Subject: Process non-xml files from a zip into another zip

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?

Erik Siegel
Received on Wednesday, 30 October 2013 08:28:49 UTC

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