Hi Lars,

> 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?

Could you possibly give me some examples what is returned by
document-uri($x)? Could you additionally me what is returned by the
following query?

  for $x in db:open('samtiden')
  return db:path($x))

Best,
Christian


> 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
>
>
>
>
>

Reply via email to