[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Query Through Multiple Files

'Liam Quin' liam at w3.org
Sun Jan 20 16:56:05 PST 2008


  Query Through Multiple Files
On Sun, Jan 20, 2008 at 09:16:30AM -0500, Wei, Alice J. wrote:
>     As for the point on using the template you provided, since I use the TEI, I don't think I could use it. I did use Liam's suggestions,
> 
> for $ad in (
>        doc("1.xml"),
>        doc("2.xml"),
>        doc("3.xml"),
>        doc("4.xml"))//ad
> 
That wasn't exactly what I suggested... :-)

XQuery is not a good language in which to make random
guesses and hope things will work.

You can try,
for $doc in (
       doc("1.xml"),
       doc("2.xml"),
       doc("3.xml"),
       doc("4.xml"))
    return $doc//ad

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.