Project

Profile

Help

Feature #4838

closed

Recognizing ZIP collections

Added by Michael Kay over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Configuration
Sprint/Milestone:
-
Start date:
2020-11-25
Due date:
% Done:

100%

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

Description

Graydon Saunders asked on the saxon-help list:

A URI is recognized as a ZIP or JAR file URI if the scheme name is "jar", or if the file extension is "zip" or "jar".

Which means that I need to rename a docx archive to have a ".zip" suffix if I want to open it with collection(). Which is not especially challenging but which lacks elegance.

Is there a way to explain to collection() that this URI is a zip archive, irrespective of suffix?

I propose to add a configuration property ZIP_URI_PATTERN as a regular expression that can be used to decide whether a collection URI is to be treated as a zip file.

Actions #1

Updated by Michael Kay over 3 years ago

  • Description updated (diff)
Actions #2

Updated by Michael Kay over 3 years ago

  • Status changed from New to Resolved
  • Applies to branch 10, trunk added
  • Fix Committed on Branch 10, trunk added

Implemented on the 10 and devt branches; JUnit test added to TestCollections.

Actions #3

Updated by O'Neil Delpratt almost 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.5 added

Bug fix applied to Saxon 10.5 maintenance release.

Please register to edit this issue

Also available in: Atom PDF