how to fill text templates using xslt

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

I have an XML file with information, for example:


  Test
  20
  Me
         


        
4条回答
  •  心在旅途
    2020-12-19 23:36

    This stylesheet:

    
        
        
        Dear ,
    
    some text with other variables like  or  again
    
    greatings 
        
        
            
        
        
            
        
    
    

    Output:

    Dear Test,
    
    some text with other variables like 20 or Test again
    
    greatings Me
    

    Note: For more complex population pattern (i.e. iteration), check this posts: Sitemesh like functionality with XSLT? and XSLT Layouts With Dynamic Content Region

提交回复
热议问题