How to compare against multiple strings in xslt

后端 未结 6 449
滥情空心
滥情空心 2020-12-10 12:45

For comparing an xml string value against multiple strings, I am doing the following.



        
6条回答
  •  长情又很酷
    2020-12-10 12:53

    For space-separated words you can use index-of(tokenize("list of allowed", "\s+"), "needle")) or match to go with regular expressions, although I am pretty sure there is something smarter than this.

提交回复
热议问题