This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl:key



> What's the point of doing:
> ...
> if the xsl:key is not a static hashtable ?

none, I think. Like id, key is replaceable by some construction selecting
nodes based on an xpath expression, so you just have to trust that the
implementors implement it at least no less efficiently than that.

Perhaps a hash table is made for each included document() based on all
the current xsl:keys in effect. You'd have to ask the implementors
though (or look at the code, but looking at the code isn't my style:-)

That's how it works for id() after all. The implied hash table of id
values is per-document and you can switch the current document by using
(for example) xsl:for-each. This seems to be the implication of the
example in the spec that you quote.


David


 


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]