Using Variables in

后端 未结 2 704
一生所求
一生所求 2021-01-04 11:00

Hi am build a generic template to list my content. But the Content may be sorted on different @\'s or node()\'s. So want to pass the xPath in.



        
2条回答
  •  忘掉有多难
    2021-01-04 11:40

    The | (union operator) works... I must have gotten it slightly wrong when tried before. It was @Dimitre Novatchev's answer lead me down the right path!!

    The following works:

    
    

    It allows me to sort on attributes and nodes. Obviously, as long as they don't have the same name() but different values.

提交回复
热议问题