[xsl] XPath expression to convert a list of (string) integers into a sequence of (genuine) integers

Subject: [xsl] XPath expression to convert a list of (string) integers into a sequence of (genuine) integers
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Wed, 26 Dec 2012 13:44:31 +0000
Hi Folks,

I want an XPath expression to convert the codepoints in this element

<Numbers>84 104 101 32 115 101 99 114 101 116 32 97 103 101 110 116 32 105 115
32 46 46 46</Numbers>

into a string.

Here is one way to do it

    codepoints-to-string(for $i in tokenize(., '\s+') return xs:integer($i))

Is there a better XPath expression?

By "better" I mean simpler.

/Roger

Current Thread