[basex-talk] inspect functions and %private

2013-12-02 Thread jean-marc Mercier
Hi, To report a small issue in the inspect functions module with %private declaration. The following code runs perfectly : declare %private function local:test(){()}; for $fun in inspect:functions() return "gotcha" However, If the function test is located in another module, say test, then the f

[basex-talk] Full text queries ok :)

2013-12-02 Thread Ingarao Maud
Hello everybody Thanks to your help Christian, our full text queries yet work fine. I still don't understand exactly what the problem was and why we got 500 internal errors. Maybe a too heavy query and thus a memory problem ? Anyway now with this kind of writing, the queries are complete

Re: [basex-talk] Decoupling custom code with restxq

2013-12-02 Thread Wiemer, Sebastian
Hi Sebastian, Hi Jean-Marc, On this problem, a quick comment coming into my mind, since I faced a comparable problem recently. Without changing XQUERY or BaseX, it is possible to emulate overloading using the introspection module of BaseX. But you need a map which keys and values are fu

Re: [basex-talk] Decoupling custom code with restxq

2013-12-02 Thread Christian Grün
Hi Sebastian, > BTW: I unfortunately missed your and Alexanders presentation at the MarkUp > Forum: are there any slides available? The slides should soon be available here: http://www.markupforum.de/archiv.html > This is similar to imported modules in XSLT: If you import template rules, > which

Re: [basex-talk] inspect functions and %private

2013-12-02 Thread Christian Grün
> However, If the function test is located in another module, say test, then > the following code > > import module namespace test="http://www.example.com/test"; at test.xq"; > > for $fun in inspect:functions() return "gotcha" > > raise an exception. If you mean the exception "Function 'test:test'

[basex-talk] XQUERY command and PHP

2013-12-02 Thread Tsvetanka Georgieva-Trifonova
Hi Basex, My question is about the command XQUERY [query]. Does it work with any XQuery queries or only with XPath? I tried the following: execute("open myfirstdatabase");   echo $session->execute("xquery for $n in //country[name = 'Switzerland'] return $n")   ;   // close session   $session->cl

Re: [basex-talk] XQUERY command and PHP

2013-12-02 Thread Yoann Maingon
Hi, I intensively use both. So yes it is possible here is an example: case "get_projects": $xquery = "XQUERY " . "for \$meetingsActors in //meeting/actors/userlink[@uid='$userId'], " . " \$projects in //project " . "

Re: [basex-talk] Decoupling custom code with restxq

2013-12-02 Thread jean-marc Mercier
Hi Sebastian, A quick comment for your code : it is better to use it sparsely, because inspect:functions is quite slow. If you want to improve perfs, create first a map. Here is the code that I am using for this kind of "overloading" declare variable $common:MapIntrospecting := common:map_inspect

Re: [basex-talk] inspect functions and %private

2013-12-02 Thread jean-marc Mercier
Hi christian, yes this is the point : Stopped at C:/Jiheme/informatique/workspace/Graph DataBase/module/common.xq, 31/89: [XPST0017] Function 'local:test' is not visible from this module. If this is desired, it means that we can not use the inspection module as soon as there is %private annotatio

Re: [basex-talk] office paper

2013-12-02 Thread niki
Dear Sir, It's a nice day! I’m NIKI. We are a company mainly in export paper products. We have been in this field for many years. Our paper products contains copy paper, newsprint paper, offset paper, NCR paper etc. Should any of the item be of interest to you, please let me know. We shall be

[basex-talk] Results from ft:extract()

2013-12-02 Thread Lars Johnsen
Hello all When using ft:extract() on nodes, it seems to clip into the match itself too often. Is it possible to have ft:extract() leave as much before the match as after? For example, here are two results for "spise lunsj" (= eat lunch (language is Norwegian)) the first is as it should be, while

[basex-talk] CDATA in xquery

2013-12-02 Thread Erol Akarsu
I would like to generate CDATA of one xmk construct like this. This does not calculate $1,$f2 and $f3 and insert their serialized version into features tag Can we do this in xquery? let $allfs := {$name}

Re: [basex-talk] CDATA in xquery

2013-12-02 Thread Liam R E Quin
On Mon, 2013-12-02 at 15:29 -0500, Erol Akarsu wrote: > I would like to generate CDATA of one xmk construct like this. [...] > let $allfs := > {$name} > > > > Watch out that if $f1 (say

Re: [basex-talk] CDATA in xquery

2013-12-02 Thread Erol Akarsu
Liam, Thanks for help, Basex implements serialize function. This can do: let $params := http://www.w3.org/2010/xslt-xquery-serialization";> let $sf := fn:concat(fn:serialize(Features:,$params), fn:serialize(,$params),

Re: [basex-talk] Results from ft:extract()

2013-12-02 Thread Christian Grün
Hi Lars, > When using ft:extract() on nodes, it seems to clip into the match itself too > often. Is it possible to have ft:extract() leave as much before the match as > after? the ft:extract algorithm is an intricate one [1], as the inputs to be processed can be very manifold, but we can try to t