|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: use-when attribute?
Hi Bruce,
I was originally using keys (at your suggestion, in fact), but Mike Kay at one point seemed to suggest it better for my purposes to use a variable. I didn't quite understand why, but here's his explanation:
So I gave you this one. It builds the same node set, but I am quite sure it won't need three loops through the document _and_ a union of the three results. The big difference is that those global variables execute expressions. The keys contain match patterns. I am pretty sure that all keys are built with only a single pass through the document. If it isn't so, than the programmers haven't implemented it very cleverly, I would say... I remember Mike saying that, and true, in that particular case it didn't really matter. But when adding multiple variables with such expressions, or a single one with a union like you suggested, I think it does... Cheers.
|
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
|

Cart








