Function that can be use to omit duplicate value on a string

后端 未结 4 1998
无人共我
无人共我 2020-12-22 12:27

I would like to ask if there is a function that can be use to to remove a duplicate value inside a string separated by | simplest possible way. I have below example of the s

4条回答
  •  遥遥无期
    2020-12-22 12:46

    Assuming that you can use XSLT 2.0, and assuming that the input looks like

    
    1111-1|1111-1|1111-3|1111-4|1111-5|1111-3
    

    you could use the distinct-values and tokenize functions:

    
    
        
    
        
          
              
          
        
    
    
    

    And the result will be

    
    1111-1|1111-3|1111-4|1111-5
    

提交回复
热议问题