Could anyone please tell me how to query the index of an element? For example I have indexed an element in schema as below:
<TEI>
<Body>
<p>
....
<index>
<text />
</index>
...
</p>
</Body>
</TEI>
I want to know for example after the following Xquery:
for $d in input()/TEI/body/p
where tf:containsText ($d, "Omaha")
return $d
the index number of the word “Omaha”. I know there is a function called ino:DisplayIndex(), but I don’t know how to use it… Thanks for the help in advance.
#webMethods#API-Management#Tamino