Hello

Thanks for your responses.
Concerning the mimetype entry:
> ...  it doesn't look like it is the first stream  ...
What does this mean? Do I have to write the JarEntry for the mimetype as
first entry written to the output file?
I've tried that but that doesn't help.
Additionally, that doesn't explain the phenomenon that unzipping and
zipping the file fixes the corrupt document by magic.

Here's the content of mimetype entry of the corrupt document:
======
application/vnd.oasis.opendocument.text
======

And here the content of the manifest.xml:
======
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest
xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
 <manifest:file-entry
manifest:media-type="application/vnd.oasis.opendocument.text"
manifest:full-path="/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/statusbar/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/accelerator/current.xml"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/accelerator/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/floater/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/popupmenu/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/progressbar/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/menubar/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/toolbar/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/images/Bitmaps/"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Configurations2/images/"/>
 <manifest:file-entry
manifest:media-type="application/vnd.sun.xml.ui.configuration"
manifest:full-path="Configurations2/"/>
 <manifest:file-entry manifest:media-type="text/xml"
manifest:full-path="content.xml"/>
 <manifest:file-entry manifest:media-type="text/xml"
manifest:full-path="styles.xml"/>
 <manifest:file-entry manifest:media-type="text/xml"
manifest:full-path="meta.xml"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Thumbnails/thumbnail.png"/>
 <manifest:file-entry manifest:media-type=""
manifest:full-path="Thumbnails/"/>
 <manifest:file-entry manifest:media-type="text/xml"
manifest:full-path="settings.xml"/>
</manifest:manifest>
======

Regards,
Benno

>  -----Original Message-----
> From:         Eike Rathke [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 29. August 2007 12:20
> To:   dev@openoffice.org
> Subject:      Re: [dev] ODT file created through XSL transformation is
corrupt
> 
> * PGP Signed by an unknown key
> 
> Hi Mathias,
> 
> On Tuesday, 2007-08-28 18:45:59 +0200, Mathias Bauer wrote:
> 
> > First I miss the "mimetype" stream.
> 
> It's there, but it doesn't look like it is the first stream in the
> package that it ought to be following the ODF spec:
> 
> > > Name                    type            size        ratio
path
> > > content.xml          XML         9'690        75%
> > > meta.xml              XML            915         61%
> > > mimetype             File                  39          0%
> 
> [proportional fonts for tables in mails are ugly]
> 
>   Eike
> 
> -- 
>  OOo/SO Calc core developer. Number formatter stricken i18n
transpositionizer.
>  SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8
D412
>  OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
>  Please don't send personal mail to this [EMAIL PROTECTED] account, which I
use for
>  mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED]
Thanks.
> 
> * Unknown Key
> * 0x87F8D412
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to