Dear Christian, Fabrice and Hans-Juergen,
Thanks for your answers.
In the earlier versions of BaseX, upto 7.6, the following query was running smoothly -
for $x in doc('docs')//Doc[Year="2014"]/@name
order by $x
return $x
So, in all of my code, I have used in same manner. But in 7.8.1 and onwards (after 7.6, I directly jumped to 7.8.1),
this query results in error !!!
So for this new versions, my above query will be -
for $x in doc('docs')//Doc[Year="2014"]/@name
order by $x
return $x/string() (: or $x/data() :)