Subject: Re: keys and collections
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 21 Jun 2012 22:51:50 +0100
|
On 21/06/2012 20:43, Wendell Piez wrote:
Dear Mike,
On 6/21/2012 11:52 AM, Michael Kay wrote:
A key can only be used to search within a single document. You can, of
course, construct the union of the results of searching each individual
document using the key, like this:
$allInput/key('linebyfolio',$folio)
I'm not sure what you were trying to do with the /text/* so I've left
that out of the equation.
Assuming that $allInput were bound to an arbitrary set of elements
scattered across a set of documents, would there be any advantage to
$allInput/root()/key('linebyfolio',$folio)
Yes, probably.
Michael Kay
Saxonica
|