Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 73810 invoked from network); 25 Aug 2008 05:27:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 05:27:55 -0000 Received: (qmail 68200 invoked by uid 500); 25 Aug 2008 05:27:53 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 68138 invoked by uid 500); 25 Aug 2008 05:27:53 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 68127 invoked by uid 99); 25 Aug 2008 05:27:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Aug 2008 22:27:53 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of gavin@16degrees.com.au does not designate 61.9.189.143 as permitted sender) Received: from [61.9.189.143] (HELO nschwmtas03p.mx.bigpond.com) (61.9.189.143) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 05:26:55 +0000 Received: from nschwotgx02p.mx.bigpond.com ([124.185.182.143]) by nschwmtas03p.mx.bigpond.com with ESMTP id <20080825052711.FRDJ17360.nschwmtas03p.mx.bigpond.com@nschwotgx02p.mx.bigpond.com> for ; Mon, 25 Aug 2008 05:27:11 +0000 Received: from developer ([124.185.182.143]) by nschwotgx02p.mx.bigpond.com with ESMTP id <20080825052710.THZW11844.nschwotgx02p.mx.bigpond.com@developer> for ; Mon, 25 Aug 2008 05:27:10 +0000 From: "Gavin" To: Subject: ODT - Specifying images to be zipped? Date: Mon, 25 Aug 2008 15:29:11 +1000 Message-ID: <01bb01c90673$8151b0b0$0200a8c0@developer> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AckGc4CCx9AJNrUpT0et2p/OaxpjVg== X-Antivirus: avast! (VPS 080824-0, 24/08/2008), Outbound message X-Antivirus-Status: Clean X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150203.48B242AF.0031,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Hi All, Some of you may have noticed I'm working on the Ooo output plugin. I'm at a stage now where I need to specify all images used in an xdoc and create entries for them as a zip:entry . In OOo, the .odt document stores its images in a directory called Pictures. Its easy to do this manually for a known image name and location. e.g - or both of the above will successfully store the image correctly. However they are hard-coded and of course those images may not even be used by the .odt file in question. Another thing to consider is that a zip:entry is contained in a zip:archive block. So I need a way to automatically create zip:entry blocks for images referenced within the file. The file may or may not be local, and as far as I can tell, we don't need to physically copy them anywhere, just reference their current locations as a zip entry. I tried also using wildcards, but it seems the ziparchiveserializer [1] doesn't support it. If anyone has any ideas, please shout up :) , it is something I am currently working on so I will continue to look for a solution also. Thanks Gav... [1] - http://cocoon.apache.org/2.1/userdocs/ziparchive-serializer.html