Problems installing EXPath
Friday, 3 September 2021 · 4 messages
JR
Jonathan Robie3 Sep 2021 04:59 #
I tried installing EXPath, but without success.
Quoted text · 1 line
> 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
BD
Bridger Dyson-Smith3 Sep 2021 21:58 #
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..
>Quoted text · Jonathan Robie · 43 lines
On Thu, Sep 2, 2021 at 8:59 PM Jonathan Robie <jonathan.robie at 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 > >
JR
Jonathan Robie3 Sep 2021 23:39 #
This is BaseX 9.1. When I do a repo list, it does not list EXPath.
Using https fixed the problem - thanks!
Jonathan
Quoted text · Bridger Dyson-Smith · 91 lines
On Fri, Sep 3, 2021 at 1:58 PM Bridger Dyson-Smith <bdysonsmith at 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 at 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 >> >>
BD
Bridger Dyson-Smith3 Sep 2021 23:42 #
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.
Quoted text · Jonathan Robie · 100 lines
On Fri, Sep 3, 2021 at 3:39 PM Jonathan Robie <jonathan.robie at 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 at 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 at 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 >>> >>>
Written for BaseX 9.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery