Hi Pragya, Sorry, but I really do not understand what you are trying to ask here.
-Danny From: [email protected] [mailto:[email protected]] On Behalf Of Pragya Kapoor Sent: Wednesday, June 02, 2010 10:48 PM To: [email protected] Subject: [MarkLogic Dev General] query on fn:replace Hi, I have the following query: I want the output as: ##Rented# House in ##Del#hi Code: Let $query := "Rented Del" Let $tokens := fn:tokenize($query) let $y := "Rented House in Delhi" let $count := 0 let $Title := for $x at $count in $tokens let $x := fn:replace ($y,$tokens[$count], fn:concat("##", $tokens[$count],"#"),"i"), $count := $count + 1 return $x return $Title Thanks, Pragya
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
