Thanks, new snapshot downloaded,  but the errors persist in some way or
another (not exactly the same).

However, since you mentioned that the problems were caused by colons in
filenames, removing those colons did the trick. Now it all works as
expected. The colon-free-folders can be referenced with collection(), as
well as being ingested. All is well.

Alles klar!
Lars

2015-03-11 18:57 GMT+01:00 Christian Grün <christian.gr...@gmail.com>:

> Hi Lars,
>
> The issue should be fixed with the latest snapshot [1].
>
> फिर मिलेंगे,
> Christian
>
> [1] http://files.basex.org/releases/latest
>
>
>
> On Tue, Mar 10, 2015 at 6:23 PM, Lars Johnsen <yoon...@gmail.com> wrote:
> > 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
> >
> >
> >
> >
> >
>

Reply via email to