xsl-list
[Top] [All Lists]

RE: simple question regarding xsl:key and value calculation

2003-08-25 10:31:31

So the value of key('k', 'Jane') is the set containing book 
id=1 and 
book id=3.

Is that clearer?

i had assumed the above.  what seemed confusing to me was the 
reference to "the" key, which threw me until i realized that, 
when you write that "each element contributes one value to 
the key", what that meant was that each element contributed 
another (N,V) pair to the key.

it was just the reference to "the key" and "that node" that 
confused me into thinking that, somehow, a node-set generated 
one and only one value for the expression.

just to be pedantic, what do you mean when you refer to "the key" in 
that first bullet point on p. 243?

I'm using the word fairly interchangeably (as people do) to mean "the
definition of the index", "the index", and "an entry in the index".

I'm trying to be more pedantic about distinguishing terms in the actual
XSLT spec ("sort key" suffers even worse problems), but it's a difficult
thing to get right - make it too rigorous, and you can boggle the
reader's mind with subtle distinctions between closely related concepts.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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