From: Pierrick B. <pie...@fr...> - 2007-12-23 20:18:50
|
Hi, Marjorie BURGHART a écrit : > Thanks! I've tried it in my xsp: the resulting XML is displayed, but > highlight doesn't work (no exist:match tags are added). Theoretically, > this XQuery option should work whatever the serializer options of the > server are, shouldn't it? Is it dependent upon the query method? I can't > get where I'm wrong :( Since you don't say much about the way you are querying the server (nor about eXist version), I'm afraid we can't help you much here. >>> for $dis_title in $doc/div[position() = "30" and near(.,'"femina"')] >> ... looks strange. > It /is/ strange, indeed :) In fact, I already know which div I want to > select and strictly speaking the "near(.,'"femina"')" is useless and > redundant. But I thought it necessary if I wanted to highlight the > occurrences of "femina" in the result? I was rather speaking about position() = "30". Since http://www.w3.org/TR/xpath-functions/#func-position returns an xs:integer, what do you expect here ? Cheers, p.b. |