how to fill text templates using xslt

后端 未结 4 841
梦如初夏
梦如初夏 2020-12-19 23:29

I have an XML file with information, for example:


  Test
  20
  Me
         


        
4条回答
  •  忘掉有多难
    2020-12-19 23:39

    You can do this:

    
      
    
      Dear $name,
    
    some text with other variables like $age or $name again,
    the $undefined will not be replaced.
    
    greatings $me
    
      
        
           
           
        
      
    
      
        
        
        
          
            
            
            
            
              
                
                
                  
                
              
            
            
            
            
              
                
                  
                
                
                  
                
              
            
    
            
            $
              
    
            
               
               
            
          
          
              
          
        
      
    
    

    Output against your XML sample:

    Dear Test,
    
    some text with other variables like 20 or Test again,
    the $undefined will not be replaced.
    
    greatings Me
    

提交回复
热议问题