[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

[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

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' is not

[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: ?php   include(BaseXClient.php);   // create session   $session = new Session(localhost, 1984, admin, admin);   $session-execute(open myfirstdatabase);   echo

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

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

[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 := record name{$name}/name features

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 := record name{$name}/name features ![CDATA[ h3Features:/h3

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 := output:serialization-parameters xmlns:output= http://www.w3.org/2010/xslt-xquery-serialization; output:omit-xml-declaration value=yes/

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