Hi, i tried this xquery:
for $e in db:open("dbName")//w:tc[.//text()="Nome"]
 return $e/./following::text()except
  (for $x in db:open("dbName")//w:tc[.//text()="Indirizzo"]
return $x//following::text())
 
but only returns the result of the first document.
How do i do it for all the documents?
--------- Original Message --------
Da: "Dirk Kirsten" <dk@basex.org>
To:
Cc: basex-talk@mailman.uni-konstanz.de
Oggetto: Re: [basex-talk] Xquery collections
Data: 03/09/15 18:08

Ciao Michele,

welcome to the community :-)

Collections in BaseX are basically databases. You can simply open a database e.g. by issueing the XQuery db:open('mydatabase'). This will use all documents in your database.

You can find some more examples at http://docs.basex.org/wiki/Databases

It might also be helpful for you to read some of the Tutorials given at http://docs.basex.org/wiki/Getting_Started like BaseX for Dummies, given a concise introduction to BaseX.

Spero che sia d'aiuto
Dirk



On 09/03/2015 05:48 PM, michele.greco2@email.it wrote:
Hello I Michele i'm new to basex,
i created a collection with different documents .xml.
I want to know how to query the entire collection e its documents at one xquery.
I'm trying,but i can't.
 
Thanks.
MG
 

----
ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli clicca qui

Sponsor:
Idee regalo classiche o alternative? Trova l'offerta migliore in un click
Clicca qui

-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22

----
ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli clicca qui

Sponsor:
Caselle con tuo dominio su piattaforma Zimbra, fino a 30 GB di spazio, sincronizzazione dati e backup
Clicca qui