From: Joe W. <jo...@gm...> - 2010-12-23 13:24:43
|
I don't think it's a bug. Isn't the cardinality error clear? Perhaps you're comparing eXist to MarkLogic's default xdmp:mapping mode? - Joe Sent from my iPod On Dec 23, 2010, at 7:52 AM, Florent Georges <li...@fg...> wrote: > Hi, > > I found the following bug in eXist, in the trunk, for the > revision #13413. The following query must result in calling > twice the function doc(), each time with the parameter value > '/db/any.xml'. So the query must evaluate to twice that file (or > the empty sequence if it does not exist): > > <root> > <doc>/db/any.xml</doc> > <doc>/db/any.xml</doc> > </root> > / doc(doc) > > But I get instead the following error: > > org.xmldb.api.base.XMLDBException: XPTY0004: The actual > cardinality for parameter 1 does not match the cardinality > declared in the function's signature: doc($document-uri as > xs:string?) node()?. Expected cardinality: zero or one, got > 2. [source: String] > > IMHO it looks like a bug. > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > > > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |