Hi..!

 

  I have a document with the following content

 

<root>
  <a>
    <b id="1-1">1</b>
  </a>
  <a>
    <b id="2-1">1</b>
    <b id="2-2">1</b>
  </a>
  <a>
    <b id="3-1">1</b>
    <b id="3-2">1</b>
  </a>
</root>
 
I think both the following xpath expression should give the same result
but they are giving different results, is it an issue in marklogic
 
doc("/root/ab.xml")//b[position()=2]
 
<b id="2-1">1</b>
 
doc("/root/ab.xml")//b[2]
 
  <b id="2-2">1</b> 
  <b id="3-2">1</b>
 
 
Thanks
Pradeep Maddireddy
 

 

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to