XSL: How best to store a node in a variable and then use it in future xpath expressions?

后端 未结 3 1846
时光说笑
时光说笑 2020-12-30 03:44

I need to be able to store a node set in variable and then perform more filting/sorting on it afterward. All the examples I\'ve seen of this involve either using XSL2 or ext

3条回答
  •  萌比男神i
    2020-12-30 04:11

    Another note, if you want to be able to use the variable as part of an XPath statement, you need to select into the variable with instead of

    value-of will only take the text of the node and you wont be able to use the node-set function to return anything meaningful.

    
       
    
    
    
    
       
    
    
    
    
       
    
    
    
    
       
    
    

提交回复
热议问题