xslt copy of all nodes to variable

后端 未结 2 1652
一向
一向 2021-01-23 04:15

How one can assign to variable a copy of another variable that contains a set of nodes? Here is my code:

    

        
2条回答
  •  旧时难觅i
    2021-01-23 05:02

    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.

提交回复
热议问题