How one can assign to variable a copy of another variable that contains a set of nodes? Here is my code:
Looking at your XSLT fragment, it looks like you want the blines
variable to contain all the E1EDL24
elements where HIPOS
is not zero, and if no-such elements exist, it should contain all E1EDL24
where HIPOS
is zero.
If this is the case, instead of trying to copy the elements in the variables, you could define the blines
variable as follows:
This would reference the original elements in the source XML, rather than create a Result Tree Fragment, and so would still be queryable.