In order to make this work, I coded the <sxml:toxml> tag to iterate through
each row in the result set and invoke it's body . This works great for the
first iteration of the loop but subsequent iterations don't return any
output. I suspect this is because the first invokeBody causes the body to be
removed from the script. Does this make sense? Is there some other way to
do this? The complete taglib is included below.