On Sun, 2012-09-23 at 01:03 +0100, Ihe Onwuka wrote:
Of course if I had written it like this with the variable local
instead of global I wouldn't be asking the question.
So I guess the question is whether the global version entails an extra
pass over the data or any other performance penalty.
Measure it and see. With declarative / non-procedural languages,
performance is often more about the implementation and what it optimizes
than anything else. For example, some XSLT implementations build a table
of elements in the document as the document is loaded, and others don't.
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, Summer 2012
--~------------------------------------------------------------------
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>
--~--