Using .xqm in multiple BaseX instances

Monday, 22 June 2015 · 4 messages
FB
France Baril22 Jun 2015 01:41 #
Hi, I'm creating multiple projects that rely on the same base. Each project is set a a separate BaseX installation because each needs its own DBs and its own code. However, some of the .xqm are relevant to many projects. I've tried creating symlinks to the reusable components, but all I get is a message telling me that #0 is an unacceptable character in my symlink file. I've been referencing it as: import module namespace name = "uri" at "symlink.xqm"; I am not surprised that this doesn't work, but I had to try it. I'm still hoping that there is a way to reuse code without creating multiple instances of each .xqm. Thanks, France
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
CG
Christian Grün22 Jun 2015 09:33 #
Hi France,
Quoted text · France Baril · 1 line
> #0 is an unacceptable character in my symlink file.
This seems to be a pretty rare error message; I didn't find any hits when searching for it. What is the original error message? Have you already searched for it as well? Christian
CG
Christian Grünin reply to France Baril, 22 Jun 2015, 20:5522 Jun 2015 18:59 #
Quoted text · France Baril · 2 lines
> In this case, I didn't search, I just assumed symlinks weren't supported. > Should they work? If so, I'll investigate some more.
Yes, we are indeed using symlinks in various contexts (with Linux). Christian
Quoted text · France Baril · 30 lines
On Mon, Jun 22, 2015 at 6:55 PM, France Baril <france.baril at architextus.com> wrote: > I've had this error before with file:read(), when I read .csv files from > some 3rd parties. I have to open the file, remove the last empty line, or > replace it by my own empty line (del + enter). I always assumed it was an > encoding issue as it always occurs with the files from the same providers. > > > > > On Mon, Jun 22, 2015 at 12:33 AM, Christian Grün <christian.gruen at gmail.com> > wrote: >> >> Hi France, >> >> > #0 is an unacceptable character in my symlink file. >> >> This seems to be a pretty rare error message; I didn't find any hits >> when searching for it. What is the original error message? Have you >> already searched for it as well? >> >> Christian > > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
FB
France Barilin reply to Christian Grün, 22 Jun 2015, 09:3322 Jun 2015 20:55 #
I've had this error before with file:read(), when I read .csv files from some 3rd parties. I have to open the file, remove the last empty line, or replace it by my own empty line (del + enter). I always assumed it was an encoding issue as it always occurs with the files from the same providers. In this case, I didn't search, I just assumed symlinks weren't supported. Should they work? If so, I'll investigate some more.
Quoted text · Christian Grün · 12 lines
On Mon, Jun 22, 2015 at 12:33 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi France, > > > #0 is an unacceptable character in my symlink file. > > This seems to be a pretty rare error message; I didn't find any hits > when searching for it. What is the original error message? Have you > already searched for it as well? > > Christian >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com

⚡Generated with XQuery