xsl-list
[Top] [All Lists]

Re: [xsl] keys and collections

2012-06-21 16:52:05


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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>