[xquery-talk] Query Through Multiple Files
mike at saxonica.com
Sun Jan 20 09:02:07 PST 2008
> 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
Another way of doing it that is portable is to create a document that
contains links to the documents you want to search:
for $doc in /dir/file/doc(.)
for $read in ... where distinct-values($read) return...
It's disappointing that after all the help you were given last week you
still haven't grasped that this is nonsense. The value of $read is a single
item, and passing a single item to distinct-values has no useful effect. If
you don't understand the advice you are getting, please say so and ask for
further explanation - it's a waste of everyone's time if you ignore the
advice and just keep making the same mistake.
More information about the talk