[xquery-talk] how to change function which take parametre string
med_khr at yahoo.fr
Sun Nov 21 16:55:52 PST 2010
i have this function:
declare function local:Match($X as xs:string*,$Y as xs:string*)
let $count:=tokenize($X, "\s")
every $tok2 in tokenize($Y, "\s") satisfies
some $l in $count satisfies
it works great but i dont want String parametres
i want use: doc('v2.xml')//newsItem/itemMeta/title/text() as parametre not a
String "my string"
i changed the function to : declare function local:Match($X as node() ,$Y as
but it does't work,
i must convert doc('v2.xml')//newsItem/itemMeta/title/text() to string ? or i
must change something else?
thank you very much
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk