Re: Possibly OT component request.

/ Dave Pawson <dave.pawson@gmail.com> was heard to say:
| Would you consider unzip as an optional component please.

Tricky.

$ unzip -v XProc.odp

Archive:  XProc.odp
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
      47  Stored       47   0%  10-02-06 14:45  a8ac2633  mimetype
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/statusbar/
       0  Defl:N        2   0%  10-02-06 14:45  00000000  Configurations2/accelerator/current.xml
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/floater/
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/popupmenu/
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/progressbar/
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/menubar/
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/toolbar/
       0  Stored        0   0%  10-02-06 14:45  00000000  Configurations2/images/Bitmaps/
    3450  Stored     3450   0%  10-02-06 14:45  72d79bdb  Pictures/1000000000000555000000448B6CAF0B.png
  126345  Stored   126345   0%  10-02-06 14:45  d7344633  Pictures/100000000000040000000300627D049C.gif
   44177  Defl:N     4229  90%  10-02-06 14:45  4a7f0be5  content.xml
   62677  Defl:N     5342  92%  10-02-06 14:45  358ac888  styles.xml
    1231  Stored     1231   0%  10-02-06 14:45  a890e0c9  meta.xml
   10386  Defl:N    10391   0%  10-02-06 14:45  863078be  Thumbnails/thumbnail.png
   10760  Defl:N     1563  86%  10-02-06 14:45  c1cd75ec  settings.xml
    2198  Defl:N      389  82%  10-02-06 14:45  729b14bd  META-INF/manifest.xml
--------          -------  ---                            -------
  261271           152989  41%                            17 files

Some of those are XML and some are not.

I suppose

  <p:unzip>
    <p:option name="href" value="XProc.odp"/>
  </p:unzip>

could return an XML manifest of the ZIP file. And

  <p:unzip>
    <p:option name="href" value="XProc.odp"/>
    <p:option name="document" value="content.xml"/>
  </p:unzip>

could return the selected document, failing if the document isn't
XML.

Is that what you had in mind?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | No victor believes in chance.--
http://nwalsh.com/            | Nietzsche

Received on Tuesday, 24 April 2007 16:35:57 UTC