Michale
Hi Jan,
the latest repository version contains a fix that addresses your problem:
Check it out from: http://www.inf.uni-konstanz.de/dbis/basex/community
If you need a precompiled jar let me know.
Kind regards
Michael
Am 26.10.2010 um 15:26 schrieb Michael Seiferle:
> _______________________________________________
> Hi Jan,
>
> currently creating a DB inserts a (dummy):document-node() into the DB;
> to allow:
>> create db test2
>> insert node <xml /> as first into .
> which does not add a document but adds a node to before created document-node().
>
> We put this on our TODO list, trying to find a solution.
>
> We are using a private Redmine internally, so I am sorry I can not give you an URL.
> But reporting via the Mailinglist is just fine. You might also use Sourceforge [1]
>
>
> Kind regards
> Michael
>
> [1] http://sourceforge.net/tracker/?group_id=192179&atid=940354
>
>
> Am 26.10.2010 um 14:28 schrieb Jan Vlčinský:
>
>> Hi
>> Collection with none and one document inside reports the same count of documents: 1
>>
>> > create db Test3
>> Database 'Test3' created in 119.19 ms.
>> > xquery count(collection('Test3'))
>> 1
>> Query executed in 0.43 ms.
>> > xquery for $doc in collection("Test3") return base-uri($doc)
>> file:/D:/opt/BaseX/Test3
>> Query executed in 0.74 ms.
>> > xquery /
>>
>> Query executed in 0.33 ms.
>> > add as xml.xml <root/>
>> Path 'xml.xml' added in 3.67 ms.
>> > xquery /
>> <root/>
>> Query executed in 1.1 ms.
>> > xquery count(collection('Test3'))
>> 1
>> Query executed in 0.54 ms.
>> >
>>
>> With best regards
>>
>> Jan
>>
>> PS: If I should fill it to some bug tracking tool, just let me know where I can find it. Sourceforge?
>> --
>>
>
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk