atom feed10 messages in com.marklogic.developer.generalRe: [MarkLogic Dev General] How to ge...
FromSent OnAttachments
McBeath, Darin W (ELS-STL)Sep 14, 2010 1:05 pm 
Mary HolstegeSep 14, 2010 1:22 pm 
McBeath, Darin W (ELS-STL)Sep 15, 2010 8:02 am 
Lee, DavidSep 15, 2010 8:21 am 
McBeath, Darin W (ELS-STL)Sep 15, 2010 8:33 am 
Mary HolstegeSep 15, 2010 8:39 am 
Michael BlakeleySep 15, 2010 8:41 am 
Geert JostenSep 15, 2010 8:44 am 
Darin McBeathSep 15, 2010 8:57 am 
Darin McBeathSep 15, 2010 12:59 pm 
Subject:Re: [MarkLogic Dev General] How to get accurate fragment counts using xdmp:estimate when the QName is a variable
From:Mary Holstege (
Date:Sep 14, 2010 1:22:04 pm

On Tue, 14 Sep 2010 13:05:58 -0700, McBeath, Darin W (ELS-STL) <> wrote: ...

The following query returns me the value I would expect.


However, if I have a variable $eQName which is essentially the QName for skos:ConceptScheme


returns me every fragment in the DB.

I think the problem is that your query isn't doing what you think it is. It equivalent to //"skos:ConceptScheme", the value of which is the string "skos:ConceptScheme" repeated for every element in the database. So the estimate is correct, but it isn't what you want.

The only way to get the result you wany from the path is something like //*[fn:node-name(.)=$eQName].