On 3/8/2012 8:58 PM, jidanni@jidanni.org wrote:
On http://docs.basex.org/wiki/Serialization we see newline. But we have no idea how to make it work. Please add an example to that page!
declare option output:method "text"; declare option output:newline "\n"; for $m in (1,2,3) return $m
Nope no idea.
basex: Installed: 7.1.1-2
The newline option just indicates which kind of newlines to use in places where newlines would normally be selected -- it doesn't make lists automatically newline-separated.
Maybe you want something more like this:
declare option output:format "no"; declare option output:method "text"; string-join(("one", "two", "three"), " ")