joewiz / unzip Goto Github PK
View Code? Open in Web Editor NEWAn XQuery module for listing and extracting the contents of zip files stored in an eXist-db database
License: GNU General Public License v3.0
An XQuery module for listing and extracting the contents of zip files stored in an eXist-db database
License: GNU General Public License v3.0
When I use the method unzip:unzip($zip-file, $target-collection)
for $zip-file=/db/docx4/test.docx
and $target-collection=/db/docx4/test,
the collection /db/docx4/test is created,
but so is /db/docx4%2520/db/docx4/test
and it is this latter directory which the contents are unzipped to.
Seems a space is being added incorrectly somewhere, then encoded twice?
Here is my trigger:
I've got the following trigger defined:
Hi Joe
I've added a comment to #3, and wanted to re-open it, but couldn't see how to do that (maybe only the repository owner can do that).
thanks .. Jason
A space character in a dir name in the zip file causes the following error:
Caused by: org.exist.xquery.XPathException: err:FORG0001 failed to convert Application Files into an XmldbURI: Illegal character in path at index 11: Application Files [at line 29, column 5, source: C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
In function:
unzip:mkcol-recursive(item(), item()) [21:13:C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
unzip:mkcol-recursive(item(), item()) [29:5:C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
unzip:mkcol(item(), item()) [47:27:C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
unzip:store-entry(xs:string, xs:string, item()?, item()*) [-1
unzip:unzip(xs:string, xs:string) [97:9:C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
unzip:unzip(xs:string) [1:287:C:\Users\jharr\eXist-db_2.0RC\webapp\WEB-INF\expathrepo\unzip-1.0\unzip\unzip.xql]
The readme file explains that functx is a prereq, however, it is not obvious how to install it in eXist 1.4.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.