Matthias,
unfortunately your patch doesn't work. The STORED method expects the
file size and the crc code, which is not set.
Is it possible to set the file size and CRC after the content has been written to the
outputstream? If so, we can calculate/set them easily.
Attached is a patch with
Hi Upayavira,
-Ursprungliche Nachricht-
Von: Upayavira [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 16. Juni 2003 12:43
An: [EMAIL PROTECTED]
Betreff: Re: OOo and ZipArchive serializer
Is it possible to set the file size and CRC after the content
has been written
Hi Upayavira,
attached is a patch which should offer the STORED functionality. It's not
very nice, but I don't see an easier way than buffering the whole stream.
Cheers
Matthias
Index: ZipArchiveSerializer.java
===
RCS file:
there's no example atm. The hello_zip.xml file should be put in
src/webapp/samples/hello-world/content/.
Cheers
Matthias
-Ursprüngliche Nachricht-
Von: Upayavira [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Juni 2003 22:01
An: [EMAIL PROTECTED]
Betreff: Re: OOo and ZipArchive
must be /zip:archive
I am very happy cause now I can use this format to transform to OOo
documents Thanks everybody
Georges
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your
Georges,
Well, I m not ready to post, because have some problems with
ZipArchive serializer In OpenOffice Writer document (sxw) there is 4
files: meta.xml styles.xml content.xml settings.xml and a directory
META-INF/
meta.xml is not compressed to allow easy searching and extraction of
Thanks I try that way, it' usable with compression but I don't know why
not to be OOo fully compliant
there is a lot of documentation on SXW file format.
http://xml.openoffice.org/faq.html#4
and http://xml.openoffice.org/faq.html#10
Georges
Upayavira wrote:
Georges,
Well, I m not ready
Sorry, the patch fail I think, it's better to wait some time a next
version, to have a Zip serializer more efficient.
patch ZipSerializer.patch
patching file ZipArchiveSerializer.java
Hunk #1 FAILED at 111.
Hunk #2 FAILED at 288.
2 out of 2 hunks FAILED -- saving rejects to file
Let me know what version of Cocoon you're using and I'll try to send a correct patch.
Upayavira
On 12 Jun 2003 at 19:49, Georges Roux wrote:
Sorry, the patch fail I think, it's better to wait some time a next
version, to have a Zip serializer more efficient.
patch ZipSerializer.patch
2003 at 2:23, Georges Roux wrote:
It work perfectly now,
but there is some error in the ZipArchive serializer documentation the
end tag is wrong. /zip:archive:zip must be /zip:archive
I am very happy cause now I can use this format to transform to OOo
documents Thanks everybody
Georges
Hi,
I try to transform xml files to OpenOffice.org format (.sxw) with cocoon
because sxw is a zip file format, I put this in my sitemap:
map:serializer name=OOo mime-type=application/vnd.sun.xml.writer
src=org.apache.cocoon.serialization.ZipArchiveSerializer/
map:match pattern
://apache.org/cocoon/zip-archive/1.0;
zip:entry name=content.xml src=cocoon://OOo/content.xml/
zip:entry name=meta.xml src=cocoon://OOo/meta.xml/
zip:entry name=settings.xml src=cocoon://OOo/settings.xml/
zip:entry name=styles.xml src=cocoon://OOo/styles.xml/
/zip:archive
Ok, thanks but I get an Exception
UnamedSelector: ComponentSelector could not find the component for int[OOo]
I try the with the zip serializer but with the same exeption [zip]
something is wrong
georges
Andreas Kühne wrote:
Hi Georges,
your snippet looks nice to me !
But beware of strange
the component for int[OOo]
I try the with the zip serializer but with the same exeption [zip]
something is wrong
georges
Andreas Kühne wrote:
Hi Georges,
your snippet looks nice to me !
But beware of strange 'duplicate zip entry'-Exceptions. Usually they are
caused by a nonexisting or empty src
It work perfectly now,
but there is some error in the ZipArchive serializer documentation
the end tag is wrong. /zip:archive:zip must be /zip:archive
I am very happy cause now I can use this format to transform to OOo
documents
Thanks everybody
Georges
Geoff Howard wrote:
Sounds like the zip
16 matches
Mail list logo