From: Espen S. O. <es...@es...> - 2012-06-21 10:57:13
|
Den 21. juni 2012 12:17, skrev Pie...@re...: > Hi again, > > "Espen S. Ore" <es...@es...> a écrit sur 21/06/2012 12:00:49 : > > > Thank you very much! How would I use this combined with the search setup > > I included in the former mail? > > Well... restrict as soon as possible :-) > > I would act on $scopesok, something like : > > let $scopesevenmoreok := > $scopesok[matches-regex(util:document-name($scopesok), "your-pattern" ] One other problem: I have this namespace definition in my xquery file: declare namespace text="http://exist-db.org/xquery/text"; But when I try to use the matches-regex module, I get this errormessage: Function text:matches-regex() is not defined in module namespace: http://exist-db.org/xquery/text So I wonder what may be wrong here? Espen |