Merge functionality of two xsl files into a single file (not a xsl import or include issue)

后端 未结 2 1082
一个人的身影
一个人的身影 2021-01-24 22:52

I have two xsl files; both of them perform different tasks on source xml one after another. Now I need a single xsl file which will actually perform both these tasks in single f

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 23:24

    The general solution to the problem is to change the template rules and apply-templates calls in one stylesheet to use mode M1, and those in the other to use mode M2, and then to combine them like this:

    
      
        
      
      
    
    

    But in XSLT 1.0 the second apply-templates will need to be

    
    

提交回复
热议问题