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

后端 未结 2 1091
一个人的身影
一个人的身影 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:31

    This XSLT:

    
    
    
    
    
        
            
        
    
    
    
        
            
            
            
        
        
    
    
    
    
        
        
        
        
            
                
                
                    
                    
                    
                
            
            
                
            
        
    
    
    
    

    Applied to this well-formed XML:

    
    
      
        
            #+#
            abc
            #+#
            
        
        
            #+#
            bz1
            az2
            #+#
            
            #+#OLOLO
        
      
    
    

    Produces this result:

    
    
      
        
            
            abc
            
        
        
            
            bz1
            az2
            
            OLOLO
        
      
    
    

提交回复
热议问题