[xquery-talk] Query Through Multiple Files

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

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 (
    return $doc//ad


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

More information about the talk mailing list