[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What's evaluated first: @select or xsl:with-param?
The specification leaves this implementation-defined. Since the values
of the parameters are the same for every node processed, it's a
reasonably strategy for the processor to evaluate the parameters before
knowing how many selected nodes there are, though I guess an even better
strategy would be to do it lazily when the first selected node is found.
But note also that this is a type error, and that type errors can even be reported at compile-time, even if the apply-templates is never executed. This could happen for example if the variable $b can be evaluated at compile time and its value is known statically to be an empty sequence. Michael Kay Saxonica On 18/10/2010 16:19, Vladimir Nesterovsky wrote: Hello!
|
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
|