import xqueries stored in database

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

import xqueries stored in database

Jean-Christophe Kermagoret-2
Hello,
I saw in the documentation that it is possible to import queries stored
in the database.

I wrote a module that I stored in the database. Then, I tried this :
import module namespace f="http://bluexml.org/xquery/display"
        at "display.xqm";

Unfortunately, Exist tries to load it from the filesystem

Any ideas ?

Thanks

Jean-Christophe

--

BlueXML
Jean-Christophe Kermagoret
Directeur associé
[hidden email]



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: import xqueries stored in database

Pierrick Brihaye
Hi,

Jean-Christophe Kermagoret a écrit :

> Hello,
> I saw in the documentation that it is possible to import queries stored
> in the database.

For sure.

> I wrote a module that I stored in the database. Then, I tried this :
> import module namespace f="http://bluexml.org/xquery/display"
>     at "display.xqm";

at "xmldb:exist:///db/your_collection/your_module.xqm";

see
http://cvs.sourceforge.net/viewcvs.py/exist/eXist-1.0/src/org/exist/xquery/test/XQueryTest.java?rev=1.23&view=markup,
around line 550.

Cheers,

p.b.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open