[xquery-talk] How to retrieve Sequence of atomic values?

andrew welch andrew.j.welch at gmail.com
Mon Feb 20 14:55:38 PST 2006


On 2/20/06, Torsten Grust <grust at in.tum.de> wrote:
> On 2/20/06 3:42 PM, Daniel Pötzinger wrote with possible deletions:
> > [...]
> > How is it possible to handle an element:
> > <test>1 2 3 4</test>
> > as sequence of atomic types (xs:integer) in an XQuery?

How about:

for $x in tokenize(test, ' ') return xs:integer($x)

cheers
andrew



More information about the talk mailing list