How to create a new list item with FLOWR and XQuery?
问题 I'm looking to select non-numerical data from an XML file towards shredding it into database columns, or at least an xmltable -like structure. This FLWOR gives a somewhat useful result: xquery version "3.0"; declare namespace office="urn:oasis:names:tc:opendocument:xmlns:text:1.0"; <ul> { for $foo in db:open("foo") return <li>{$foo//text()[not(matches(., '[0-9]'))]}</li> } </ul> However, it outputs all results into a single li tag, like: a b c d Preferred output would be of the form: a b Most