Thread: re write a code
View Single Post
  #2 (permalink)  
Old August 1st, 2007, 03:53 AM
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

You could try passing a single parameter which is an XML fragment containing all the information needed. However, you're limited because in XSLT 1.0 you can't address inside a result-tree-fragment without the xx:node-set() extension.

This does seem a surprisingly large number of parameters. Also, most of them seem to vary between the two calls only by the prefixing of "AVG_" to the value. This suggests that there is some refactoring possible.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference