Re: feeding docx into collection()
Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> Wed, 25 Nov 2020 15:16:05 +0000
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
I'll add a configuration property along the lines ZIP_URI_PATTERN = "^jar|\.zip|\.jar" allowing you to set a configuration property for deciding what URIs to treat as ZIP/JAR file URIs. Michael Kay Saxonica > On 25 Nov 2020, at 01:29, Graydon Saunders <[email protected]> wrote: > > Hello -- > > https://www.saxonica.com/html/documentation/sourcedocs/collections.html <https://www.saxonica.com/html/documentation/sourcedocs/collections.html> > > says > > 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? > > Thanks! > Graydon > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/saxon-help _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help