Add repeating XML code n times via xslt template

后端 未结 2 794
离开以前
离开以前 2021-01-26 19:12

I want to repeat the following lines in an XML document n times, n being set in the variable $n


    

        
2条回答
  •  無奈伤痛
    2021-01-26 19:52

    The template shall return the CDATA string n x 2 times for i = 0 to n.

    Well, that's fairly trivial:

    
        
        
        
        
            
            
            
            
                
                
                
            
        
    
    

    Or, if you prefer:

    
        
        
        
        
            
                
                
                
             
            
            
                
                
                
            
        
    
    

提交回复
热议问题