Hi all
I have a database collection which gives a strange error message
'[FODC0002] "" (Line 1): Content is not allowed in prolog.'
on this query:
for $x in collection('samtiden')
return doc(document-uri($x))
The results from document-uri($x) are as expected, but doc(document-uri($x)) should return $x - so what can be the cause of the error?
The collection was entered in the gui using "skip corrupt files" since some of the files had errors (ended prematurely). But the database and document-uri() works fine for all elements in the database.
I need to process the paths for grouping the documents in the collection, so the practical value is a bit more than just trying to compute a unity function!
Best,
Lars G Johnsen
National Library of Norway