I tried installing EXPath, but without success.
REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar
Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found..
If I download the .xar and unzip it, it looks like this:
[image: image.png]
Here is the content of expath-pkg.xml:
<package xmlns="http://expath.org/ns/pkg" name="http://www.functx.com" abbrev="functx" version="1.0" spec="1.0">
<title>FunctX library</title>
<xslt> <import-uri>http://www.functx.com/functx.xsl</import-uri> <file>functx.xsl</file> </xslt> <xquery> <namespace>http://www.functx.com</namespace> <file>functx.xq</file> </xquery>
</package>
Any thoughts?
Jonathan
Hi Jonathan -
I'm curious: which distribution of BaseX are you using? The main BaseX.zip has the functx library already in ${basex}/repo.
I did though do a quick test (below) and keeping https in the URL made a difference. I'm not quite sure why. Hope that's helpful. Best, Bridger ```
REPO INSTALL https://files.basex.org/modules/expath/functx-1.0.xar
Package 'https://files.basex.org/modules/expath/functx-1.0.xar' replaced in 1158.39 ms.
REPO
Stopped at , 1/5: Syntax: REPO [DELETE|INSTALL|LIST] Install, delete or list packages.
Installs, deletes or lists packages from the repository. - DELETE [name|dir]: deletes the package with name [name] or directory [dir] - INSTALL [path]: installs package with path [path] - LIST: lists all installed packages
REPO LIST
Name Version Type Path --------------------------------------------------------------- http://www.functx.com 1.0 EXPath http-www.functx.com-1.0
1 package(s).
REPO DELETE http://www.functx.com
Package 'http://www.functx.com' deleted.
REPO LIST
Name Version Type Path -------------------------
0 package(s).
REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar
Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found..
```
On Thu, Sep 2, 2021 at 8:59 PM Jonathan Robie jonathan.robie@gmail.com wrote:
I tried installing EXPath, but without success.
REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar
Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found..
If I download the .xar and unzip it, it looks like this:
[image: image.png]
Here is the content of expath-pkg.xml:
<package xmlns="http://expath.org/ns/pkg" name="http://www.functx.com" abbrev="functx" version="1.0" spec="1.0">
<title>FunctX library</title>
<xslt> <import-uri>http://www.functx.com/functx.xsl</import-uri> <file>functx.xsl</file> </xslt> <xquery> <namespace>http://www.functx.com</namespace> <file>functx.xq</file> </xquery>
</package>
Any thoughts?
Jonathan
This is BaseX 9.1. When I do a repo list, it does not list EXPath.
Using https fixed the problem - thanks!
Jonathan
On Fri, Sep 3, 2021 at 1:58 PM Bridger Dyson-Smith bdysonsmith@gmail.com wrote:
Hi Jonathan -
I'm curious: which distribution of BaseX are you using? The main BaseX.zip has the functx library already in ${basex}/repo.
I did though do a quick test (below) and keeping https in the URL made a difference. I'm not quite sure why. Hope that's helpful. Best, Bridger
> REPO INSTALL https://files.basex.org/modules/expath/functx-1.0.xar Package 'https://files.basex.org/modules/expath/functx-1.0.xar' replaced in 1158.39 ms. > REPO Stopped at , 1/5: Syntax: REPO [DELETE|INSTALL|LIST] Install, delete or list packages. Installs, deletes or lists packages from the repository. - DELETE [name|dir]: deletes the package with name [name] or directory [dir] - INSTALL [path]: installs package with path [path] - LIST: lists all installed packages > REPO LIST Name Version Type Path --------------------------------------------------------------- http://www.functx.com 1.0 EXPath http-www.functx.com-1.0 1 package(s). > REPO DELETE http://www.functx.com Package 'http://www.functx.com' deleted. > REPO LIST Name Version Type Path ------------------------- 0 package(s). > REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found.. >
On Thu, Sep 2, 2021 at 8:59 PM Jonathan Robie jonathan.robie@gmail.com wrote:
I tried installing EXPath, but without success.
REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar
Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found..
If I download the .xar and unzip it, it looks like this:
[image: image.png]
Here is the content of expath-pkg.xml:
<package xmlns="http://expath.org/ns/pkg" name="http://www.functx.com" abbrev="functx" version="1.0" spec="1.0">
<title>FunctX library</title>
<xslt> <import-uri>http://www.functx.com/functx.xsl</import-uri> <file>functx.xsl</file> </xslt> <xquery> <namespace>http://www.functx.com</namespace> <file>functx.xq</file> </xquery>
</package>
Any thoughts?
Jonathan
Ah, right - Christian and team added the Functx library as a default... at some point between 9.1 and now. 😂
Glad that helped. Have a pleasant weekend.
On Fri, Sep 3, 2021 at 3:39 PM Jonathan Robie jonathan.robie@gmail.com wrote:
This is BaseX 9.1. When I do a repo list, it does not list EXPath.
Using https fixed the problem - thanks!
Jonathan
On Fri, Sep 3, 2021 at 1:58 PM Bridger Dyson-Smith bdysonsmith@gmail.com wrote:
Hi Jonathan -
I'm curious: which distribution of BaseX are you using? The main BaseX.zip has the functx library already in ${basex}/repo.
I did though do a quick test (below) and keeping https in the URL made a difference. I'm not quite sure why. Hope that's helpful. Best, Bridger
> REPO INSTALL https://files.basex.org/modules/expath/functx-1.0.xar Package 'https://files.basex.org/modules/expath/functx-1.0.xar' replaced in 1158.39 ms. > REPO Stopped at , 1/5: Syntax: REPO [DELETE|INSTALL|LIST] Install, delete or list packages. Installs, deletes or lists packages from the repository. - DELETE [name|dir]: deletes the package with name [name] or directory [dir] - INSTALL [path]: installs package with path [path] - LIST: lists all installed packages > REPO LIST Name Version Type Path --------------------------------------------------------------- http://www.functx.com 1.0 EXPath http-www.functx.com-1.0 1 package(s). > REPO DELETE http://www.functx.com Package 'http://www.functx.com' deleted. > REPO LIST Name Version Type Path ------------------------- 0 package(s). > REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found.. >
On Thu, Sep 2, 2021 at 8:59 PM Jonathan Robie jonathan.robie@gmail.com wrote:
I tried installing EXPath, but without success.
REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar
Stopped at , 1/66: [repo:parse] functx-1.0.xar: Resource "expath-pkg.xml" not found..
If I download the .xar and unzip it, it looks like this:
[image: image.png]
Here is the content of expath-pkg.xml:
<package xmlns="http://expath.org/ns/pkg" name="http://www.functx.com" abbrev="functx" version="1.0" spec="1.0">
<title>FunctX library</title>
<xslt> <import-uri>http://www.functx.com/functx.xsl</import-uri> <file>functx.xsl</file> </xslt> <xquery> <namespace>http://www.functx.com</namespace> <file>functx.xq</file> </xquery>
</package>
Any thoughts?
Jonathan
basex-talk@mailman.uni-konstanz.de