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
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
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
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
> 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'
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
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 "
. "
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
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
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
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
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}
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
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),
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
15 matches
Mail list logo