[xquery-talk] Serialization question
leo.studer at varioweb.ch
Mon Apr 27 02:49:08 PDT 2015
I use Oxygen with Saxon enterprise edition 9.6.05.
My output method is “text”.
The following statement does its job correctly
for $c in doc("factbook.xml")//country order by $c/@name return $c/@name/string()
However I do not understand why
for $c in doc("factbook.xml")//country order by $c/@name return $c/@name
returns an empty sequence.
What especially intrigues me is that ordering with $c/@name works fine (no conversion to string) and the output as text not.
Thanks in advance
More information about the talk