Krishna:
If you're using MarkLogic 7, you can do the following:
First, Create query options that extract the title of each document:
http://docs.marklogic.com/guide/rest-dev/appendixb#id_94425
http://docs.marklogic.com/REST/PUT/v1/config/query/%5B%27default%27-or-name%5D
Then, install your XSLT transform on the REST server:
http://docs.marklogic.com/REST/PUT/v1/config/transforms/%5Bname%5D
Finally, specify your query options and your XSLT transform to modify the search response:
http://docs.marklogic.com/REST/GET/v1/search
Hoping that helps,
Erik Hennum