I am a software developer currently using Marklogic 3.1.I have a technical 
question:
I am trying to do a nested range query:If I have this xml contained in the ML 
database, is it possible to do a range search on this data:<results>      
<tagA>          <intValueLo>0</intValueLo>          <intValueHi>100</intValue>  
    </tagA>      <tagA>          <intValueLo>20</intValueLo>          
<intValueHi>200</intValue>      </tagA>      <tagA>          
<intValueLo>30</intValueLo>          <intValueHi>300</intValue>      </tagA>    
  <tagA>          <intValueLo>40</intValueLo>          
<intValueHi>400</intValue>      </tagA>      <tagA>          
<intValueLo>50</intValueLo>          <intValueHi>500</intValue>      
</tagA></results>What I want to do is a range query given an input value: 
$inputInt := 250If I do this:cts:and-query((  
cts:element-range-query(xs:QName("intValueLo"), ">=", $inputInt),  
cts:element-range-query(xs:QName("intValueHi"), "<=", $inputInt))) This seems 
to take all the intValueLo values and all the intValueHi values and does a 
range query between them.Is there a solution to this problem ? Email response 
is preferred.Thank you,Tony MariellaRaytheon Company(240) 373-5559
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to