Hi,
Le mercredi 09 f�vrier 2005 � 23:11 +0100, Eric van der Vlist a �crit :
> Le mercredi 09 f�vrier 2005 � 22:59 +0100, Eric van der Vlist a �crit :
> > Le mercredi 09 f�vrier 2005 � 22:26 +0100, Eric van der Vlist a �crit :
> >
> > > Well, as you say, the code doesn't seem to reach my code. The start()
> > > method is called, but the createOutput() one doesn't appear to be
> > > called...
> >
> > There are probably several issues in my sample.
> >
> > If I add a addOutputInfo(new ProcessorInputOutputInfo("manifest"));
> > instruction in the processor's construct, the createOutput method is
> > called but the start method isn't called any longer.
>
I still have to figure out what's happening here (any idea would be
welcome!) but I have a first roughly working draft of a static output
version of my zip converter.
There are several issues, two of them due to the fact that there is
almost no metadata in a Zip file (that's the reason why OpenOffice have
added their manifest):
* To detect the media-type (without relying on the manifest since
I'd like this converter to be generic) of each part I rely
currently on sun.net.www.MimeTable that is probably not very
portable. IMO, that would be useful to have a Presentation
Server class to handle that globally.
* For text formats I don't know how to detect the encoding and
serialise them as base64.
* I am currently treating external entities (or DTD references)
has pointing on empty documents.
* As already mentioned on that list, I don't find it kosher to use
xsi:type to specify the encoding. I have preferred to use a
"content-type" attribute but am not very happy with that name.
The output of this converter gives something such as:
<archive>
<entry name="mimetype" content-type="base64Binary" time="2005-02-08T22:03:36"
size="30">
YXBwbGljYXRpb24vdm5kLnN1bi54bWwud3JpdGVy
</entry>
<entry name="Pictures/10000000000001DA0000005BF70F3350.png"
media-type="image/png" content-type="base64Binary" time="2005-02-08T22:03:36"
size="29006">
...
</entry>
...
<entry name="META-INF/manifest.xml" media-type="application/xml"
content-type="xml" time="2005-02-08T22:03:36">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
<manifest:file-entry
manifest:media-type="application/vnd.sun.xml.writer" manifest:full-path="/"/>
<manifest:file-entry manifest:media-type="image/png"
manifest:full-path="Pictures/10000000000001DA0000005BF70F3350.png"/>
<manifest:file-entry manifest:media-type="image/png"
manifest:full-path="Pictures/1000020000000055000000255789B5EB.png"/>
<manifest:file-entry manifest:media-type=""
manifest:full-path="Pictures/"/>
<manifest:file-entry manifest:media-type="appication/binary"
manifest:full-path="layout-cache"/>
<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="text/xml"
manifest:full-path="settings.xml"/>
</manifest:manifest>
</entry>
</archive>
Thanks for your help!
Eric
--
Have you ever thought about unit testing XSLT templates?
http://xsltunit.org
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user