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

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'"/>
             </p:store>

Keith

Keith Lawrenz
Sr Business Analyst and Content Systems Supervisor

SAGE Publications Inc
2455 Teller Road
Thousand Oaks, CA 91320
USA

T: 805.410.7508
C: 805.701.3966
www.sagepub.com

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?

Thanks,
Erik Siegel

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