How to use node-set function in a platform-independent way?

后端 未结 5 1847
谎友^
谎友^ 2020-12-02 01:49

I\'m writing some xlst file which I want to use under linux and Windows. In this file I use node-set function which declared in different namespaces for MSXML and xsltproc

5条回答
  •  粉色の甜心
    2020-12-02 02:09

    You can use the function function-available() to determine which function you should use:

    
      
        
      
      
        
      
      
    
    

    You can even wrap this logic in a named template and call it with the nodeset as a parameter.

提交回复
热议问题