XQUERY
<Documents>
{
for $doc in collection('oscrtest/documents/Photograph')/Document
order by $doc/Header/TimeStamp descending
return $doc
}
</Documents>
So then I take away the \n so that the query begins after "XQUERY " and my query becomes:
XQUERY <Documents>
{
for $doc in collection('oscrtest/documents/Photograph')/Document
order by $doc/Header/TimeStamp descending
return $doc
}
</Documents>
upon which it reports:
"[XPST0003] Expecting closing tag </Documents>."
Puzzling about why this happens, I adjust the query to:
XQUERY <Documents>{
for $doc in collection('oscrtest/documents/Photograph')/Document
order by $doc/Header/TimeStamp descending
return $doc
}</Documents>
but then it reports:
"[XPST0003] Expecting expression."
I will have to stick to 7.6 until I understand what to do about these problems.
What am I missing?
--
Delving BV, Vasteland 8, Rotterdam
http://www.delving.eu
http://twitter.com/fluxeskype: beautifulcode
+31629339805