Project

Profile

Help

Bug #3434 ยป Bug #10094 - 2017-09-14T13_32_21Z.eml

Liam Quin, 2017-09-14 15:32

 
Return-Path: <liam@w3.org>
Received: from mi028.mc1.hosteurope.de ([80.237.138.227]) by wp245.webpack.hosteurope.de running ExIM with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dsUFZ-0002CM-D8; Thu, 14 Sep 2017 15:32:13 +0200
Received: from raoul.w3.org ([128.30.52.128]) by mx0.webpack.hosteurope.de (mi028.mc1.hosteurope.de) with esmtps (TLSv1.2:AES128-GCM-SHA256:128) id 1dsUFW-0004A9-9k for inbox+saxonica+f38e+saxon@plan.io; Thu, 14 Sep 2017 15:32:13 +0200
Received: from 24-138-116-238.vianet.ca ([24.138.116.238] helo=localhost.localdomain) by raoul.w3.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <liam@w3.org>) id 1dsUFW-000GZN-18 for inbox+saxonica+f38e+saxon@plan.io; Thu, 14 Sep 2017 13:32:10 +0000
Date: Thu, 14 Sep 2017 09:32:06 -0400
From: "Liam R. E. Quin" <liam@w3.org>
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon@plan.io>
Message-ID: <1505395926.12676.70.camel@w3.org>
In-Reply-To: <redmine.journal-10092.20170914113341.21a7dbd90ef56177@plan.io>
References: <redmine.issue-3434.20170910233631@plan.io>
<redmine.journal-10092.20170914113341.21a7dbd90ef56177@plan.io>
Subject: Re: [Saxon - Bug #3434] (In Progress) EXPath archive:create-map
doesn't honour compression level
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Delivery-date: Thu, 14 Sep 2017 15:32:13 +0200
Organization: The World Wide Web Consortium (W3C)
X-Mailer: Evolution 3.22.6-2.mga6
X-HE-Virus-Scanned: Yes
X-HE-Spam-Level: /
X-HE-Spam-Score: 0.0
X-HE-Spam-Report: Content analysis details: (0.0 points) pts rule name
description ---- ----------------------
--------------------------------------------------
X-HE-SPF: PASSED
Envelope-to: inbox+saxonica+f38e+saxon@plan.io

Many thanks for looking at this. I'll find a workaround for the next
few months if necessary; per-entry compression is needed (alas) to make
EPUB 3 archives, and is supported (with archive elements) by xerces in
Cocoon.

On Thu, 2017-09-14 at 13:33 +0200, Saxonica Developer Community wrote:
> --- In your reply, please do not write below this line ---
> =

> Issue #3434 has been updated by John Lumley.
> =

> Status changed from New to In Progress
> =

> Indeed, the 2-arity @arch:create()@ hasn't been implemented, and per-
> entry compression level hasn't either. (We mostly focussed on reading
> in testing.)
> We'll implement (and document) per-entry compression for Saxon 9.8,
> but not 9.7. In this case the only supported @compression@ values
> will be '@stored@'=C2=A0=C2=A0and '@deflate@' (corresponding to those i=
n
> @java.util.zip.ZipEntry@)=C2=A0=C2=A0and=C2=A0=C2=A0the @compression-le=
vel@ property will
> be meaningless. The documentation will be updated to reflect the
> implementation.
> =

> (Is there ever a day you wear shoes _and_ socks Liam?)
> =

> ----------------------------------------
> Bug #3434: EXPath archive:create-map doesn't honour compression level
> https://saxonica.plan.io/issues/3434?pn=3D1#change-10092
> =

> * Author: Liam Quin
> * Status: In Progress
> * Priority: Normal
> * Assignee: John Lumley
> * Category: EXSLT extensions
> * Sprint/Milestone:=C2=A0
> * Legacy ID:=C2=A0
> * Applies to branch: 9.7
> * Fix Committed on Branch:=C2=A0
> * Fixed in Maintenance Release:=C2=A0
> ----------------------------------------
> 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)
> =

> =

> --
> You have received this notification because you have either
> subscribed to or are involved in a project on Saxonica Developer
> Community site.
> To change your notification preferences, please click here: https://s
> axonica.plan.io/my/account?tour=3Dmail_preferences
> =

> This notification was cheerfully delivered by https://plan.io
> =C2=A0
-- =

Liam Quin, W3C, http://www.w3.org/People/Quin/
Staff contact for Verifiable Claims WG, XQuery WG

Web slave for http://www.fromoldbooks.org/

    (1-1/1)