Hello!
Can you add to BaseX (as module) function "line-number" which retrieves the
line number of the expression ?
Same as in eXist-db (
http://exist-db.org/exist/apps/fundocs/view.html?uri=http://exist-db.org/xquery/util=java:org.exist.xquery.functions.util.UtilModule=true
) or saxon (
And thanks for the confirmation. I will try to find out why the two
alternatives make a difference.
Bogdan Bogucki schrieb am Mi., 4. Juli 2018, 21:56:
> Hello,
>
> It works with body as a third parameter. Body has to be defined in http
> request because without that third parameter is
Thanks to both of you! This is very helpful. I will experiment with both
solutions.
Ciao,
Giuseppe
> On Jul 4, 2018, at 6:21 PM, Giuseppe Celano
> wrote:
>
> Hi All,
>
> I was wondering if there is a way to take full advantage of the arrow
> operator with file:write(). If I want to write
Hi Guiseppe,
You could also write a helper library and simply switch the parameters
yourself. So your module file.xqm would look something like that:
module namespace f = "http://guiseppe/file;;
declare function f:write($items as item()*, $path as xs:string) as
empty-sequence()
{
Hi Bogdan,
I didn’t try it, but what happens if you specify the body as third argument?
Cheers,
Christian
On Tue, Jul 3, 2018 at 10:14 PM Bogdan Bogucki wrote:
>
> Hello,
>
> I don't want pass values in query string. Server side expect parameters in
> payload.
> HTML Form parameters in POST
Hi Giuseppe,
There has been some open discussion on the semantics of the XQuery
arrow operator in the W3 XML Query Group [1]. Back then, it was
decided that the left operand of the arrow operator is to be rewritten
as the first argument of the invoked function.
If your query returns a single
Hi All,
I was wondering if there is a way to take full advantage of the arrow operator
with file:write(). If I want to write the results of a query, it would be
ideal, I think, if the first parameter of file:write() were the content to
write and the second the path: in this case I could have:
Hi Maike,
In order to automate non XML files importation,
You could write and run a command file (.BXS) [2] containing two things :
- needed parsing options [1]
- Create or add command
[1] http://docs.basex.org/wiki/Options#Parsing
[2] http://docs.basex.org/wiki/Commands
BXS
Dear BaseX users,
I often make use of importing files to BaseX via command line. For XML this
works fine. Currently, I work with CSV-files that I import to BaseX via GUI.
I would like to automatize this process as I do with XML-Import files.
Unfortunately, I didn't find any instructions so
9 matches
Mail list logo