Re: [xsl] keys and collections

Subject: Re: [xsl] keys and collections
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 21 Jun 2012 15:43:38 -0400
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)

?

The idea being that the documents in question could be consolidated before the call to the key function, minimizing the number of calls?

Or is that likely to be taken care of for us, or unlikely to matter much?

Cheers,
Wendell

======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread