Woah, hold on a minute everyone. I tried the dummy variable technique
and it looks like Xalan-J is using some lazy evaluation. The select
will not be called until you run a <xsl:value-of/> for the dummy
variable. So, it looks like it is best to only use Java set methods
while creating parameters to pass to sub-templates. Then lazy
evaluation is exactly what you would want and expect.
Cheers,
RRM