Perhaps I spoke too soon!
As I understand, A=B means "return true if A is found anywhere in the
sequence B". Can someone confirm this?
Thanks (and sorry to derail),
Eric
Eric Palmitesta wrote:
Equality testing of non-sequences should use "eq". Try...
[position() eq 2]
Eric
Pradeep Maddireddy wrote:
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
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general