XSLT combine multiple nodes into single node

前端 未结 3 1623
無奈伤痛
無奈伤痛 2021-01-06 09:43

 
  Sydney Office
  SYDNEY
  

        
3条回答
  •  囚心锁ツ
    2021-01-06 09:59

    Here's an answer similar to Dimitre's. I'd already written it, so I thought I'd go ahead and post it...

    XSLT (2.0)

    
    
      
      
    
      
        
          
            
            
              
              
              
            
          
          
          
            
              
            
          
        
      
    
    
    

    Also, if you're using XSLT 2.0 (I assumed you were since you used ends-with()) you can use tokenize() to capture pieces of the name.

    Example:

    
    

提交回复
热议问题