[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to estimate speed of a transformation
On Thu, Dec 11, 2003 at 11:28:22AM +0400, David Tolpin wrote: > On the other hand, if a template contains a variable definition that does depend > on template's parameters, > > <xsl:template name="footer"> > <xsl:variable name="doctitle" select="/book/descendant::title[1]"/> > > the programmer should expect that the computation takes place only once. Well then that would be just wrong. It depends what document is in context. And if the programmer used node-set() it's a dynamically generated document, much like document() results. Do you think you would cache all the results for such request ? well, if you do, your memory consumption may just explode. Your vision of the actual tradeoff related to implementing an XSLT processor seem to be rooted in theory, but doesn't seems to take into account a number of problems associated. The variable in question could be associated to a 10 MBytes memory tree. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|