From: Le R. M. <mik...@th...> - 2008-07-08 07:38:27
|
Ok, I have partially solve my problem with a nameSpace declaration. So I have some reply with this code: ------------- declare namespace tva="urn:tva:metadata:2005"; declare function local:term-callback($term as xs:string, $data as xs:int+) as element() { <entry> <term>{$term}</term> <frequency>{$data[1]}</frequency> <documents>{$data[2]}</documents> <position>{$data[3]}</position> </entry> }; text:index-terms(//tva:prix, "", util:function("local:term-callback", 2), 1000) ------------- But if I use the function util:index-keys(//tva:prix, "", util:function("local:term-callback", 2), 1000), I have nothing, why ? |