Created
December 29, 2011 21:37
-
-
Save xquery/1536327 to your computer and use it in GitHub Desktop.
xquery - split a comma delimited string and add text to each item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i've interpreted what you may want to achieve, but mileage may vary | |
xquery version "1.0"; | |
let $string := "test,test,test,test,test" | |
return | |
for $text in tokenize($string,',') | |
return | |
<text>{concat('add some text: ', $text)}</text> | |
should return each text item in a <text/> element | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment