Just one question, if foo-bar-temp is a global variable, is
the nodeset initialized only once or is it generated every
time foo-bar-temp is called?
The XSLT language is designed so you don't need to know that. A
processor that's optimizing for speed will probably only do it once; if
it's optimizing for memory usage then it may do it repeatedly. The idea
of declarative programming is that you leave the software to make such
decisions.
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list