Hi Wyatt,
Are you certain it is both the root of the same document? Note that the doc
function allows a sequence as first argument, returning the document node of
each uri in that sequence (for those that exist)..
I am using MarkLogic Server 4.0-1 and it does not allow me to insert or load
documents with multiple root elements, even when doing something like:
xdmp:document-insert("test", document { <x/>, <x/> })
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Wyatt VanderStucken
> Sent: dinsdag 17 maart 2009 22:12
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] multiple documents - same URI???
>
> I suppose it also may be that the document has 2 root
> elements - equally disconcerting...
>
> XDMP-AS: (err:XPTY0004) let $request as element() :=
> doc($requestURI)/child::skins -- Invalid coercion:
> (doc("request-xxxxxx.xml")/skins, doc("request-xxxxxx.xml")/skins) as
> element()
>
>
> Wyatt VanderStucken wrote:
> > How is it possible that count(doc("request-xxxxxx.xml"))
> returns 2? I
> > thought each a URI corresponded w/ a single document in MLS???
> >
> > When I call doc("request-xxxxxx.xml")I am getting two distinct
> > documents - this is very disconcerting (I'm using 4.0-4)...
> > <tcs:skins ip="127.0.0.1">
> > ....
> > </tcs:skins>
> > <tcs:skins ip="127.0.0.1">
> > ....
> > </tcs:skins>
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general