Re: [xsl] Calling subdocuments with processing directives

Subject: Re: [xsl] Calling subdocuments with processing directives
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Fri, 26 Oct 2007 09:29:34 -0700
Why does the key not aggregate all the values it sees?

Steven

--
Dr. Steven Ericsson-Zenith
Institute for Advanced Science & Engineering
http://iase.info
http://senses.info



On Oct 26, 2007, at 9:26 AM, Michael Kay wrote:

Thanks Michael, the XPath here is not immediately clear to me
where does $docs come from?

Sorry, I was being too terse. You have a set of documents that you want to
aggregate for searching. I assumed that set of documents was bound to the
variable $docs.


Incidentally, David's formulation $docs/key(x,y) works equally well - so
long as you remember that the context for evaluating y is different in the
two expressions.



For the sake of my greater understanding - is there some fundamental reason why this is the case? It seems counter intuitive but I am not fully immersed yet in the XSL culture.


Sorry - why *what* is the case?


Michael Kay
http://www.saxonica.com/

Current Thread