Project

Profile

Help

Bug #3434

closed

EXPath archive:create-map doesn't honour compression level

Added by Liam Quin over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
EXSLT extensions
Sprint/Milestone:
-
Start date:
2017-09-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
9.8
Fixed in Maintenance Release:
Platforms:

Description

The two-argument form of archive:cerate-map doesn't appear to be implemented.

The single-argument form of archive:create-map doesn't seem to honour the compression-level entry-level option, so that I can't turn off Zip compression for the "mimetype" entry for an EPUB 3 zip archive.

Admittedly the documentation on the values for compression and compression-level seems very sparse so I might just be doing it wrongly!

I've enclosed an XSLT stylesheet that attempts to write out two files, one with no compression and one with default compression. When run (with itself as input) it creates "output.zip"; Expected result is that if you examine the zip file directly - e.g., in a terminal, less < output.zip, the contents of "mimetype" should be visible, uncompressed. Or, run unzip -l -v on the file and see that it reports Def:N -10%.

I'm using the Saxon EE that comes with oXygen XML Editor 19, 9.7.0.15; also tried PE with the same result.


Files

zip-archive.xsl (1.07 KB) zip-archive.xsl Liam Quin, 2017-09-11 01:28

Please register to edit this issue

Also available in: Atom PDF