Re: [basex-talk] store results of a query in a new database

2013-03-21 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 18.03.2013 um 23:53 schrieb Christian Grün christian.gr...@gmail.com: And my assumption isn't true: The document has to exist, I cannot specify a non-existing document, i.e., a document I maybe would like to produce later as an export of the DB. This sounds surprising to

Re: [basex-talk] store results of a query in a new database

2013-03-18 Thread Christian Grün
Hi Cerstin, So I have the DB 'collect' open and then do: db:create('annotate-abcdef') as you guessed, you’ll have to specify a document path, in which you can then add new nodes. Every XML document has a root node, and vice versa, so it’s conceptually not possible to only create a root node

Re: [basex-talk] store results of a query in a new database

2013-03-18 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 18.03.2013 um 15:54 schrieb Christian Grün christian.gr...@gmail.com : So I have the DB 'collect' open and then do: db:create('annotate-abcdef') as you guessed, you’ll have to specify a document path, in which you can then add new nodes. Every XML document has a root node,

Re: [basex-talk] store results of a query in a new database

2013-03-18 Thread Christian Grün
Somehow it is not clear from the Wiki, I thought I had to use an existing document with some data in it. So this document does not have to exist before? Good to know. Edits in our Wiki are always welcome! ;) Thanks, Christian ___ BaseX-Talk

Re: [basex-talk] store results of a query in a new database

2013-03-18 Thread Christian Grün
And my assumption isn't true: The document has to exist, I cannot specify a non-existing document, i.e., a document I maybe would like to produce later as an export of the DB. This sounds surprising to me, as I don’t get any errors when running e.g. the following command.. basex

[basex-talk] store results of a query in a new database

2013-03-14 Thread Cerstin Elisabeth Mahlow
Hi, I would like to store the results of an xquery extracting some nodes from an existing database into a new database. So I have the DB 'collect' open and then do: db:create('annotate-abcdef') and then for $i at $p in //entry[phraseme[text() = abcdef] and selected[text() = yes]] let