How can make an XSLT Javascript extension function return a node-set?

前端 未结 2 1765
無奈伤痛
無奈伤痛 2020-12-12 01:56

Is there a simple way to have an extension function in XSLT 1.0 written in javascript return a node-set?
I could create a new java class for this, but I would rather jus

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 02:23

    Here is an example that should work with MSXML 6 as long as run in a mode allowing script in XSLT to implement extension functions. The stylesheet code is as follows:

    
    
      
    
      
      
      
    
      
        
          
            Example
          
          
            

    Example

提交回复
热议问题