[xquery-talk] Query Through Multiple Files

Liam Quin liam at w3.org
Sat Jan 19 21:13:10 PST 2008

On Sat, Jan 19, 2008 at 08:24:29PM -0500, Wei, Alice J. wrote:
> for $read in doc("*.xml")//div, but the error I got is

You probably need to use an XQuery collection; however, the
way this works varied between products, so it would depend on
which XQuery implementation you were using.

It is possible to query multiple files portably if you know
their names -- e.g.
    for $boy in (

	return $boy//hair/colour


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