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
