Yes, I did it for keeping the (large) pattern in one place
instead of two, and
for optimization, to have it evaluated only once. But that's perhaps
unnecessary?
It's good practice, I think, to use a variable in such cases. Some
optimizers may recognize common subexpressions, but there's no point relying
on it.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--