> Does it mean that the caller really need to
> know the type of the resource, in order to determine which db function to
> call ?
Yes – unless you use WebDAV (which will automatically find out if your
input is well-formed XML) or the REST API (which will evaluate the
specified content type) [1].
Hi France,
> Since a DB cannot be created dynamically from a restxq call
Did you try db:create?
> However, it seems that I am unable to create multiple
> instances from the same DB template.
To answer this question, I need some more information on how you
proceed. Do you use db:copy?
Best,
Hi,
Since a DB cannot be created dynamically from a restxq call, I'm trying to
create some databases by copying an existing one (an empty DB with all the
desired parameters). However, it seems that I am unable to create multiple
instances from the same DB template.
Is there a reason for this
Hi Christian --
Your version, slightly tweaked:
declare function local:realPos(
$current as element(table:table-cell)
) as xs:integer {
let $cells := $current/preceding-sibling::table:table-cell
let $repeated := $cells/@table:number-columns-repeated
let $total := count($cells)
Seems like this would be perfect. I do need both number and manuf. Using
your combination map, I'm now getting an "Out of Main Memory" error. Tried
on a second computer - same issue. Would it be more likely to work if I
tried it from the command line rather than the GUI? If so, I'll need to
look
Hi BaseX gurus,
I noticed that if the resource is persisted in basex, there is a way to tell
what type of the resource it is(db:content-type?). However, I’m wondering for
new resources to be persisted, is there a way to determine ? Or mostly needs to
rely on the application to determine which
Thanks for that. The trouble in step 2 is, just wrapping partinfo with the
part element doesn't get me what I've labelled "misc part content 1" and
"misc part content 2". It's not sufficient to have just the tags - I need
all the content of the corresponding part elements in the later part of the
Hi Christian,
Sorry for lazy explanation.
I will try to rephrase:
Given a server with basex-server and a remote client, I want to take xml
from the client machine and store it on the basex server.
(I know I can copy the file from client to server and then store it, but
it¹s not possible in my
8 matches
Mail list logo