[xquery-talk] Serialization question
Leo Studer
leo.studer at varioweb.ch
Mon Apr 27 02:49:08 PDT 2015
Hello
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.
Any hints?
Thanks in advance
Leo
More information about the talk
mailing list