On Thu, Oct 25, 2012 at 4:32 PM, bryan rasmussen
<rasmussen.bryan(a)gmail.com> wrote:
> thanks that was helpful, but the following
>
>> for $doc in db:open('DK')
>> let $name := $doc/*/name()
>> return db:add($name, $doc)
> where DK is the name of my db.
>
> returns
> Resource path '' is invalid.
>
>
> I tried for $doc in db:open('DK') let $name :=
> local-name(doc($doc)) return db:add($name, $doc)
>
> but that gives a FODC0005 error.
Ok I figured out the FODC0005 error, should have realized it, but the
other one has me stumped especially considering that
for $doc in db:open('DK') return $doc/*/name() outputs all the names
of the document nodes no problem.
Is there some sort of type conversion that needs to be done?
Thanks,
Bryan Rasmussen