|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Get collection context in XQueryricardo queiros ricardo.queiros at gmail.comFri Feb 6 11:32:58 PST 2009
Hi, I'm a newbie in XQuery and i appreciate a answer to this doubt. I store several XML documents in a Native XML Database (eXist). In my organisation i have several collections with several XML files that share the same structure. The following structure defines 2 collections A and B. The collection A have 2 XML files and the collection B one. A - 1.xml - 2.xml B - 3.xml I have his XQuery file: FOR $x in collection("A","B") WHERE ... RETURN ? If, for example, only the 2.xml and 3.xml were evaluate for TRUE in the WHERE clause, i want to obtain the following XML data: <RESULTS> <A>2.xml<A> <B>3.xml</B> </RESULTS> What should i put in the RETURN clause? I can also have collections inside other collections... Thanks in advance -- Ricardo Queirós -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20090206/6b5abbf6/attachment.htm
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






