I'm using this XPATH query:
xpath.compile("/TEI.2/text/body/div/entry/sense/cit/quote[text()="malta"]")
I'd like to get the 2nd "quote" node containing "malta". How can I do that?
I have tried:
xpath.compile("/TEI.2/text/body/div/entry/sense/cit/quote[text()="malta" and position()=2]")
as well as
xpath.compile("/TEI.2/text/body/div/entry/sense/cit/quote[text()="malta"][2]")
These give me an empty result however I'm sure there is a second node.
Thanks!
normalize-space(text())(…original xpath query…)[2].