Re: feeding docx into collection()
Graydon <[email protected]> Wed, 25 Nov 2020 08:50:46 -0500
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <20201125135046.GA194987@menja> |
On Wed, Nov 25, 2020 at 09:33:00AM +0100, Martin Honnen scripsit:
[I had asked about getting Saxon's implementation of the collection()
function to recognize other file suffixes as archives]
> To recognize additional kinds of ZIP file, for example Open Office
> documents, write a subclass of StandardCollectionFinder that overrides
> the method isJarFileURI().
>
> is meant to suggest you have to write Java code, subclassing
> https://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/resource/StandardCollectionFinder.html
> and overriding
> https://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/resource/StandardCollectionFinder.html#isJarFileURI-java.lang.String-
> whose code is at
> https://saxonica.plan.io/projects/saxon/repository/he/revisions/master/entry/latest10/hej/net/sf/saxon/resource/StandardCollectionFinder.java#L151
> so you could write your own override checking for
> collectionURI.endsWith(".docx")
> as well.
Unfortunately, the particular thing I'm working on has a "no custom
code" requirement. So, yes, would work but not for this project.
I should have been clear about that constraint!
Thank you!
Graydon