Hi Mihir

I guess xdmp:estimate will solve your problem.

Abhishek Srivastav
Tata Consultancy Services
Mailto: abhishek5...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________



From:
Mihir Das <mihir.kumar...@gmail.com>
To:
general@developer.marklogic.com
Date:
08/26/2011 12:34 PM
Subject:
[MarkLogic Dev General] getting count
Sent by:
general-boun...@developer.marklogic.com



I am stuck in getting count of the multiple fragments in a article.

I am using the following query for getting element fragments count. There 
are multiple EquationSource in each document.

fn:count(fn:doc()/Publisher//EquationSource[@Format='TEX'])

XML structure:

<Para>
?
<Equation ID="Equ4">
<EquationNumber>4</EquationNumber>
?
<MediaObject>
<ImageObject Format="GIF" Color="BlackWhite" Type="Linedraw" 
Rendition="HTML" FileRef="500_2010_543_Article_Equ4.gif"/>
</MediaObject>
?
<EquationSource Format="TEX">
$$ \Updelta_k(e)=\sum_{T\in {{\mathcal{P}}}}{\frac{Q}{w_k(T)}}, \quad 
k=1,2,{\ldots},m $$
</EquationSource>
</Equation>
where 
<Emphasis Type="Italic">Q</Emphasis>
 is a value with the same magnitude of the solutions. For example, if the 
weights are balanced, 
<Emphasis Type="Italic">Q</Emphasis>
 can be set as the minimum value between all objectives; 
?
<InlineEquation ID="IEq32">
?
<InlineMediaObject>
<ImageObject Format="GIF" Color="BlackWhite" Type="Linedraw" 
Rendition="HTML" FileRef="500_2010_543_Article_IEq32.gif"/>
</InlineMediaObject>
<EquationSource Format="TEX">$${{\mathcal{P}}}$$</EquationSource>
</InlineEquation>
 is the colony?s approximation set (further details about this set are 
given in the next section).
</Para>

Thanks,
Mihir


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to