View Single Post
  #7 (permalink)  
Old July 28th, 2009, 12:44 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I think every XSLT processor I know of allows you (a) to read the stylesheet from a string in your host application, and (b) to compile it once and execute it repeatedly. The same is true of XQuery - there's no intrinsic reason why one should be faster than the other.

However, rather than calling an XSLT transformation repeatedly from procedural code, why not be more radical, and get rid of the procedural code entirely?
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote