EXPath File Module within xqueries in oxygen?
Hi,
So having the oxygen integration setup now, the next question that comes up which I'm not finding an answer for is can one use the EXPath File Module within xqueries in oxygen? I'm googling around,, I gather only basex that has implemented it from the website. http://expath.org/modules/file/implems
I see that though that oxygen has a method to import modules but not sure where to get the module if that's the case. http://www.oxygenxml.com/xml_editor/xquery_editor.html
I suppose it's not that important for use in oxygen but thought I would ask..
Regards
Hi Alex,
Quoted text · Alex Muir · 3 lines
> So having the oxygen integration setup now, the next question that comes up > which I'm not finding an answer for is can one use the EXPath File Module > within xqueries in oxygen?
sure, this is no problems. You can use any module specified in our module library [1].
Quoted text · Alex Muir · 2 lines
> I'm googling around,, I gather only basex that > has implemented it from the website. http://expath.org/modules/file/implems
I know there is at least one other implementation [2]. The spec. for the file module [3] is still pretty new, so more are expected to follow in the future.
Quoted text · Alex Muir · 3 lines
> I see that though that oxygen has a method to import modules but not sure > where to get the module if that's the case. > http://www.oxygenxml.com/xml_editor/xquery_editor.html
If you want to use other modules with BaseX, the most convenient way is to store them in the server-side repository [4]. You can directly edit XQuery modules in the repository directory without removing and reinstalling them.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Module_Library [2] http://www.zorba-xquery.com/html/modules/expath/file [3] http://expath.org/spec/file [4] http://docs.basex.org/wiki/Repository
Oh indeed they are working. I was at first thinking the file:create-dir would be creating a directory locally but it creates it on the remote server where basex is running. All to logical.
Thanks
On Mon, Nov 26, 2012 at 9:28 PM, Christian Grün <christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 35 lines
> Hi Alex, > > > So having the oxygen integration setup now, the next question that comes > up > > which I'm not finding an answer for is can one use the EXPath File Module > > within xqueries in oxygen? > > sure, this is no problems. You can use any module specified in our > module library [1]. > > > I'm googling around,, I gather only basex that > > has implemented it from the website. > http://expath.org/modules/file/implems > > I know there is at least one other implementation [2]. The spec. for > the file module [3] is still pretty new, so more are expected to > follow in the future. > > > I see that though that oxygen has a method to import modules but not sure > > where to get the module if that's the case. > > http://www.oxygenxml.com/xml_editor/xquery_editor.html > > If you want to use other modules with BaseX, the most convenient way > is to store them in the server-side repository [4]. You can directly > edit XQuery modules in the repository directory without removing and > reinstalling them. > > Hope this helps, > Christian > > [1] http://docs.basex.org/wiki/Module_Library > [2] http://www.zorba-xquery.com/html/modules/expath/file > [3] http://expath.org/spec/file > [4] http://docs.basex.org/wiki/Repository >
Written for BaseX 7.3. BaseX may have changed since: please check the current documentation.