Hi Vyacheslav,

Thank you for your response. I'm fairly certain there are neither comments nor PIs above root elements, this particular document is of known origin, and is known to be good until a certain point in the code (it's in a very difficult spot to debug). I believe it to somehow be two document-node()s with the same uri...

The signature for fn:doc() is fn:doc([$uri as xs:string*]) as document-node()*. Therefore, since count(doc("mydoc")) is returning 2, there must be two document-node()s with the same uri.

Regards,
Wyatt



Vyacheslav Sedov wrote:
it`s PI or comment above root element

try to compare count(...)/node() with count(...)/*

On Wed, Mar 18, 2009 at 12:12 AM, Wyatt VanderStucken
<[email protected]> wrote:
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

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to