Using SaxonEE 9.7 XQuery Processor with BaseX
Friday, 11 March 2016 · 2 messages
JG
Jörn Goeke11 Mar 2016 13:44 #
Hello together,
I just recently startet using BaseX in one of my Projects and since I was developing on the GUI of BaseX I had no Problems with anything.
Unfortunately, for reasons, I need to use the Saxon Processor to Query my BaseX DB.
I tried different approaches, but, everything endet up with the following error message:
XPST0017: Saxon does not allow external function to be declared
The query I tried looks as followed:
xquery version "3.0";
declare namespace vm = "http://www.viamedici.de";
import module namespace db = "http://basex.org/modules/db" at "test/db.xqm";
(: Retrieve documents from database :)
db:open("hades")//templateSince I could not get usable information from google I hope some of you guys can help me.
Thanks a lot,
Jörn
Jörn Uli Goeke
Projektleiter / Projektentwickler
Viamedici Software GmbH
Hertzstr. 14
D-76275 Ettlingen
Germany
Phone: +49(0)7243/9498-36
Fax: +49(0)7243/9498-99
e-mail: j.goeke at viamedici.de
URL: www.viamedici.de<http://www.viamedici.de>
HRB 362615, Amtsgericht Mannheim
Geschaeftsfuehrer: Juergen Mueller
CG
Christian Grün11 Mar 2016 13:50 #
Hi Jörn,
Quoted text · Jörn Goeke · 2 lines
> Unfortunately, for reasons, I need to use the Saxon Processor to Query my > BaseX DB.
Saxon is a completely different product, so this won’t be possible. But you can invoke Saxon from BaseX, e.g. for schema validation (see our documentation). Could you possibly tell us what “for reasons” means?
Best,
Christian
Quoted text · Jörn Goeke · 61 lines
> I tried different approaches, but, everything endet up with the following > error message: > > > > XPST0017: Saxon does not allow external function to be declared > > > > The query I tried looks as followed: > > > > xquery version "3.0"; > > > > declare namespace vm = "http://www.viamedici.de"; > > import module namespace db = "http://basex.org/modules/db" at "test/db.xqm"; > > > > (: Retrieve documents from database :) > > db:open("hades")//template > > > > Since I could not get usable information from google I hope some of you guys > can help me. > > > > Thanks a lot, > > > > Jörn > > > > > > Jörn Uli Goeke > Projektleiter / Projektentwickler > > Viamedici Software GmbH > Hertzstr. 14 > D-76275 Ettlingen > Germany > > Phone: +49(0)7243/9498-36 > Fax: +49(0)7243/9498-99 > > e-mail: j.goeke at viamedici.de > URL: www.viamedici.de > > HRB 362615, Amtsgericht Mannheim > Geschaeftsfuehrer: Juergen Mueller >
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery