xsl-list
[Top] [All Lists]

Re: [xsl] keys and collections

2012-06-21 14:43:47
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(_at_)mulberrytech(_dot_)com
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
======================================================================

--~------------------------------------------------------------------
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>