<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;">Dear all,<br>i have this function:<br><br>declare function local:Match($X as xs:string*,$Y as xs:string*)<br>{<br>let $count:=tokenize($X, "\s")<br>where <br>every $tok2 in tokenize($Y, "\s") satisfies<br>some&nbsp; $l in $count satisfies <br>contains($l,$tok2)(:contains ($l,$tok):)<br>return true()<br>};<br><br>it works great but i dont want String parametres<br>i want use:&nbsp; 

        
                <style>.c4ZSSG { color: rgb(128, 0, 128); }</style>
        
doc(<span class="c4ZSSG">'v2.xml'</span>)//newsItem/itemMeta/title/text() as parametre not a String "my string"<br>i changed the function to : declare function local:Match($X as node() ,$Y as node() )<br>but it does't work,<br>i must convert doc(<span class="c4ZSSG">'v2.xml'</span>)//newsItem/itemMeta/title/text() to string ? or i must change something else?<br>thank you very much<br><div><br></div>
</div><br>




      </body></html>