Re: [basex-talk] file store question

2016-05-24 Thread Christian Grün
> 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].

Re: [basex-talk] A db can only be copied once...

2016-05-24 Thread Christian Grün
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,

[basex-talk] A db can only be copied once...

2016-05-24 Thread France Baril
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

Re: [basex-talk] Open Document spreadsheets and column position

2016-05-24 Thread Graydon Saunders
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)

Re: [basex-talk] Replacing node sets in a large file

2016-05-24 Thread Michael Sanborn
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

[basex-talk] file store question

2016-05-24 Thread Wang, Genneva
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

Re: [basex-talk] Replacing node sets in a large file

2016-05-24 Thread Michael Sanborn
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

Re: [basex-talk] add resource from client

2016-05-24 Thread Gilad Wagner
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