[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Fwd: xsl:key() and $variables.
At 10:20 PM 7/21/2006, Mike wrote:
I've never heard of xsl:key but the second illustration here: Nice writeup. Presumably each Employee would have a unique SSN and therefore the key() call will return one Element. And if the SSN isn't unique -- or maybe your key value is the surname not the SSN -- you could get several Employees back, all with the same SSN, surname or what have you. Hence the applicability of keys for de-duplicating and accordingly for grouping. Note there's nothing you can do with a key that you can't do with brute-force XPath. But since the processor has the information up front to build an index, many expensive tree traversals are avoided and the application scaled much better. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|