简体   繁体   中英

XSLT 2.0 Convert a space separated string to a sequence

I'm looking for a function or simple method to convert a space-separated string into a sequence of strings. For example the string 'abcd ef ghi' would be converted to a three-string sequence: 'abcd','ef','ghi'. It can be assumed that there is only one space between the sets of characters. A string with no spaces would generate a one-string sequence.

I looked around through the usual references, but nothing jumped out at me. I'm using XSLT 2.0. Suggestions?

You are describing the tokenize() function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM