How to retrieve Sequence of atomic values?Daniel Pötzinger info at xaba.de
Mon Feb 20 16:22:17 PST 2006
andrew welch wrote: > On 2/20/06, Torsten Grust <http://xquery.com/mailman/listinfo/talk> 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 > > Thanks both of you for the answer I am using eXist as XML-DB and Schemavalidation is not fully implemented I think. I tried the solution with validate but did not come to my result. The "tokenize" suolution works fine, thanks!
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format