From: Stefan M. <ste...@un...> - 2010-10-27 11:02:50
|
I don't know why this changed but: On 27/10/10 11:45, exist_newbie wrote: > I've replaced the fn:not condition (that probably was intended to return > only the records that did not contain an RELATION tag of type "set") with a > fn:count(...) = 0, which seems to do the trick... I would be curious how these two behave: let $records := $records[fn:matches(NAME, $regexSearch, "i") and RELATION/@type != "set"] let $records := $records[fn:matches(NAME, $regexSearch, "i")][RELATION/@type != "set"] btw: I generally try to avoid redeclaring variables I used before as this tends to confuse me ;-) cheers, Stefan -- | Stefan Majewski | Department of English, University of Vienna | | VOICE Corpus | Spitalgasse 2-4, Universitätscampus AAKH, Hof 8 | | | A-1090 Vienna | | Research Ass.(IT)| Phone: +43 1 4277 424 46 | |